Overworld Shadows

Resource Overworld Shadows

WolfPP

Discord Wolf#1235
Member
Joined
Aug 24, 2018
Posts
103
Age
29
Thank you so much! Also, to fix the weird bug where shadows don't appear until you get a Pokemon: (Credit to seth_Angel on PokeCommunity for this)

Was Vendily, not seth_Angel. Also, i made somes att today. Check the thread on PC Forum again.

About Following Script, i made some att too. Check the thread on PC Forum, into the latest posts.
 

boonzeet

Developer of Pokemon: Secrets of the Ages
Member
Joined
Mar 13, 2019
Posts
58

I have an NPC that appears with the switch 14 's:PBDayNight.isMorning?' which doesn't get a shadow for some reason, even with the name including a string from Always_Give_Shadow_If_Event_Name_Has.

I've tried it with all of the DayNight switches and none of these events get shadows, but other custom switches work and give the appropriate shadow when they appear.

Is this a bug or is there another step to enable shadows on these events?
 

WolfPP

Discord Wolf#1235
Member
Joined
Aug 24, 2018
Posts
103
Age
29

I have an NPC that appears with the switch 14 's:PBDayNight.isMorning?' which doesn't get a shadow for some reason, even with the name including a string from Always_Give_Shadow_If_Event_Name_Has.

I've tried it with all of the DayNight switches and none of these events get shadows, but other custom switches work and give the appropriate shadow when they appear.

Is this a bug or is there another step to enable shadows on these events?

Maybe this can help you.
 

boonzeet

Developer of Pokemon: Secrets of the Ages
Member
Joined
Mar 13, 2019
Posts
58
Maybe this can help you.

I'm not using the followers - shadows work for all other characters (you can see this on my character and this miltank walking around) but don't with any events that use the DayNight switches in the Event page options.

Edit - the guy with the hat is the NPC using s:PBDayNight.isDay? as the event switch. If I change this to a random switch and set it on, the shadow appears fine. The switch is on, as well, as the event disappears at night.

Here is a side-by-side comparison with two identical events, except for the switch used:

 
Last edited:

WolfPP

Discord Wolf#1235
Member
Joined
Aug 24, 2018
Posts
103
Age
29
I'm not using the followers - shadows work for all other characters (you can see this on my character and this miltank walking around) but don't with any events that use the DayNight switches in the Event page options.

Edit - the guy with the hat is the NPC using s:PBDayNight.isMorning? as the event switch. If I change this to a random switch and set it on, the shadow appears fine.

Yep. Did you remove all Followers code stuff inside the script?
 

boonzeet

Developer of Pokemon: Secrets of the Ages
Member
Joined
Mar 13, 2019
Posts
58
Yep. Did you remove all Followers code stuff inside the script?

The Followers code shouldn't affect a project without the Followers script. I can replicate this on a fresh project with just this script, too:


Edit: From testing, this is the offending line:
Ruby:
page = pbGetActiveEventPage(@character)

pbGetActiveEventPage is returning nothing if one of these switches is used. These switches work by running the script specified in the switch name, so this is causing the pbGetActiveEventPage check on the state of the switches to fail.

Found a fix: replace these two lines in pbGetActiveEventPage:
Ruby:
sw1 = !(c.switch1_valid && !$game_switches[c.switch1_id])
sw2 = !(c.switch2_valid && !$game_switches[c.switch2_id])

with these:
Ruby:
sw1 = !(c.switch1_valid && !event.switchIsOn?(c.switch1_id))
sw2 = !(c.switch2_valid && !event.switchIsOn?(c.switch2_id))
 
Last edited:

WolfPP

Discord Wolf#1235
Member
Joined
Aug 24, 2018
Posts
103
Age
29
The Followers code shouldn't affect a project without the Followers script. I can replicate this on a fresh project with just this script, too:

I checked other thing: if you invite Brandon (Route 3) for you team, the shadow OW will disappears. You know how to fix that part too?
 

Skyflyer

Seeking for knowledge
Member
Joined
Jun 23, 2019
Posts
9
I've found a strange bug. I've got an event which makes its own things int a page of the event, then switches to a second page which makes it disappear and then switches to a third page with other stuff but no image in the event. The thing is that if the event has shadow in the first page of the event and in the second (which also has an image) I put the comment on the top "NoShadow" it doesn't disappear. In fact the shadow moves from the npc in the same direction I move my character (I add a gif to show it clearly).

The event code
https://gyazo.com/314363e33e012de3997c5e709c108a0a

What actually happends
https://gyazo.com/397965fdd9024eb15622d6e121728bb7
 

WolfPP

Discord Wolf#1235
Member
Joined
Aug 24, 2018
Posts
103
Age
29
I've found a strange bug. I've got an event which makes its own things int a page of the event, then switches to a second page which makes it disappear and then switches to a third page with other stuff but no image in the event. The thing is that if the event has shadow in the first page of the event and in the second (which also has an image) I put the comment on the top "NoShadow" it doesn't disappear. In fact the shadow moves from the npc in the same direction I move my character (I add a gif to show it clearly).

I made a new code for the Shadow Overworld. Click here you want to check.
 

Doodi94

Rookie
Member
Joined
Jul 1, 2020
Posts
3
Hi ! Great work on this. I noticed that when you surf with "Following Pokémon" there still is the shadow even though the Pokémon doesn't follow you in water. Could you update the script so it doesn't appear anymore please ?
 

noxdev

pkmn nox
Member
Joined
Apr 18, 2017
Posts
1
Doesn't seem to work as intended on Essentials 18.1 due to the modification to jumping.
I'm currently combing through the code to determine how the new jumping differs and adjust the script accordingly.
If I fix it I'll send you the code as well so you can make an official release.
 
Top