Blockland Forums > Modification Help
CityRPG Syntax Error
Iban:
--- Quote from: heedicalking on February 12, 2011, 01:14:13 PM ---
--- Code: ---db = $CityRPG::jobs::datablock;
--- End code ---
--- End quote ---
This is the correct answer.
The implementation of jobs that this copy uses was suggested by Trader and uses something very similar to JVS. To his credit, it's a very fancy fung sheuing of how the engine works to save and load information.
1. Editor makes a job file where he defines a series of global variables.
2. Scripts execute this file which is just a bunch of variable declarations.
3. Scripts make a scriptObject based on global variables defined in the config file.
4. Deletes all global variables to prevent them from appearing in the next scriptobject.
Of course, knowing this really does not matter if all you're doing is mass producing a bunch of stuffty jobs. Why you're editing that file in the first place is beyond me.
Blaze0:
Waitasecond. Datablock...is this about a player's job's datablock? Damnit, I remember changing Criminal Mastermind's playertype to Quake. What happened...
Blaze0:
Changed back to NoJet, but to no avail...
Iban:
--- Quote from: Blaze0 on February 27, 2011, 09:37:22 PM ---Changed back to NoJet, but to no avail...
--- End quote ---
It doesn't matter what the datablock is if you aren't fixing the syntax error in the code.
Blaze0:
I still don't know where the error is located.
In case any one wants to help, here's scriptobjects.cs
http://www.mediafire.com/?4jsyu45kzf5x7dc