AleksandrPlz Posted May 28, 2015 Share Posted May 28, 2015 I'm making a custom character that spawns with 2 custom items. On offline test it works by myself and the items are fine, but when I brought it to online the character did not spawn with one of the items. The other item spawns fine, and is still in the second inventory slot like it was trying to spawn the first item. It appears that only when the server host connects and plays the character they will have the first item, any other players who pick the character will only have the second item and an empty slot. I haven't any clue what this bug means or how to fix it, nor have I been able to find a solution to anyone else having the bug. I'll upload my wip mod for anyone to take a look at the files.link_mod.zip Link to comment https://forums.kleientertainment.com/forums/topic/54528-only-server-host-spawns-with-an-item-on-custom-char/ Share on other sites More sharing options...
Kzisor Posted May 28, 2015 Share Posted May 28, 2015 @AleksandrPlz, mastersword.lua is missing inst.entity:AddNetwork(). Link to comment https://forums.kleientertainment.com/forums/topic/54528-only-server-host-spawns-with-an-item-on-custom-char/#findComment-641680 Share on other sites More sharing options...
AleksandrPlz Posted May 31, 2015 Author Share Posted May 31, 2015 @AleksandrPlz, mastersword.lua is missing inst.entity:AddNetwork(). Ah, I've been trying to debug this for days... I added that line but now it crashes whenever you select the character, before it actually gets you in-game. Is there a specific area to add it to? Link to comment https://forums.kleientertainment.com/forums/topic/54528-only-server-host-spawns-with-an-item-on-custom-char/#findComment-642622 Share on other sites More sharing options...
Kzisor Posted May 31, 2015 Share Posted May 31, 2015 @AleksandrPlz, Yeah where you add all the other inst.entity items, above the "if not TheWorld.ismastersim then return isnt end" code. Link to comment https://forums.kleientertainment.com/forums/topic/54528-only-server-host-spawns-with-an-item-on-custom-char/#findComment-642645 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