Jump to content

Need help with Character scripting


Recommended Posts

Hey guys, hope you can help me.
I'm trying to make my own character but it doesn't work.
The game gives me a "Warning", so something can't be correct.
Please don't delete this post, if I'm posting it into the wrong forum.
Here is the error-text :

[string *scripts/mainfunctions.lua*]:119: Error loading file prefabs/Ren
[string *../mods/Ren/scripts/prefabs/Ren.lia*]:62: function arguments expected near "="
LUA ERROR strack traceback:
=[C] in function 'assert'
scripts/mainfunctions.lua(119.1)
=(tail call) ?
scripts/mods.lua(154.1)
scripts/mods.lua(593.1) in function 'RegisterPrefabs'
scripts/gamelogic.lua(226.1) in function 'LoadAssets'

Link to comment
Share on other sites

*nods*

The error means the Lua interpreter thinks you are trying to call a function, but you didn't do it properly. However, it usually means you wrote something like this

inst:thing = a

when you meant this

inst.thing = a

Withouth seeing your code it's impossible to tell what the error message exactly refers to. You should find the source of the error in the line 62 of your Ren.lua (lia?) or the previous line of code. In the future you'll want to post directly in the DST Modding section.

And welcome to the forums!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...