Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
AddIfNotThere ModOp #28
Comments
|
This old issue has become relevant again today - as we found out, mods from different creators are incompatible because of doubled nodes which Anno expects to be unique. The problem is adding the same unique node with different Child Nodes from two mods. In our case
Which in the end results in:
Anno always uses the last one, which means only BuildingReplacements from the mod that was loaded last will be applied ingame, which can result in serious trouble with the Ai. What I would prefer for full manual control is having a CheckPath seperate from Path. If CheckPath returns null, the content of the ModOp gets added in the specified Path. That way, all mods adding BuildingReplacements could use this structure:
Optional: We could have an Argument to negate CheckPath Results to not add stuff if CheckPath returns zero. |
|
Yea, I am currently looking into adding this. As for having certain setup steps separate, I am currently also investigating a mod description format where you can specify dependencies, that will also ensure a certain load order without having to rely on the name with the alphabetical loading like it is right now (that should have been something from the start, but oh well) |
|
https://github.com/taubenangriff/Modinfo I am planning to include ModDependencies in the modinfo files that will be added in the next spice it up update, in case you want to use those. |
|
ah, this request is similiar to mine, while my suggested "merge_add" is superior, if it is possible to implement: |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

should exactly work like an add, but with a precheck if the added content is already there on the same level, in which case it does not add it.
Useful for making mods modular with building menu.
Example:
Mod A and Mod B should insert Buildings into the modded category 9000.
For no dependency between both mods the building category 9000 needs to be created and set up, and also added to the construction menu in both.
Problem is, if I add the category to the construction menu in both mods, it appears twice. But I only want to add it once even though both mods add buildings to the category 9000.
The text was updated successfully, but these errors were encountered: