Jump to content

Recommended Posts

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.)

@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')

 

@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. :D

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 character

LUA 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:1145

scripts/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.016666712239385

scripts/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 callback

modmain.lua

sinistro.lua

Make sure sinistro.lua is inside of a folderpath similar to this:
 

Don't Starve Together Beta\    ->mods\        ->sinistro\            ->scripts\                ->prefabs\                    ->sinistro.lua

also 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.

Make sure sinistro.lua is inside of a folderpath similar to this:

 

Don't Starve Together Beta\    ->mods\        ->sinistro\            ->scripts\                ->prefabs\                    ->sinistro.lua

also 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++.

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

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.

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 by Noggle

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...

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...