Terrax Lighting system

suoma

Villager
Member
Joined
Apr 22, 2017
Messages
18
Reaction score
5
First Language
chinese
Primarily Uses
RMMV
The problem is solved, there is a conflict between the screen and the plug-in, with the "tint set #" instead of the screen will not be a problem, a very good plug-in, thank you!
I am Chinese, English is very poor please forgive me!
 

masterlobo

Veteran
Veteran
Joined
Mar 14, 2012
Messages
194
Reaction score
154
First Language
English
Primarily Uses
RMMV
Hello,

Has anyone found a way to make this script compatible with a map zoom script (such as MBS Map Zoom)?

What currently happens is that if you zoom out, the lightning script only creates shadows and lights in the area that the camera would see without zoom out.

Trying to find out how to make it work myself, but it doesn't hurt to ask :)
 

Underserial

Veteran
Veteran
Joined
Dec 9, 2015
Messages
127
Reaction score
23
First Language
German
is there an option for ambient lighting? Can someone explain it?
 

Terrax

Veteran
Veteran
Joined
Oct 30, 2015
Messages
304
Reaction score
227
First Language
English
Hello,
Has anyone found a way to make this script compatible with a map zoom script (such as MBS Map Zoom)?
What currently happens is that if you zoom out, the lightning script only creates shadows and lights in the area that the camera would see without zoom out. Trying to find out how to make it work myself, but it doesn't hurt to ask :)
What your seeing is probably because the script 'clips' out lightsources that are off screen. I can make the clipping optional, that should
fix your issue. (i will turn the option on by default because it reduces lag on big maps).
Can you give me the download page of the plugin so i can test it?

is there an option for ambient lighting? Can someone explain it?
There are several ways.
Use plugin command : tint set #333333 for an overal less dark effect.
Or use high radius lightsources with a non visual event. Something like 'Light 400 #444444' in the notetag of an invisibible event.
 

Underserial

Veteran
Veteran
Joined
Dec 9, 2015
Messages
127
Reaction score
23
First Language
German
What your seeing is probably because the script 'clips' out lightsources that are off screen. I can make the clipping optional, that should
fix your issue. (i will turn the option on by default because it reduces lag on big maps).
Can you give me the download page of the plugin so i can test it?


There are several ways.
Use plugin command : tint set #333333 for an overal less dark effect.
Or use high radius lightsources with a non visual event. Something like 'Light 400 #444444' in the notetag of an invisibible event.
Thanks for the infos =)

But the "tint" command is not working when there is no "Light" Event on the map - do you notice that?
 

Terrax

Veteran
Veteran
Joined
Oct 30, 2015
Messages
304
Reaction score
227
First Language
English
Thanks for the infos =)

But the "tint" command is not working when there is no "Light" Event on the map - do you notice that?
Yes, thats by design. You need at least one lightsource for the map to go dark. If you do not want a lightsource at all, create
a small invisible lightsource : Light 1 #000000 in a note-tag.
 

masterlobo

Veteran
Veteran
Joined
Mar 14, 2012
Messages
194
Reaction score
154
First Language
English
Primarily Uses
RMMV
What your seeing is probably because the script 'clips' out lightsources that are off screen. I can make the clipping optional, that should
fix your issue. (i will turn the option on by default because it reduces lag on big maps).
Can you give me the download page of the plugin so i can test it?
Wow Terrax, thanks a lot!

Here's a script that deals with zooming, and it's also the one I'm using:

https://forums.rpgmakerweb.com/index.php?threads/mbs-map-zoom.48267/

Again, much appreciated :)
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
534
Reaction score
477
First Language
English
Primarily Uses
N/A
Hello,

The newest MV update 1.4.1 broke the lighting script

"Failed to execute 'createRadialGradient' on 'CanvasRenderingContext2D': float parameter 6 is non-finite"
 

Terrax

