Barotrauma

Barotrauma

110 ratings
XMLHotReloader
12
2
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.100 KB
28 Feb, 2023 @ 5:46am
28 Mar, 2024 @ 7:30pm
5 Change Notes ( view )

Subscribe to download
XMLHotReloader

Description
No longer needed, reloadpackage command is now Vanilla.
(If the game tells you to run reloadcorepackage, run reloadpackage instead, the devs copy pasted the command but forgor to actually change the message it shows to match the command)

This mod was made for modders to be able to reload their XML mods without having to go back to the mainmenu.

Requires Client-Side Lua to work.

Adds two (new!!) console commands:

reloadpackage "Name Of Your Mod"
(You can use tab to autocomplete)

multicommand "name" "command 1" "command 2" "command x"
(Allows you to run many commands at same time without having to paste them individually)
example:
- multicommand "test" "spawnitem \"revolver\" inventory" "spawnitem \"revolverround\" inventory 8"
now you can just run
- multicommand "test"
and it will execute all the commands you specified in order

Notes
- Afflictions will have a ghost of their former self still present, you will need to run the revive command to remove the old affliction and use the giveaffliction command to give yourself the affliction again.
- All items associated with the reloaded mod will be deleted, you will have to spawn them again.
50 Comments
SydWad 20 Dec, 2024 @ 7:42am 
If it's implemented i will give ya $15
SydWad 20 Dec, 2024 @ 7:41am 
How possible would it be to have a command to reload a targeted XML file? This mod is great but on some of my larger projects i still have to wait up to a minute to reload it when testing. If i could just do a single exact file that would be perfect.
Merans 9 Jun, 2024 @ 10:57am 
When using the "reloadpackage "mod"" command, it gives an error suggesting to use the "reloadcorepackage" command, which crashes the game. Has anyone solved this problem?
whosyourdaddy 29 Apr, 2024 @ 4:28am 
Baro devs added the reloadpackage command, which caused the mod's command to become invalid. Since it cannot be executed in Multiplayer, some modders still need to use XmlHotReloader. Now there is a workaround to just modify the command name.
SydWad 27 Feb, 2024 @ 7:20pm 
I think he has the problem where it looks like lua is still installed after a game patch but in reality you have to unpack it again. Like purple letters and all that still in the main menu but it doesnt run correctly.
Evil Factory  [author] 27 Feb, 2024 @ 11:29am 
is the mod enabled? do you have client side lua installed? whats the output of your debug console
Garlic 27 Feb, 2024 @ 11:28am 
Does not seem to work with lua enabled (version 40beade15a 1.0.80) in sub edditor. Commands are not populating. Am I missing a dependency or mod load order?
SydWad 22 Feb, 2024 @ 10:52pm 
Is there any chance a "ReloadFile" command could be possible? The tool is great but one of my mods is so large it takes a long time to reload the whole thing just to test a small change to a single item.
Kookoorooza 26 Jan, 2024 @ 8:47am 
You can just add this into description. For sure im not the first and not the last one.
Evil Factory  [author] 26 Jan, 2024 @ 8:14am 
nothing i can do about
plus using this mod in the mainmenu is pointless