athosfranco

Veteran
Veteran
Joined
Apr 30, 2014
Messages
50
Reaction score
6
First Language
Portuguese
Primarily Uses
Awesome plugin.

I have a question: I also use OcRam Time System to create a day and night effect. I would like to know how I make the light that emanates from the player only appear during the NIGHT period, in an instantaneous way? As if the player had just turned on a torch or other light source.
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
788
Reaction score
904
First Language
Finnish
Primarily Uses
RMMZ
Awesome plugin.

I have a question: I also use OcRam Time System to create a day and night effect. I would like to know how I make the light that emanates from the player only appear during the NIGHT period, in an instantaneous way? As if the player had just turned on a torch or other light source.
Thank you for the message,

I would do it with common event and set player default light to 'none' in plugin parameters.
 

belatucadrus

Veteran
Veteran
Joined
Mar 6, 2017
Messages
135
Reaction score
18
First Language
french
Primarily Uses
RMMV
My game reloads automatically the last accessed save file after a Game Over.

But when it happens, I get this error message :

1624485070351.png

Details :
1624485208903.png
 

fizzly

Veteran
Veteran
Joined
Mar 23, 2012
Messages
1,051
Reaction score
684
First Language
Polish
Primarily Uses
RMMV
I have no idea why, but after updating all the scripts I bought (weather, time system, lights) and addidin Core, which is necessery now, lights and clock does not work ... :( When I turn off the core, it works but says "Core 1.05 is required".
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
788
Reaction score
904
First Language
Finnish
Primarily Uses
RMMZ
I have no idea why, but after updating all the scripts I bought (weather, time system, lights) and addidin Core, which is necessery now, lights and clock does not work ... :( When I turn off the core, it works but says "Core 1.05 is required".
Thank you for the message,

Make sure that you are using only MV plugins or MZ plugins (mixing them could cause weird issues). In MV -plugins Core is always embedded in each plugin. In MZ core is separate plugin.

In both cases make sure all plugins are up-to-date (if any plugin is updated it is recommended to update all OcRam -plugins like you apparently did).

Also if plugin comes with new parameters it requires parameter validation do this by going to "Plugin Manager" >> Click updated plugin(s) >> Click Ok for each new parameter
 

fizzly

Veteran
Veteran
Joined
Mar 23, 2012
Messages
1,051
Reaction score
684
First Language
Polish
Primarily Uses
RMMV
Thank you for the message,

Make sure that you are using only MV plugins or MZ plugins (mixing them could cause weird issues). In MV -plugins Core is always embedded in each plugin. In MZ core is separate plugin.

In both cases make sure all plugins are up-to-date (if any plugin is updated it is recommended to update all OcRam -plugins like you apparently did).

Also if plugin comes with new parameters it requires parameter validation do this by going to "Plugin Manager" >> Click updated plugin(s) >> Click Ok for each new parameter
oh god, i downloaded mz for mv...so sorry, and thank you for fast help!
 

Zaphitos

Villager
Member
Joined
Apr 25, 2021
Messages
13
Reaction score
3
First Language
English
Primarily Uses
RMMZ
Thank you for the message,

Following snippet gets everything in light radius:
Code:
this.event().getObjectsInLightRadius().forEach(obj => {
console.log(obj);
});

Hello :)

I tried this now a little with MZ. Is this not implemented in MZ yet?
I even tried it in your demo with the sentries, but all I get is a crash with the message
"Cannot read property 'degrees' of undefined"
 

Attachments

  • Bildschirmfoto 2021-09-14 um 23.18.47.png
    Bildschirmfoto 2021-09-14 um 23.18.47.png
    164.9 KB · Views: 2
Last edited:

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
788
Reaction score
904
First Language
Finnish
Primarily Uses
RMMZ
Hello :)

I tried this now a little with MZ. Is this not implemented in MZ yet?
I even tried it in your demo with the sentries, but all I get is a crash with the message
"Cannot read property 'degrees' of undefined"
Thank you for the report!

I have now fixed and released OcRam_Lights v1.09 (requires OcRam_Core v1.10).

Following changes were made:
  • Added battler lights (inherited from map event (enemy) and player lights (actor))!
  • MPP_Pseudo3DBattle support!
  • PIXI.Container is no longer used - using only PIXI.Sprite as light layer (1 "layer" less stuff)
  • event.getObjectsInLightRadius and isPlayerInLightRadius now works as intended! (Credits to Zaphitos)
EDIT: WHOOPS this was MV thread! (update is for MZ)
 
Last edited:

LMPGames

Veteran
Veteran
Joined
Nov 15, 2017
Messages
61
Reaction score
24
First Language
English
Primarily Uses
RMMV
Hello OcRam! Recently found your plugin when looking for a lighting plugin to replace Terrax's.

Running into an issue dealing with switches. If I turn a light source on for an event using the light_event plugin command, then a switch changes the event page, the light source is turned off.

If this a known limitation or is there a workaround?
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
788
Reaction score
904
First Language
Finnish
Primarily Uses
RMMZ
Hello OcRam! Recently found your plugin when looking for a lighting plugin to replace Terrax's.

Running into an issue dealing with switches. If I turn a light source on for an event using the light_event plugin command, then a switch changes the event page, the light source is turned off.

If this a known limitation or is there a workaround?
Thank you for the message,

Everytime event page is changed light event comments are scanned. If light sources are not found, lights will be turned off. This can be overwritten via JS/plugin commands (while this page is active).

If comment is used then it is supposed to be event PAGE specific. Event notetag takes effect in ALL pages (unless overwritten by JS/plugin command).
 

LMPGames

Veteran
Veteran
Joined
Nov 15, 2017
Messages
61
Reaction score
24
First Language
English
Primarily Uses
RMMV
Thank you for the message,

Everytime event page is changed light event comments are scanned. If light sources are not found, lights will be turned off. This can be overwritten via JS/plugin commands (while this page is active).

If comment is used then it is supposed to be event PAGE specific. Event notetag takes effect in ALL pages (unless overwritten by JS/plugin command).

Ah, so even if I use the plugin command, page changes will reset the lighting. So sounds like I would be better off either using comments specifically on each page or in the event note tag to fix this issue then.

Thanks.
 

Latest Threads

Latest Posts

Latest Profile Posts

Sizzle sizzle sizzle...
zbf1dCZ.gif
Sharing my past was a mistake. Will delete the post when I get access to a working internet connection again.
TFW you get a plugin working correctly with your other plugins ♡\( ̄▽ ̄)/♡

(CW for minor gore - Einar's Y incision is gone for his test portrait)

Cs5kAbZ.png
Doing some winter related edits for a cozy cottage!
I think it's the third time I am changing my skill info plugin, but as I get better at programming, I want to fix the trash I made earlier :p

Streaming while I am programming the plugin. Join in if you wish :)

Forum statistics

Threads
116,981
Messages
1,103,496
Members
152,845
Latest member
Zynarith2
Top