Jump to content

Recommended Posts

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

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.

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

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.

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

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 by Baguettes
  • Like 1

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 by Chesed
  • Like 2

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