Jump to content

How does the game load player settings?


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...