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
767
Reaction score
890
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
130
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
981
Reaction score
619
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
767
Reaction score
890
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
981
Reaction score
619
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
12
Reaction score
2
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
767
Reaction score
890
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:

Latest Threads

Latest Posts

Latest Profile Posts

Another comic with Backstage Malak...
If you want to ask him anything, you can ask on my DeviantArt page! I'm not sure if you're allowed to do it here.
Forum tip of the day ...
If you get a temporary suspension for being a jerk to people who are trying to help you, and arguing with mods and admins, don't go making new accounts. Chances are, if you p**s us off enough to suspend you for a week, we're not going to hesitate giving you a permanent ban when you give us a reason.
E_6fAErVkAQILXu.png
I'm so close to releasing my game on steam! :blush::blush::blush:
Us:
"This game is awesome! I wish there are more games like this in the future."
Also us:
"I hate how games stopped being original and start copying other successful games."
Should've done this a few days ago but...
PRI_200136808.jpg
Rest in Peace, Sir Clive Sinclair
1940 - 2021
Entrepreneur, Technologist, Father of the Modern British Computing Industry, and protagonist of Legend of ZUN.

Without you, England's games and tech industry wouldn't be where it is.

Forum statistics

Threads
115,291
Messages
1,088,680
Members
149,920
Latest member
mulinho
Top