Jump to content

Problem with Editor


Chiblue
 Share

Recommended Posts

When using editor, I start building a scene and everything is working really well, then at a point in the middle, I go to game mode to test my scene and the return to edit mode and I get errors about "Failed to open file"... when I look at the log I see that I am errors on the lua scripts. The scripts in the log are ones that have been in the scene without any problems. These are very simple scripts... and the message is "CreateClass (a nil value)"

 

require("Scripts/constants/properties")

local class=CreateClass(...)

function class:InitDialog(grid)
self.super:InitDialog(grid)
end

 

Why is this happending? the scripts are all the same, I am using the default Class script for most of my objects and as I stated this seems to work well for a while...

 

If I go back to a previous save before the error everything is fine... I does not seem to be when I add anything particalur...

If it's not Tactical realism then you are just playing..

Link to comment
Share on other sites

When using editor, I start building a scene and everything is working really well, then at a point in the middle, I go to game mode to test my scene and the return to edit mode and I get errors about "Failed to open file"... when I look at the log I see that I am errors on the lua scripts. The scripts in the log are ones that have been in the scene without any problems. These are very simple scripts... and the message is "CreateClass (a nil value)"

 

require("Scripts/constants/properties")

local class=CreateClass(...)

function class:InitDialog(grid)
self.super:InitDialog(grid)
end

 

Why is this happending? the scripts are all the same, I am using the default Class script for most of my objects and as I stated this seems to work well for a while...

 

If I go back to a previous save before the error everything is fine... I does not seem to be when I add anything particalur...

 

where did you get that code for just using the default class script? this is the code you should use:

require("scripts/class")
local class=CreateClass(...)

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...