Product Chat / latest Public Update...............SetSuraceIntensity...........doesn't SEEM to respond like SetFogIntensity and SetAmbientIntensity

Author
Message
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 10th May 2017 19:04 Edited at: 10th May 2017 19:13
Hi Lee ,
I have the latest Public Preview and was attempting to try the SetSuraceIntensity lua command now
that it's supposed to be in this release. Using the same basic lua file structure as the other 2 I put together.
The difference is.....with the first 2...using a number base between 1 and 255 gives a great many levels of results...
BUT...with SetSuraceIntensity...using anything beyond a number base of around 1 to 4 gives extreme changes.
I've enclosed a video of the SetSuraceIntensity lua codes in action using levels at 1 and 100 and back to 1......
also I'll attach the lua code I set up.
Always look forward to your help and sure appreciate being set on a good path when I screw things up.

Thx.

Let\'s actually make something happen with this one !

Attachments

Login to view attachments
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 10th May 2017 19:42
The raw surface intensity value is created from this formula: Surface Intensity = Slider Value / 33.0 (range from 0.0 to 3.3)
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 10th May 2017 19:46 Edited at: 10th May 2017 20:11
LEE ,
thx.....very fast answer,,,,,,,,,,,,,,,


UNIRD12B
Let\'s actually make something happen with this one !
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 10th May 2017 20:09 Edited at: 10th May 2017 20:11
ok...
AND...I THINK I actually understood it and will try to adjust the code to take that in to consideration.


thx again,,,,,,great work.

UNIRD12B
Let\'s actually make something happen with this one !
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 10th May 2017 21:01
Ok Lee ,
got it , thx to your explanation I rewrote the .lua script
with a ton of explanations and instructions built in so that even others like me will get it..( I hope !)
heres the added in for the SetSuraceIntensity.lua and the latest updated file.

"-- in order to use this code ,save this file with the name lightzonesurface.lua
-- just add in a triggerzone anywhere you'd like to
-- have an overall change in the SURFACE light level .
-- just add this .lua file in to the triggerzone and in Properties , in the NAME field
-- put in the number value (0.0 - 3.3) of the surface light level you'd like to have
-- at that part of the map
-- 0.0 = surface light fully off
-- 3.3 = surface light at 100%
-- to have a better understanding of the real level between 0 and 100%
-- the number you need to input in the NAME area should be the % of overall
-- surface light you would would liek to have visible at that point in your map
-- DIVIDED by 33
-- so if you'd like the light at 25%..........25 divided by 33 = .75
-- just experiment with numbers between (0.0 - 3.3) and you'll get it fast.

Thx again Lee

UNIRD12B
Let\'s actually make something happen with this one !

Attachments

Login to view attachments
UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 10th May 2017 22:49
HEY again LEE ,
the arrow keys now work again...but...did you make changes to the SetSurfaceIntensity command
as it now SEEMS to respond like the other 0.0 - 3.3 does very little affect now >/

Thx aginnnnnnnnnnn

UNIRD12B
Let\'s actually make something happen with this one !
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 10th May 2017 22:59
@UNIRD12B : I hated the advice the moment I gave it so the SetSurfaceIntensity command now accepts a value from 0 to 100, and I do the 33% craziness inside the global call
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

UNIRD12B
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 2nd May 2014
Location: Canada
Posted: 11th May 2017 01:34
Thanks again LEE ,
I was wondering if that was what you did as my original .lua file for it now works
like a charm..........

so here it is for every who wants it for free,,along with the other 2
-ambient light intensity
-Fog density level
and now
- surface light intensity

we having FUNN nowwwwww

Thx again Lee

UNIRD12B



Let\'s actually make something happen with this one !

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-24 13:01:04
Your offset time is: 2024-11-24 13:01:04