Jackerino Posted 2 hours ago Report Share Posted 2 hours ago (edited) I'm working on a mod that adds new Civs based on various fantasy races and every other structure and building and training setup has worked so far. However, I have ran into an issue with making new Docks for my Civilization. Specifically, the issue I ran into was I made the Dock structure itself, which functions correctly and gets all of the Upgrades the way it's supposed to. However, despite having a functional ship_fishing.xml in the correct location with the correct labels, and with the dock.xml having everything labelled correctly, the fisherman boat doesn't show up on the menu for the docks. I'm honestly at a loss for what the issue is. Everything is set up correctly as far as I know, with most of it being direct copy/pastes of the Mauryan structure and unit templates before I started adding changes, with the Civ tags changed to be the correct label so that they are labelled under the correct Civilization. Even more bafflingly, in the information tab of the docks, it shows that it can train fisherman boats, yet it doesn't actually show up on the UI, for some strange reason. Any help or information would be greatly appreciated. Can't really make any naval ships until I figure out what's causing this issue. Worst case scenario, this Civ won't be able to have a Navy, which would be unfortunate. (Shown below is screenshots of the evidence + the attached offending .xml's) dock.xml ship_fishing.xml Edited 1 hour ago by Jackerino clarification stuff Quote Link to comment Share on other sites More sharing options...
Classic-Burger Posted 1 hour ago Report Share Posted 1 hour ago (edited) 33 minutes ago, Jackerino said: I'm working on a mod that adds new Civs based on various fantasy races and every other structure and building and training setup has worked so far. However, I have ran into an issue with making new Docks for my Civilization. Specifically, the issue I ran into was I made the Dock structure itself, which functions correctly and gets all of the Upgrades the way it's supposed to. However, despite having a functional ship_fishing.xml in the correct location with the correct labels, and with the dock.xml having everything labelled correctly, the fisherman boat doesn't show up on the menu for the docks. I'm honestly at a loss for what the issue is. Everything is set up correctly as far as I know, with most of it being direct copy/pastes of the Mauryan structure and unit templates before I started adding changes, with the Civ tags changed to be the correct label so that they are labelled under the correct Civilization. Even more bafflingly, in the information tab of the docks, it shows that it can train fisherman boats, yet it doesn't actually show up on the UI, for some strange reason. Any help or information would be greatly appreciated. Can't really make any naval ships until I figure out what's causing this issue. Worst case scenario, this Civ won't be able to have a Navy, which would be unfortunate. (Shown below is screenshots of the evidence + the attached offending .xml's) dock.xml 452 B · 0 downloads ship_fishing.xml 474 B · 0 downloads You must first make a template and see how patent templates work. Then make sure your unit exists as a base unit, for example a new ship needs 2 new files to work. A parent ( class) and civ unit specific template. <Trainer> <BatchTimeModifier>0.8</BatchTimeModifier> <Entities datatype="tokens"> units/{civ}/ship_fishing units/{civ}/ship_merchant units/{civ}/ship_scout units/{civ}/ship_arrow units/{civ}/ship_ram units/{civ}/ship_fire units/{civ}/ship_siege </Entities> </Trainer> You need this is parent template or in specific template. https://gitea.wildfiregames.com/0ad/0ad/src/branch/main/binaries/data/mods/public/simulation/templates/template_structure_military_dock.xml Edited 1 hour ago by Classic-Burger Quote Link to comment Share on other sites More sharing options...
Jackerino Posted 1 hour ago Author Report Share Posted 1 hour ago Strangely, the problem fixed itself, I think??? There's a specific save where it doesn't work, but on new/subsequent runs it does work. So... Problem solved, I guess? Quote Link to comment Share on other sites More sharing options...
Classic-Burger Posted 1 hour ago Report Share Posted 1 hour ago 4 minutes ago, Jackerino said: Strangely, the problem fixed itself, I think??? There's a specific save where it doesn't work, but on new/subsequent runs it does work. So... Problem solved, I guess? Above leave more details, what units are you adding? 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.