Jump to content

Recommended Posts

I made a mod and I put the files in my game's mods folder to test it out but when I opened the settings of my test world, the mod I created said "crashed" and I couldn't turn it on. I tried looking through the server log but it didn't even make mention of my mod in either master or caves. Can anyone help me find the issue?

 

Screenshot (139).png

Link to comment
https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/
Share on other sites

There should be some kind of error if it did that; make sure you look at client_log.txt for errors if you are hosting a world without caves. Master and caves logs are only used if you're hosting a dedicated server (a world with caves). Also note the client log resets each time you launch the game, enter a world, etc. so make sure you read the file before doing any of those things.

5 hours ago, summerscorcher said:

There should be some kind of error if it did that; make sure you look at client_log.txt for errors if you are hosting a world without caves. Master and caves logs are only used if you're hosting a dedicated server (a world with caves). Also note the client log resets each time you launch the game, enter a world, etc. so make sure you read the file before doing any of those things.

There's no errors in the client log either. My mod isn't even mentioned in all three of the logs. When I added it to my game and opened my test world's settings, the mod was already labeled "crashed!" and didn't allow me to enable it. 

I just found a comma missing here:

AddRecipe2(
    "critter_slugcat_builder",
    {
        Ingredient("ancientfruit_nightvision", 4),
        Ingredient("batwing", 3),
        Ingredient("rocks", 1),
        Ingredient("spear", 1),
    },
    TECH.ORPHANAGE_ONE,
    {
        nounlock=true,
        actionstr="ORPHANAGE",
        atlas = "images/inventoryimages/slugcat.xml",
        image = "slugcat.tex",
    },
     filters
)

Sadly I couldn't get your mod to work either, it says "crashed". But maybe someone else can find more issues. (maybe someone who has been working on a critter mod before. I was only looking for typos) Also not sure about the "filters" thing. I have tried to replace or remove it, but it makes no difference when it comes to "crahed". I'm sorry, I hope someone else finds the issue (slugcat sounds cute btw)

You have listed "WILSON" as a character in your strings. Wilson is not called Wilson when it comes to dialogue strings, he is called "GENERIC". The game is trying to index "WILSON" and is crashing. Delete that line from your modmain.

To add on above, your AddRecipe2 should probably look like this.

Quote

AddRecipe2(
    "critter_slugcat_builder",
    {
        Ingredient("ancientfruit_nightvision", 4),
        Ingredient("batwing", 3),
        Ingredient("rocks", 1),
        Ingredient("spear", 1),
    },
    TECH.ORPHANAGE_ONE,
    {
        nounlock=true,
        actionstr="ORPHANAGE",
        atlas = "images/inventoryimages/slugcat.xml",
        image = "slugcat.tex",
    },
    { -- filters
        "CRAFTING_STATION",
    }
)

That being said, your mod's sprites are horribly broken. I legitimately have no idea what you have done to your sprites to accomplish this, as none of your sprites are in the included folder. The game hangs and crashes or if you click ignore it just replaces your sprites with black boxes.

image.png.117fdb59fc313129087b9bd39c9af5d0.png

EDIT: you can get past this error message, but then your critter still crashes the game as soon as you make it, too! Can't help you with that I'm afraid. By the looks of the crash logs it's some issue with how you've coded your creature's diet.

Edited by Chesed
2 hours ago, NPCMaxwell said:

I just found a comma missing here:

AddRecipe2(
    "critter_slugcat_builder",
    {
        Ingredient("ancientfruit_nightvision", 4),
        Ingredient("batwing", 3),
        Ingredient("rocks", 1),
        Ingredient("spear", 1),
    },
    TECH.ORPHANAGE_ONE,
    {
        nounlock=true,
        actionstr="ORPHANAGE",
        atlas = "images/inventoryimages/slugcat.xml",
        image = "slugcat.tex",
    },
     filters
)

Sadly I couldn't get your mod to work either, it says "crashed". But maybe someone else can find more issues. (maybe someone who has been working on a critter mod before. I was only looking for typos) Also not sure about the "filters" thing. I have tried to replace or remove it, but it makes no difference when it comes to "crahed". I'm sorry, I hope someone else finds the issue (slugcat sounds cute btw)

 

1 hour ago, Chesed said:

You have listed "WILSON" as a character in your strings. Wilson is not called Wilson when it comes to dialogue strings, he is called "GENERIC". The game is trying to index "WILSON" and is crashing. Delete that line from your modmain.

To add on above, your AddRecipe2 should probably look like this.

That being said, your mod's sprites are horribly broken. I legitimately have no idea what you have done to your sprites to accomplish this, as none of your sprites are in the included folder. The game hangs and crashes or if you click ignore it just replaces your sprites with black boxes.

image.png.117fdb59fc313129087b9bd39c9af5d0.png

EDIT: you can get past this error message, but then your critter still crashes the game as soon as you make it, too! Can't help you with that I'm afraid. By the looks of the crash logs it's some issue with how you've coded your creature's diet.

Thank you both so much, this was a tremendous help. I don't know how to code and this was all basically copy pasted from another mod, and I have no clue how to fix the problem with the sprites, but I'll do what I can. Thank you again, I might ask for help again in the near future.

  • Health 1
44 minutes ago, rozwlek said:

I'm afraid that even after making the changes to the recipe and dialogue, I still can't even enable the mod for my world. I might be at a loss here.

Oh my god, sorry, there was one more thing that I forgot about!

I noticed your modinfo.lua does not have an author listed. It's supposed to be with the name/version/description at the top.

I added the line:

Quote

author = "test"

...and your mod works for me. It seems to display the "Crashed!" sign without this line. Sorry, I didn't realise it would be so important.

Edited by Chesed
13 minutes ago, Chesed said:

Oh my god, sorry, there was one more thing that I forgot about!

I noticed your modinfo.lua does not have an author listed.

I added the line:

...and your mod works for me. It seems to display the "Crashed!" sign without this line. Sorry, I didn't realise it would be so important.

Ah, I see. I just left that blank because I didn't think it would matter that much. Now I can actually find the problems directly, thanks again.

On 11/26/2024 at 11:45 AM, Chesed said:

You have listed "WILSON" as a character in your strings. Wilson is not called Wilson when it comes to dialogue strings, he is called "GENERIC". The game is trying to index "WILSON" and is crashing. Delete that line from your modmain.

To add on above, your AddRecipe2 should probably look like this.

That being said, your mod's sprites are horribly broken. I legitimately have no idea what you have done to your sprites to accomplish this, as none of your sprites are in the included folder. The game hangs and crashes or if you click ignore it just replaces your sprites with black boxes.

image.png.117fdb59fc313129087b9bd39c9af5d0.png

EDIT: you can get past this error message, but then your critter still crashes the game as soon as you make it, too! Can't help you with that I'm afraid. By the looks of the crash logs it's some issue with how you've coded your creature's diet.

Oh my god what happened?? I extracted the animations using ktools from my anim folder and it looked like this. How does this happen? It's even missing some animations for some reason. All the assets are blobbed up into one area. Screenshot(140).png.825a3e39bc147c461c72d4b2025c459d.png

it's supposed to look like this

Screenshot(141).png.d254b1bfc8c97e53f05d9b2ff4dacdb9.png

Seriously how did this even happen? I followed the reskinning creatures tutorial video to convert my scml into anim build and atlas. Is that video outdated or did I do something wrong?

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