Monty_Droppings

  • Content Count

    94
  • Joined

  • Last visited

Community Reputation

21 Excellent

1 Follower

About Monty_Droppings

  • Rank
    Junior Member
...

Recent Profile Visitors

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

Enable
  1. I just copied your code exactly and it still is not showing up in game. I tested it and it definitely is in the game though, it is taking up an inventory slot but is completely invisible. I then tried moving it after components but its still invisible. http://pastebin.com/xiRi7qRJ
  2. http://pastebin.com/7QKEHqAn <- My interpretation of what you added. Is this what you meant? Are you saying this: inst.temperatureTask = inst:DoTaskInTime(5, function(inst) if TheWorld.state.temperature > 35 then if not TheWorld.ismastersim then return inst end inst.components.insulator:SetSummer() else if not TheWorld.ismastersim then return inst end inst.components.insulator:SetWinter() end end) Should be moved to fn(sim) instead of onequip?
  3. I added those lines to the fn(Sim) function and it the hat still refuses to spawn, even if I removed the dual insulator thingy as well. http://pastebin.com/HabuXy64
  4. Are there any "common mistakes" involving that? I thought for sure it was my insulation code, but even with that removed the hat still refused to load properly. I'm not exactly sure what I am supposed to be looking for. http://pastebin.com/HpPTuXDn
  5. The only thing I can think of is the item is a hat that works both in the winter and the summer, and the code for the dual insulator is this part: inst.temperatureTask = inst:DoTaskInTime(5, function(inst) if TheWorld.state.temperature > 35 then inst.components.insulator:SetSummer() else inst.components.insulator:SetWinter() end end) I'm guessing that since having caves are a separate server the hat might be getting confused since it'd be running these lines in both the overworld and the caves server. Not sure why it wouldn't give me an error message though. Any ideas?\ EDIT: Just tried removing those lines to see if that was the issue. Nope. Hat still refuses to exist in caves enabled worlds, but works fine without caves. What confuses me is that the Custom Panflute is spawning constantly without issue, but the Hat just doesn't like caves.
  6. So I have a strange issue: When I launch a server without caves my character mod works fine and all the things work as intended. However when I have caves enabled my character no longer spawns with the hat he is supposed to. What gives? Whats odd is when I am picking stuff up, the game "thinks" there is an item there: http://imgur.com/a/8P0d1 I can move objects into that slot, but its just odd. I can't even spawn my hat in console when I have caves enabled, but everything is fine with caves off. What gives? Mod Link: http://steamcommunity.com/sharedfiles/filedetails/?id=858001614
  7. Well I figured it out. I idiotically put that in the unequip function rather than onequip. The code works correctly now.
  8. I'm not sure what that means even after googling(I even looked through the forum guide), like what is "printing?" . I don't actually know lua, I've just been looking at functions that do similar things to what I want and fiddle with it until sometimes they work.
  9. Well I mean the my DST version of the code just isn't working. I can load and play the game fine with my character mod, it's just when I put the hat on to test insulation, it works in the winter but does nothing in the summer to stop overheating.
  10. In my character mod in DS:ROG, I had a hat for my character that functioned as a dual insulator. I did it with this following code in the local function onequip(inst, owner): inst.temperatureTask = inst:DoTaskInTime(5, function(inst) if GetSeasonManager():GetCurrentTemperature() > 35 then inst.components.insulator:SetSummer() else inst.components.insulator:SetWinter() end end) In DST, there doesn't seem to be GetSeasonManager, so looking at the straw hat code for a summer insulator, I thought I'd try this: inst.temperatureTask = inst:DoTaskInTime(5, function(inst) if TheWorld.state.temperature > 35 then inst.components.insulator:SetSummer() else inst.components.insulator:SetWinter() end end) But no dice, any idea whats going wrong? Full DST attempt: http://pastebin.com/1nwQsubE ROG version of the dual insulating hat that worked: http://pastebin.com/ZVefxdjL
  11. I saw your post on the forums that you were willing to do the character art for someone else. I have a character that s all coded, but needs art. Please message me back if you interested in helping