[XP] Blizz-ABS

Started by Blizzard, January 09, 2008, 08:21:56 am

Previous topic - Next topic

Blizzard

I think I know what's causing this. A homing projectile is probably targeting a summoned ally and it disappears before the projectile can hit it. Try make the enemy launch an attack right before the summon is supposed to disappear. If you can cause the error in this way, then I'm probably correct about my assumption what is causing that error. Expect it to be fixed in the next version.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

lTritonl

Quote from: Blizzard on March 12, 2009, 03:28:47 am
I think I know what's causing this. A homing projectile is probably targeting a summoned ally and it disappears before the projectile can hit it. Try make the enemy launch an attack right before the summon is supposed to disappear. If you can cause the error in this way, then I'm probably correct about my assumption what is causing that error. Expect it to be fixed in the next version.


Yup, this is true. If the summoned ally disappears and projectiles are still following, then the following line comes up as an error

Undefined method '+'

Line:

    battlers[index + 1].update_ci if battlers[index + 1] != nil

The method:

  #----------------------------------------------------------------------------
  # update_ci
  #  index - new caterpillar index
  #  Integrates back into the caterpillar by setting up @cindex.
  #----------------------------------------------------------------------------
  def update_ci(ind = (@cindex == nil ? nil : self.index))
    # set new cindex
    @cindex = ind
    # get all battlers
    battlers = $BlizzABS.battlers
    # if index isn't removing from caterpillar
    if ind != nil
      # iterate through all actors in front of self
      (0...index).each {|i|
          # decrease cindex if missing in the caterpillar or no battler
          @cindex -= 1 if battlers[i].cindex == nil || battlers[i].battler == nil}
    end
    # update the @cindex of the actor behind if he exists
    battlers[index + 1].update_ci if battlers[index + 1] != nil
  end


error happens every single time the summoned ally disappears (or if he dies) and projectiles are still chasing him.

tSwitch

sounds like it'd be easiest to Auto-kill homing projectiles if their target ceases to exist in some way or another.


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: tSwitch.us | Twitter | Tumblr

sk8r23

Rmxp
Blizz abs script 2 version 2.23

When i start the game i get a message saying,"Script Abs2 line 6883:Name error occured, unidentified method, update for class, game system.

Aqua

That line is a comment...
  # battlers_number_type

Maybe you have the scripts in the wrong order or something...

Also... report errors in the Blizz-ABS thread; we don't need a new thread for every problem you have relating to Blizz-ABS.

Blizzard

Either that or he put all 3 parts into one slot. Why do people do this? Isn't it kinda obvious that you need to put them into seperate slots if they were seperated? -_-
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

sk8r23

It is all separated its not in one script but on the script the line is 6833 sorry and it says the same thing i said the script says
Spoiler: ShowHide
  Line6833  alias upd_blizzabs_later update


Once i start my game it reads
Spoiler: ShowHide
Name error occured, unidentified method, update for class, game system.



Blizzard

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

sk8r23

Well I still do not understand cause the only scripts i fully have is blizz-abs andsome of mogs scripts:
Spoiler: ShowHide
MOG - MPW Map_Name
           MOG - Scene Title Celia
           MOG - Scene Shop
           MOG - Scene Equip
           MOG - Scene Item
           MOG - Scene Game Over
           MOG - Scene File


Dont get mad if im doing anything stupid or i didnt read right cause im sorta new to Xp i usually used rm2k3 and im not fully knowing of everything about rmxp.

Blizzard

The only way how you can be getting this error is if you put Blizz-ABS above Game_System. In other words your scripts are NOT in the right order.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

sk8r23

it is not above game system i always make shore its above main but this is the order of my scripts:
Spoiler: ShowHide
MOG - MPW Map_Name
           MOG - Scene Title Celia
           MOG - Scene Shop
           MOG - Scene Equip
           MOG - Scene Item
           MOG - Scene Game Over
           MOG - Scene File
           Blizz-Abs1
           Blizz-Abs2
           Blizz-Abs3

Blizzard

Then you deleted it or MOG scripts did.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

sk8r23

What should i do about it, should i delete mog's scripts?
When  first put them in they worked just fine for a day or so.

Blizzard

