RiverKaze Posted January 31, 2016 Share Posted January 31, 2016 Hey there =) I've just had a go at making some character mods for the first time and they've worked pretty well, for RoG at least. I have one mod for myself and one for a friend and they're pretty much just re-skins with custom stats. They work fine in RoG and one at a time in Together but I can't work out how to get them to both work on the same server at the same time which means my friend and I can't both use our characters when we play together. I haven't been able to find much help online and I've tried everything I can think of with the codes on my own. Can anyone give me some help please? Link to comment https://forums.kleientertainment.com/forums/topic/63534-dst-character-mods/ Share on other sites More sharing options...
Zackreaver Posted February 1, 2016 Share Posted February 1, 2016 (edited) Sounds like your characters might have some conflicting code in them. If the only thing you changed about them was a couple stats here and there then it's probably a conflict with the prefab name, post the prefab.lua and I can take a look. Just a shot in the dark, but do they both have return MakePlayerCharacter("esctemplate", prefabs, assets, common_postinit, master_postinit, start_inv) at the bottom? Edited February 1, 2016 by Zackreaver Link to comment https://forums.kleientertainment.com/forums/topic/63534-dst-character-mods/#findComment-715862 Share on other sites More sharing options...
RiverKaze Posted February 1, 2016 Author Share Posted February 1, 2016 Yeah they are pretty much the same but the have different character names I will post the prefab in a bit. i current don't have access to them right now. Link to comment https://forums.kleientertainment.com/forums/topic/63534-dst-character-mods/#findComment-715932 Share on other sites More sharing options...
RiverKaze Posted February 1, 2016 Author Share Posted February 1, 2016 they both pretty much look like this but with different names 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/flint.zip" ), Asset( "ANIM", "anim/ghost_flint_build.zip" ), } local prefabs = {} local common_postinit = function(inst) inst.soundsname = "wilson" end local master_postinit = function(inst) inst.components.health:SetMaxHealth(150) inst.components.hunger:SetMax(200) inst.components.sanity:SetMax(200) inst.components.combat.min_attack_period = 1.5 inst.components.combat.damagemultiplier = 1 inst.components.locomotor.walkspeed = (TUNING.WILSON_WALK_SPEED * 1) inst.components.locomotor.runspeed = (TUNING.WILSON_RUN_SPEED * 1) inst.components.hunger:SetRate(TUNING.WILSON_HUNGER_RATE * 1.5) inst.components.sanity.night_drain_mult = 1 inst.components.eater.stale_health = 0.7 inst.components.temperature.overheattemp = 70 inst.components.health.fire_damage_scale = 0 inst.MiniMapEntity:SetIcon( "flint.png" ) end return MakePlayerCharacter("flint", prefabs, assets, common_postinit, master_postinit) Link to comment https://forums.kleientertainment.com/forums/topic/63534-dst-character-mods/#findComment-715940 Share on other sites More sharing options...
Zackreaver Posted February 1, 2016 Share Posted February 1, 2016 (edited) 2 hours ago, RiverKaze said: return MakePlayerCharacter("flint", prefabs, assets, common_postinit, master_postinit) The character's name is flint? I think that might create a conflict with the item flint. I'm not 100% sure. But I would suggest changing "flint" to "flintcharacter". You would still be able to have the character called "Flint" to anyone who views the character, but the prefab would be different to avoid potential conflicts. Though if you can run the mod by itself then I guess characters and item prefabs don't conflict, I would still change the name to be safe personally. But before we do any of that, whats the other characters prefab look like? Edited February 1, 2016 by Zackreaver Link to comment https://forums.kleientertainment.com/forums/topic/63534-dst-character-mods/#findComment-715973 Share on other sites More sharing options...
RiverKaze Posted February 1, 2016 Author Share Posted February 1, 2016 it's pretty much the same but the name is salem instead of flint and i can run flint by itself just not with salem Link to comment https://forums.kleientertainment.com/forums/topic/63534-dst-character-mods/#findComment-715979 Share on other sites More sharing options...
Zackreaver Posted February 1, 2016 Share Posted February 1, 2016 (edited) Do you get an error when both of them get loaded? The error could quickly find the problem. If you do get an error, it gets saved in my documents/klei/donotstarvetogether/log.txt It will create this log even if the game itself crashes, so check there immediately when the problem happens. Edited February 1, 2016 by Zackreaver Link to comment https://forums.kleientertainment.com/forums/topic/63534-dst-character-mods/#findComment-715983 Share on other sites More sharing options...
Zackreaver Posted February 1, 2016 Share Posted February 1, 2016 2 hours ago, RiverKaze said: inst.MiniMapEntity:SetIcon( "flint.png" ) Also, I'm pretty sure this part needs to go into common_postinit instead of master_postinit. Clients need to be able to see the minimap icon as well. Link to comment https://forums.kleientertainment.com/forums/topic/63534-dst-character-mods/#findComment-715984 Share on other sites More sharing options...
RiverKaze Posted February 1, 2016 Author Share Posted February 1, 2016 i'll try that. when i try to load both of them together the game just crashes and doesn't come up with what the problem is just that the game has stopped working. by the way thank you so much for the help so far it means a lot to me. Link to comment https://forums.kleientertainment.com/forums/topic/63534-dst-character-mods/#findComment-716002 Share on other sites More sharing options...
Zackreaver Posted February 2, 2016 Share Posted February 2, 2016 (edited) On 2/1/2016 at 0:33 AM, RiverKaze said: the game just crashes and doesn't come up with what the problem The log file is still always created when the game crashes. Go to my documents/klei/donotstarvetogether/log.txt That file will say what the problem is. Immediately after you get that crash and before you start the game back up, post that file here, or copy and paste the text and I'll see what it's saying. Edited February 2, 2016 by Zackreaver Link to comment https://forums.kleientertainment.com/forums/topic/63534-dst-character-mods/#findComment-716530 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