Caves of Qud

Caves of Qud

Lulihart Sells a Six Day Stilt Recoiler
wizardlibrarian 2023 年 10 月 7 日 下午 9:13
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 :)
< >
正在显示第 1 - 2 条,共 2 条留言
XUV8R 2023 年 10 月 7 日 下午 10:25 
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.
最后由 XUV8R 编辑于; 2023 年 10 月 7 日 下午 10:25
flemingluiz  [开发者] 2023 年 10 月 7 日 下午 10:28 
引用自 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.
最后由 flemingluiz 编辑于; 2023 年 10 月 7 日 下午 10:28
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50