VXAce Passabilities Bug?

Status
Not open for further replies.

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
I tried working with some tileset passabilities and I came across this bug:



In RPG Maker 2003 that setting with the star should've worked. Is it a bug in the scripts?
 

Ronove

♫꒰・‿・๑꒱
Veteran
Joined
Mar 12, 2012
Messages
1,062
Reaction score
362
First Language
English
Primarily Uses
RMMV
I've run into that bug a lot as well! I hate the bug. :| The maker just ignores that you set up the arrows when you make it so it appears over players, though I would think that it's a problem with the gamemaker itself and not a script (as I don't think passibilities and the like are defined at all in the scripts, are they?). But I'm no expert here.
 

Ronove

♫꒰・‿・๑꒱
Veteran
Joined
Mar 12, 2012
Messages
1,062
Reaction score
362
First Language
English
Primarily Uses
RMMV
It is so stupid and painful! ;-; What's the work around?
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
Well...I just used events ahaha <_<;;

I have tons of tileset space so I just set the barkless version of the tree in E to save myself from pain to make them into charactersets.

 
Last edited by a moderator:

Espon

Lazy Creator
Veteran
Joined
Mar 20, 2012
Messages
1,810
Reaction score
192
First Language
Gibberish
Primarily Uses
RMMV
Seems kind of weird to be able to walk behind a tree from the bottom tiles and not be able to pass through the top.

If you have any spare A5 tiles you can do the passability on those and leave the tree tiles as stars. Should only need to copy 2 tiles since you don't need the restricted down passability on the top tiles, the bottom ones already restricts that movement.
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
Seems kind of weird to be able to walk behind a tree from the bottom tiles and not be able to pass through the top.
You can still walk above them.

 
Last edited by a moderator:

Espon

Lazy Creator
Veteran
Joined
Mar 20, 2012
Messages
1,810
Reaction score
192
First Language
Gibberish
Primarily Uses
RMMV
I mean if you walk into the trees from the bottom, you can't move up to the top tiles. And you can slip out of the bottom which looks kind of weird. Maybe I'm missing something but that's what I get from replicating your pictures. o_O
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Game_Map line 444 tells it to ignore flags if there's a star. Maybe you could just comment that out? But it might affect other things in an unexpected/unwanted way.

In case you've made mods (or I've made mods) to that class, it's this line in the check_passage method:



Code:
next if flag & 0x10 != 0            # [☆]: No effect on passage
 
Last edited by a moderator:

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
You mean this? @Espon



Game_Map line 444 tells it to ignore flags if there's a star. Maybe you could just comment that out? But it might affect other things in an unexpected/unwanted way.
Yeah Neonblack just brought it up to me too. But it is a bit @_@; hmmm @_@;;
 
Last edited by a moderator:

Neon Black

The Classy Prostitute
Veteran
Joined
Mar 17, 2012
Messages
1,149
Reaction score
374
First Language
Sarcasm
Primarily Uses
Yes, commenting that out will literally work. Just tested it.

EDIT: It's line 441 in my editor, though. Not sure why it's different for you.
 
Last edited by a moderator:

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
By any chance will it affect terrain/ladder/bush etc. too?

I'm not really sure what is counted as "flag"
 
Last edited by a moderator:

Espon

Lazy Creator
Veteran
Joined
Mar 20, 2012
Messages
1,810
Reaction score
192
First Language
Gibberish
Primarily Uses
RMMV
You mean this? @Espon

Yeah, but my character stops in their tracks if I try to move down from the top to bottom. I'm not using them as Star passability though since that ignores passability flags completely. I guess this is a little off-topic though, but just commenting on how it'll work out if you used the passabilty as A-tiles or as the script edit others pointed out.
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
Oh lol. I edited it a bit when I was trying to figure our some stuff, here:

 

Espon

Lazy Creator
Veteran
Joined
Mar 20, 2012
Messages
1,810
Reaction score
192
First Language
Gibberish
Primarily Uses
RMMV
Okay that's better. =P
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
check_passage starts on line 441 in the script, but the actual line to be commented out is 444.

It should not affect terrain/ladder/bush as the method JUST checks passability. What it WILL affect is any tile that has a star as passability - it would look instead at the 4 directions.
 

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
I just thought of something, which one would take priority the star passabilities or the one below it?
 

Neon Black

The Classy Prostitute
Veteran
Joined
Mar 17, 2012
Messages
1,149
Reaction score
374
First Language
Sarcasm
Primarily Uses
By commenting out that line, all you are doing is ignoring the "skip" if the tile has the star passability flag. Since flags hold much larger values (in most cases) than the simple 0x10, all we're doing here is a bitwise AND check to see if it's binary data includes that particular flag. In ordinary cases, it will move on to the next tile down if star passability is detected.

Now that I think about it, though, this will NOT work since we're only checking one tile. Give me 5 minutes to create a solution.

EDIT: Here is the solution. It checks if the tile is a star before checking passability. If the tile is a star and it is passable, it then checks the tile UNDER it. If not, it returns false as always. This prevents everything that is a star tile from being passable.



Code:
class Game_Map

  def check_passage(x, y, bit)
    all_tiles(x, y).each do |tile_id|
      flag = tileset.flags[tile_id]
      if flag & 0x10 != 0                   # [☆]: No effect on passage
        next         if flag & bit == 0     # [○] : Passable but star
        return false if flag & bit == bit   # [×] : Impassable
      else
        return true  if flag & bit == 0     # [○] : Passable
        return false if flag & bit == bit   # [×] : Impassable
      end
    end
    return false                          # Impassable
  end
end
 
Last edited by a moderator:

Archeia

Level 99 Demi-fiend
Developer
Joined
Mar 1, 2012
Messages
15,141
Reaction score
15,473
First Language
Filipino
Primarily Uses
RMMZ
Thank you very much NeonBlack <3

I'm going to test it out~

EDIT: Works like a charm~ Thank you very much <3

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Last edited by a moderator:
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top