March 15, 2009, 01:40:28 pm #1713 Last Edit: March 15, 2009, 02:29:08 pm by Blizzard
Try removing them temporarily and see how it works. Or upload a demo of the game and PM me a download link, I can look into it and tell you how to fix it in your game.

EDIT: Yes, you HAVE deleted the Game_System script. You have replaced it with a Blizz-ABS Part 1. And you need to put Blizz-ABS below the other scripts.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

sk8r23

Did it work? Then can you please send it back to me i know i may alreayd have to but id like to have it to show me what youve done.

Blizzard

Just put the default Game_System script back into its slot.

Code: Default Game_System
#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
#  This class handles data surrounding the system. Backround music, etc.
#  is managed here as well. Refer to "$game_system" for the instance of
#  this class.
#==============================================================================

class Game_System
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader   :map_interpreter          # map event interpreter
  attr_reader   :battle_interpreter       # battle event interpreter
  attr_accessor :timer                    # timer
  attr_accessor :timer_working            # timer working flag
  attr_accessor :save_disabled            # save forbidden
  attr_accessor :menu_disabled            # menu forbidden
  attr_accessor :encounter_disabled       # encounter forbidden
  attr_accessor :message_position         # text option: positioning
  attr_accessor :message_frame            # text option: window frame
  attr_accessor :save_count               # save count
  attr_accessor :magic_number             # magic number
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    @map_interpreter = Interpreter.new(0, true)
    @battle_interpreter = Interpreter.new(0, false)
    @timer = 0
    @timer_working = false
    @save_disabled = false
    @menu_disabled = false
    @encounter_disabled = false
    @message_position = 2
    @message_frame = 0
    @save_count = 0
    @magic_number = 0
  end
  #--------------------------------------------------------------------------
  # * Play Background Music
  #     bgm : background music to be played
  #--------------------------------------------------------------------------
  def bgm_play(bgm)
    @playing_bgm = bgm
    if bgm != nil and bgm.name != ""
      Audio.bgm_play("Audio/BGM/" + bgm.name, bgm.volume, bgm.pitch)
    else
      Audio.bgm_stop
    end
    Graphics.frame_reset
  end
  #--------------------------------------------------------------------------
  # * Stop Background Music
  #--------------------------------------------------------------------------
  def bgm_stop
    Audio.bgm_stop
  end
  #--------------------------------------------------------------------------
  # * Fade Out Background Music
  #     time : fade-out time (in seconds)
  #--------------------------------------------------------------------------
  def bgm_fade(time)
    @playing_bgm = nil
    Audio.bgm_fade(time * 1000)
  end
  #--------------------------------------------------------------------------
  # * Background Music Memory
  #--------------------------------------------------------------------------
  def bgm_memorize
    @memorized_bgm = @playing_bgm
  end
  #--------------------------------------------------------------------------
  # * Restore Background Music
  #--------------------------------------------------------------------------
  def bgm_restore
    bgm_play(@memorized_bgm)
  end
  #--------------------------------------------------------------------------
  # * Play Background Sound
  #     bgs : background sound to be played
  #--------------------------------------------------------------------------
  def bgs_play(bgs)
    @playing_bgs = bgs
    if bgs != nil and bgs.name != ""
      Audio.bgs_play("Audio/BGS/" + bgs.name, bgs.volume, bgs.pitch)
    else
      Audio.bgs_stop
    end
    Graphics.frame_reset
  end
  #--------------------------------------------------------------------------
  # * Fade Out Background Sound
  #     time : fade-out time (in seconds)
  #--------------------------------------------------------------------------
  def bgs_fade(time)
    @playing_bgs = nil
    Audio.bgs_fade(time * 1000)
  end
  #--------------------------------------------------------------------------
  # * Background Sound Memory
  #--------------------------------------------------------------------------
  def bgs_memorize
    @memorized_bgs = @playing_bgs
  end
  #--------------------------------------------------------------------------
  # * Restore Background Sound
  #--------------------------------------------------------------------------
  def bgs_restore
    bgs_play(@memorized_bgs)
  end
  #--------------------------------------------------------------------------
  # * Play Music Effect
  #     me : music effect to be played
  #--------------------------------------------------------------------------
  def me_play(me)
    if me != nil and me.name != ""
      Audio.me_play("Audio/ME/" + me.name, me.volume, me.pitch)
    else
      Audio.me_stop
    end
    Graphics.frame_reset
  end
  #--------------------------------------------------------------------------
  # * Play Sound Effect
  #     se : sound effect to be played
  #--------------------------------------------------------------------------
  def se_play(se)
    if se != nil and se.name != ""
      Audio.se_play("Audio/SE/" + se.name, se.volume, se.pitch)
    end
  end
  #--------------------------------------------------------------------------
  # * Stop Sound Effect
  #--------------------------------------------------------------------------
  def se_stop
    Audio.se_stop
  end
  #--------------------------------------------------------------------------
  # * Get Playing Background Music
  #--------------------------------------------------------------------------
  def playing_bgm
    return @playing_bgm
  end
  #--------------------------------------------------------------------------
  # * Get Playing Background Sound
  #--------------------------------------------------------------------------
  def playing_bgs
    return @playing_bgs
  end
  #--------------------------------------------------------------------------
  # * Get Windowskin File Name
  #--------------------------------------------------------------------------
  def windowskin_name
    if @windowskin_name == nil
      return $data_system.windowskin_name
    else
      return @windowskin_name
    end
  end
  #--------------------------------------------------------------------------
  # * Set Windowskin File Name
  #     windowskin_name : new windowskin file name
  #--------------------------------------------------------------------------
  def windowskin_name=(windowskin_name)
    @windowskin_name = windowskin_name
  end
  #--------------------------------------------------------------------------
  # * Get Battle Background Music
  #--------------------------------------------------------------------------
  def battle_bgm
    if @battle_bgm == nil
      return $data_system.battle_bgm
    else
      return @battle_bgm
    end
  end
  #--------------------------------------------------------------------------
  # * Set Battle Background Music
  #     battle_bgm : new battle background music
  #--------------------------------------------------------------------------
  def battle_bgm=(battle_bgm)
    @battle_bgm = battle_bgm
  end
  #--------------------------------------------------------------------------
  # * Get Background Music for Battle Ending
  #--------------------------------------------------------------------------
  def battle_end_me
    if @battle_end_me == nil
      return $data_system.battle_end_me
    else
      return @battle_end_me
    end
  end
  #--------------------------------------------------------------------------
  # * Set Background Music for Battle Ending
  #     battle_end_me : new battle ending background music
  #--------------------------------------------------------------------------
  def battle_end_me=(battle_end_me)
    @battle_end_me = battle_end_me
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    # reduce timer by 1
    if @timer_working and @timer > 0
      @timer -= 1
    end
  end
