Lokitty Posted January 23, 2015 Share Posted January 23, 2015 Hey, guys! New here, but um.. I have a problem with a mod I had been working on (also new to that). I finally got it to stop erroring/crashing, but I have a new problem. The mod is enabled and does not disable itself, and the game loads, but when I get to the character select screen, the character isn't there... I'm not getting any errors (from what I can see in the log), but I'm assuming there's an error in one of the scripts. Admittedly, I know nothing about modding (and definitely know nothing about making .xml files). As far as I know, all the files/folders are in their respective places... So why does the character not show up? Help would be appreciated! If you need something, let me know. (I have looked elsewhere for information on this and only found one post... Which did not help me.) Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/ Share on other sites More sharing options...
rezecib Posted January 23, 2015 Share Posted January 23, 2015 @Lokitty, Usually saying something isn't working without providing code isn't very helpful, because there are so many things that could be wrong. But I'm going to guess here that you're missing this line in your modmain:AddModCharacter('mycharacter') Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605077 Share on other sites More sharing options...
Lokitty Posted January 23, 2015 Author Share Posted January 23, 2015 @Lokitty, Usually saying something isn't working without providing code isn't very helpful, because there are so many things that could be wrong. But I'm going to guess here that you're missing this line in your modmain:AddModCharacter('mycharacter')Yeah, I know I should have posted some code, but I wasn't sure which file would be needed... I do not recall ever having typed that code into a file... What file should it be in? That may be my (obvious) problem and will probably make me feel like a complete idiot. Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605080 Share on other sites More sharing options...
Lokitty Posted January 23, 2015 Author Share Posted January 23, 2015 Yeah, I know I should have posted some code, but I wasn't sure which file would be needed...Gah! Nevermind that question. I'm half asleep. I also don't know how to edit posts, so if this is a double-post, forgive me! Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605081 Share on other sites More sharing options...
Noggle Posted January 23, 2015 Share Posted January 23, 2015 I also don't know how to edit posts, so if this is a double-post, forgive me! Sadly I don't think you're allowed to edit posts until you post a certain number of times, which I believe is like 5 posts. Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605085 Share on other sites More sharing options...
Lokitty Posted January 23, 2015 Author Share Posted January 23, 2015 Sadly I don't think you're allowed to edit posts until you post a certain number of times, which I believe is like 5 posts. Ahh, I see. Okay. Anywho... Thanks for the help. I will do a huge facepalm for you. Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605086 Share on other sites More sharing options...
Noggle Posted January 23, 2015 Share Posted January 23, 2015 AddModCharacter('mycharacter')goes into the file 'modmain.lua', mine are at the bottom but I don't know if that's required or not. I believe you'd save quite a bit of heartache by looking at the Extended Sample Character by Dleowolf Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605087 Share on other sites More sharing options...
Lokitty Posted January 23, 2015 Author Share Posted January 23, 2015 Ahh, I see. Okay. Anywho... Thanks for the help. I will do a huge facepalm for you. Hey, me again! Supplying the world with all the facepalms it can handle! I am now getting the error: could not spawn player character!I messed with the files a little to see if it'd fix it, but it didn't... xP Here is the error from the log:[00:00:56]: Can't find prefab sinistro [00:00:56]: [string "scripts/mainfunctions.lua"]:1149: could not spawn player characterLUA ERROR stack traceback:=[C]:-1 in (global) assert © <-1--1>scripts/mainfunctions.lua:1149 in (local) cb (Lua) <1145-1151>scripts/frontend.lua:424 in (method) DoFadingUpdate (Lua) <388-428> self = tracking_mouse = true fade_title_out = false ignoreups = table: 0DADEC48 overlayroot = overlayroot save_indicator_time_left = 0 fade_title_time = 0 page_repeat_time = 0.25 helptextbg = Image - images/global.xml:square.tex helptext = HelpText subtitle = Text - updating_widgets_alt = table: 138DBEE0 title = Text - topFadeHidden = false gameinterface = 100012 - (valid:true) updating_widgets = table: 0D37E608 lastx = 1118 total_fade_time = 1 lasty = 103 autosave_enabled = true fade_time = 1.0016786847264 blackoverlay = Image - images/global.xml:square.tex screenstack = table: 0DADE310 num_pending_saves = 0 save_indicator_fade_time = 0 saving_indicator = UIAnim screenroot = screenroot alpha = 1.0000000047305 focus_locked = false topblackoverlay = Image - images/global.xml:square.tex fade_title_in = false forceProcessText = false repeat_time = 0 displayingerror = false consoletext = Text - CONSOLE TEXT helptexttext = Text - dt = 0.016666712239385 alpha = 1.0000000047305 cb = function - scripts/mainfunctions.lua:1145scripts/frontend.lua:479 in (method) Update (Lua) <436-576> self = tracking_mouse = true fade_title_out = false ignoreups = table: 0DADEC48 overlayroot = overlayroot save_indicator_time_left = 0 fade_title_time = 0 page_repeat_time = 0.25 helptextbg = Image - images/global.xml:square.tex helptext = HelpText subtitle = Text - updating_widgets_alt = table: 138DBEE0 title = Text - topFadeHidden = false gameinterface = 100012 - (valid:true) updating_widgets = table: 0D37E608 lastx = 1118 total_fade_time = 1 lasty = 103 autosave_enabled = true fade_time = 1.0016786847264 blackoverlay = Image - images/global.xml:square.tex screenstack = table: 0DADE310 num_pending_saves = 0 save_indicator_fade_time = 0 saving_indicator = UIAnim screenroot = screenroot alpha = 1.0000000047305 focus_locked = false topblackoverlay = Image - images/global.xml:square.tex fade_title_in = false forceProcessText = false repeat_time = 0 displayingerror = false consoletext = Text - CONSOLE TEXT helptexttext = Text - dt = 0.016666712239385scripts/update.lua:91 in () ? (Lua) <39-95> dt = 0.016666712239385[00:00:56]: SCRIPT ERROR! Showing error screen [00:00:57]: QueryServerComplete no callback[00:00:57]: QueryServerComplete no callbackmodmain.luasinistro.lua Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605088 Share on other sites More sharing options...
Noggle Posted January 23, 2015 Share Posted January 23, 2015 Make sure sinistro.lua is inside of a folderpath similar to this: Don't Starve Together Beta\ ->mods\ ->sinistro\ ->scripts\ ->prefabs\ ->sinistro.luaalso you don't need to label it as sinistro.lua in the modmain, just sinistro will do just fine. Also, that is a file saved as sinistro.lua.txt, it is a text file, not a lua file. Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605089 Share on other sites More sharing options...
Lokitty Posted January 23, 2015 Author Share Posted January 23, 2015 Make sure sinistro.lua is inside of a folderpath similar to this: Don't Starve Together Beta\ ->mods\ ->sinistro\ ->scripts\ ->prefabs\ ->sinistro.luaalso you don't need to label it as sinistro.lua in the modmain, just sinistro will do just fine. Also, that is a file saved as sinistro.lua.txt, it is a text file, not a lua file. The file is in the prefabs folder, and it is a lua file. o.o Are you saying it's not supposed to be or that the one I attached came out as txt? Because when I open the properties, it does say it is a lua file.. and it opens as lua in Notepad++. Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605092 Share on other sites More sharing options...
Noggle Posted January 23, 2015 Share Posted January 23, 2015 The file is in the prefabs folder, and it is a lua file. o.o Are you saying it's not supposed to be or that the one I attached came out as txt? Because when I open the properties, it does say it is a lua file.. and it opens as lua in Notepad++. When I opened the file you attached it opened as sinistro.lua.txt, while your modmain opened correctly as .lua -- You simply need to save it as an actual .lua file, rather than naming it as such. ctrl+alt+s and make sure to set the dropdown menu as a lua source file Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605093 Share on other sites More sharing options...
Lokitty Posted January 23, 2015 Author Share Posted January 23, 2015 When I opened the file you attached it opened as sinistro.lua.txt, while your modmain opened correctly as .lua -- You simply need to save it as an actual .lua file, rather than naming it as such. ctrl+alt+s and make sure to set the dropdown menu as a lua source file It is saved as a lua file. I just looked at the attachments and they both say "txt" for some reason. Not sure why that it, but I assure you it is a lua file. Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605094 Share on other sites More sharing options...
Noggle Posted January 23, 2015 Share Posted January 23, 2015 (edited) Testing purposes, will edit in a second -- Sure enough, it converts any lua file to a .txt, that's pretty awkward on my front. Actually, looking at oyur file, you're using wilson from Don't Starve as a base. It won't work, as some of the coding has changed into Dont Starve Together. Please look into that link I had in an earlier post.yeticlaws.lua Edited January 23, 2015 by Noggle Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605095 Share on other sites More sharing options...
Lokitty Posted January 24, 2015 Author Share Posted January 24, 2015 Okay, sooo... I managed to get the mod working (mostly) with that tutorial you linked. The only problem now is that the character is invisible. I know this is because the build is "missing"... I have the images (arms, hands, face, etc...) in separate folders, that I then used the compiler tool on. It made zip files for them, but it didn't make "atlas-0", and all the images are still separate. How do I fix this? xP I realize I can be annoying to people, but I just would really like to understand this... Link to comment https://forums.kleientertainment.com/forums/topic/49599-missing-from-character-select-screen-mod/#findComment-605441 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