Taob

  • Content Count

    7
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Taob

  • Rank
    Junior Member
...

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Enable
  1. I was trying to add a structure but when I checked the game files I noticed that that line was at the end, some had "nil, nil, nil, nil, 4" or "nil, nil, nil, 6" Recipe("minisign_item", {Ingredient("boards", 1)}, RECIPETABS.TOWN, TECH.SCIENCE_ONE, nil, nil, nil, nil, 4) Recipe("fence_item", {Ingredient("twigs", 3), Ingredient("rope", 1) }, RECIPETABS.TOWN, TECH.SCIENCE_ONE, nil,nil,nil,nil,6)
  2. I need help to put in a custom length, I was getting a script from another mod. At first it worked fine, however I made a few changes and it didn't work. The mod I used is this: https://steamcommunity.com/sharedfiles/filedetails/?id=1940293917 and the script is (random season duration) local require = GLOBAL.require local function OnSeasonChange(wrld) wrld:DoTaskInTime(1, function(inst) local autumnseasonlength = GLOBAL.GetRandomItem({ 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 }) local springseasonlength = GLOBAL.GetRandomItem({ 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 }) local winterseasonlength = GLOBAL.GetRandomItem({ 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 }) local summerseasonlength = GLOBAL.GetRandomItem({ 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 }) if wrld.state.season == "winter" then wrld:PushEvent("ms_setseasonlength", {season="autumn", length=autumnseasonlength}) wrld:PushEvent("ms_setseasonlength", {season="winter", length=winterseasonlength}) wrld:PushEvent("ms_setseasonlength", {season="spring", length=springseasonlength}) wrld:PushEvent("ms_setseasonlength", {season="summer", length=summerseasonlength}) end end) end function WaitPlayerActivated(wrld) wrld:WatchWorldState("season", OnSeasonChange) end AddPrefabPostInit("world", WaitPlayerActivated) ------ However, I changed it to: local require = GLOBAL.require local function OnSeasonChange(wrld) wrld:DoTaskInTime(1, function(inst) local autumnseasonlength = GLOBAL.GetRandomItem({ 89, 90 }) local springseasonlength = GLOBAL.GetRandomItem({ 92, 93 }) local winterseasonlength = GLOBAL.GetRandomItem({ 87, 89 }) local summerseasonlength = GLOBAL.GetRandomItem({ 93, 94 }) if wrld.state.season == "autumn" then wrld:PushEvent("ms_setseasonlength", {season="autumn", length=autumnseasonlength}) wrld:PushEvent("ms_setseasonlength", {season="winter", length=winterseasonlength}) wrld:PushEvent("ms_setseasonlength", {season="spring", length=springseasonlength}) wrld:PushEvent("ms_setseasonlength", {season="summer", length=summerseasonlength}) end end) end function WaitPlayerActivated(wrld) wrld:WatchWorldState("season", OnSeasonChange) end AddPrefabPostInit("world", WaitPlayerActivated) What I'm trying to do is make the stations longer, without the randomness, but I'm afraid to move the code and it won't work, like now. I'm new at this and I'm trying to learn. TY Sorry for my bad english btw.