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
820
Reaction score
950
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.
 

Kirby44

Veteran
Veteran
Joined
Mar 6, 2017
Messages
143
Reaction score
20
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,107
Reaction score
722
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
820
Reaction score
950
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,107
Reaction score
722
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
14
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
820
Reaction score
950
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
62
Reaction score
29
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
820
Reaction score
950
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
62
Reaction score
29
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.
 

Godarkhaos

Veteran
Veteran
Joined
Oct 25, 2018
Messages
30
Reaction score
17
First Language
French
Primarily Uses
RMMV
Hiyaah!
Do you know if it would be complicated to add light to objects other than events, player and followers? I'm using QABS and I'd like to add light to the projectiles.. I've managed to get the lightData onto them by using the same setupLightData method as followers but it doesn't seem to do anything. Am I missing something obvious?
 

Latest Threads

Latest Posts

Latest Profile Posts

Psychronics Games is doing a livestream about my game in a bit... And I will do a video about his game after that.
Watch their stream with us on youtube!
I have been enjoying a game on my iPhone, called Wonderbox. It is just a little game where you create adventures, share them, whilst also being able to play others. It's a bit zelda-esque. I have started some youtube for those, gonna start with RPG maker things soon as well. So if you wish to see, do check it out :)
SF_People3_3 added!
index.php

ScreenShot_1_3_2022_1_32_12.png
I feel QSprite for MV is underrated. I basically am able to use my chibi sideview battlers I drew on the maps and have all the motions available. this'll help a lot with cutscenes.
I've figured out how to reasonably tall-ify chibi sprites on my editor. I like that making tall sprites gives me control on expressing how tall characters seem on the field relative to each other as well as better differentiate adult sprites from child sprites.

Forum statistics

Threads
118,571
Messages
1,117,002
Members
155,617
Latest member
XJFMS
Top