Tomb Raider Forums  

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

Reply
 
Thread Tools
Old 26-02-23, 19:14   #391
Ado Croft
Historian
 
Join Date: Apr 2013
Posts: 343
Default

Thanks for the new update i'm realy happy how this engine is getting better and better

I would like to ask, how can I set Sophia to work? Because when I put Sophia object to my level and put AI Ambush under her and trigger her, she is still forzen...

Last edited by Ado Croft; 26-02-23 at 19:17.
Ado Croft is offline   Reply With Quote
Old 26-02-23, 19:30   #392
Kubsy
Explorer
 
Kubsy's Avatar
 
Join Date: Nov 2019
Location: Polska
Posts: 882
Default

Hi

for sophia to work, you put AI_X1 not AI_AMBUSH. You then give AI_X1 ocbs like 0,1,2...n where n is the any number followed by another (3,4,5 - depends how many AI_X1'S you put)

and make sure to put ocb 1 to sophia
__________________
Chronicles Lara: "Whatever"

Last edited by Kubsy; 26-02-23 at 19:33.
Kubsy is offline   Reply With Quote
Old 27-02-23, 18:14   #393
Ado Croft
Historian
 
Join Date: Apr 2013
Posts: 343
Default

Quote:
Originally Posted by Kubsy View Post
Hi

for sophia to work, you put AI_X1 not AI_AMBUSH. You then give AI_X1 ocbs like 0,1,2...n where n is the any number followed by another (3,4,5 - depends how many AI_X1'S you put)

and make sure to put ocb 1 to sophia
It works now, thank you
Ado Croft is offline   Reply With Quote
Old 01-03-23, 02:46   #394
vasatomb
Historian
 
Join Date: Dec 2018
Location: Russia
Posts: 442
Default

how to make statistics on the completion of the level displayed? how to do it in trng I know, but how in ten?
vasatomb is offline   Reply With Quote
Old 27-03-23, 21:37   #395
DVDSpike
Professor
 
DVDSpike's Avatar
 
Join Date: Dec 2013
Location: Venus
Posts: 4,333
Default

Every time I launch tomb engine, it immediately crashes. What do I do?
__________________
Celebrate your talent, your creativity.
DVDSpike is offline   Reply With Quote
Old 04-04-23, 02:25   #396
tiskmod
Hobbyist
 
Join Date: Nov 2020
Posts: 20
Cool Tomb Engine First live stream video and incredible and amazing level

https://www.youtube.com/live/fxCoWtf...ature*******:D
tiskmod is offline   Reply With Quote
Old 04-04-23, 09:21   #397
Die Basis
Historian
 
Die Basis's Avatar
 
Join Date: Aug 2010
Location: Germany, Cologne
Posts: 444
Default

Quote:
Originally Posted by DVDSpike View Post
Every time I launch tomb engine, it immediately crashes. What do I do?
There could be countless reasons for it.

Sometimes, it helps to look in Engine Folder. There you find a subfolder called "Logs". There you find a TENLog.txt.

Look there for any notifications about possible crashes.
__________________
TE - the place to unleash your creativity.
Die Basis is offline   Reply With Quote
Old 22-04-23, 02:17   #398
Alisa97
Student
 
Alisa97's Avatar
 
Join Date: Jan 2014
Location: Japan
Posts: 242
Default export node scene to written Lua

First of all, I would like to thank everyone involved in the development of this great tool!
I would also like to thank everyone who has written tutorials!
Recently, I have been touching with TEN and Lua little by little.
Yesterday, I successfully launched my level.
But today, I tried to export node scene to written Lua, I failed to launch my level.
Loadbar goes to the right and the title scene comes back.

Here is my cave.lua

LevelFuncs.OnLoad = function() end
LevelFuncs.OnSave = function() end
LevelFuncs.OnStart = function() end
LevelFuncs.ExportedNodeFunction = function(activator)
 LevelFuncs.Engine.Node.AddInventoryItem(TEN.Objec ts.ObjID.HARPOON_ITEM, 0)
end
LevelFuncs.OnControlPhase = function() end
LevelFuncs.OnEnd = function() end
end

And Gameflow.lua

-- First test level

cave = Level.new()

cave.nameKey = "cave"
cave.scriptFile = "Scripts\\cave.lua"
cave.ambientTrack = "107"
cave.levelFile = "Data\\cave.ten"
cave.loadScreenFile = "Screens\\rome.jpg"



InventoryItem.new(
"tut1_hand_sirius",
ObjID.PUZZLE_ITEM8,
0,
0.5,
Rotation.new(270, 180, 0),
RotationAxis.X,
-1,
ItemAction.USE
)
}

Flow.AddLevel(cave)


I don't know where I made a mistake.
And I have a question.
Since I exported node scene to lua, I don't need volume trigger in the map, right?

Any suggestion would be appreciated.

Edit
Found it!
I delete "end" from "LevelFuncs.OnStart = function() end"

LevelFuncs.OnLoad = function() end
LevelFuncs.OnSave = function() end
LevelFuncs.OnStart = function()
LevelFuncs.ExportedNodeFunction = function(activator)
LevelFuncs.Engine.Node.AddInventoryItem(TEN.Object s.ObjID.HARPOON_ITEM, 0)
end
LevelFuncs.OnControlPhase = function() end
LevelFuncs.OnEnd = function() end
end

Then my level starts!
But lara does not have harpoon gun from the start.
She will get it where I placed volume trigger.

Last edited by Alisa97; 22-04-23 at 05:46.
Alisa97 is offline   Reply With Quote
Old 22-04-23, 09:01   #399
Kubsy
Explorer
 
Kubsy's Avatar
 
Join Date: Nov 2019
Location: Polska
Posts: 882
Default

Quote:
Originally Posted by Alisa97 View Post
First of all, I would like to thank everyone involved in the development of this great tool!
I would also like to thank everyone who has written tutorials!
Recently, I have been touching with TEN and Lua little by little.
Yesterday, I successfully launched my level.
But today, I tried to export node scene to written Lua, I failed to launch my level.
Loadbar goes to the right and the title scene comes back.

Here is my cave.lua

LevelFuncs.OnLoad = function() end
LevelFuncs.OnSave = function() end
LevelFuncs.OnStart = function() end
LevelFuncs.ExportedNodeFunction = function(activator)
 LevelFuncs.Engine.Node.AddInventoryItem(TEN.Objec ts.ObjID.HARPOON_ITEM, 0)
end
LevelFuncs.OnControlPhase = function() end
LevelFuncs.OnEnd = function() end
end

And Gameflow.lua

-- First test level

cave = Level.new()

cave.nameKey = "cave"
cave.scriptFile = "Scripts\\cave.lua"
cave.ambientTrack = "107"
cave.levelFile = "Data\\cave.ten"
cave.loadScreenFile = "Screens\\rome.jpg"



InventoryItem.new(
"tut1_hand_sirius",
ObjID.PUZZLE_ITEM8,
0,
0.5,
Rotation.new(270, 180, 0),
RotationAxis.X,
-1,
ItemAction.USE
)
}

