BIG MAPS
#17
(06-10-2020, 07:17 PM)Melana Wrote: I placed Zeriabs script above Bigmaps but it only works when I erase the (true) in line 471 of the Bigmaps script.

This is extremely weird and should not occur for a couple of reasons...

Code:
   for event in @events.values
     # Adaptation for Zeriab's Anti-Lag
     if Game_Event.method_defined? :check_update
       event.check_update(true)
     end
   end
This bit of code appears within BigMaps's  bigmaps_gm_generate method... and formerly working within the bigmaps_gm_generate_events_setup method, but commented out for better placement so to handle the list so described..

As you can see, the statement of event.check_update(true) includes a 'true' parameter.  This means it passes control to the check_update method and is notifying it that the command is supposed to respond for Big Maps.

STILL... it shouldn't matter.....

Code:
  # Rewrite of method in Zeriab's Anti-Lag
  if Game_Event.method_defined? :check_update
    #------------------------------------------------------------------------
    # * Checks how the event should be updated.
    #------------------------------------------------------------------------
    def check_update(big_map = false)
      name = @event.name
      # Checks if the event is never to be updated. (For decoration)
      for pattern in NEVER_UPDATE_NAME_PATTERNS
        if (pattern.is_a?(String) and name.include?(pattern)) ||
        (pattern.is_a?(Regexp) and !(pattern =~ name).nil?)
          self.never_update = true
        end
      end

This is just the beginning of the rewritten check_update method.

FIRST, as you can see, it only works if the original 'check_update' method by Zeriab is even detected.  This by the use of the method_defined? statement.  Neat, eh?


But here's the magic:  
Code:
def check_update(big_map = false)

The part that says big_map = false .... this is a default setting.  If no value is passed, this method assumes that the big_map value is false, and assumes that it is being used by a normal map.  This technique is basically classic and I've used it for over a decade.


 I checked this and it works with RMXP, and should work with HiddenChest   The only thing I can think of then is to eliminate the spaces within this parameter so it reads:
Code:
def check_update(big_map=false)


The only other option I can think of would be to actually change the call to the check_update method within Zeriab's Game_Map setup method like so:
Code:
def setup(*args)
    # Makes an event map as a hash
    @event_map = {}
    # Original Setup
    zeriab_antilag_gmmap_setup(*args)
    # Go through each event
    for event in @events.values
      # Check how the event should be updated
      event.check_update(false)
    end
  end
Still, this shouldn't even be necessary because the change which I added assumes a 'false' setting by default.


But if you do not have this enabled, you will not have the ability to use the SPECIAL_UPDATE_IDS entries.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)

[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png]    [Image: liM4ikn.png]    [Image: fdzKgZA.png]    [Image: sj0H81z.png]
[Image: QL7oRau.png]    [Image: uSqjY09.png]    [Image: GAA3qE9.png]    [Image: 2Hmnx1G.png]    [Image: BwtNdKw.png%5B]
  Above are clickable links
Reply }


Messages In This Thread
BIG MAPS - by DerVVulfman - 07-13-2017, 12:56 AM
RE: BIG MAPS - by DrHouse93 - 07-13-2017, 08:53 PM
RE: BIG MAPS - by DerVVulfman - 07-13-2017, 10:50 PM
RE: BIG MAPS - by DerVVulfman - 07-14-2017, 03:12 AM
RE: BIG MAPS - by DrHouse93 - 07-14-2017, 09:59 AM
RE: BIG MAPS - by DerVVulfman - 07-16-2017, 07:03 PM
RE: BIG MAPS - by DerVVulfman - 07-23-2017, 05:21 PM
RE: BIG MAPS - by DerVVulfman - 06-05-2020, 04:32 PM
RE: BIG MAPS - by Mel - 07-23-2017, 09:40 PM
RE: BIG MAPS - by DerVVulfman - 06-08-2020, 03:37 PM
RE: BIG MAPS - by DerVVulfman - 06-08-2020, 07:01 PM
RE: BIG MAPS - by DerVVulfman - 06-09-2020, 05:27 PM
RE: BIG MAPS - by DerVVulfman - 06-09-2020, 10:15 PM
RE: BIG MAPS - by Mel - 06-10-2020, 08:29 AM
RE: BIG MAPS - by DerVVulfman - 06-10-2020, 04:18 PM
RE: BIG MAPS - by Mel - 06-10-2020, 07:17 PM
RE: BIG MAPS - by DerVVulfman - 06-11-2020, 02:58 AM
RE: BIG MAPS - by Mel - 06-11-2020, 10:09 AM
RE: BIG MAPS - by DerVVulfman - 06-12-2020, 03:40 AM
RE: BIG MAPS - by Mel - 06-12-2020, 07:01 PM
RE: BIG MAPS - by DerVVulfman - 06-13-2020, 03:27 AM
RE: BIG MAPS - by Mel - 12-05-2020, 01:19 PM
RE: BIG MAPS - by DerVVulfman - 12-05-2020, 08:47 PM
RE: BIG MAPS - by Mel - 12-06-2020, 08:52 AM
RE: BIG MAPS - by DerVVulfman - 12-06-2020, 11:37 PM
RE: BIG MAPS - by Mel - 12-07-2020, 12:19 AM
RE: BIG MAPS - by DerVVulfman - 12-07-2020, 04:16 AM
RE: BIG MAPS - by Mel - 12-07-2020, 07:11 PM
RE: BIG MAPS - by DerVVulfman - 12-08-2020, 04:34 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
   The Charlie Mini-Map / Dynamic Maps Patch DerVVulfman 2 4,903 03-29-2022, 11:55 PM
Last Post: DerVVulfman
   Dynamic Maps Expanded DerVVulfman 11 13,440 07-06-2021, 04:31 PM
Last Post: Mel
   Isometric Maps: MiniMap DVV Patch DerVVulfman 0 5,270 06-26-2014, 03:27 AM
Last Post: DerVVulfman
   The Lycan ABS Isometric Maps Patch DerVVulfman 1 6,713 06-25-2014, 03:54 AM
Last Post: DerVVulfman
   GubiD's Isometric Maps Package DerVVulfman 1 6,476 06-25-2014, 03:31 AM
Last Post: DerVVulfman
   Auto Populate Maps, Version 0.5 Charlie Fleed 14 27,068 03-17-2012, 03:04 PM
Last Post: LilyKnight
   Pre-title maps deValdr 3 10,439 04-22-2010, 05:24 PM
Last Post: yamina-chan



Users browsing this thread: 7 Guest(s)