Jump to content

Recommended Posts

Hello. I'm working on my fourth character mod and this will be the first of my characters to use a voice not from the vanilla game. I'm wanting to give him Webber's voice but I'm stumped as to how to make it work. Whenever I try to run the game after changing some of the code in hopes to get it to work, he either has a completely silent voice or it crashes. Any help?

Silver - Unfinished.zip

Tried and tested, my change was correct! I did something, ma!

More importantly: You should set dont_starve_compatible to false in modinfo as it requires one of the DLCs. (RoG sounds included in SW)

 

I know how to fix it, but forgot exactly how. Let me get my old mod up and do it.

Solution below, I think. Redownloading DS to give it a shot.

Try putting:

    inst.talker_path_override = "dontstarve_DLC001/characters/"

into local fn = function(inst) in your sil.lua like so:

 


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" ),

		-- Don't forget to include your character's custom assets!
        Asset( "ANIM", "anim/sil.zip" ),
}
local prefabs = { "crow" }

local start_inv = 
{
	
}



local fn = function(inst)
	
	-- choose which sounds this character will play
   	inst.talker_path_override = "dontstarve_DLC001/characters/"
	inst.soundsname = "webber"

	-- a minimap icon must be specified
	inst.MiniMapEntity:SetIcon( "sil.png" )

	-- todo: Add an example special power here.
	
	inst.components.health:SetMaxHealth(TUNING.WILSON_HEALTH * 1.2 )
	inst.components.hunger:SetMax(TUNING.WILSON_HUNGER * 1.2 )
	inst.components.hunger:SetRate(TUNING.WILSON_HUNGER_RATE)
	inst.components.sanity:SetMax(50)
	inst.components.inventory:GuaranteeItems(start_inv)
	inst.components.locomotor.walkspeed = 4
	inst.components.locomotor.runspeed = 6
	
    inst.components.sanity.night_drain_mult = TUNING.WENDY_SANITY_MULT
    inst.components.sanity.neg_aura_mult = TUNING.WENDY_SANITY_MULT
    inst.components.combat.damagemultiplier = (TUNING.WENDY_DAMAGE_MULT * 0.5)


    inst:AddComponent("periodicspawner")
    inst.components.periodicspawner:SetPrefab("crow")
    inst.components.periodicspawner:SetRandomTimes(TUNING.TOTAL_DAY_TIME * 1, TUNING.SEG_TIME * 2)
    inst.components.periodicspawner:Start()
	

end



STRINGS.CHARACTERS.SIL = require "speech_sil"

return MakePlayerCharacter("sil", prefabs, assets, fn, start_inv)
Edited by Vargling
Solution! [1st+2nd edit] - Typos and formatting [3rd edit] - Humble brag [4th edit] - Advice [5th edit]

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...