Chaps Posted June 29, 2018 Share Posted June 29, 2018 (edited) as the title say, id like a mod where wx has teir 1 science knowledge (like wickerbottom) if you can, thanks Edited June 29, 2018 by The95Chaps Link to comment https://forums.kleientertainment.com/forums/topic/92805-modding-request-dst-science-machine-knowledge-for-wx78/ Share on other sites More sharing options...
Chaps Posted September 8, 2018 Author Share Posted September 8, 2018 bump Link to comment https://forums.kleientertainment.com/forums/topic/92805-modding-request-dst-science-machine-knowledge-for-wx78/#findComment-1082622 Share on other sites More sharing options...
icantevenname Posted September 9, 2018 Share Posted September 9, 2018 (edited) Have ya looked at Wicker's .lua? It'll be in data -> databundles -> scripts.zip -> scripts -> prefabs Edited September 9, 2018 by icantevenname Added info Link to comment https://forums.kleientertainment.com/forums/topic/92805-modding-request-dst-science-machine-knowledge-for-wx78/#findComment-1082708 Share on other sites More sharing options...
Chaps Posted September 9, 2018 Author Share Posted September 9, 2018 (edited) 1 hour ago, icantevenname said: Have ya looked at Wicker's .lua? It'll be in data -> databundles -> scripts.zip -> scripts -> prefabs i found code inst.components.builder.science_bonus = 1 inside of function local function master_postinit(inst) end the original mod i had which worked up until the post gorge update, had that exact line, but the error says that builder is undefined, for reference here is the code that used to word (modmain shown cos modinfo is useless) function wxpostinit(inst) inst.components.builder.science_bonus = 1 end AddPrefabPostInit("wx78", wxpostinit) any help would be appreciated, thanks for responding EDIT:this is the exact syntax error Edited September 9, 2018 by The95Chaps adding syntax error Link to comment https://forums.kleientertainment.com/forums/topic/92805-modding-request-dst-science-machine-knowledge-for-wx78/#findComment-1082728 Share on other sites More sharing options...
IronHunter Posted September 9, 2018 Share Posted September 9, 2018 Components unless they are replicable are server side only usually. You probably need to make sure your code doesn't run on the client. See the Global is the mastersim in the if statement. Link to comment https://forums.kleientertainment.com/forums/topic/92805-modding-request-dst-science-machine-knowledge-for-wx78/#findComment-1082730 Share on other sites More sharing options...
Chaps Posted September 9, 2018 Author Share Posted September 9, 2018 1 hour ago, IronHunter said: Components unless they are replicable are server side only usually. You probably need to make sure your code doesn't run on the client. See the Global is the mastersim in the if statement. i dont understand Link to comment https://forums.kleientertainment.com/forums/topic/92805-modding-request-dst-science-machine-knowledge-for-wx78/#findComment-1082749 Share on other sites More sharing options...
IronHunter Posted September 9, 2018 Share Posted September 9, 2018 AddPrefabPostInit("wx78", function(inst) if GLOBAL.TheWorld.ismastersim then if inst.components.builder ~= nil then inst.components.builder.science_bonus = 1 end end end) Link to comment https://forums.kleientertainment.com/forums/topic/92805-modding-request-dst-science-machine-knowledge-for-wx78/#findComment-1082898 Share on other sites More sharing options...
Chaps Posted September 10, 2018 Author Share Posted September 10, 2018 15 hours ago, IronHunter said: AddPrefabPostInit("wx78", function(inst) if GLOBAL.TheWorld.ismastersim then if inst.components.builder ~= nil then inst.components.builder.science_bonus = 1 end end end) well, this works perfectly! thanks for you're help fam Link to comment https://forums.kleientertainment.com/forums/topic/92805-modding-request-dst-science-machine-knowledge-for-wx78/#findComment-1083066 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