Jump to content

Simplifying building/unit system


Recommended Posts

Last night I was thinking about how a Age I mod could be done. Btw I realized that maybe 0 a.d uses too much templates: Instead of ptol_house and athen_house, couldn't the actor be defined in the template file depending on the civ, and then with a dropdown list near and like the player selection one, for choosing the civ variant for the actor. The same for common units.

This way there would be less templates and the list should be cleaner.


Maybe I didn't express well, but the objective would be doing something like relative parents with actors in one file, instead of making a lot of them. What do you think?

 

Link to comment
Share on other sites

I don't really understand what the problem with the current system is. All generic properties go in the parent template and child (often civ-specific) templates can override those properties. Perfectly understandable and perfectly moddable. (and that last point is very important when considering groundbreaking template changes)

  • Like 2
Link to comment
Share on other sites

2 hours ago, niektb said:

I don't really understand what the problem with the current system is. All generic properties go in the parent template and child (often civ-specific) templates can override those properties. Perfectly understandable and perfectly moddable. (and that last point is very important when considering groundbreaking template changes)

Indeed, I think the same. The templates are great to avoid work duplication.

  • Like 1
Link to comment
Share on other sites

3 hours ago, niektb said:

I don't really understand what the problem with the current system is. All generic properties go in the parent template and child (often civ-specific) templates can override those properties. Perfectly understandable and perfectly moddable. (and that last point is very important when considering groundbreaking template changes)

Yes, but I was trying to say if there could be a system to define the actor, by the civ that want to build it, in the entity. Then the numbers of entities could be reduced, if a lot of entities just change the name and the actor. 
 

Link to comment
Share on other sites

That will get somewhat complex. We already have the {civ} element in templates for inheritance,  but what you want to do is add it to the filenames as well. I guess that's doable. 

Problem : Even if all the houses share the same caracteristics, it's not said they will have the same footprint.

  • Like 1
Link to comment
Share on other sites

Reducing the number of templates won't be the case I guess. How can you build {civ}_house.xml when there's no such file?

It could reduce the content of the templates though, but for that, the actor files need to be structured better (get rid of the hellenes and the celts, rename the full names to the short versions, ...)

Link to comment
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.

Guest
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.

 Share

×
×
  • Create New...