Caves of Qud

Caves of Qud

Lulihart Sells a Six Day Stilt Recoiler
Simplifying the mod code
Hi! As mentioned in the comments, this mod is currently crashing the new beta. This is likely due to the use of the entirety of the game's Creatures.xml. A simpler way to code this would be to use the following as the entirety of Creatures.xml:
<?xml version="1.0" encoding="utf-8"?> <objects> <object Name="Lulihart" Load="Merge"> <inventoryobject Blueprint="Six Day Stilt Recoiler" Number="1" /> </object> </objects>
This takes advantage of the game's data file merging capabilities and is significantly more robust :)
< >
Showing 1-2 of 2 comments
XUV8R 7 Oct, 2023 @ 10:25pm 
hey flemingluiz, let me try to provide a little clarity:

you can use Load="Merge" as shown here to make changes only to specific objects. the game will handle the merging of the xmls; in other words, you don't need to replace the entire file.

by including all of an existing xml, anytime a game update rolls out that modifies that file, requires you to update your mod (and will break across versions if there are differences, as there are in beta vs live currently)

all you need to include in your mod's creatures.xml (or any other xml you're modifying) is exactly what you are changing.
Last edited by XUV8R; 7 Oct, 2023 @ 10:25pm
flemingluiz  [developer] 7 Oct, 2023 @ 10:28pm 
Originally posted by XUV8R:
hey flemingluiz, let me try to provide a little clarity:

you can use Load="Merge" as shown here to make changes only to specific objects. the game will handle the merging of the xmls; in other words, you don't need to replace the entire file.

by including all of an existing xml, anytime a game update rolls out that modifies it requires you to update your mod (and will break across versions if there are differences, as there are in beta vs live currently)

all you need to include in your mod's creatures.xml (or any other xml you're modifying) is exactly what you are changing.
i understand. i have to do this on other mods some of them might be broken too.
Last edited by flemingluiz; 7 Oct, 2023 @ 10:28pm
< >
Showing 1-2 of 2 comments
Per page: 1530 50