David Bethel | |||
This is the files for the current order editor beta. You just need to copy them in to c:\program files\skeletal\phoenix | |||
ptb | |||
what do all the numbers in the order.cfg file mean? ![]() | |||
David Bethel | |||
Off hand, i have no idea - its all edited through the orders menu option in the editor, so i never have to understand the file. BTW don't edit the orders ![]() | |||
ptb | |||
On i don't want to edit it, just understand how it works and how the various numbers describe what fields and datatypes are needed for each action. The reason is this page www.planet404.com/~shades/test/control.html which is just a quick mock up of a thin client container, however i can't put the action stuff in there till i understand it better. Only really the actions are missing, and the fact it doesn't actually make any connection to the phoenix site but thats just a matter of allowing the forms to send off their data. All the files are at www.planet404.com/~shades/test/ the images are just png version of your gif ones, layout is all via the css, which is why the page weight is so low. control.html is almost xhtml 1.0 strict valid, i say almost cause techincally <select> boxes without <option>s in them aren't valid. orders.js is empty so far. thinclient.js is where all the actual work is done, it's kinda commented feel free to look. generate.js is where all the userdata/gamedata is. currently it's just dummy data Mostly i was just playing to see how much thinclient stuff i could do, but i hate to leave projects half finished ![]() edit: Apparently theres some issues in ie 5.0 with spacing, otherwise it should work in any browser that supports javascript 1.2 | |||
ptb | |||
btw thanks for mentioning that order edit bit on the offline editor, makes working out whats what much easier should be just a matter of hours | |||
ptb | |||
okay i've pretty much worked that out, and how to decode all the values so can now start adding them. Still lots of work transfering all the lists to it mind you, shame you didn't have that in a config file too oh btw you spelt technique as "technbique" in the items type list ![]() edit: what is list type 9 (ship) ment to show, i assumed ships at the start but thats list type 41. It isn't used on an order and doesn't give anything in the offline editor, but i only have the basic data | |||
ptb | |||
okay your just being akward aren't you, list 50 (agent orders), up till then it was all clean and nice, stuff was either an item id, a position id or a zero indexed list of options. agent orders are a mess of numbers ![]() darn evil people ![]() | |||
David Bethel | |||
Ok i'm a bit shocked, it really quite amazing .... no idea what i'm supposed to do now ![]() | |||
ptb | |||
well thats up to you really, it's not code complete in that it needs to be able to extract the data for the player, and send turn requests off. Two ways to extract the data are to let you host the whole thing and generate the date file (generated.js) using php or the like or for me to try and extract the required data from the current order editor (which is far more work for me ![]() as for sending turns off i had issues when i got to the add/delete order in the orders tab, cause you appear to use unique numbers for the issued order bit. i had intended to just assigned them one by one and send it off all at once, however the need to be able to store the current turns and let the player go back and finish it later means i need a way of requesting a turn number. Basically three cgi sciprts are required, one to generate the generated.js data file, and another to return information, such as the unquie issued order id, or just a "OK QUERY PROCESSED" or something for the other forms, and a login/logout script (to set the session stuff up for the generated file and queries, also you'd need a clean way to handle session timeouts) I could try and write these too but i would need the database structure you use for the orders (not the data, jsut the structure) the site itself has a page weight of 133k, however once it's cached the generated weight is only 13k which is pretty tiny on bandwidth/server usage espeically as this would only need to be downloaded once per session, the site works under ie 5.5 and 6, firefox 0.9 and 1.0 and opera 7.0. ie 5.0 has evil evil issues that i'm not certain how to fix ![]() |