rozwlek Posted November 25, 2024 Share Posted November 25, 2024 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? Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/ Share on other sites More sharing options...
summerscorcher Posted November 26, 2024 Share Posted November 26, 2024 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. Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/#findComment-1761720 Share on other sites More sharing options...
rozwlek Posted November 26, 2024 Author Share Posted November 26, 2024 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. Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/#findComment-1761908 Share on other sites More sharing options...
Chesed Posted November 26, 2024 Share Posted November 26, 2024 I recommend you pack your mod into a zipped folder and send it here as an attachment so someone can look at it for you. Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/#findComment-1761981 Share on other sites More sharing options...
rozwlek Posted November 26, 2024 Author Share Posted November 26, 2024 Here is the mod I made. If someone could find the issue, I would be very grateful, thank you. slugcat_mod_v2.zip Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/#findComment-1762249 Share on other sites More sharing options...
NPCMaxwell Posted November 26, 2024 Share Posted November 26, 2024 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) Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/#findComment-1762320 Share on other sites More sharing options...
Chesed Posted November 26, 2024 Share Posted November 26, 2024 (edited) 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. 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 November 26, 2024 by Chesed Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/#findComment-1762340 Share on other sites More sharing options...
rozwlek Posted November 26, 2024 Author Share Posted November 26, 2024 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. 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. 1 Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/#findComment-1762436 Share on other sites More sharing options...
rozwlek Posted November 26, 2024 Author Share Posted November 26, 2024 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. Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/#findComment-1762465 Share on other sites More sharing options...
Chesed Posted November 26, 2024 Share Posted November 26, 2024 (edited) 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 November 26, 2024 by Chesed Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/#findComment-1762488 Share on other sites More sharing options...
rozwlek Posted November 26, 2024 Author Share Posted November 26, 2024 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. Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/#findComment-1762500 Share on other sites More sharing options...
NPCMaxwell Posted November 26, 2024 Share Posted November 26, 2024 The Wilson = generic is a good point too, I completely forgot about that detail that characters always fall back to wilson and that mod characters usually use the generic lines (basically they are all dressed up wilsons) ^^' Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/#findComment-1762503 Share on other sites More sharing options...
rozwlek Posted November 28, 2024 Author Share Posted November 28, 2024 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. 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. it's supposed to look like this 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? Link to comment https://forums.kleientertainment.com/forums/topic/161215-cant-enable-my-mod/#findComment-1763386 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