Terrax Lighting

yumolb

Villager
Member
Joined
Feb 20, 2019
Messages
17
Reaction score
1
First Language
Filipino
Primarily Uses
RMMV
So I installed the latest plugin and input the event commands in both the common events, the map, and also made the flashlight
item but nothing is working. Please help.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
You'll need to provide more information than that.

What does "nothing is working" mean? Are you getting errors? Is it just behaving as if you don't have the plugin installed at all? If that's the case, you probably gave it the wrong name. Plugins with parameters (almost) always need to have exactly the right name.

When you play and there should be something happening due to the plugin, hit F8 to open up the Developer Tools and go to the Console tab. Are there any error messages there? If there are, please take a screenshot of that and post it here.

Also, please provide screenshots of your plugin manager, the plugin parameters, the event commands and your flashlight item so we can see what you've done.

Is this a paid or free plugin? If free, please provide a link to the forum thread or blog where the plugin is hosted - rather than just seeing the plugin, it helps us to see the author's comments and examples.
 

yumolb

Villager
Member
Joined
Feb 20, 2019
Messages
17
Reaction score
1
First Language
Filipino
Primarily Uses
RMMV
It doesn't say it has an error or anything. It just doesn't run at all...?Screenshot (332).png Screenshot (331).pngScreenshot (332).png Screenshot (331).png Screenshot (330).png Screenshot (329).png Screenshot (328).png
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
[move]Javascript/Plugin Support[/move]
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
I would move every file there that is not a .js file out of that folder and somewhere away from your project. They are not needed/used, and you sure don't want to be bloating up your deployed file size by including stuff that's not needed. And what in the world has happened with your plugins folder? You have a data folder AND a js folder inside your plugins folder? That can't be right either. It seems you may have extracted a demo into your plugins folder rather than into a completely separate project. That folder is a real mess, and you need to figure out what's needed and what isn't, and clean it up. It may just be easier to create a folder completely away from your project, and move EVERYTHING in the plugins folder into there, and ONLY move the TerraxLighting.js and TerraxLightingQuasiABS.js plugins back. If there is an image to be used for the flashlight, find it and make sure it's in the correct folder (I'm guessing img/pictures but I haven't used the plugin before so that's a complete guess).

As to your issue (it could be caused by some of the above, but let's take a look at other things as well) ...

Look at your common event. You're saying if the party has the flashlight and the flashlight is on, then turn it off. But if the party DOESN'T have the flashlight, THEN turn it on. That can't be what you want to happen - the flashlight will never be turned on.

In fact, you don't even need the If Party has Flashlight test in that common event. Both the places that call the common event will not even run if the flashlight isn't in inventory. Your parallel event is conditioned by the party having the flashlight, so if it's not in inventory, that event won't even run. And the other place it's called is from the flashlight item itself - obviously, if you don't have the flashlight, then you can't use it from inventory. So if you're in that common event, you already know the party does have the flashlight, so it's a waste of time checking.

You're better off making it look something like this (this is the entire common event, not just a portion, so remove everything you've got and make it look like the below):

Code:
  If: Flashlight is ON
    Control Switches: Flashlight = OFF
    Plugin Command: Light radius 0 #FFFFFF
    Plugin Command: Flashlight off
  Else
    Control Switches: Flashlight = ON
    Plugin Command: Light Radius 0 #FFFFFF
    Plugin Command: Flashlight on 8 12 #FFFFFF
  End

Now I don't know if the case has to be exact with this plugin, but in one case you have Light Radius (upper case R), and in the other you have Light radius (lower case r). Make sure those are both allowed by the plugin, and if not, change them to be correct.
 
Last edited:

Jules98

Veteran
Veteran
Joined
Jul 10, 2017
Messages
308
Reaction score
163
First Language
Dutch
Primarily Uses
RMMV
Just to be sure, but does your map have an event with a note tag that activates the plugin in the first place?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
I'm not actually sure I'm following your logic either.

You seem to be saying the only way to turn on the flashlight is to use it from inventory. Then, if you use it from inventory again, or if you press pageup, it will turn it off (because the map event that checks for the pageup is also conditioned by switch 16 being on, so that won't run until the flashlight is turned on in the first place)

Is that what you want/expect to happen?
 

yumolb

Villager
Member
Joined
Feb 20, 2019
Messages
17
Reaction score
1
First Language
Filipino
Primarily Uses
RMMV
Uh yeah. Like you need the flashlight in the inventory and it will be turned on when you actually do turn it on. I followed a tutorial in one of the thread forums in here... lol I
 

yumolb

Villager
Member
Joined
Feb 20, 2019
Messages
17
Reaction score
1
First Language
Filipino
Primarily Uses
RMMV

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
Did you read any of what I wrote? Did you try any of it? I have explained to you why your flashlight will never turn on and gave you the correct code for your common event.
 

yumolb

Villager
Member
Joined
Feb 20, 2019
Messages
17
Reaction score
1
First Language
Filipino
Primarily Uses
RMMV
Yeah I changed my event code and realized that there was a possibility the flashlight was kind of I don't know... unable to function because of my candle event? That one, I didn't use terrax lighting for at all... And yeah I removed the mess in my folder. As for image... I need to figure that out... >-> Sorry i'm actually very bad at these kinds of stuff.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
So you changed your event code, and ... ? Does it work?

What does your event look like now?
What does your plugin folder look like now?
Please provide a link to the plugin (forum thread or blog where the author talks about it and provides a link, not to the plugin directly as the other stuff is very useful).
 

Jules98

Veteran
Veteran
Joined
Jul 10, 2017
Messages
308
Reaction score
163
First Language
Dutch
Primarily Uses
RMMV
Note tag?
This is what I meant:

Exerpt from the help file said:
To activate the script in an area, do the following:
1. Put an event switch into the map.
2. In the 'Note' field (Next to the name) put the following text :
Light 250 #FFFFFF
- Light activates the script
- 250 is the lightradius of the object
- #FFFFFF is the lightcolor (white in this case)
3. You're done, its that simple.
If you didn't do this, then the plugin obviously won't do anything.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
That thread shows two different methods of using the flashlight. You should use one method, not both. Your event is wrong - the event in the thread you linked does not use the switch as a condition but you've added it. That means the event will only run when you have the flashlight and it's on. THAT means if you're using the pageup key to try and turn on the flashlight, it won't work, as that event page isn't even running because the flashlight is off.

I suggest you choose one method and stick with it.

Please show a screenshot of your plugin parameters.

Those two folders don't belong in the js folder.

I also asked for a link to the plugin, which you haven't provided. You only gave a link to the tutorial, which also does not contain a link to the plugin. Is there a forum thread or a blog post where the author talks about the plugin and how to use it, and provides a link to the plugin as well? That's what I'm after - the author's comments, not someone else's.
 

yumolb

Villager
Member
Joined
Feb 20, 2019
Messages
17
Reaction score
1
First Language
Filipino
Primarily Uses
RMMV
No, I didn't add a notetag .-.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,236
Members
137,608
Latest member
Arm9
Top