Super Simple Vehicle System - Enhanced
#44
BUMP
to version 9.2

First, lemme say *STUPID STUPID STOOOOPID* .    Laughing + Tongue sticking out

I set up the method called 'vehicle_passable?' to test events to see if you can pass through them or not.  However, I neglected to ensure a 'false' flag if all other conditions were ignored.   I needed a new line after the other conditions to return a 'false' value ... to block the vehicle.

The initial code initially read like this around line 543:

Code:
        if tile_id >= 0 and event != self_event and
           event.x == x and event.y == y and not event.through
          return false  if @passages[tile_id] & bit != 0
          return false  if @passages[tile_id] & 0x0f == 0x0f
          return true   if @priorities[tile_id] == 0
        end



It should now read thus:

Code:
        if tile_id >= 0 and event != self_event and
           event.x == x and event.y == y and not event.through
          return false  if @passages[tile_id] & bit != 0
          return false  if @passages[tile_id] & 0x0f == 0x0f
          return true   if @priorities[tile_id] == 0
          return false  unless $game_system.vehicle_character.nil?
        end

Yep, the last line returns a 'false' result saying the event cannot be walked through, but with an extra stipulation (if the vehicle exists... not nil).

The credits list now includes Sujabes467 for discovering and reporting the bug.
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
RE: Super Simple Vehicle System - Enhanced - by DerVVulfman - 02-25-2017, 04:54 AM
Super Simple Vehicle System - Enhanced - by Jeea - 12-20-2009, 04:03 PM
Super Simple Vehicle System - Enhanced - by Jeea - 12-21-2009, 02:44 AM
Super Simple Vehicle System - Enhanced - by Ace - 02-01-2010, 11:06 PM
Super Simple Vehicle System - Enhanced - by Ace - 02-01-2010, 11:42 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Face Sync System Core DerVVulfman 0 901 04-11-2026, 12:20 AM
Last Post: DerVVulfman
   Zeriab's Anti Lag System Zeriab 3 12,444 02-14-2026, 05:57 AM
Last Post: DerVVulfman
   Super Skill Nerf XP kyonides 9 7,642 10-09-2025, 01:35 PM
Last Post: Ace_V
   Simple Dashing DerVVulfman 0 3,279 03-16-2025, 04:32 AM
Last Post: DerVVulfman
   Wachunga's Fog of War - Enhanced Edition DerVVulfman 0 2,943 11-17-2024, 04:14 AM
Last Post: DerVVulfman
   The Wanderers: The Customizable Encounters System DerVVulfman 0 4,072 08-24-2024, 07:12 PM
Last Post: DerVVulfman
   Enhanced Squad Movement DerVVulfman 5 14,480 02-24-2023, 04:40 PM
Last Post: DerVVulfman
   Zenith Tactical Battle System Plus (ZTBS+) DerVVulfman 0 7,234 05-10-2022, 10:42 PM
Last Post: DerVVulfman
   Text Scroll Script - Enhanced DerVVulfman 23 59,408 02-18-2021, 04:16 AM
Last Post: DerVVulfman
   Commercial System Package DerVVulfman 11 28,969 01-04-2020, 12:37 AM
Last Post: Pelip



Users browsing this thread: 2 Guest(s)