Nullus Posted January 16, 2021 Report Share Posted January 16, 2021 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 comment Share on other sites More sharing options...
Stan` Posted January 16, 2021 Report Share Posted January 16, 2021 This JSON code is parsed by C++ IIRC 1 Quote Link to comment Share on other sites More sharing options...
Nullus Posted January 17, 2021 Author Report Share Posted January 17, 2021 Thanks, I'll check that out. Quote Link to comment Share on other sites More sharing options...
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.