[ACE] Free Movement script not updating events? Help a soul out!

userlame

Veteran
Veteran
Joined
Nov 25, 2014
Messages
47
Reaction score
9
First Language
English
Primarily Uses
I am using a specific pixel movement script for a specific reason — that is; CXJ's Free Movement script because as of version 0.87 it is (should be) compatible with Tsukihime's Collision Maps script.

However, an issue I am having is that any event that is passable only allows for ONE use each time you pass through it. Unpassable events such as NPCs work just fine but when it comes to events you can walk through, they don't seem to update with the interaction box somehow, I don't know.

Let me give you an example.
An event on the floor triggers the save menu, if I press it, the save menu opens up just fine, but after that I can't open the save menu again... Unless I either move and come back, or the event moves and comes back. 

Would some kind being take a look through the scripts and see what may be causing this and tell me how to fix it? Thank you!

Free Movement: http://area91.multiverseworks.com/rmvxa/script/CXJ_Free_Movement.rb

Collision Maps: http://himeworks.com/redirect.php?type=script&name=Collision_Maps

 
 
Last edited by a moderator:

userlame

Veteran
Veteran
Joined
Nov 25, 2014
Messages
47
Reaction score
9
First Language
English
Primarily Uses
In the movement script (http://area91.multiverseworks.com/rmvxa/script/CXJ_Free_Movement.rb) there is an event collision part and I'm wondering if it has anything to do with it.


See below:

Spoiler




Code:
  #--------------------------------------------------------------------------
  # * Alias: Refresh
  #--------------------------------------------------------------------------
  alias game_map_refresh_cxj_fm refresh
  def refresh
    game_map_refresh_cxj_fm
    refresh_event_collision
  end
  
  #--------------------------------------------------------------------------
  # * Alias: Event Setup
  #--------------------------------------------------------------------------
  alias game_map_setup_events_cxj_fm setup_events
  def setup_events
    game_map_setup_events_cxj_fm
    refresh_event_collision
  end
  
  #--------------------------------------------------------------------------
  # * New: Refresh Event Collision
  #--------------------------------------------------------------------------
  def refresh_event_collision
    if(free_movement_enabled?)
      temp_list = {}
      @map.note.split(/[\r\n]+/).each { |line|
        collision = []
        event_name = ''
        case line
        when /<collisionbox (.+?):[ ]*(\d+),[ ]*(\d+),[ ]*(\d+),[ ]*(\d+)>/i
          collision = [$2, $3, $4, $5]
          event_name = $1
        when /<collisionbox (.+?):[ ]*(.+?)>/i
          collision = CXJ::FREE_MOVEMENT::COLLISION[$2] if !CXJ::FREE_MOVEMENT::COLLISION[$2].nil?
          event_name = $1
        end
        if !event_name.empty? && !collision.empty?
          temp_list[event_name] = collision
        end
      }
      @events.each_value {|event|
        if temp_list.has_key?(event.name)
          collision = temp_list[event.name]
          event.set_collision_rect(collision[0], collision[1], collision[2], collision[3])
        end
      }
    end
  end

Any weirdness there?
 
Last edited by a moderator:

userlame

Veteran
Veteran
Joined
Nov 25, 2014
Messages
47
Reaction score
9
First Language
English
Primarily Uses
I am still having this problem, I would really appreciate if somebody looked into it!
 

Heirukichi

Veteran
Veteran
Joined
Sep 24, 2015
Messages
1,421
Reaction score
596
First Language
Italian
Primarily Uses
RMVXA
Hello, I don't know the answer to your problem but the link you provided gives 404 page not found. Unless you provide a valid link to the script I don't think people can help you :(
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,048
Messages
1,018,545
Members
137,834
Latest member
EverNoir
Top