ROM Hack WIP Don't Starve mods

  • Thread starter Thread starter falcorr
  • Start date Start date
  • Views Views 10,030
  • Replies Replies 5
  • Likes Likes 2

falcorr

Well-Known Member
Member
Joined
Sep 26, 2019
Messages
156
Reaction score
60
Trophies
0
XP
825
Country
Australia
TitleID: 0100751007ADA000

I recommend using SimpleModManager.

The game files are mostly as found on PC. This is a rough, partial re-enabling of mods. I expect they can be enabled entirely. Also, the nature of the game's files means there's a lot of room to fix bugs. Most of the game is exposed in lua.

WIP [v1.0.6 / v393216] Enable mods

Re-enables the mod menu.

Simple mods currently work, e.g. Display Food Values. Combined Status fails, for instance, so there's still work to be done.

Individual mod configuration options are currently unable to be edited in-game. You can manually change them in each modinfo.lua file.

The names of mod directories currently need to be manually added to /scripts/modindex.lua in two locations, around lines 126 and 166. Dirty, I know, but it's been rough often having no debug info and simply crashes.

The console log can now be toggled with R3.

Skips the intro movie while it's at it.


Working examples
Display Food Values (shows what items provide when browsing inventory)
Quick Work (short animations)
Status Values (numerical values under status UI elements, player temperature)
Frequent Autosave (four times a day instead of once)


Only using LayeredFS
Chester, Glommer non-targets (both no longer targeted by enemies)


For others who may want to improve on this:
  • TheSim:GetModDirectoryNames() fails due to presumably looking in the wrong location. If you can have modindex.lua discover mod directory names on its own, go for it. I've been failing to get popen / lfs things to work.
  • My initial attempts to enable in-game reloading of scripts have failed. DoReload() appears to be untenable. Haven't seen mention of the debug CTRL+R or c_reset() I found googling.
  • Mod crashes without console log info might be avoided by testing them with a new game, not loading into an existing one.
  • Mods without assets seem to be the ones likely to run. Assets cause mods.lua to fail with unpack(arg), arg undeclared, for one. Assets being anything beyond the base mod directory's modmain, modinfo, modicon files. AddPrefabPostInit seems to not work.
 

Attachments

Last edited by falcorr,
Sorry for necroposting, but I don't understand how we're supposed to do this: «The names of mod directories currently need to be manually added to /scripts/modindex.lua in two locations, around lines 126 and 166. Dirty, I know […]»
What's the format we should use?
is it needed even when using SimpleModManager?

Thank you and sorry again.
 
Can you enable mods in don't Starve together switch edition please I have the game but I and find any mods for us also we need some mods for port from PC to our switch
 
TitleID: 0100751007ADA000

I recommend using SimpleModManager.

The game files are mostly as found on PC. This is a rough, partial re-enabling of mods. I expect they can be enabled entirely. Also, the nature of the game's files means there's a lot of room to fix bugs. Most of the game is exposed in lua.

WIP [v1.0.6 / v393216] Enable mods

Re-enables the mod menu.

Simple mods currently work, e.g. Display Food Values. Combined Status fails, for instance, so there's still work to be done.

Individual mod configuration options are currently unable to be edited in-game. You can manually change them in each modinfo.lua file.

The names of mod directories currently need to be manually added to /scripts/modindex.lua in two locations, around lines 126 and 166. Dirty, I know, but it's been rough often having no debug info and simply crashes.

The console log can now be toggled with R3.

Skips the intro movie while it's at it.


Working examples
Display Food Values (shows what items provide when browsing inventory)
Quick Work (short animations)
Status Values (numerical values under status UI elements, player temperature)
Frequent Autosave (four times a day instead of once)


Only using LayeredFS
Chester, Glommer non-targets (both no longer targeted by enemies)


For others who may want to improve on this:
  • TheSim:GetModDirectoryNames() fails due to presumably looking in the wrong location. If you can have modindex.lua discover mod directory names on its own, go for it. I've been failing to get popen / lfs things to work.
  • My initial attempts to enable in-game reloading of scripts have failed. DoReload() appears to be untenable. Haven't seen mention of the debug CTRL+R or c_reset() I found googling.
  • Mod crashes without console log info might be avoided by testing them with a new game, not loading into an existing one.
  • Mods without assets seem to be the ones likely to run. Assets cause mods.lua to fail with unpack(arg), arg undeclared, for one. Assets being anything beyond the base mod directory's modmain, modinfo, modicon files. AddPrefabPostInit seems to not work.
Hi can you help me mods for don't starve version 1.0.9...
Thanks so much.
 
Last edited by Nana2007nt,

Site & Scene News

Popular threads in this forum