Jump to content

[Bug] Mods support for Shipwrecked?


Noro

Recommended Posts

I've tried to rework my mod to make it compatible with shipwrecked and found out that there seems to be that mods are not supported to work in this DLC at all!

First of all, I tried to add new condition switch for Shipwrecked, and used standard function IsDLCEnabled, that is used in my mod already to detect RoG. But after I added a line with GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC) in it, well, the most unexpected thing happened - after enabling mod main game menu stopped working! Whaaaat? Why is using legitimate function by it's direct purporse breaks the game in ultimate way???

Second sad thing - post init functions not working in SW. AddPrefabPostInit and AddComponentPostInit that worked just fine in vanilla and RoG not working in SW. The only thing I've find to be working is the most crude and inefficient way of modding - complete replacing of the source files.

Your mod will be automatically disabled if it is not marked as Shipwrecked compatible, if you load up a Shipwrecked world. Add this line to your 'modinfo.lua':

shipwrecked_compatible = true

I posted about this already, here.

 

Of course I have this line in my mod. I've talked about completely different things, if you didn't notice.

I did notice, but It was unclear.

 

In what way does it break your menu?

 

In what way do the 'modutil.lua' functions not work?

 

Main menu stops working altogether - no interface elements has any reaction to the mouse clicks. No buttons working.

 

modutil functions just don't work. I don't know what particular way they don't work, but it seems that they are just not launched at all. E.g. I try AddPostInit for sapling prefab - it works for vanilla and RoG, yet the same code does not get executed in SW.

It's entirely possible that such functions have been changed or removed altogether and replaced with different functions.

 

It's a bit early to ask for all your RoG/DS mods to work in Shipwrecked, isn't it? Seeing as how the game only went into early access a few days ago?

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...