LilBudyWizer
Warlord
- Joined
- Nov 11, 2014
- Messages
- 174
I could have sworn I made a post yesterday with an overview of where JavaScript files for the game are located and how they are organized. It seems to have been deleted without notification. I'm not going to go into a lot of effort on this one until I see if it stays. Anyway, I extracted import statements from the vanilla source. I then played around with them and put in a few different views. The zip below has the various JSON files I created which includes:
This is a work in progress. I'll be adding more files but it's about the end of the road for this approach. There's just a few more views I think would provide insight. Beyond that I'll have to parse the JavaScript files. That's how I got the imports but they're much simpler to locate and parse than an entire script. One goal is to try to isolate the globals not declared in any JavaScript and thus injected by the runtime. String, Array, Map would be examples, but that's simply JavaScript. Every implementation has those. It seems easy to eliminate those, but there's others that are specific to the game such as UI and Configuration. Particularly finding what they expecting as parameters to their function from what the vanilla scripts used as parameters.
- jsfiles.json
- jsfilesbyscript.json
- duplicates.json
- imports.json
- noimports.json
- importedby.json
- noimportedby.json
- notfound.json
- mostimported.json
This is a work in progress. I'll be adding more files but it's about the end of the road for this approach. There's just a few more views I think would provide insight. Beyond that I'll have to parse the JavaScript files. That's how I got the imports but they're much simpler to locate and parse than an entire script. One goal is to try to isolate the globals not declared in any JavaScript and thus injected by the runtime. String, Array, Map would be examples, but that's simply JavaScript. Every implementation has those. It seems easy to eliminate those, but there's others that are specific to the game such as UI and Configuration. Particularly finding what they expecting as parameters to their function from what the vanilla scripts used as parameters.