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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...