Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

Blueberrys

[Support] Game crash? Post here for help

Recommended Posts

I just started doing a mod, to adding a new Character. At first I had a lot of crashes, but were able to fix them by myself.

I'm finally able to see the character in the selection screen, but if I select him the game don't really connect me to the created world.

I'm hearing sounds from the birds and the sound of the fire from the character selection, while having a black screen.

 

 

 

Share this post


Link to post
Share on other sites
Blueberrys    172
So it is not the missing comma that makes that problem?

Probably not. Though I'm not sure what's causing it. Is that still happening with the version you posted?

 

And for the second one, in the file called "anim" for my mod I have the animation for the character, and the file for its special item. And in the subfolder for my item I have a media file called "anim," and one called "build." Isn't that all I need?
I'm not sure I understood correctly. As previously mentioned, if you don't have the file swap_hunting_dart.zip inside "..\YourModFolder\anim" then it won't work.
Alternately, you can also change "anim/swap_hunting_dart.zip" in your code to the correct relative path. Ex, "ItemSubFolder/anim/swap_hunting_dart.zip".

Share this post


Link to post
Share on other sites
seronis    130

@DarkFenikkusu I can't download your log for some reason. "Sorry, you don't have permission for that!" Anyone else having this issue?

Same problem here.  Personally I think text uploads should always be one at  gist.github.com an file uploads at mega.co.nz to avoid problems like this

Share this post


Link to post
Share on other sites
Blueberrys    172
Same problem here. Personally I think text uploads should always be one at  gist.github.com an file uploads at mega.co.nz to avoid problems like this

I agree with the text uploads, especially since it's easier to see them directly without downloading.

As for file uploads on other sites, I feel less inclined to download something if I have to keep another tab open, navigate through multiple pages, or complete a captcha. Since everyone has their own favorite upload site and won't stick to just one, I think it would be best to keep uploads right here on the forum.

 

Is there any place to report forum bugs?

 

 

@DarkFenikkusu Please paste your log at github or pastebin.

 

 

Share this post


Link to post
Share on other sites
Blueberrys    172

@DarkFenikkusu Yes, it does.

Can't find prefab chr

I'm assuming you didn't name your character prefab "chr", but accidentally wrote that (or left it there) when initializing. May I see your modmain?

Share this post


Link to post
Share on other sites
Dwim    0

I am no longer having the first problem... weird.

 

And you were correct on the second one... I am missing a ton of assets, I have bunch of work to do I guess...

 

Thank you so much for your help!

Share this post


Link to post
Share on other sites
Dwim    0

Dang, I fixed the missing asset problem, I think (I added the swap animation and the inventory image.) Yet now when I enable the mod, the game just closes. So I checked my log so I could fix the problem, yet it doesn't show a problem in the log, the log just ends abruptly. What sort of problem causes this? The log tells me nothing.

I will attach the log so you can look at it if you are interested (in pastebin, as it seems that that is what you prefer, downloading it is definitely  annoying.)

 

http://pastebin.com/Gq38CGsW

Share this post


Link to post
Share on other sites
Blueberrys    172

@Dwim Yeah, it was probably an error from a previous attempt at using the mod during the same game instance. The log resets only when you restart the game completely (close and open it).

 

Hmm. Interesting. Never seen that before. Disable all other mods and try running it again? Wait a few seconds after it crashes before opening the log.

 

Thanks for using pastebin btw, I appreciate the accommodation.

Share this post


Link to post
Share on other sites
Dwim    0

Still isn't working. It probably is due to my most probably horribly incorrect coding for my item (I just copied the code for the blow dart, deleted all the stuff about fire and sleeping, and added some of my own code.) Can broken .luas cause silent crashes? My .lua is definitely full of problems.

Share this post


Link to post
Share on other sites
Blueberrys    172

@Dwim Post the log again, please.

 

Edit: And yes, it can cause silent crashes. That's happened to me loads of times. I meant that the log being cut off is something that shouldn't happen.

Share this post


Link to post
Share on other sites
Blueberrys    172

@Dwim Hmm. Would you happen to have rog compatibility set to false in your modinfo?

 

Please follow these steps for further debugging.

 

Remove all mods from your mods folder (you can keep them in another folder temporarily), leave only your mod in there.

 

Ensure the game is completely closed.

 

Add this line to the bottom of your modmain:

print("Mod execution complete")

Run the game and test the mod.

 

Then post your log again.

Share this post


Link to post
Share on other sites
Dwim    0

I tried what you suggested, yet I cannot seem to get rid of the mods. I delete the folders, yet as soon as I start up the game, they come back... I feel violated haha.

 

Edit: Unsubscribed and deleted each one... what a drag. Tried starting it up again after doing what you suggested, still did not work, same problem. This is very frustrating, as it isn't showing any problem in the logs, it still just cuts off.

 

Share this post


Link to post
Share on other sites

@DarkFenikkusu Wait.. you really named your character prefab "chr"? Short for "Chris", I presume? In that case, do you have a file called "chr.lua" in "..\YourMod\scripts\prefabs\"?

 

That is right. The idea for "chr", short for "Chris", came up at the Tutorial I used to create this mod.

 

Share this post


Link to post
Share on other sites
Blueberrys    172

@Dwim Wow, haha. Well, I'm sorry, but I really don't know what's causing it. Is the log less cluttered now without the mods? I can try looking through it again if you post it.

 

 

@DarkFenikkusu Then, do you have "chr.lua" in your mod?

Share this post


Link to post
Share on other sites