Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-21-2007, 03:47 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Update packages?

I'm having problems making a package "popup" asking if it should be downloaded or not. I've experimented with ALL settings for the past hour, yet I can't make it work.

I've tried setting it to optional and popupforoptionalpackages to false/true. I've tried changing ALL settings. And yes, I know how they work - I've used them since they first came out.

But.. I can NOT make an optional download popup, no matter how I try. So could anyone who KNOWS EXACTLY how to do it please post an example? Because I don't want a music package to be required, and if I make it optional a lot of people won't know how to download it, so I want a popup.

Cheers in advance.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #2  
Old 05-26-2007, 12:28 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Stefan? Anyone?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 05-26-2007, 12:39 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
There is no popup thing right now, it was planned though. You can however script it yourself, something like this (calling update() is downloading it):

PHP Code:
printPackage(getBasePackage());

function 
printPackage(package) {
  echo(
"package: " package.filename " - " package.name);
  if (
package.filename=="mymusic.gupd" &&
      
package.localversion<package.version)
    
package.update();

  for (
temp.subpackagepackage.packages)
    
printPackage(temp.subpackage);

Reply With Quote
  #4  
Old 05-26-2007, 12:40 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Stefan View Post
There is no popup thing right now, it was planned though. You can however script it yourself, something like this (calling update() is downloading it):

PHP Code:
printPackage(getBasePackage());

function 
printPackage(package) {
  echo(
"package: " package.filename " - " package.name);
  if (
package.filename=="mymusic.gupd" &&
      
package.localversion<package.version)
    
package.update();

  for (
temp.subpackagepackage.packages)
    
printPackage(temp.subpackage);

Thanks alot!
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #5  
Old 05-26-2007, 05:16 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I think you have to have like a main.gupd or something.
__________________
Reply With Quote
  #6  
Old 05-26-2007, 03:06 PM
godofwarares godofwarares is offline
Webmaster
godofwarares's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 552
godofwarares is on a distinguished road
Send a message via ICQ to godofwarares Send a message via AIM to godofwarares Send a message via MSN to godofwarares Send a message via Yahoo to godofwarares
Quote:
Originally Posted by cbkbud View Post
I think you have to have like a main.gupd or something.
Yeah, basepackage.gupd
__________________
What signature? I see no signature?
Reply With Quote
  #7  
Old 08-07-2007, 10:57 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Stefan View Post
There is no popup thing right now, it was planned though. You can however script it yourself, something like this (calling update() is downloading it):

PHP Code:
printPackage(getBasePackage());

function 
printPackage(package) {
  echo(
"package: " package.filename " - " package.name);
  if (
package.filename=="mymusic.gupd" &&
      
package.localversion<package.version)
    
package.update();

  for (
temp.subpackagepackage.packages)
    
printPackage(temp.subpackage);

Stefan, seeing as thought you said that it was planned to add a popup thing - has it been added? If not, will it ever be?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.