end
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Satoh

Ok, it's been a while...

I decided to check out the latest on the B-ABS scene.

A few tings I noticed (which are giving me hell to no end)

Apparently the party can act freely now... that isn't bad my itself, but, I don't have all my animations for the party yet, so when they attack I crash XD;;

I have a suggestion to fix this... a final solution to this issue. Default attack, skill, weapon, etc animations that are called automatically when a specific file is not found.

Also, there seems to be an error when I try to access the save menu... it tells me something about:
"Script 'Window_SaveFile' line 30: ArgumentError occurred.

undefined class/module Game_Controls"

An issue I have perpetually run into is B-ABS tries to call attack/skill/item animations for enemies and characters even when I have them disabled.

Example: I have character attack animations active, character skill/item animations and ALL enemy animations disabled...
but when a character uses a skill or an enemy does... well.. anything... I get a missing file error.

as for any new features... I haven't messed with them yet... but I certainly hope it's everything I've come to expect from your work previous.

I may hang around a while... I may not... college is pretty busy for me right now.
Requesting Rule #1: BE SPECIFIC!!

Light a man a fire and he'll be warm for a night...
Light a man afire and he'll be warm for the rest of his life... ¬ ¬;

My Resources

Blizzard

Old savefiles sometimes get massively corrupted when I update to a new version (when I remove saved classes). Just delete them.
I'll look into the problems.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

RoseSkye

Is this ABS compatible with any Message systems?

Starrodkirby86

Hey it's RoseSkye.

Blizz-ABS should be best compatible with a recent version of ccoa's UMS. Good luck finding that in some places...There's actually a link lying around here in the forums...Shdwlink1993 might know of it, so maybe you can stalk some of his posts.

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).