Veteran
Veteran
Joined
Oct 30, 2015
Messages
304
Reaction score
227
First Language
English
Hello,
"Failed to execute 'createRadialGradient' on 'CanvasRenderingContext2D': float parameter 6 is non-finite"
The plugin crashes on definition of a flashlight. The flashlights width is infinite. Are you sure you didn't make a mistake in
a flashlight note-tag definition somewhere.
notetag : flashlight 8 12 #888888 0 2 (the second parameter(12) is the width of the beam, maybe its missing somewhere).
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
534
Reaction score
477
First Language
English
Primarily Uses
N/A
Hello Terrax,

Thanks for the reply, you are absolutely right. I have been using an old version of your script by the way.

I still have one problem.... the lights carried by NPC characters no longer work, the one designated by a number. So in the note tag I put "Light 120 #FFFFFF 3" and I use "plugin command: Light on 3". I cannot get the lights to turn on (my regular lights work just fine, just not the numbered ones).

None of the lights using the numbers work anymore, did the syntax change?

PS I looked through the help file and tried every combination to no avail.
 
Last edited:

Terrax

Veteran
Veteran
Joined
Oct 30, 2015
Messages
304
Reaction score
227
First Language
English
Hello Terrax,
I still have one problem.... the lights carried by NPC characters no longer work, the one designated by a number. So in the note tag I put "Light 120 #FFFFFF 3" and I use "plugin command: Light on 3". I cannot get the lights to turn on (my regular lights work just fine, just not the numbered ones).
None of the lights using the numbers work anymore, did the syntax change?
No, the defintion didn't change at all. I copied your commands into a game and they work perfectly. I realy do not understand why they
no longer work in your game. All i can think of is that some other addon intercepts the plugin commands in general, try moving/disabling some other addons.
 
Last edited:

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
534
Reaction score
477
First Language
English
Primarily Uses
N/A
I use a lot of yanfly scripts. Top or Bottom, no matter where I place the script the numbered lights do not work (I also not not use Moghunters scripts at all), I just want the lights to work. I did not go through the disable/enable process.

I reverted back to my old version 1.3.1 and it works perfectly. I believe I will just stick with the old version (the only problem is when the screen shakes, there is a small visual hiccup, I am fine with that). I created my own time and day night system.

Thanks for your time.
 

Terrax

