Jack The Lumber Posted January 9, 2022 Share Posted January 9, 2022 So, after some complications the game finally loaded with my character mod. Unfortunaly, after selecting the mod character it instead became fully Wilson, with his base stats and all. Can I get a hand in here? Link to comment https://forums.kleientertainment.com/forums/topic/136828-character-defaulting-into-wilson-instead-of-modded-character/ Share on other sites More sharing options...
Leonidas IV Posted January 10, 2022 Share Posted January 10, 2022 Did you check the logs? Link to comment https://forums.kleientertainment.com/forums/topic/136828-character-defaulting-into-wilson-instead-of-modded-character/#findComment-1531565 Share on other sites More sharing options...
Jack The Lumber Posted January 11, 2022 Author Share Posted January 11, 2022 How do you check them? I couldn't get a clear picture of what's wrong cause it did not crash. Link to comment https://forums.kleientertainment.com/forums/topic/136828-character-defaulting-into-wilson-instead-of-modded-character/#findComment-1531858 Share on other sites More sharing options...
Wonderlarr Posted January 11, 2022 Share Posted January 11, 2022 26 minutes ago, Jack The Lumber said: How do you check them? I couldn't get a clear picture of what's wrong cause it did not crash. The only thing I can think of to check is to see if your mod's character prefab is actually loading in, other than that I don't think the game normally defaults a character like that unless you messed up in a weird way, like replacing Wilson's prefab instead of making your own. Which guide got you started on your character mod? Link to comment https://forums.kleientertainment.com/forums/topic/136828-character-defaulting-into-wilson-instead-of-modded-character/#findComment-1531865 Share on other sites More sharing options...
Jack The Lumber Posted January 11, 2022 Author Share Posted January 11, 2022 I started out with Dragon Leo Wolf's Extended Character Sample mod. Link to comment https://forums.kleientertainment.com/forums/topic/136828-character-defaulting-into-wilson-instead-of-modded-character/#findComment-1531894 Share on other sites More sharing options...
Jack The Lumber Posted January 12, 2022 Author Share Posted January 12, 2022 On 1/11/2022 at 3:10 PM, TheSkylarr said: The only thing I can think of to check is to see if your mod's character prefab is actually loading in, other than that I don't think the game normally defaults a character like that unless you messed up in a weird way, like replacing Wilson's prefab instead of making your own. Which guide got you started on your character mod? If you want you, I can send what I put on the prefab files. Link to comment https://forums.kleientertainment.com/forums/topic/136828-character-defaulting-into-wilson-instead-of-modded-character/#findComment-1532198 Share on other sites More sharing options...
Wonderlarr Posted January 12, 2022 Share Posted January 12, 2022 35 minutes ago, Jack The Lumber said: If you want you, I can send what I put on the prefab files. Sure, that works. Link to comment https://forums.kleientertainment.com/forums/topic/136828-character-defaulting-into-wilson-instead-of-modded-character/#findComment-1532211 Share on other sites More sharing options...
Jack The Lumber Posted January 13, 2022 Author Share Posted January 13, 2022 1 hour ago, TheSkylarr said: Sure, that works. junkboy.lua local MakePlayerCharacter = require "prefabs/player_common" local assets = { Asset("SCRIPT", "scripts/prefabs/player_common.lua"), } -- Your character's stats TUNING.JUNKBOY_HEALTH = 100 TUNING.JUNKBOY_HUNGER = 175 TUNING.JUNKBOY_SANITY = 225 -- Custom starting inventory TUNING.GAMEMODE_STARTING_ITEMS.DEFAULT.JUNKBOY = { "flint", "flint", "twigs", "twigs", } local start_inv = {} for k, v in pairs(TUNING.GAMEMODE_STARTING_ITEMS) do start_inv[string.lower(k)] = v.JUNKBOY end local prefabs = FlattenTree(start_inv, true) -- When the character is revived from human local function onbecamehuman(inst) -- Set speed when not a ghost (optional) inst.components.locomotor:SetExternalSpeedMultiplier(inst, "JUNKBOY_speed_mod", 1) end local function onbecameghost(inst) -- Remove speed modifier when becoming a ghost inst.components.locomotor:RemoveExternalSpeedMultiplier(inst, "JUNKBOY_speed_mod") end -- When loading or spawning the character local function onload(inst) inst:ListenForEvent("ms_respawnedfromghost", onbecamehuman) inst:ListenForEvent("ms_becameghost", onbecameghost) if inst:HasTag("playerghost") then onbecameghost(inst) else onbecamehuman(inst) end end -- This initializes for both the server and client. Tags can be added here. local common_postinit = function(inst) -- Minimap icon inst.MiniMapEntity:SetIcon( "JUNKBOY.tex" ) end -- This initializes for the server only. Components are added here. local master_postinit = function(inst) -- Set starting inventory inst.starting_inventory = start_inv[TheNet:GetServerGameMode()] or start_inv.default -- choose which sounds this character will play inst.soundsname = "wx78" -- Uncomment if "wathgrithr"(Wigfrid) or "webber" voice is used --inst.talker_path_override = "dontstarve_DLC001/characters/" -- Stats inst.components.health:SetMaxHealth(TUNING.JUNKBOY_HEALTH) inst.components.hunger:SetMax(TUNING.JUNKBOY_HUNGER) inst.components.sanity:SetMax(TUNING.JUNKBOY_SANITY) -- Damage multiplier (optional) inst.components.combat.damagemultiplier = 1 -- Hunger rate (optional) inst.components.hunger.hungerrate = 1 * TUNING.WILSON_HUNGER_RATE inst.OnLoad = onload inst.OnNewSpawn = onload end return MakePlayerCharacter("JUNKBOY", prefabs, assets, common_postinit, master_postinit, prefabs) junkboy_none.lua local assets = { Asset( "ANIM", "anim/junkboy.zip" ), Asset( "ANIM", "anim/ghost_junkboy_build.zip" ), } local skins = { normal_skin = "junkboy", ghost_skin = "ghost_junkboy_build", } return CreatePrefabSkin("junkboy_none", { base_prefab = "junkboy", type = "base", assets = assets, skins = skins, skin_tags = {"JUNKBOY", "CHARACTER", "BASE"}, build_name_override = "junkboy", rarity = "Character", }) Link to comment https://forums.kleientertainment.com/forums/topic/136828-character-defaulting-into-wilson-instead-of-modded-character/#findComment-1532228 Share on other sites More sharing options...
Wonderlarr Posted January 13, 2022 Share Posted January 13, 2022 I don't see anything that jumps out at me as wrong, but if anything would be setting you to Wilson it would be in junkboy_none.lua, that's where your character's textures are handled, sorry I can't help more. Link to comment https://forums.kleientertainment.com/forums/topic/136828-character-defaulting-into-wilson-instead-of-modded-character/#findComment-1532321 Share on other sites More sharing options...
Jack The Lumber Posted January 13, 2022 Author Share Posted January 13, 2022 Well, this is gonna be tough... Link to comment https://forums.kleientertainment.com/forums/topic/136828-character-defaulting-into-wilson-instead-of-modded-character/#findComment-1532502 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now