Blockland Forums > Modification Help
What is dedicated-compatible?
<< < (3/5) > >>
Red_Guy:
its this:

--- Code: ---   if(%g == 1)
   {
      canvas.popdialog(ReserveGUI);
      canvas.pushdialog(ReserveGUI);
   }

--- End code ---
Canvas doesnt exist on a dedicated server.  So when the script compiler tries to parse that, it chokes.
Greek2me:
Canvas is a scriptObject or something similar. That shouldn't cause a crash. If it isn't there, the server would say Unable to find object '', attempting to call function blah blah blah
Red_Guy:
take the Canvas code out of your script and see.
Destiny/Zack0Wack0:

--- Quote from: Red_Guy on April 27, 2011, 12:50:04 AM ---take the Canvas code out of your script and see.

--- End quote ---

--- Code: ---<input> (0): Unable to find object: 'Canvas' attempting to call function 'pushDialog'
BackTrace:


<input> (0): Unable to find object: 'Canvas' attempting to call function 'popDialog'
BackTrace:

--- End code ---

You haven't provided the full code. Executing a .gui file on a dedicated server causes a crash.
Ipquarx:
so my .txt system will work, the only thing that was crashing it was the gui system i implemented. is this correct? if so, i could use my .txt system.


--- Quote from: Greek2me on April 26, 2011, 07:40:01 PM ---$var = "";
If you do this to a variable contained in a scriptObject, you'll see that the var no longer appear when you dump it.

--- End quote ---
post an example please?


--- Quote from: Headcrab Zombie on April 26, 2011, 07:53:48 PM ---Or the DeleteVariables function

--- End quote ---
so DeleteVariables("$varname"); will delete the specified variable?
Navigation
Message Index
Next page
Previous page

Go to full version