Tomb Raider Forums  

Go Back   Tomb Raider Forums > Tomb Raider Level Editor and Modding > Tomb Raider Level Editor > Tomb Engine

Reply
 
Thread Tools
Old 07-08-22, 23:08   #111
turneraider
Explorer
 
turneraider's Avatar
 
Join Date: Aug 2013
Posts: 706
Default

Hello! Trying out LUA and everything, starting with creating a new level.

I followed adngel's tutorial on how to create one, but i keep getting this error:

Code:
[error] Error while loading level: An attempt was made to use level debug feature on a different system.
Thanks in advance, and I'm super excited to check all this stuff out!
__________________
I don't know, I just work here.
turneraider is offline   Reply With Quote
Old 07-08-22, 23:15   #112
Lwmte
Archaeologist
 
Lwmte's Avatar
 
Join Date: Aug 2010
Posts: 1,799
Default

You have wrong path specified for your level. You should see other error message, but this one is unrelated and will be removed in next release. Make sure you specify correct level name in script.
Lwmte is offline   Reply With Quote
Old 07-08-22, 23:31   #113
turneraider
Explorer
 
turneraider's Avatar
 
Join Date: Aug 2013
Posts: 706
Default

That was the only error message displayed..

I have the correct paths put.. I'm not sure why it's not loading
__________________
I don't know, I just work here.

Last edited by turneraider; 07-08-22 at 23:38.
turneraider is offline   Reply With Quote
Old 07-08-22, 23:40   #114
adngel
Historian
 
adngel's Avatar
 
Join Date: Jan 2004
Location: Surrey
Posts: 313
Default

Is failing to load in the "Build level & play (F5)" button?
Does it work if you open the game with TombIDE and go to your level from the title menu?
__________________
Living and Left :)
adngel is offline   Reply With Quote
Old 07-08-22, 23:41   #115
Lwmte
Archaeologist
 
Lwmte's Avatar
 
Join Date: Aug 2010
Posts: 1,799
Default

Quote:
I have the correct paths put..
Also make sure there's no non-english letters in path.
Lwmte is offline   Reply With Quote
Old 07-08-22, 23:46   #116
turneraider
Explorer
 
turneraider's Avatar
 
Join Date: Aug 2013
Posts: 706
Default

The level appears with the correct name, but it just takes me back to the title..

EDIT: Not sure how, but it's working fine now.. Maybe it just needed to be reopened?
__________________
I don't know, I just work here.

Last edited by turneraider; 08-08-22 at 01:37.
turneraider is offline   Reply With Quote
Old 07-08-22, 23:54   #117
adngel
Historian
 
adngel's Avatar
 
Join Date: Jan 2004
Location: Surrey
Posts: 313
Default

I found a way to get that error.

Maybe the problem is not in the script, but in the project, looks like it's compulsory required to add the new lua file in the project settings.

You can find in Tomb Editor, open Tools -> Level Settings -> Misc

You will find a space to put the level Lua file, put yours and try recompile again.

I'm testing that if that box is lacking of document, I'm getting that error in the log.


EDIT:

Nope, false alarm, I get that error when I try to load from Tomb Editor, but not when I open from Tomb IDE.

Independently of the content of Lua File in the Level settings.
__________________
Living and Left :)

Last edited by adngel; 08-08-22 at 00:04.
adngel is offline   Reply With Quote
Old 08-08-22, 02:03   #118
Richard_trle
Explorer
 
Richard_trle's Avatar
 
Join Date: Aug 2003
Location: Brazil
Posts: 920
Default

I'm trying to activate a rollingball, but I am getting an error in the logs

Code:
LevelFuncs.EnableCamera = function(Triggerer)
    local cameraActivator = TEN.Objects.GetMoveableByName("rollingball_3")
    cameraActivator.EnableItem()
end
Code:
[2022-Aug-07 23:01:19] [error] Could not execute function EnableCamera: attempt to call a nil value
stack traceback:
What may I possibly be doing wrong?
Richard_trle is offline   Reply With Quote
Old 08-08-22, 06:43   #119
Lwmte
Archaeologist
 
Lwmte's Avatar
 
Join Date: Aug 2010
Posts: 1,799
Default

Have you defined level script file in gameflow.lua?
Lwmte is offline   Reply With Quote
Old 08-08-22, 12:48   #120
Richard_trle
Explorer
 
Richard_trle's Avatar
 
Join Date: Aug 2003
Location: Brazil
Posts: 920
Default

Flow.AddLevel(test)

yes, level is defined and added to the game Flow

Last edited by Richard_trle; 08-08-22 at 12:56.
Richard_trle is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 02:54.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Tomb Raider Forums is not owned or operated by CDE Entertainment Ltd.
Lara Croft and Tomb Raider are trademarks of CDE Entertainment Ltd.