Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Heretic86

RMXP Front View ATB Script Bugs - Need Help

Question

This one is way way over my head. And probably most other peoples as well due to the fact it was originally in Japanese, the Documentation doesnt translate, and that it isnt supported by the Author. Those two things said, I think this is a very nice (looking at least) script.

 

But, there are numerous bugs.

 

#1 Adding a Character DURING Battle, that Characters Progress Bar does not fill as it should.

 

#2 When less than a Full Party is in a fight, the Progress Bar fills strangely, like triggering actions immediately instead of waiting until the Progress Bar is ready.

 

#3 Script behaves poorly (lag) with Scripted Battle Events, like for Bosses, or if another Enemy is flagged "Appear Halfway" then triggered with "Enemy Appearance".

 

I would like to use this script, but in its current state, I dont think I can. Anyway, here is the script:

 

http://www.775.net/~...wnloads/ATB.txt

 

Anyone care to take a crack at it?

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Fixed Bug #2

 

Change this line:

battler.cp = [[65535 * (rand(15) + 85) / 100 * battler.agi / @agi_total * 4, 0].max, 65535].min

to

battler.cp = [[65535 * (rand(15) + 85) / 100 * battler.agi / @agi_total * $game_party.actors.size, 0].max, 65535].min

 

The assumption of using 4 Characters was made when this part of the code was written.

 

---

 

Bug #1, when ADDING a Character DURING Battle, their Progress Bar (or whatever you call it, Script calls it CP) does not fill AT ALL.

 

Suspected solution: I found an Array called "@count_battlers" which is created at the very start of the battle in INITIALIZE. This never runs again, thus, a New Party Member is NEVER added to that Array. Reinitializing crashes the game. I dont know how to do anything about this.

 

---

 

Bug #3, Performance: Possible Solution. While waiting for Input from the player (to hit a button), a variable @cp_thread.stop is set to TRUE (CP being the Progress Bar thingy...) and is turned off with @cp_thread.start. It appears to run as a Parallel process so its performance is horrible. That is to say, it is continually calculating and updating the bars at the bottom, which wouldnt need to occur while say a creature was fading in. I might be able fix this, unelss anyone else has a quick fix they'd like to share...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...