Problems with Galv's Animated Battler. Need help please.

TheGreatEater

Coding is my dump stat.
Veteran
Joined
May 20, 2015
Messages
393
Reaction score
206
First Language
English
Primarily Uses
N/A
So I reinstalled Galv's AnimatedBattlers, and when I load it up, I keep getting a an error for an undefined method for 'width':

 

  def spritesheet_normal

    @cw = bitmap.width / GALV_BAT::COLS

    @ch = bitmap.height / GALV_BAT::ROWS

    self.ox = @cw / 2

    self.oy = @ch

    set_mirror

  end

 

Where it says. @cw=bitmap.width / GALV_BAT::COLS.  What is the problem there?

 

And the newer version worked in my old file with Yanfly's and Vlue's stuff. 

 

Edit: 

 

Made an edit, since there wasn't anything in Galv's stuff, or where I saw the battlers, that the sheet needed to be divisible by 14. 
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
I answered the problem in your other topic, this is related: your battlersheet has the wrong size.


You need to decide the size of a single sprite, and then multiply that size by the number of cols and rows for the sheet.


The sheet you provided has a size of 1600x827 for 14x8 sprites.


1600 divided by 14 is 114.285 - not a valid whole number.


827 divided by 8 is 103.375 - again not a whole number.


That is probably why the calculations fail, the results need to be the whole numbers that set the size of a single sprite.
 

TheGreatEater

Coding is my dump stat.
Veteran
Joined
May 20, 2015
Messages
393
Reaction score
206
First Language
English
Primarily Uses
N/A
But they worked the first time though ... well obviously not like they should. But I never got an error message the first time I had it installed. I'll try changing it, and seeing if that gets rid of the Error message. 
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
If there are other errors, please provide a link to the script.

Made an edit, since there wasn't anything in Galv's stuff, or where I saw the battlers, that the sheet needed to be divisible by 14.
More precisely, it needs to be divisible by the numbers set in COLS and ROWS - if you change those numbers, then it'll be other divisors.
And even more precisely, it's the other way around - you first set the size of your sprite (like 64x64 pixels for regular Holder Battler), and then multiply that size by the number of poses and animation frames you want to get the size of the battlersheet.


I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Since you don't need a new script but need help with getting an existing script working.
 

TheGreatEater

Coding is my dump stat.
Veteran
Joined
May 20, 2015
Messages
393
Reaction score
206
First Language
English
Primarily Uses
N/A
Nope the size wasn't the problem. 

Sheet is now

2080 [/8 = 260]

and 

3990 [/14 = 285]

_____________

That and the jump problem was before Pre-reinstall, and it didn't have this problem, and was using my incorrectly made sheets without noting a script problem. 

As for the script itself.

http://galvs-scripts.com/galvs-animated-battlers/ that shows the script coding. 

I have line 77 with the  COLS = 8, rather than COLS = 4. Other than that, no changes have been made. 
 

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,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top