BakaSchwarz

  • Content count

    52
  • Joined

  • Last visited

Community Reputation

32 Excellent

About BakaSchwarz

  • Rank
    Junior Member

Recent Profile Visitors

791 profile views
  1. This of course, or you could always edit the game files directly. Beware of updates in this case though
  2. Help on changing a component

    Looking at the original DropItem function, the very first thing they do is checking if the item is nil. So it is possible for the item to be nil. Of course nil does not have a components variable. So before you do what you want you should check for that: local inventory = GLOBAL.require("components/inventory") local old_DropItem = inventory.DropItem function inventory.DropItem(item, wholestack, randomdir, pos) if item == nil or item.components.inventoryitem == nil then return end -- Your code here old_DropItem(item, wholestack, randomdir, pos) end
  3. need help coding

    Is it only the looks? Or do you want to change abilities as well? In that case you may want to just create different prefabs for each "stage" of your weapon and swap them when needed. Anyways: Look at abigail_flower.lua as this is probably a perfect example of the thing you want to accomplish. As for detecting the change of durability/usages, you may want to look into the event "percentusedchange". You can just listen to it like so: inst:ListenForEvent("percentusedchange", function(inst, data) print(data.percent) end)
  4. In actions.lua there is this function: ACTIONS.MAKEBALLOON.fn = function(act) if act.doer ~= nil and act.invobject ~= nil and act.invobject.components.balloonmaker ~= nil and act.doer:HasTag("balloonomancer") then if act.doer.components.sanity ~= nil then if act.doer.components.sanity.current < TUNING.SANITY_TINY then return false end act.doer.components.sanity:DoDelta(-TUNING.SANITY_TINY) end local x, y, z = act.doer.Transform:GetWorldPosition() local angle = act.doer.Transform:GetRotation() local angle_offset = GetRandomMinMax(-10, 10) angle_offset = angle_offset + (angle_offset < 0 and -65 or 65) angle = (angle + angle_offset) * DEGREES act.invobject.components.balloonmaker:MakeBalloon( x + .5 * math.cos(angle), 0, z - .5 * math.sin(angle) ) return true end end act.doer.components.sanity:DoDelta(-TUNING.SANITY_TINY) is what you want to change if you want to reduce the sanity drain from crafting a balloon. When you say more aggro i guess you mean to make the range of the "pop" wider? In that case you want to edit the DoAreaAttack function inside balloon.lua: local function DoAreaAttack(inst) inst.components.combat:DoAreaAttack(inst, 2, nil, nil, nil, { "INLIMBO" }) end If we look into the implementation of this function inside combat.lua, we see that the second parameter is the range: function Combat:DoAreaAttack(target, range, weapon, validfn, stimuli, excludetags)
  5. Sounds like the most optimal solution. I'm all for it!
  6. I kinda solved my problem by bypassing it i guess. I had a backup from 12 hours prior to the updates that came in the last 24 hours. Using it made the server show up again. This is strange, though, because no one was on the server in that time until i needed to restart it because of the updates. So is it possible that an update corrupted the save somehow?
  7. Can confirm, i have the same problem. My server is dedicated and runs on linux, mods enabled, caves enabled and mode is endless. If i may add: The server only doesn't show up. It still accepts commands from the console like before.
  8. I also have this exact same problem. Worked yesterday, restarted the server today and now users can not access the caves anymore. The server is modded, though. My log looks mostly the same. Right after a user tries to migrate, the server states CloseConnectionWithReason: ID_DST_SHARD_SILENT_DISCONNECT Host is a Debian Jessie system (64bit) and the server is endless.
  9. "endless" game mode prevents caves

    I meant changing the mode of an existing world from endless to survival.
  10. When you have clicked on Account in the main menu you select Games in the opening window. There you should see DST listed and a "Servers" Button. There you can generate your tokens.
  11. Caves plugged

    It's also worth pointing out, that no player can join the server if he/she was in the caves before logging out. My friend could join the server, but i could not, since my last location was in the caves. Some people seem to report that the cave entrance is blocked. This wasn't the case on our server. The entrance was open, but upon trying to use it, the player gets kicked.
  12. "endless" game mode prevents caves

    This happens with and without any mods. Changing the game mode to survival did not help.
  13. Version 2.0.4

    6,536 downloads

    [steam Workshop] http://steamcommunity.com/sharedfiles/filedetails/?id=531158479 [Descripton] Glace was born with a cold heart. His whole body is emitting an aura that slowly freezes everything around him. But his cold heart does not mean he has a cold heart (pun intended). In fact, he really likes to be among friends, but often, he gets rejected with his aura being the cause. [stats] Health: 100 Hunger: 65 Sanity: 220 [Perks] --Has a cold heart-- His body is like a fridge. Items in his inventory get cooled like in an icebox. He furthermore emits an aura which cools everything around him down. Butterflies really don't like this because they freeze when they get too close to him. He himself does not overheat, which is fine in summer, but... --Hates winter-- He really really hates it. It's his least favorite time of the year. His body temperature will not rise beyond a certain point, so the thermic stone and campfires can only do so much and long travel will be certain death, because the cold hurts him really bad. He takes 2.5 times the damage and temperature changes double in speed for him. So prepare yourself. --Has a strong mind-- Living alone most of the time helped him develope an immunity against the sickness called solitude. But he really hates dark places. When it gets dark, his strong mind means nothing! His sanity will drain 2.5 times as fast in those situations. If you don't do something you easily loose ~50 sanity per night. To counter this fear, he has only one solution... --Likes to be among friends-- Despite his cold heart, he really is most comfortable among his friends. Even the night will mean nothing if he can feel the warmth of another persons heart. This feeling will quickly heal his mental scars. --Does not eat much-- His metabolism is different from most species. This brings forth the problem that he often collects too much food which will later perish all at once or he forgets it entirely. This can be deadly during winter. --Is a fast runner-- Glace is not much more than a twig when it comes to his weight. And if that was not enough, the ground freezes around him before he comes into contact with it. You could say that he slides through his life. He is 42 % faster than Wilson. [From the author] I tried to make it not too unbalanced, but not to the point where this character wouldn't be fun to play with. I used the Extended Character Template from Dleowolf for which i am quite grateful. If you find any misspelling or weird wording please let me know. English is not my first language but i try to improve whenever i can. And finally: Have fun playing!