Victor Animated Battle Error

rayy07

Villager
Member
Joined
Jul 25, 2014
Messages
5
Reaction score
0
First Language
english
Primarily Uses
Hey I'm having a bit of trouble getting Victors animated battle script to work with my project.
I followed a basic tutorial but then realized i have to change some things to get it to work with
kaduki sprite sheets.

TL;DR: I'm getting an error code:
Script 'Victor Animated Battle' line 6332: NameError occured.
uninitialized constant Spriteset_Battle:: Plane_ActionPlane

I'm trying to get it to work with one character for now so I can understand it and then just reapply it to all other characters.
I'm guessing maybe it has something to do with naming? So I can send images of the database, script, or documents.
Let me know if there's anything that I didn't explain too or if you need more screenshots : )
data.PNGdocs.PNGscript.PNG
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA

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

 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
My first guess would be to not have [anim] in the <battler name: > entry. and from what i saw before, an [anim] graphic file is 4x14 images.
what you are showing is charset images (3x4). I have mine set this way and do not an [anim] anywhere in the name or file.
Code:
    '$actor83'    => {frames: 4, rows: 12, mirror: true, invert: false,
                   mode: :sprite, action: :default },
instead of
Code:
    '$actor83'  => {frames: 3, rows: 4, mirror: false, invert: false,
                   mode: :charset, action: :kaduki},
 

rayy07

Villager
Member
Joined
Jul 25, 2014
Messages
5
Reaction score
0
First Language
english
Primarily Uses
My first guess would be to not have [anim] in the <battler name: > entry. and from what i saw before, an [anim] graphic file is 4x14 images.
what you are showing is charset images (3x4). I have mine set this way and do not an [anim] anywhere in the name or file.
Code:
    '$actor83'    => {frames: 4, rows: 12, mirror: true, invert: false,
                   mode: :sprite, action: :default },
instead of
Code:
    '$actor83'  => {frames: 3, rows: 4, mirror: false, invert: false,
                   mode: :charset, action: :kaduki},
I tried this just now and i'm still getting the same error message... do you think I did something wrong?
data.PNG script.PNG script 2.PNG docs.PNG
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
Again not the right settings, but I don't think its your problems anyways.

It's odd because you have nothing else except victor sant basic scripts in there.

This is a 4x14 sprite
Holders2.png

As I said before you have 3x4 images. So you should be using
'$actor83' => {frames: 3, rows: 4, mirror: false, invert: false, mode: :charset, action: :kaduki},
But is that the problem, I think there is something else. Perhaps get the script again. Maybe something didn't copy properly.
 

rayy07

Villager
Member
Joined
Jul 25, 2014
Messages
5
Reaction score
0
First Language
english
Primarily Uses
Again not the right settings, but I don't think its your problems anyways.

It's odd because you have nothing else except victor sant basic scripts in there.

This is a 4x14 sprite
View attachment 89049

As I said before you have 3x4 images. So you should be using

But is that the problem, I think there is something else. Perhaps get the script again. Maybe something didn't copy properly.

Ok so i recopied the script and did what you said and it sort of worked?
It's only using the first sprite sheet but I want it to use all of them ($Actor83_1,_2,_3, etc.) How would I do that?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
Those are specified in the settings.
VE_ACTION_SETTINGS[:kaduki]
Code:
    # Pose displayed when idle
    <action: idle, loop>
    pose: self, row 1, all frames, sufix _1, return, wait 16;
    wait: pose;
    </action>
Notice the _1 in there.

You have to configure your movements and images to match the settings in the script.
 

rayy07

Villager
Member
Joined
Jul 25, 2014
Messages
5
Reaction score
0
First Language
english
Primarily Uses
Those are specified in the settings.
VE_ACTION_SETTINGS[:kaduki]
Code:
    # Pose displayed when idle
    <action: idle, loop>
    pose: self, row 1, all frames, sufix _1, return, wait 16;
    wait: pose;
    </action>
Notice the _1 in there.

You have to configure your movements and images to match the settings in the script.
ya my scripts settings are just like that too. Is there something I'm not understanding? I really appreciate your help btw. I'm sorry if i'm not the best with scripting but I do really want this script to work for me and I really appreciate all your help so far
upload_2018-5-4_0-41-12.png
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
Ok, I gave a short explanation but lets examine it more.
pose displayed when idle. $actor83_1 row 1. This is the images shown when the actor is doing nothing.
pose displayed when hp low $actor83_1 row 3. This is the images shown when the actors hp is low. It has the sweat drops showing.
And you carry on with that for whatever pose that you want the actor to show when doing an action.

<advance pose: step forward>
<attack pose: bow>

If it's a new skill and you need to configure it, you would specify each step in the process and specify the pose.
Code:
    # Pose for 'Bow' type weapons
    <action: bow, reset>
    wait: targets, movement;
    direction: self, subjects;
    pose: self, row 2, all frames, sufix _3, wait 4;
    icon: self, image 'Bow1', x +6, above;
    icon: self, image 'Bow2', x +6, above;
    icon: self, image 'Bow3', x +6, above;
    wait: 10;
    action: targets, arrow;
    icon: self, image 'Bow2', x +6, above;
    icon: self, image 'Bow1', x +6, above;
    wait: targets, action;
    </action>
  
    # Pose for the targets of 'Bow' attack
    <action: arrow, reset>
    throw: self, user, image 'Arrow', arc 10, angle 45, init x -6, init y -12;
    wait: self, throw;
    anim: id 13, target;
    wait: 8;
    effect: active, targets, 100%;
    </action>
 

rayy07

Villager
Member
Joined
Jul 25, 2014
Messages
5
Reaction score
0
First Language
english
Primarily Uses
Ok, I gave a short explanation but lets examine it more.

pose displayed when idle. $actor83_1 row 1. This is the images shown when the actor is doing nothing.
pose displayed when hp low $actor83_1 row 3. This is the images shown when the actors hp is low. It has the sweat drops showing.
And you carry on with that for whatever pose that you want the actor to show when doing an action.

<advance pose: step forward>
<attack pose: bow>

If it's a new skill and you need to configure it, you would specify each step in the process and specify the pose.
Code:
    # Pose for 'Bow' type weapons
    <action: bow, reset>
    wait: targets, movement;
    direction: self, subjects;
    pose: self, row 2, all frames, sufix _3, wait 4;
    icon: self, image 'Bow1', x +6, above;
    icon: self, image 'Bow2', x +6, above;
    icon: self, image 'Bow3', x +6, above;
    wait: 10;
    action: targets, arrow;
    icon: self, image 'Bow2', x +6, above;
    icon: self, image 'Bow1', x +6, above;
    wait: targets, action;
    </action>
 
    # Pose for the targets of 'Bow' attack
    <action: arrow, reset>
    throw: self, user, image 'Arrow', arc 10, angle 45, init x -6, init y -12;
    wait: self, throw;
    anim: id 13, target;
    wait: 8;
    effect: active, targets, 100%;
    </action>
Ya I'm having trouble with that...
I'm not sure what I should edit to the setting to.
I don't really know what images for each pose should use what image I guess.
I understand how it works but there's a lot of different poses and I guess the way it's set up by default looks really awkward and stiff.
It looks like it's only really using the first image for everything.
 

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,862
Messages
1,017,047
Members
137,569
Latest member
Shtelsky
Top