![]() |
![]() |
#111 |
Explorer
Join Date: Aug 2013
Posts: 706
|
![]()
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. ![]()
__________________
I don't know, I just work here. |
![]() |
![]() |
![]() |
#112 |
Archaeologist
Join Date: Aug 2010
Posts: 1,799
|
![]()
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.
|
![]() |
![]() |
![]() |
#113 |
Explorer
Join Date: Aug 2013
Posts: 706
|
![]()
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. |
![]() |
![]() |
![]() |
#114 |
Historian
Join Date: Jan 2004
Location: Surrey
Posts: 313
|
![]()
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 :) |
![]() |
![]() |
![]() |
#115 | |
Archaeologist
Join Date: Aug 2010
Posts: 1,799
|
![]() Quote:
|
|
![]() |
![]() |
![]() |
#116 |
Explorer
Join Date: Aug 2013
Posts: 706
|
![]()
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. |
![]() |
![]() |
![]() |
#117 |
Historian
Join Date: Jan 2004
Location: Surrey
Posts: 313
|
![]()
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. |
![]() |
![]() |
![]() |
#118 |
Explorer
Join Date: Aug 2003
Location: Brazil
Posts: 920
|
![]()
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: |
![]() |
![]() |
![]() |
#119 |
Archaeologist
Join Date: Aug 2010
Posts: 1,799
|
![]()
Have you defined level script file in gameflow.lua?
|
![]() |
![]() |
![]() |
#120 |
Explorer
Join Date: Aug 2003
Location: Brazil
Posts: 920
|
![]()
Flow.AddLevel(test)
yes, level is defined and added to the game Flow Last edited by Richard_trle; 08-08-22 at 12:56. |
![]() |
![]() |
![]() |
Thread Tools | |
|
|