Weexer

  • Content Count

    23
  • Joined

  • Last visited

Community Reputation

6 Neutral

1 Follower

About Weexer

  • Rank
    Junior Member
...

Recent Profile Visitors

1223 profile views
  1. Same here @JackJohnsn @Storm951, i was very busy last months and forgot in all these last events to receive latest twitch drops: Glass Eyebrella, Crystalized Cabinet and Salt Box Shaker which really hurt me as i'm with klei for such a long time (2014) and i always wanted to have all skins unlocked. @JoeW if there will be even a little chance to get missed twitch drops through rewards system or any other way please let me know!
  2. @Ultroman sorry for making You trouble like noone else on forum haha I tried to "rebuild" code because unfortunately that wasn't solution. I made this: for k, v in pairs(announce3_prefabs) do AddPrefabPostInit(v, function (inst) local function OnTimerDone(inst, data) if data.name == "dragon_announce" then TheNet:Announce("" ..inst.name.. "" ..announcestr.spawned.. "" ..announcestr.ending) end end local function announcement(inst, data) if inst:HasTag("epic") then TheNet:Announce("" ..inst.name.. "" ..announcestr.spawned.. "" ..announcestr.ending) inst.components.timer:StopTimer("dragon_announce") inst.components.timer:StartTimer("dragon_announce", 10) end end inst:ListenForEvent("timerdone", OnTimerDone) local function extinction(inst) inst:ListenForEvent("attacked", announcement) end inst:ListenForEvent("death", extinction) end) end After printing method it looks like local functions with name "extinction", "announcement" are called but i'm not sure how to check if it goes to "OnTimerDone" function (it only show message then i don't know if it create that timer named "dragon_announce" - well i took more unique name for that Also i don't know how to print those timer value. Any ideas?
  3. @Ultroman It's not working still I'm not sure why im keep getting error: attempt to index global 'timer' (a nil value) I'm trying to search mistake looking on timer.lua right now
  4. @Ultroman I checked server.log on specific cluster where i tested mod and i found these lines in it: [00:00:41]: [(KU_GGbJlz1O) Weexer] ReceiveRemoteExecute(c_supergodmode()) @(-3.97, 620.90) [00:00:41]: God mode: true [00:00:46]: [(KU_GGbJlz1O) Weexer] ReceiveRemoteExecute(DebugSpawn("dragonfly",1)) @(-21.39, 621.16) [00:00:52]: [(KU_GGbJlz1O) Weexer] ReceiveRemoteExecute(ThePlayer.components.combat.damagemultiplier=3000) @(-21.61, 619.10) [00:00:52]: [string "../mods/Boss Status/modmain.lua"]:209: attempt to index global 'timer' (a nil value) LUA ERROR stack traceback: ../mods/Boss Status/modmain.lua:209 in (local) fn (Lua) <206-212> 209 line is => timer:StartTimer("announcer", 10) My updated code: for k, v in pairs(announce3_prefabs) do AddPrefabPostInit(v, function (inst) local function OnTimerDone(inst, data) if data.name == "announcer" then TheNet:Announce("" ..inst.name.. "" ..announcestr.spawned.. "" ..announcestr.ending) end end local function announcement(inst, data) if inst:HasTag("epic") then TheNet:Announce("" ..inst.name.. "" ..announcestr.spawned.. "" ..announcestr.ending) timer:StartTimer("announcer", 10) inst:ListenForEvent("timerdone", OnTimerDone) end end local function extinction(inst) inst:ListenForEvent("attacked", announcement) end inst:ListenForEvent("death", extinction) end) end
  5. Unfortunately that didn't work @Ultroman Or maybe it works but something other is wrong? local announce3_prefabs = { 'dragonfly', } for k, v in pairs(announce3_prefabs) do AddPrefabPostInit(v, function (inst) local function OnTimerDone(inst, data) if data.name == "regen_dragonfly" then TheNet:Announce("" ..inst.name.. "" ..announcestr.spawned.. "" ..announcestr.ending) end end local function announcement(inst, data) TheNet:Announce("" ..inst.name.. "" ..announcestr.spawned.. "" ..announcestr.ending) inst:AddComponent("timer") inst.components.timer:StartTimer("regen_dragonfly", 10) inst:ListenForEvent("timerdone", OnTimerDone, inst, data) end local function extinction(inst) inst:ListenForEvent("attacked", announcement) end inst:ListenForEvent("death", extinction) end) end
  6. I'm really struggling to make this code work. When i'm killing dragonfly im getting server announce that "Dragonfly just spawned", thats working fine and i added only this announce line to make sure that code works on this part but the next part unfortunately not working (from adding component("timer")). How to make it work? (I know that full day in DST is 480 units from tuning.lua, and what i want to show is another message that "Dragonfly just spawned" after 10/480 day but it doesn't show up. Help please! local announce3_prefabs = { 'dragonfly', } for k, v in pairs(announce3_prefabs) do AddPrefabPostInit(v, function (inst) local function OnTimerDone(inst, data) if data.name == "regen_dragonfly" then TheNet:Announce("" ..inst.name.. "" ..announcestr.spawned.. "" ..announcestr.ending) end end local function announcement(inst, data) TheNet:Announce("" ..inst.name.. "" ..announcestr.spawned.. "" ..announcestr.ending) inst:AddComponent("timer") inst.components.timer:StartTimer("regen_dragonfly", 10) inst:ListenForEvent("timerdone", OnTimerDone) end local function extinction(inst) inst:ListenForEvent("attacked", announcement) end inst:ListenForEvent("death", extinction) end) end
  7. Is there any way to slow down the animation or at least make little cooldowns between performing few of them? Im using this code to make full dab emote by using /dab command on chat if GetModConfigData("LANG") == "english" then GLOBAL.AddModUserCommand("Hidden Name Mod", "dab", { prettyname = function(command) return "dab emote" end, desc = function() return "Perform an emote!" end, permission = "USER", params = {}, emote = true, slash = true, usermenu = false, servermenu = false, vote = false, serverfn = function(params, caller) local player = GLOBAL.UserToPlayer(caller.userid) if player ~= nil then player:PushEvent("emote", { anim = "emote_dab_pre", randomanim = true }) player:PushEvent("emote", { anim = "emote_dab_loop", randomanim = true }) player:PushEvent("emote", { anim = "emote_dab_pst", randomanim = true }) end end, localfn = function(params, caller) local player = GLOBAL.UserToPlayer(caller.userid) if player ~= nil then player:PushEvent("emote", { anim = "emote_dab_pre", randomanim = true }) player:PushEvent("emote", { anim = "emote_dab_loop", randomanim = true }) player:PushEvent("emote", { anim = "emote_dab_pst", randomanim = true }) end end, }) end It's working but animation is really "quick" or sharp i would say. Maybe sth like ~~Event:DoTaskInTime(1) might work but i don't know how to implement it Any help please
  8. Here it is! My new mod :) Hope You enjoy it

    http://steamcommunity.com/sharedfiles/filedetails/?id=1234341720

    1. minespatch

      minespatch

      The art should be slightly updated to have a more crusty look to it. Nice idea though.

    2. Weexer

      Weexer

      thanks >.> yeah im so bad at graphics i knooow

    3. minespatch

      minespatch

      They look better in game but I'd still suggest more tweaking.

  9. I misread your username as "Weezer' and now I'm thinking of that indi band.