Registered Users
  • Content count

  • Joined

  • Last visited

Everything posted by K1NGT1GER609

  1. Has things changed?

    Theres not much new to the sample character and theres no real need to update the tutorial or theres no new up to date tutorial. It has something to do with the autocompiler malfunctioning and not picking up the scml.
  2. Some codes for custom sword

    Here you go I wasn't sure if you wanted to restore health from kill or hit. As for health 5% i'd let you customize the heal as i don't know the weapon damage. Code: local function onattack(inst, owner, target) ---restores health on kill if owner.components.health and owner.components.health:GetPercent() < 1 and not target:HasTag("wall") then owner.components.health:DoDelta(8) ---heal 8, change it to your number end end local function OnHit(inst, owner, target) ----restores health on hit if owner.components.health and owner.components.health:GetPercent() < 1 and not target:HasTag("wall") then owner.components.health:DoDelta(8) ---heal 8, change it to your number end end local function fn(colour) ---the main function of your sword if not TheWorld.ismastersim then return inst end inst.components.weapon.attackrange = 8 ----how far your weapon can hit inst.components.weapon.hitrange = 8 ----how far your hits can land inst.components.weapon.onattack = onattack ---call the function for healing on kill inst.components.weapon.OnHit = OnHit ---call the function for healing on hit end
  3. [help] can't make my perks apply

    Well the reason it doesn't work is because all the functions you put activate the moment the character spawns in and pretty much become dormant throughout your play-through and that's not what you want. So you want a function that periodically checks your hunger stat so heres the code: local MakePlayerCharacter = require "prefabs/player_common" local assets = { Asset( "ANIM", "anim/player_basic.zip" ), Asset( "ANIM", "anim/player_idles_shiver.zip" ), Asset( "ANIM", "anim/player_actions.zip" ), Asset( "ANIM", "anim/player_actions_axe.zip" ), Asset( "ANIM", "anim/player_actions_pickaxe.zip" ), Asset( "ANIM", "anim/player_actions_shovel.zip" ), Asset( "ANIM", "anim/player_actions_blowdart.zip" ), Asset( "ANIM", "anim/player_actions_eat.zip" ), Asset( "ANIM", "anim/player_actions_item.zip" ), Asset( "ANIM", "anim/player_actions_uniqueitem.zip" ), Asset( "ANIM", "anim/player_actions_bugnet.zip" ), Asset( "ANIM", "anim/player_actions_fishing.zip" ), Asset( "ANIM", "anim/player_actions_boomerang.zip" ), Asset( "ANIM", "anim/player_bush_hat.zip" ), Asset( "ANIM", "anim/player_attacks.zip" ), Asset( "ANIM", "anim/player_idles.zip" ), Asset( "ANIM", "anim/player_rebirth.zip" ), Asset( "ANIM", "anim/player_jump.zip" ), Asset( "ANIM", "anim/player_amulet_resurrect.zip" ), Asset( "ANIM", "anim/player_teleport.zip" ), Asset( "ANIM", "anim/wilson_fx.zip" ), Asset( "ANIM", "anim/player_one_man_band.zip" ), Asset( "ANIM", "anim/shadow_hands.zip" ), Asset( "SOUND", "sound/sfx.fsb" ), Asset( "SOUND", "sound/wilson.fsb" ), Asset( "ANIM", "anim/beard.zip" ), Asset( "ANIM", "anim/wugul.zip" ), } local prefabs = { "poop" } local start_inv = { -- Custom starting items } local function onhungerchange (inst) ----what about inbetween? you could be stuck on high speed or slow speed if you exploit it if (inst.components.hunger:GetPercent() > .8) then ----for greater 80% hunger inst.components.locomotor.walkspeed = 3.2 inst.components.locomotor.runspeed = 3 inst.components.combat.damagemultiplier = 0.8 elseif (inst.components.hunger:GetPercent() < .4) then ----for less than 40% hunger inst.components.locomotor.walkspeed = 6 inst.components.locomotor.runspeed = 7.5 inst.components.combat.damagemultiplier = 2 end end local function poopfn(inst, food) if food and inst.components.hunger:GetPercent() == 1 then ---100% hunger but timing is tricky since the counter doesn't stop at all local poo = SpawnPrefab("poop") poo.Transform:SetPosition(inst.Transform:GetWorldPosition()) end end local fn = function(inst) -- choose which sounds this character will play inst.soundsname = "wolfgang" -- Minimap icon inst.MiniMapEntity:SetIcon( "wugul.tex" ) -- Stats inst.components.health:SetMaxHealth(200) inst.components.hunger:SetMax(180) inst.components.sanity:SetMax(150) inst:DoPeriodicTask(4, poopfn, nil, inst) ----every four seconds check for full hunger and poop but you lose one hunger per 6 seconds inst:DoPeriodicTask(.5, onhungerchange, nil, inst) ---check your hunger every half second and apply the buffs and debuffs end return MakePlayerCharacter("wugul", prefabs, assets, fn, start_inv) Few last notes your poop function was checking for 300 hunger which isn't possible as you set it to max 180, and you'll have to set a condition for inbetween 40 and 80 percent as if you hit 40% you can stay below 80% and keep the speed boost indefinitely or be stuck on slow avoiding the 40%.
  4. The difference in a nutshell is that don't starve code is outdated compared to don't starve together, so you'll have to manually input everything that webber's perks do. What makes it so that you can't do the same in don't starve together is just a guess: I don't think they expect people to mod a new webber since looking at the code I didn't think they finish making spiderwhisperer into a proper class(I don't want to explain classes if you don't mind). I mean at line 28 of the spider lua code it pretty much makes it so only webber can friend spiders and anyone else who isn't webber can't make friends with spiders regardless of having the tags. So from there option one is to put next to the code and include that file in your mod and such: or giver.prefab ~= "youcharacterprefab" The problem with this option is that it will most likely make your mod crash in shipwrecked. On my monolith character I programmed a item like a unbreakable spider hat to get around it and make it compatible with shipwrecked (check the monolithbadge file). If you decide to do this item I'd recommend downloading the sample mods-sampleprefabs: Note: Before I forget put these lines of codes in you character's main function: inst.components.locomotor.triggerscreep = false -----pretty much means don't get slowed down in the spider's web and disturb the nest local nest_recipe = Recipe("spidereggsack", {Ingredient("silk", 12), Ingredient("spidergland", 6), Ingredient("papyrus", 6)}, RECIPETABS.TOWN, TECH.NONE) nest_recipe.sortkey = 1 STRINGS.RECIPE_DESC.SPIDEREGGSACK = "Get a little help from your friends." ----this line of code means you can craft spider eggs inst.components.eater.monsterimmune = true ----eat monster meat with no penalty and in your prefabs(I don't remember if it's important but it doesn't hurt to put it): local prefabs = { "webber", } monolithbadge.lua
  5. Not sure what you're trying to do as common_postint and master_postint are dont starve together code and were in dont starve forums. If ur trying to put that code in a dont starve mod just put it in the local fn. Other than that if ur trying dont starve together modding ull have to modify the file. So thats where the difference between the functions come in: common is used for tags and minimap code, as for master is where the rest of the characters code goes. Master had the stats perks custom functions like ur code and more is stored in.
  6. For spider characters they usually have the lines of code in their character lua: inst:AddTag("spiderwhisperer") inst:AddTag("monster") The spiderwhisperer tag removes the sanity drain from spiders but requires the monster tag to be neutral to them. Theres also another problem with using the outdated dont starve code, the code only allows webber to friend spiders so if u want to friend spiders u either edit the spider lua and risk incompatability with shipedwrecked by adding ur characters prefab name with webber or figure out how to use the spider hat's ability with ur character.
  7. Well this is the wrong forum section to post your problem as this is the don't starve forum and not the don't starve together forum. Usually this glitch happens under few possiblities. First is a few lines of code that isn't there(goes in the main function): inst.entity:AddNetwork() ----makes sure that everyone on the server can get it inst.entity:SetPristine() The other is that the search paths on your mod for imagename and atlasname may be wrong, usually keeping the files the same name as the weapon is recommended. And last is that if your using the wand template that's here it causes some strange glitches that I really can't explain but in the end is just to keep trying to recreate it.
  8. Id be interested in that offer.
  9. Technically yes, I mean theres not much to get out of the summer vest besides a few lines of code (unless your going for durability on use) and the backpack is the only one that needs more work in terms placing the code to use. I don't think there's much need for additional code that isn't in those files.
  10. It is possible to make a breezy vest n backpack combination but in dst theres a problem with cave servers running along side. The breezy vest summer and winter only difference is insulation amount n looks. For the backpack it hasnt been done where they work along side cave servers. If you copy and paste the code that makes the widgets it works for noncave server games. Ive searched around large mods, forums, asked a few modders and such but theres no getting around the error in cave servers.
  11. Alright think I got it, the zip file has been placed tested it out and it may crash first time around for no real good reason(just reload the game). roxmod.zip
  12. There's no zip?
  13. White outline

    The pictures are ok, how to fix it on a spear anim file is difficult since its very limited on space so its easier to use a wand template from here. So there's the icespear zip just know to make multiple copies as the mod file is very...unpredictable and causes strange errors even though the code is right. icespear.zip
  14. There's a chance the .fsb file changes its name everytime you build. At this point the only way to help you is to see the file itself since there's no other suggestions left I think.
  15. Hmm strange I thought you already replace the mp3 files with .wav in fmod, well do that and rebuild the .fev and .fsb files. Other than that I'd say if it doesn't work then theres lots of possibilities of what is wrong.
  16. White outline

    Judging from the photo's you posted you modified a spear anim file and there may have been a chance the two spears overlapped somehow. I've posted some photo's below is that what you're trying to do?
  17. Probably the search path for the sound on the modmain lua isn't correct, I don't suppose you have a screenshot or picture of how you set it up in the fmod designer? Hmm strange the sound mod tutorial doesn't mention this code: GLOBAL.character's_voice = GetModConfigData("character's_voice") in the modmain.
  18. Well here's a link to how to do a character's voice (its a bit out dated but still works): As for mp3's the game recognizes .wav sound files but you can use audacity audio program (which is free) to convert .mp3 to .wav along with reducing the sound's strength.
  19. White outline

    Usually if you just copy and paste a photo theres a pretty good chance that photo has a white background even though it appears transparent when you see it. You'll need to pretty much take a close look and erase any white lines around the photo manually, making the white into transparent for some reason doesn't translate well with .tex files. There's also an unusual anomaly for a lack of better words that the game's daylight or lighting makes bright colors close to white if my erase white lines manually suggestion doesn't work. With that being said you're most likely have to turn the brightness to dark to counter the game's lighting.
  20. Version 2.8


    Warning this mod uses language (bad words) in their dialogues, if you do not approve of this don't download and the saying goes "Get out of here stalker!". If not " I said come in don't stand there!". This mod was mainly made for dst since some the mechanics was made for dst by putting some challenge into cooperation. This mod contains sixteen playable stalkers that come from different factions: Loners, Duty, Freedom, clearsky, bandits, military, mercenary, ecologist and Monolith.Most of which contain a suit that is repairable by gold nuggets. Read on about each factions advantages and disadvantages and decide which faction you feel comfortable to play as. Loner: Zone experience: -90% negative sanity drain Prey: -You're commonly targeted by the military and bandits and lose sanity being next to them Duty: Military Trained: -75% negative sanity drain -75% night sanity drain Anti-freedom: -Your rival Freedom drains your sanity at a good rate being next to each other due to different ideology and your war with them. Anti-Mutant: -Your code is to protect the world from the mutants that threaten the outside world, making you uneasy in cooperating with pigmen, bunnymen, and the pig king as they drain your sanity (even if you befriend them!) Freedom: Zone Trained: -80% negative sanity drain Light Exoskeleton: -10% faster movement than all the other factions -10% faster hunger rate Anarchist: -You fight for free access to the zone and conflict with the military and duty because of this. You lose sanity being next to military and duty. Monolith: Decayed mind: -0% negative sanity drain -100 max sanity making nights your main concern -Ignore food spoilage and monster meat penalty Spider Allies: -Your mind is partially connected to the Noosphere thus being able to connect with spiders to fight with you -You are also neutral to merms unless you provoke them Bad reputation: -Due to your stories told by stalkers about being hostile to all factions and your ruthlessness, all nearby players will lose a lot of sanity being near you. This makes cooperation difficult without driving them mad. -Your tagged as a monster, making catcoons, pigmen, and bunnymen target you for your reputation. Military: Military Trained: -75% negative sanity drain -75% night sanity drain Corrupt: -You've attacked stalkers that tried to enter the zone, you're peers low morale gives you a bad reputation amongst stalker and thus most stalkers lose sanity being near you. On the bright side your previous dealing with duty has earned you neutrality towards them, after all most of their equipment comes from you. Clearsky: Zone experience: -90% negative sanity drain Prey: -You're commonly targeted by the military and bandits and lose sanity being next to them CS2: -Your unique suit was well designed and does the following: reduces building costs by 50%, 65% damage protection, medium rain protection and insulation that changes in the summers like the seva suits, 50% fire protection, and small sanity recovery. Bandits: Robber: -You rob everyone in the zone regardless of faction. You'll lose sanity to all factions besides your own. Bandit jacket: -Your jacket inherits 25% damage protection and a small amount of winter insulation. Ecologist: Scientist: -You're a thinker not a fighter, -20% damage and larger sanity pool. -No radiation damage, you've had your fair share of artifact handling and research to find out how to by pass the radiation. Ssp suit: -Just like a seva suit but with nightvision and 50% building cost reduction Good reputation: -You're neutral to most stalkers making it easy to cooperate with them. -You can recruit most neutral stalkers besides clearsky companions. -Monolith and bandit faction are your only enemies Mercenaries: Military training: -75% negative and night sanity drain, your exmilitary after all. Unpredictable: -Military and duty consider you a threat to their operations and drain your sanity being next to you Killer: -Gain sanity from killing, the larger the opponent the larger the sanity is restored -Lose sanity from getting hit, miss hitting your target, and running away from battle stalker and stalker1 = don't starve together version stalkerds = don't starve version (reign of giants or shipwrecked required!) stalkerloneredition and stalkerloneredition1 = don't starve together loner edition (repaired) NOTE: Your suits can be destroyed and isn't replaceable thus keep your suits repaired at all times! Do you have no friends loner? Then download the stalker loner edition today you AI buddies will follow you indefinitely and help out with combat, get out of sticky situations and follow you down in to the caves. The weapons and ammo is now available to purchase in the shop tab while standing next to the alchemy machine just know guns aren't cheap, same goes for the ammo. Later update: unknown Refer to the discussion threads for more info about the mod. With all perks laid out will you cooperate with your rivals? Even though you'll be driving each other insane! Or will your ideologies and differences get the best of you? You can configure this mod at the beginning to disable any of the factions you don't want available in your game and keep the ones you do want. Will this mod be made for don't starve? Go check out the port it should work for the most part. The Meaning of S.T.A.L.K.E.R: Scavenger.Trespasser.Adventurer.Loner.Killer.Explorer.Robber Exoskeleton character guide: http://steamcommunity.com/workshop/filedetails/discussion/520571095/152390648098289899/ Weapons guide: http://steamcommunity.com/workshop/filedetails/discussion/520571095/365163686037504929/ AI guide: http://steamcommunity.com/workshop/filedetails/discussion/520571095/276237094316329266/ SEVA and SSP guide: http://steamcommunity.com/workshop/filedetails/discussion/520571095/357284131786777612/ Artifacts guide: http://steamcommunity.com/workshop/filedetails/discussion/520571095/451851477876528386/ Character expansion 3 guide: http://steamcommunity.com/workshop/filedetails/discussion/520571095/152390648081951322/ Character expansion 4 guide: http://steamcommunity.com/workshop/filedetails/discussion/520571095/2183537632750532617/ Sunrise suit guide: http://steamcommunity.com/workshop/filedetails/discussion/520571095/2183537632750503727/ HOW TO DOWNLOAD DST VERSION: Download stalker and stalker1 (same goes for loneredition(1-2)) and extract both of them. Place the anim file (from stalker2) into the stalker folder (from stalker) and your set. Special thanks to a modder who I'm not sure wants to be credited for the repairable armour, sw1tchbl4de once again for the artwork, Mindmaster for ai experimentation, youtuber ZoranAustralia(For Užičko Kolo video) for the bandit voice, and GSC game world for the character and their music that was used for their voices.
  21. Dust

  22. S.T.A.L.K.E.R. Faction pack

    Currently it works only in don't starve together.