Nullus 9 Posted January 16 Report Share Posted January 16 Hi, I've been working on some modifications to 0ad that would allow a default building orientation to be set on maps. The changes define a new player attribute, DefaultRotation, in the JSON describing a map's players. However, when I define this attribute in a map's data, that attribute is not passed as part of the "settings" object to LoadPlayerSettings() in /simulation/helpers/Player.js. So the program ends up falling back on the default values. I assume that I would need to modify the code that generates the "settings" object. I don't know where this code is located, though. Are those the changes that I would need to make? And if so, where is this code? Quote Link to post Share on other sites
Stan` 7.108 Posted January 16 Report Share Posted January 16 This JSON code is parsed by C++ IIRC 1 Quote Link to post Share on other sites
Nullus 9 Posted January 17 Author Report Share Posted January 17 Thanks, I'll check that out. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.