Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Hello! Where can I find an anti-lag script that works well and still allows...

... allows events to work even when they are off screen? I'm looking forward for help! Thank you very much!

Note: I know 0 about scripting.

RPG Maker XP
 

Zeriab

Sponsor

You can with my anti lag, you must however do a small edit. (It shouldn't require scripting knowledge ^_^)
http://zeriab.plesk3.freepgs.com/root/s ... g-v1.0.txt

Find this part
Code:
#==============================================================================
# ** Constants for the various classes
#==============================================================================

class Game_Event
  SPECIAL_UPDATE_IDS = {} #{[1,1]=>'A',
                          # [1,2]=>'N'}
  NEVER_UPDATE_NAME_PATTERNS = [] #['EV202',/EV3.5/]
  ALWAYS_UPDATE_NAME_PATTERNS = [] #['EV204']
end

class Game_Map
  ALWAYS_UPDATE = false
  BUFFER_SIZE = 2
  TILES_VERTICAL = 15
  TILES_HORIZONTAL = 20
end

Change ALWAYS_UPDATE = false to ALWAYS_UPDATE = true

After the change it should look like this:
Code:
#==============================================================================
# ** Constants for the various classes
#==============================================================================

class Game_Event
  SPECIAL_UPDATE_IDS = {} #{[1,1]=>'A',
                          # [1,2]=>'N'}
  NEVER_UPDATE_NAME_PATTERNS = [] #['EV202',/EV3.5/]
  ALWAYS_UPDATE_NAME_PATTERNS = [] #['EV204']
end

class Game_Map
  ALWAYS_UPDATE = true
  BUFFER_SIZE = 2
  TILES_VERTICAL = 15
  TILES_HORIZONTAL = 20
end

*hugs*
- Zeriab
 

Zeriab

Sponsor

Constant little spasms =o
I have never encounter that except when massive amount of events leave and enter the visible area at the same time. (20+ events)

Nevertheless you can try this specialized version without the Spriteset_Map changes:
http://zeriab.plesk3.freepgs.com/root/s ... et_map.txt

In some situations that is faster (small maps, few events) and in other situations the normal version is better (large maps, large amount of events fairly evenly spread across the map)
This is based on version 1.1 (upcoming, not released yet) of my script so the configuration part has been changed. This time it's just below the big header.

Code:
#==============================================================================
# ** Constants for the anti lag script
#==============================================================================

class Game_Event
  SPECIAL_UPDATE_IDS = {} #{[1,1]=>'A',
                          # [1,2]=>'N'}
  NEVER_UPDATE_NAME_PATTERNS = ['[N]'] # [N] in the event name => not updated
  ALWAYS_UPDATE_NAME_PATTERNS = ['[A]'] # [A] in the event name => always updated 
end

class Game_Map
  ALWAYS_UPDATE = false #true
  BUFFER_SIZE = 1
  TILES_VERTICAL = 15
  TILES_HORIZONTAL = 20
  LIMIT_COMMON_EVENTS = false #true
  COMMON_EVENTS_TO_UPDATE = [3,5,9] #[common_event_id1, common_event_id2, ...]
end

Change the ALWAYS_UPDATE just like with the previous version.

You could naturally play around with the configurations. For example, do you need to update ALL event ALWAYS?
With the default configurations in this script you can make sure an event is always updated if it has [A] in its name. (This can be changed or more tags can be added)
If any event that has [N] in their name is NEVER updated. They are still shown, but any movement or animation is out of the question. Can for example be used for decoration events and map events. (By map events I mean when events are used as an extra layer)
You don't have to do any of this, but if you do it you can make your game run more smoothly.

Use the version of the anti lag script which you think feels the best

*hugs*
- Zeriab
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top