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.

Mr.Mo's Squad Based ABS (SBABS)

Orges

Member

Hi,
I had an error on SBABS, i added it to my game and if you kill a person an error pops up (dosent happen alot but i want it off)
 
if some one can answer me this about this script please! How do you make the monsters use skills? In your regular ABS system the monsters can use skills but seems like they can't in this one... I tried to make an enemy with only spell attacks and they won't do anything.
 

Rare

Member

Orges;308496 said:
Hi,
I had an error on SBABS, i added it to my game and if you kill a person an error pops up (dosent happen alot but i want it off)

It would be nice to know what that error says...
 
smellycheeseman;300125 said:
I got an error. When I saved with another party member leading I got this:

Script 'o SDK Part III' line 1773: TypeError occured.

no marshal_dump is defined for class Sprite.

I've been getting this error, too. It happens 90% of the time, making the party switching almost unusable. Can anyone fix this error? Is anyone even using this ABS?

Too bad Mr. Mo. went commercial on us. :s
 
You you want animation even if you don't attack, add this in line 1123ish

(the update player section)
Code:
if Input.trigger?(ATTACK_KEY)
 
        animate($game_player, "_melee") if @player_ani

      end
 
It seems removing the party switching code is our only option for now. I wish someone who understood scripting better could help us out.
 
Since that Mr.Mo has quit, I think we are going to demand a new ABS and other scripters are going to make them off this or start from scratch. Then there will be a little competetion between a few scripters to get a great ABS and that will be great for us all!
 
That seems to be our only option.....
But this ABS is sooooo close to being finished. It's only a couple bug fixes away. I'm also sure that it wouldn't take more than a few lines of code to make an Event Vs Event version.
 
Hey guys! I did manage to fix something....

Did you notice the menu??? If you checked it, you might have realized that you can't scroll down to select one of your extra party members. This would prevent you from selecting party member 7 and changing his equipment for example.

Here's a fix:

Go to the Window_MenuStatus class and change it to this
Code:
#==============================================================================
# ** Window_MenuStatus
#------------------------------------------------------------------------------
#  This window displays party member status on the menu screen.
#==============================================================================

class Window_MenuStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    #super(0, 0, 480, 480)
    unless $game_party.actors.size > 4
      super(0, 0, 480, 480)
    else
      super(0, 0, 480, 160 * $game_party.actors.size)
    end
    self.contents = Bitmap.new(width - 32, height - 32)
    refresh
    self.active = false
    self.index = -1
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      x = 64
      y = i * 116
      actor = $game_party.actors[i]
      draw_actor_graphic(actor, x - 40, y + 80)
      draw_actor_name(actor, x, y)
      draw_actor_class(actor, x + 144, y)
      draw_actor_level(actor, x, y + 32)
      draw_actor_state(actor, x + 90, y + 32)
      draw_actor_exp(actor, x, y + 64)
      draw_actor_hp(actor, x + 236, y + 32)
      draw_actor_sp(actor, x + 236, y + 64)
    end
  end
  #--------------------------------------------------------------------------
  # * Cursor Rectangle Update
  #--------------------------------------------------------------------------
  def update_cursor_rect
   if @index < 0
      self.cursor_rect.empty
      return
    end
    row = @index / @column_max
    if row < self.top_row
      self.top_row = row
    end
    if row > self.top_row + (self.page_row_max - 1)
      self.top_row = row - (self.page_row_max - 1)
    end
    cursor_width = self.width / @column_max - 32
    x = @index % @column_max * (cursor_width + 32)
    y = @index / @column_max * 116 - self.oy
    self.cursor_rect.set(x, y, cursor_width, 96)
  end
  
  alias large_refresh refresh
  def refresh
    large_refresh
    self.height = 480
  end
  
  def top_row
    return self.oy / 116
  end
  
  def top_row=(row)
    if row < 0
      row = 0
    end
    if row > row_max - 1
      row = row_max - 1
    end
    self.oy = row * 116
  end
  
  def page_row_max
    return 4
  end
  
end

CREDIT: Credit to Fomar whose scripts included these changes.
http://www.rmxp.org/forums/showthread.php?t=9722

I apologize if it causes any incompatability with other scripts....

I'm not very good with Ruby, but I know Java and C++. I'm trying to fix this darn thing. I just can't fix the error with the party switching and saving just yet. I'll keep trying.
 
Another fix!

This will do the same for using selecting characters from your massive party when using items or skills on them.

Change the code in Window_Target to:
Code:
#==============================================================================
# ** Window_Target
#------------------------------------------------------------------------------
#  This window selects a use target for the actor on item and skill screens.
#==============================================================================

class Window_Target < Window_Selectable
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    #super(0, 0, 336, 480)
    unless $game_party.actors.size > 4
      super(0, 0, 336, 480)
    else
      super(0, 0, 336, 160 * $game_party.actors.size)
    end
    self.contents = Bitmap.new(width - 32, height - 32)
    self.z += 10
    @item_max = $game_party.actors.size
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    for i in 0...$game_party.actors.size
      x = 4
      y = i * 116
      actor = $game_party.actors[i]
      draw_actor_name(actor, x, y)
      draw_actor_class(actor, x + 144, y)
      draw_actor_level(actor, x + 8, y + 32)
      draw_actor_state(actor, x + 8, y + 64)
      draw_actor_hp(actor, x + 152, y + 32)
      draw_actor_sp(actor, x + 152, y + 64)
    end
  end
  #--------------------------------------------------------------------------
  # * Cursor Rectangle Update
  #--------------------------------------------------------------------------
  def update_cursor_rect
   if @index < 0
      self.cursor_rect.empty
      return
    end
    row = @index / @column_max
    if row < self.top_row
      self.top_row = row
    end
    if row > self.top_row + (self.page_row_max - 1)
      self.top_row = row - (self.page_row_max - 1)
    end
    cursor_width = self.width / @column_max - 32
    x = @index % @column_max * (cursor_width + 32)
    y = @index / @column_max * 116 - self.oy
    self.cursor_rect.set(x, y, cursor_width, 96)
  end
  
  alias large_refresh refresh
  def refresh
    large_refresh
    self.height = 480
  end
  
  def top_row
    return self.oy / 116
  end
  
  def top_row=(row)
    if row < 0
      row = 0
    end
    if row > row_max - 1
      row = row_max - 1
    end
    self.oy = row * 116
  end
  
  def page_row_max
    return 4
  end
  
end

CREDIT: Credit to Fomar whose scripts included these changes.
http://www.rmxp.org/forums/showthread.php?t=9722
 
I?m getting a problem. Whenever i try going near any enemy, i get the followying error:

"An error has occured in Mr.Mo's SBABS Lite 2.0 during script operation.
divided by 0"

I have set up the scripts exactly like the demo, haven?t put any other scrupts and the demo works fine.

Thanks in advance.
 
DMaverick;315412 said:
I?m getting a problem. Whenever i try going near any enemy, i get the followying error:

"An error has occured in Mr.Mo's SBABS Lite 2.0 during script operation.
divided by 0"

I have set up the scripts exactly like the demo, haven?t put any other scrupts and the demo works fine.

Thanks in advance.

Um.... a few questions:

1) Are you using the official version of RPG Maker XP?

2) Did the Demo work for you before you tried setting it up in your RPG?

3) If the demo at least worked, why not just copy the demo and rename a few things?
 
Would any capable scripters like to take on the challenge of fixing this bug ridden script? It would be a great favor to the community, I think.
 

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