Jump to content

Recommended Posts

Hello, so I have made a character mod with no special coding yet. However, Upon loading into a world with the mod enabled the game will give me a crash. Also if the mod was enabled on world creation, it will be stuck at "Server is generating the world". Not sure whats wrong with the code here lol. I think its one of the LUA files according to the crash. 

20201212230815_1.jpg

client_log.txt

Edited by Acs

Well, according to the crash log, a local function called CalculateLight is using a 'dynrange' variable, which is for some reason a 'nil' value. Since this function is trying to return 'p * dynrange + 1 - dynrange' which is a arithmetic equation, it crashed the game because equations can't have 'nil' values in them.
 

You're saying the only thing your mod adds is a character with no special coding so the only possible problem could be with bad coding in one of the .lua files as you mentioned. Did you use a character template? If yes, then make sure you implemented it correctly, and if no, then use it. It will help a lot.

 

  • Like 1

I am in fact using that same template lol, so Im not really sure what went wrong in the process, I honestly think that we should make a new template that is a bit neater and has stuff for the new updates. Thank you though for replying.

Edited by Acs

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