Tomb Raider Forums  

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

Reply
 
Thread Tools
Old 24-09-22, 18:23   #251
Kubsy
Explorer
 
Kubsy's Avatar
 
Join Date: Nov 2019
Location: Polska
Posts: 882
Default

Quote:
Originally Posted by l.m. View Post
Thanks! I will try that.
But - where to put this Lua function?
Into that main script gameflow.lua?
In the Level.lua where I normally write those function ist does not make sense, because this should apply in general.

Can I write functions in gameflow.lua and if so, how can I ensure that the condition that Lara is hanging on an edge (and jump button is press by the player) is checked every frame?
Hi I.m.

no you don't put Lua fiuncs in gameflow.lua, only in your level file. gameflow.lua is designed to edit level attributes like name, data file, sky, horizon etc.

you should put the code in levelfuncs.OnControlPhase() in order to have code checked/done every game frame.

Check the lua tutorials if you're unsure how to do that.
__________________
Chronicles Lara: "Whatever"
Kubsy is offline   Reply With Quote
Old 24-09-22, 22:57   #252
l.m.
Historian
 
Join Date: Feb 2009
Location: Iserlohn
Posts: 405
Default

Quote:
Originally Posted by Kubsy View Post
Hi I.m.

no you don't put Lua fiuncs in gameflow.lua, only in your level file. gameflow.lua is designed to edit level attributes like name, data file, sky, horizon etc.

you should put the code in levelfuncs.OnControlPhase() in order to have code checked/done every game frame.

Check the lua tutorials if you're unsure how to do that.
Hey Kubsy, thanks.
Yes okay - but then this function is only for this level.
What about animations or other stuff in a function that should be activate for the whole game? Do I repeat this function to all my level lua scripts?
__________________
Greetings, :-) l.m. :-)
l.m. is offline   Reply With Quote
Old 24-09-22, 23:49   #253
l.m.
Historian
 
Join Date: Feb 2009
Location: Iserlohn
Posts: 405
Default

Another questions:

How can we activate cameras / fixed cameras with camera target via box volume or with lua?

What I want:
Via Lua script some moveable is activated with a box volume and will be shattered. I want to show this with a camera. But how can I do this?

And how can we activate fog bulbs? In trng there was a flipeffect to enable volumetric fog bulbs.
__________________
Greetings, :-) l.m. :-)

Last edited by l.m.; 25-09-22 at 13:45.
l.m. is offline   Reply With Quote
Old 25-09-22, 13:48   #254
Teone
Historian
 
Teone's Avatar
 
Join Date: Jul 2019
Posts: 436
Default

I'm playing Arms Race by JessG right now on Windows 10.
I installed vc_redistx86 then the game worked fine.

BUT... every time I close the game, I found a new AppCrash report in the Windows Error Reporting folder.



The exe crashes during the closing routine.
It doesn't show any message. I know it crashes only checking the report folder.

In the report I read what cause the crash is 'ucrtbase.dll'
I don't know more.

Last edited by Teone; 26-09-22 at 18:08.
Teone is offline   Reply With Quote
Old 25-09-22, 17:44   #255
Nemo20
Historian
 
Nemo20's Avatar
 
Join Date: Jan 2007
Location: Germany
Posts: 458
Default Funfact

Fun fact.

The map of a TEN level is big.
From start to finish, Lara runs about 4:51 minutes.

But running is very boring.

Last edited by Nemo20; 25-09-22 at 17:52.
Nemo20 is offline   Reply With Quote
Old 25-09-22, 19:21   #256
.snake.
Professor
 
.snake.'s Avatar
 
Join Date: Aug 2011
Location: New York
Posts: 3,913
Default

Quote:
Originally Posted by Nemo20 View Post
Fun fact.

The map of a TEN level is big.
From start to finish, Lara runs about 4:51 minutes.

But running is very boring.


Is that straight one-way from one end of the map to the other, or is it one time around the entire perimeter?
.snake. is online now   Reply With Quote
Old 25-09-22, 19:23   #257
piano_raider
Hobbyist
 
piano_raider's Avatar
 
Join Date: Oct 2018
Posts: 70
Default

We need video proof
I probably would watch it...
piano_raider is offline   Reply With Quote
Old 26-09-22, 16:10   #258
Nemo20
Historian
 
Nemo20's Avatar
 
Join Date: Jan 2007
Location: Germany
Posts: 458
Default

Quote:
Originally Posted by .snake. View Post


Is that straight one-way from one end of the map to the other, or is it one time around the entire perimeter?



Quote:
Originally Posted by piano_raider View Post
We need video proof
I probably would watch it...
It's really very boring
Nemo20 is offline   Reply With Quote
Old 26-09-22, 17:39   #259
l.m.
Historian
 
Join Date: Feb 2009
Location: Iserlohn
Posts: 405
Default

Quote:
Originally Posted by Joey79100 View Post
Stuff like this will have to be done in Lua.

In theory the approach is different, but quite easy: you just need to check if Lara is in the hanging animation, the player is pressing the Jump key, and you trigger the ledge jump animation.
However I don't think we have yet the necessary conditions to check environmental conditions like the ones in these TRNG commands you posted. You'd need to check the API documentation to check if the necessary functions are there.

Also the last one never really needed to be scripted, it can just be put as a State change in the landing animation (both in TRNG and TEN). You could definitely already script it in TEN too if you want though, since there are no environmental checks.
@Joey79100
I do not understand this: "Also the last one never really needed to be scripted, it can just be put as a State change in the landing animation (both in TRNG and TEN). "
Where can I put which state change? Can you give me an example how can reach that stumble anim without scripting?
__________________
Greetings, :-) l.m. :-)
l.m. is offline   Reply With Quote
Old 26-09-22, 18:04   #260
l.m.
Historian
 
Join Date: Feb 2009
Location: Iserlohn
Posts: 405
Default

As I can see I cant use Fog Bulbs, so I instead use distance fog.
But this will be also an issue, see the picture.



Is there any fix to this transparency / distance fog issue?
__________________
Greetings, :-) l.m. :-)
l.m. 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 22:48.


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.