Hey guys, I've ran into a problem in which my parallel events will not trigger if the player is more than 20 tiles away from it. Does anyone know what I can do to increase the maximum number of tiles in which an event can be activated from?
Events will not trigger when player is more than 20 tiles away
RPG Maker MV SupportOK, there are two different points here.
First, autonomous movement (not parallal processes) should stop at a distance because having all those movements going over a large map will cause lag on most computers if there are too many events.
Second, actual parallel processes that do some control on the map should be excempted from that, they should work everywhere (or it would cause other problems on large maps.
So either you've mixed up terminology and are asking about autonomous movement, or you have some plugins that changed the behaviour of the engine, or the critical parallel process is not stopped by distance as you assume but by something else (usually a logic error somewhere).
we need more data before we can even guess which of the three cases this is, perhaps a screenshot of the event pages of one such event that doesn't work as you expect.
First, autonomous movement (not parallal processes) should stop at a distance because having all those movements going over a large map will cause lag on most computers if there are too many events.
Second, actual parallel processes that do some control on the map should be excempted from that, they should work everywhere (or it would cause other problems on large maps.
So either you've mixed up terminology and are asking about autonomous movement, or you have some plugins that changed the behaviour of the engine, or the critical parallel process is not stopped by distance as you assume but by something else (usually a logic error somewhere).
we need more data before we can even guess which of the three cases this is, perhaps a screenshot of the event pages of one such event that doesn't work as you expect.
JavaScript:
Game_Event.prototype.isNearThePlayer = function() {
var sx = Math.abs(this.deltaXFrom($gamePlayer.x));
var sy = Math.abs(this.deltaYFrom($gamePlayer.y));
return sx + sy < 20;
};
This could be your culprit. The distance thing is by design to avoid lag from updating events that don't need to be updated; you can put in something higher than 20 if you want to increase the range, but be aware that this may start causing FPS drops if you have a lot of events.
As Andar said though, that shouldn't affect parallel processes.
Hey so I changed the number to something larger (ie : return sx + sy < 40) and it still doesn't make a difference. Do you know why?
That probably isn't what's causing your issue then. It's likely a plugin that does this for "efficiency"; what plugins are you using?
What exactly is in the parallel process events that's not happening when you're more than 20 away?
What exactly is in the parallel process events that's not happening when you're more than 20 away?
Hey so below I included a screenshot of the plugins I'm using. Also, the parallel process is an enemy using an active battle system (Alpha ABS). The enemy is supposed to move directly to the player upon being spawned. I'll include screenshots of the enemy and the event below. It seems the problem must be with my active battle system because when I turn it off, the problem goes away and the enemy can approach me from further than 20 tiles. I've tried looking through the plugins code to see if I can find anything restricting the event from moving 20 tiles but I've had no luck.
Yeah, it's likely something in the function that updates those spawned events.
Why is that event a parallel process at all? it has no content, so it should not be a parallel process.
autonomous movement is called autonomous because it is independent of the trigger.
Why do you have yanfly's battleengine AND an ABS script?
The purpose of ABS scripts is to remove the battlescreen, and yanfly's battleengine is nothing but an alternative battlescreen. I strongly doubt that those two plugins are compatible
autonomous movement is called autonomous because it is independent of the trigger.
Why do you have yanfly's battleengine AND an ABS script?
The purpose of ABS scripts is to remove the battlescreen, and yanfly's battleengine is nothing but an alternative battlescreen. I strongly doubt that those two plugins are compatible
This is from Yanfly's MoveRouteCore plugin:
Event Notetags:
<Always Update Movement>
- Most events don't update unless they're close to the screen. But any
event with this notetag will always be updating regardless of whether they
are close to the screen or not.
Event Notetags:
<Always Update Movement>
- Most events don't update unless they're close to the screen. But any
event with this notetag will always be updating regardless of whether they
are close to the screen or not.
Ya unfortunately it definitely seems to be the problem. I'm trying to find where in the script it caps the distance at 20 with no luck so far. Lmk if your interested in making some money, because if you can help me fix the script to allow for what I want to do I would pay you for your time! Anyways, thanks for all the other help and quick replies!
i did not know that, thank you
I'm always interested in making money, but sounds like HankB's suggestion will probably work for you. 😛
hmm, unfortunately implementing this still doesn't make it work. thank you though
unfortunately, hanks suggestion does not work 🙁 I'll include a screenshot of my event with the notetag in it (the plugin is added to the game)
From what I can tell, some of your Yanfly plugins are not in the right order. They need to be in the order that they are on this page:
www.yanfly.moe
Category:Yanfly Engine Plugins - Yanfly.moe Wiki
battleengine core is a required plugin for tickbasedregen, which is a plugin I am using
Here is the current order of my plugins, which ones are out of place? I thought this is the correct order
- Core Engine
- Core Engine Extension: Core Updates and Desktop Optimization
- Advanced Switches & Variables
- Base Parameter Control
- Base Parameter Control Extension: Class Base Parameters
- Class Change Core
- Class Change Core Extension: Subclass
- Extra Parameter Formula
- Load Custom Fonts
- Main Menu Manager
- Main Menu Manager Extension: Main Menu Actor Events
- Message Core
- Message Core Extension: Extended Message Pack 1
- Message Core Extension: Extended Message Pack 2
- Message Core Extension: Message Backlog
- Message Core Extension: Message Eval Text
- Message Core Extension: Message Macros
- Message Core Extension: Message Speed Option
- Plugin Commands - Switches & Variables Access
- Save Core
- Save Core Extension: Autosave
- Save Core Extension: New Game+
- Self Switches & Variables
- Special Parameter Formula
- Battle Engine Core
- Battle Engine Core Extension: Action Sequence Pack 1
- Battle Engine Core Extension: Action Sequence Pack 2
- Battle Engine Core Extension: Action Sequence Pack 3
- Battle Engine Core Extension: Animated Sideview Enemies
- Battle Engine Core Extension: Battle System - ATB
- Battle Engine Core and Battle System - ATB Extension: Visual ATB Gauge
- Battle Engine Core Extension: Battle System - CTB
- Battle Engine Core Extension: Battle System - STB
- Battle Engine Core Extension: Counter Control
- Battle Engine Core Extension: In-Battle Status
- Battle Engine Core Extension: Turn Order Display
- Battle Engine Core Extension: Visual HP Gauges
- Battle Engine Core Extension: Weak Enemy Poses
- Battle Engine Core Extension: Lunatic Pack - Action Beginning and End Effects
- Absorption Barrier
- Battle A.I. Core
- Battle A.I. Core Extension: Actor Auto Battle A.I.
- Battle BGM Control
- Battle Select Cursor
- Battle Status Window
- Buffs & States Core
- Buffs & States Core Extension: Extended Damage Over Time
- Buffs & States Core Extension: State Categories
- Buffs & States Core Extension: Tick-Based Regen
- Buffs & States Core Extension: Visual State Effects
- Buffs & States Core Extension: Lunatic Pack - State Protection
- Damage Core
- Damage Core Extension: Armor Scaling
- Damage Core Extension: Critical Control
- Damage Core Extension: Lunatic Pack - Critical Sway
- Element Core
- Extra Enemy Drops
- Force Advantage
- Hit Accuracy
- Hit Damage Sounds
- Improved Battlebacks
- Level Up Growth Effects
- Life Steal
- Overkill Bonus
- Target Core
- Target Core Extension: Area of Effect
- Target Core Extension: Selection Control
- Taunt
- Victory Aftermath
- Victory Aftermath Extension: Aftermath Level Up
- Weather In Battle
- Item Core
- Item Core Extension: Attachable Augments
- Item Core Extension: Item Disassemble
- Item Core Extension: Item Discard
- Item Core Extension: Item Durability
- Item Core Extension: Item Menu Categories
- Item Core Extension: Item Picture Images
- Item Core Extension: Item Rename
- Item Core Extension: Item Requirements
- Item Core Extension: Item Upgrade Slots
- Item Synthesis
- Shop Menu Core
- Shop Menu Core Extension: Conditional Shop Prices
- Shop Menu Core Extension: Hide/Show Shop Items
- Shop Menu Core Extension: More Currencies
- Skill Core
- Skill Core Extension: Limited Skill Uses
- Skill Core Extension: Multi-Type Skills
- Skill Core Extension: Party Limit Gauge
- Skill Core Extension: Skill Cooldowns
- Skill Core Extension: Skill Cost Items
- Skill Core Extension: Lunatic Pack - Skill Rewards
- Instant Cast
- Skill Learn System
- Skill Mastery Levels
- Equip Core
- Equip Core Extension: Change Battle Equip
- Equip Core Extension: Equip Customize Command
- Equip Core Extension: Equip Requirements
- Weapon Animation
- Weapon Unleash
- Status Menu Core
- Status Menu Core Extension: Actor Variables
- Status Menu Core Extension: Battle Statistics
- Status Menu Core Extension: More Status Menu Pages
- Status Menu Core Extension: Profile Status Page
- Auto Passive States
- Auto Passive States Extension: Passive Aura Effects
- Auto Passive States Extension: Lunatic Pack - Passive Condition Cases
- Enemy Levels
- Enemy Levels Extension: Difficulty Slider
- Enemy Levels Extension: Enemy Base Parameters
- Enemy Levels Extension: Map Enemy Levels
- Enhanced TP
- Enhanced TP Extension: More TP Modes
- Equip Battle Skills
- Equip Battle Skills Extension: Allowed Types
- Equip Battle Skills Extension: Equip Skill Tiers
- Job Points
- Party System
- Party System Extension: Actor Party Switch
- Repel & Lure Encounters
- Row Formation
- Stat Allocation
- Steal & Snatch
- Move Route Core
- Move Route Core Extension: Extended Move Pack 1
- Floor Damage
- Quest Journal System
- Quest Journal System Extension: Map Quest Window
- Quest Journal System Extension: More Quests
- Options Core
- Animated Tile Option
- Battle Animation Speed Options
- FPS Synch Option
- Event Chase Player
- Event Chase Player Extension: Event Chase Stealth
- Event Click Trigger
- Event Copier
- Event Encounter Aid
- Event Hitbox Resize
- Event Mini Label
- Event Morpher
- Event Proximity Activate
- Event Region Trigger
- Event Spawner
- Event Sprite Offset
- Event Step Animation Options
- Event Timer Control
- Icons on Events
- Auto Switches
- Base Troop Events
- Button Common Events
- Call Event
- Common Event Menu
- Common Event Menu Extension: Common Event Menu Setup Pack 1
- Common Event Menu Extension: Common Event Menu Setup Pack 2
- Credits Page
- Dash Toggle
- Disable Auto Shadow Extended
- Dynamic Title Images
- External Links
- Footstep Sounds
- Gab Window
- Grid-Free Doodads
- Grid-Free Doodads Extension: Extended Doodad Pack 1
- Help File Access
- Icon Balloons
- Key Name Entry
- Key Number Input
- Keyboard Config
- Main Menu Variable Window
- Map Gold Window
- Map Select Equip
- Map Select Skill
- Map Status Window
- Merge Common Events
- Music Menu
- Optimize Script Calls
- Patch Notes
- Picture Common Events
- Picture Spritesheets
- Region Battlebacks
- Region Events
- Region Restrictions
- Region Restrictions Extension: Vehicle Restrictions
- Save Event Locations
- Scale Sprites
- Script Call Plugin Commands
- Sectioned Gauges
- Segmented Gauges
- Slippery Tiles
- Smart Jump
- Stop Map Movement
- Swap Enemies
- Test Play Assist
- Touch Input Disabler
- Utility Common Events
- Dragonbones Integration
Original thread: https://forums.rpgmakerweb.com/threads/events-will-not-trigger-when-player-is-more-than-20-tiles-away.136996/