Veteran
Veteran
Joined
Oct 30, 2015
Messages
304
Reaction score
227
First Language
English
Wow Terrax, thanks a lot!
Here's a script that deals with zooming, and it's also the one I'm using:
https://forums.rpgmakerweb.com/index.php?threads/mbs-map-zoom.48267/
Again, much appreciated :)
To make the zoom work, you only have to increase the area of the screen in the plugin's settings.
Go to -> Plugin manager -> Double click the TerraxLighting plugin -> Scroll down -> Adjust ScreenSize X and ScreenSize Y
(double the value's if you want to zoom out by 100%)
 

masterlobo

Veteran
Veteran
Joined
Mar 14, 2012
Messages
194
Reaction score
154
First Language
English
Primarily Uses
RMMV
To make the zoom work, you only have to increase the area of the screen in the plugin's settings.
Go to -> Plugin manager -> Double click the TerraxLighting plugin -> Scroll down -> Adjust ScreenSize X and ScreenSize Y
(double the value's if you want to zoom out by 100%)
Yeah, that was enough to fix the issue.

Is there any downside to this approach? Such as perf hit?

It does the job though, so thanks a lot! :D
 

Terrax

Veteran
Veteran
Joined
Oct 30, 2015
Messages
304
Reaction score
227
First Language
English
Yeah, that was enough to fix the issue.

Is there any downside to this approach? Such as perf hit?

It does the job though, so thanks a lot! :D
Well, its just a little more to draw but if you don't make huge maps with lots and lots of lightsources, you probably will not notice it.
 

AestheticGamer

Veteran
Veteran
Joined
Dec 27, 2014
Messages
55
Reaction score
24
First Language
English
Primarily Uses
I thank you for all of your hard work Terrax, this plug-in has been a godsend for me. I am running into an issue though.

So I have the newest version (1.4.9) installed, and I'm running into issues with an autosave/autoload plug-in because of the Terrax Lighting. I might try and older version of Terrax Lighting after this as I had used these two plug-ins before and they had worked fine in the past, or maybe I have some setting wrong on some project now...

To describe the issue, the game autosaves and autoload points. The plug-in works, and if I turn off Terrax the autoload works as intended, but with Terrax Lighting on the autoload command will always pop-up with this issue:

"rpg_managers.js:1756 TypeError: Cannot read property 'note' of null
at ReloadMapEvents ([Redacted]/js/plugins/TerraxLighting.js:1006:44)
at Lightmask._updateMask ([Redacted]/js/plugins/TerraxLighting.js:1202:4)
at Lightmask.update ([Redacted]/js/plugins/TerraxLighting.js:979:11)
at f[Redacted]/js/rpg_core.js:3569:19
at Array.forEach (native)
at Spriteset_Map.Sprite.update ([Redacted]/js/rpg_core.js:3567:19)
at Spriteset_Map.Spriteset_Base.update ([Redacted]/js/rpg_sprites.js:2141:29)
at Spriteset_Map.update ([Redacted]/js/rpg_sprites.js:2271:37)
at [Redacted]/js/rpg_scenes.js:112:19
at Array.forEach (native)"

Now I'm a bit dumb at Javascript, but I can tell that it's having some problem reading the note tags in events, but might you have any potential solutions? I might try an older version of Terrax Lighting again to see if the issue persists in older versions as these two plug-ins worked fine in the past, or it could very well be I'm ****ing something up here.

EDIT: I can confirm that older versions of Terrax Lighting work with the Autosave plug-in still. 1.4.5 did not, but I tried 1.3.9 and it worked fine with the autoload command. I'll see if there's anything to be done for newer versions but at least it does work with older versions.
 
Last edited:

DK

Veteran
Veteran
Joined
Mar 30, 2016
Messages
229
Reaction score
286
First Language
Russian
Primarily Uses
RMMV
"if (args.length = 7) {" on 420 line in Game_Interpreter. Version 1.4.9
 

Terrax

Veteran
Veteran
Joined
Oct 30, 2015
Messages
304
Reaction score
227
First Language
English
I thank you for all of your hard work Terrax, this plug-in has been a godsend for me. I am running into an issue though.

"rpg_managers.js:1756 TypeError: Cannot read property 'note' of null
at ReloadMapEvents ([Redacted]/js/plugins/TerraxLighting.js:1006:44)

EDIT: I can confirm that older versions of Terrax Lighting work with the Autosave plug-in still. 1.4.5 did not, but I tried 1.3.9 and it worked fine with the autoload command. I'll see if there's anything to be done for newer versions but at least it does work with older versions.
No problem, easy to fix, i will fix it tonight.

"if (args.length = 7) {" on 420 line in Game_Interpreter. Version 1.4.9
Yep, another bug, will be fixed as well.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 3)

Latest Threads

Latest Posts

Latest Profile Posts

Do you guys think it's better to have all members in your team from the beginning (then you can pick who battles) or you gain team members as the story goes?
PL: Patch polonizujący do RPG Makera 2003 prawie gotowy! Mamy przetłumaczoną bazę danych (projekt), polskie fonty, wiadomości walki i jakieś 90% edytora.
Do przetłumacznia pozostało te 10% edytora i plik pomocy. Niedługo więcej informacji!

Defeating a boss in Aletoirs Feast means a bunch of rewards, one of them is the "awesome loot crates" a gift that gives you a random piece of equipment ¡Totally Free! and with 4 types of crates rarity who knows? maybe you will get a legendary weapon in your first run
English is funny. You want to survive. You want to be a survivor. You definitely DON'T want to "be survived by" anyone tho, trust me.
RPG Maker Games Critique with Studio Blue: Dark and Bright starts now! Hit the link and join us in chat as Studio Blue plays this unique looking commercial RPG Maker game from Rinober!

Forum statistics

Threads
107,475
Messages
1,029,932
Members
139,602
Latest member
Kabo
Top