kissfm Posted May 29, 2017 Share Posted May 29, 2017 (edited) Hello everyone, i am porting a mod to SW, but is not working.. I tried using this to DS and RG and works: GLOBAL.require("map/terrain") GLOBAL.require("constants") local ganjabush_rate = (GetModConfigData("ganjabush_rate")) if GLOBAL.terrain.rooms.CrappyForest then GLOBAL.terrain.rooms.CrappyForest.contents.distributeprefabs.ganjabush_small = ganjabush_rate/8 end But when i tried to use this on shipwreck, nothing happens. GLOBAL.require("map/terrain") GLOBAL.require("constants") local ganjabush_rate = (GetModConfigData("ganjabush_rate")) if GLOBAL.terrain.rooms.MeadowFlowery then GLOBAL.terrain.rooms.MeadowFlowery.contents.distributeprefabs.ganjabush_small = ganjabush_rate/8 end I tried all the Meadow rooms, and nothing. Am i missing something? Does it needs another "require"? Is there another way to use SW rooms? I already have shipwrecked_compatible = true in my modinfo. Thanks. Edited May 30, 2017 by kissfm Link to comment https://forums.kleientertainment.com/forums/topic/79325-help-how-to-use-modworldgenmain-in-shipwreck/ Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now