victhepotato241 Posted September 21, 2024 Share Posted September 21, 2024 I've been working on a custom character (using DWolf Leo's template). Everything seems to going well until I uploaded the mod to my steam workshop, downloaded and run it on a different computer, then it crashed the game. When a friend of mine tried it she got the "Dedicated server failed to start" message instead. I have tried to look at the master server log but can't seem to figure out what went wrong... My mod is the "Quinn Livia" one. Any help would be appreciated, I am so desperate at the moment. master_server_log.txt Link to comment https://forums.kleientertainment.com/forums/topic/159869-need-help-to-why-my-custom-character-mod-crashes-the-game-when-run/ Share on other sites More sharing options...
Chesed Posted September 21, 2024 Share Posted September 21, 2024 The only thing I can see is this: Quote [00:00:02]: [string "../mods/workshop-3279381488/modmain.lua"]:73: attempt to index global 'inst' (a nil value) If that workshop number points to your mod then something on this line of your modmain is not functioning properly. Unfortunately as I don't have access to your mod files to actually look at the code, I can't tell you what specificically is the problem. Link to comment https://forums.kleientertainment.com/forums/topic/159869-need-help-to-why-my-custom-character-mod-crashes-the-game-when-run/#findComment-1749845 Share on other sites More sharing options...
victhepotato241 Posted September 21, 2024 Author Share Posted September 21, 2024 5 hours ago, Chesed said: The only thing I can see is this: If that workshop number points to your mod then something on this line of your modmain is not functioning properly. Unfortunately as I don't have access to your mod files to actually look at the code, I can't tell you what specificically is the problem. I'm not sure if it is possible to send the entire folder? So I chose the ones I suspect might be the cause (as the others are mostly unchanged) Do tell me if you need the entire thing though, I'll send a follow up quinn_none.lua quinn.lua modinfo.lua speech_quinn.lua Link to comment https://forums.kleientertainment.com/forums/topic/159869-need-help-to-why-my-custom-character-mod-crashes-the-game-when-run/#findComment-1749898 Share on other sites More sharing options...
Chesed Posted September 21, 2024 Share Posted September 21, 2024 It looks like the crash is specifically happening because of your your modmain.lua file, so I'd guess that's the one causing the problem. It would be easiest for me to look if you send your entire mod so I can try running a world with it, which you can do by zipping the folder and attaching it to a post here. If you can't do that, you can send your modmain.lua file, and I or someone else might be able to see what's wrong from that alone. Link to comment https://forums.kleientertainment.com/forums/topic/159869-need-help-to-why-my-custom-character-mod-crashes-the-game-when-run/#findComment-1749942 Share on other sites More sharing options...
victhepotato241 Posted September 22, 2024 Author Share Posted September 22, 2024 10 hours ago, Chesed said: It looks like the crash is specifically happening because of your your modmain.lua file, so I'd guess that's the one causing the problem. It would be easiest for me to look if you send your entire mod so I can try running a world with it, which you can do by zipping the folder and attaching it to a post here. If you can't do that, you can send your modmain.lua file, and I or someone else might be able to see what's wrong from that alone. I can't seem to zip the files T-T but aside from the modmain there should be nothing else with edited code (aside from the .tex and .xml files). There's one odd line of code at the bottom that was intended to set my character's favorite food to the froggie bunwich; I suspect it might be the cause but even then have no idea how to fix... modmain.lua Link to comment https://forums.kleientertainment.com/forums/topic/159869-need-help-to-why-my-custom-character-mod-crashes-the-game-when-run/#findComment-1750009 Share on other sites More sharing options...
Baguettes Posted September 22, 2024 Share Posted September 22, 2024 (edited) Oh, I see the issue. You're trying to pass inst inside modmain; you cannot do that unless the code knows what inst is. You'd better off put that food affinity line in your character's master_postinit function; if you wish to let the game know what inst is in your modmain, you need a function that'll actually refer to inst as such. Edit: This is the line I'm talking about that you should move from modmain: Edit 2: it's also components, not component; Lua is case sensitive and will crash if even one letter is wrong. inst.component.foodaffinity:AddPrefabAffinity("froggie_bunwich", 1.93) Edited September 22, 2024 by Baguettes 1 Link to comment https://forums.kleientertainment.com/forums/topic/159869-need-help-to-why-my-custom-character-mod-crashes-the-game-when-run/#findComment-1750096 Share on other sites More sharing options...
Chesed Posted September 22, 2024 Share Posted September 22, 2024 (edited) The above poster is correct. As a sidenote, the froggle bunwich is called the "frogglebunwich" as a prefab, and your affinity won't apply if you don't change it! I hope all that fixes your crash! Edited September 22, 2024 by Chesed 2 Link to comment https://forums.kleientertainment.com/forums/topic/159869-need-help-to-why-my-custom-character-mod-crashes-the-game-when-run/#findComment-1750097 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