Nullus Posted January 16, 2021 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? Link to comment Share on other sites More sharing options...
Stan` Posted January 16, 2021 Share Posted January 16, 2021 This JSON code is parsed by C++ IIRC 1 Link to comment Share on other sites More sharing options...
Nullus Posted January 17, 2021 Author Share Posted January 17, 2021 Thanks, I'll check that out. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now