Flow.AddLevel(cave)


I don't know where I made a mistake.
And I have a question.
Since I exported node scene to lua, I don't need volume trigger in the map, right?

Any suggestion would be appreciated.

Edit
Found it!
I delete "end" from "LevelFuncs.OnStart = function() end"

LevelFuncs.OnLoad = function() end
LevelFuncs.OnSave = function() end
LevelFuncs.OnStart = function()
Leve LevelFuncs.ExportedNodeFunction = function(activator) lFuncs.ExportedNodeFunction = function(activator)
LevelFuncs.Engine.Node.AddInventoryItem(TEN.Object s.ObjID.HARPOON_ITEM, 0)
end
LevelFuncs.OnControlPhase = function() end
LevelFuncs.OnEnd = function() end
end

Then my level starts!
But lara does not have harpoon gun from the start.
She will get it where I placed volume trigger.
LevelFuncs.ExportedNodeFunction = function(activator) Remove that and try again
__________________
Chronicles Lara: "Whatever"

Last edited by Kubsy; 22-04-23 at 09:08.
Kubsy is offline   Reply With Quote
Old 22-04-23, 09:47   #400
Alisa97
Student
 
Alisa97's Avatar
 
Join Date: Jan 2014
Location: Japan
Posts: 242
Default

Quote:
Originally Posted by Kubsy View Post
LevelFuncs.ExportedNodeFunction = function(activator) Remove that and try again
No. My level won't start when I choose New Game.
It goes back to title screen as before.
TENLog.txt gave me this error.

[error] A Lua error occurred while running a level; DoFlow: Scripts\cave.lua:10: <eof> expected near 'end'

Last edited by Alisa97; 22-04-23 at 09:56.
Alisa97 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 05:07.


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.