![]() |
![]() |
#1 |
Student
Join Date: Jun 2007
Location: Belgium
Posts: 238
|
![]()
Hi guys,
Just converted my TRNG project I was working on to TEN. The level plays in the TEN engine with some minor things not working (triggers, heavytriggers). But for the atmosphere i wrote this in the scriptfile and still nothing of the effects is showing up in-engine. Skylayer is not working either (I copied the values from TRNG script) What am I doing wrong? I can't get any type of weather to work with aswel Here's my current script: Level_1 = Level.new() Level_1.nameKey = "Level_1" Level_1.scriptFile = "Scripts\\Level_1.lua" -- SKY & ATMOSPHERE Level_1.ambientTrack = "110" Level_1.horizon = true Level_1.storm = true Level_1.levelFile = "Data\\Scotland.ten" Level_1.loadScreenFile = "Screens\\rome.jpg" -- FLOW CODES Flow.AddLevel(Level_1) Flow.FarView = 130 Flow.Weather = rain Flow.WeatherStrength = (1.0) Flow.SkyLayer1 = 29,30,38,4 Flow.SkyLayer2 = 28,41,63,4 Flow.Fog = 27,32,46 Thanks in advance,
__________________
iT WORKS!!! Last edited by TRSMART; 05-11-22 at 17:39. |
![]() |
![]() |
![]() |
#2 | |
Historian
Join Date: Aug 2010
Location: Germany, Cologne
Posts: 420
|
![]() Quote:
First comes your level name e.g. level1 then a "." Then the syntax e.g. like this Code:
level1.horizon = true level1.layer1 = Flow.SkyLayer.new(Color.new(93, 93, 93), 15) level1.layer2 = Flow.SkyLayer.new(Color.new(0, 255, 0), -15) level1.weather = WeatherType.Rain level1.weatherStrength = 1.0 level1.storm = true level1.fog = Flow.Fog.new(Color.new(255, 0, 0), 1, 20) Flow.AddLevel (level1)
__________________
TE - the place to unleash your creativity. |
|
![]() |
![]() |
![]() |
#3 |
Student
Join Date: Jun 2007
Location: Belgium
Posts: 238
|
![]()
AWESOME!!
This is working now, thanks a lot man!! ![]() ![]() Another problem is this, how can I fix these nasty looking things on the objects and especially the trees? ![]()
__________________
iT WORKS!!! |
![]() |
![]() |
![]() |
#4 |
Historian
Join Date: Aug 2010
Location: Germany, Cologne
Posts: 420
|
![]()
This is the famous "Transparency Bug" with Distance Fog and objects with transparency in the distance. It is fixed in the next version to come.
__________________
TE - the place to unleash your creativity. |
![]() |
![]() |
![]() |
#5 |
Student
Join Date: Jun 2007
Location: Belgium
Posts: 238
|
![]()
Ooh yes!! Haha yeah I know TRNG had the same problem a long time ago!!
Great news! & thanks so much for your help! We need more tutorials on the implentation of the scripting part I think! ![]()
__________________
iT WORKS!!! |
![]() |
![]() |
![]() |
#6 | |
Historian
Join Date: Aug 2010
Location: Germany, Cologne
Posts: 420
|
![]() Quote:
But I guess you can translate the tutorials with the help of an online translator. https://www.trlevel.de/lexicon/index...mb-engine-ten/
__________________
TE - the place to unleash your creativity. |
|
![]() |
![]() |
![]() |
#7 |
Explorer
Join Date: Nov 2019
Location: Polska
Posts: 727
|
![]()
Yes I can do more Lua scripting tutorial. Don't forget you also have my tutorial about lua basics found here: https://github.com/Stranger1992/Tomb...a-Basics-Guide
__________________
Chronicles Lara: "Whatever" |
![]() |
![]() |
![]() |
#8 |
Student
Join Date: Jun 2007
Location: Belgium
Posts: 238
|
![]()
Thanks a lot for the information guys!
I now only need information on how to create triggers with timers and how to send commands to objects (with or without delays) to re-create my TRNG scripted cutscenes in TEN ![]()
__________________
iT WORKS!!! |
![]() |
![]() |
![]() |
#9 | |
Historian
Join Date: Aug 2010
Location: Germany, Cologne
Posts: 420
|
![]() Quote:
https://www.trlevel.de/lexicon/index...tsequence-lua/
__________________
TE - the place to unleash your creativity. |
|
![]() |
![]() |
![]() |
#10 |
Student
Join Date: Jun 2007
Location: Belgium
Posts: 238
|
![]()
Ok yes thanks man!!
I have to use translation yes and this will probably take me a while to get right but that’s the fun part of it aswel. My only question is: “is TEN already stable enough to have all functions working like TRNG has its stability” Because I’m carefully thinking of porting all my projects in progress from TRNG to TEN.
__________________
iT WORKS!!! |
![]() |
![]() |
![]() |
Thread Tools | |
|
|