Furiousfox

Villager
Member
Joined
Oct 24, 2021
Messages
9
Reaction score
2
First Language
English
Primarily Uses
RMVXA
Hey I just put subclasses into my GTBS game and when I am in a tactical battle and press B twice over an enemy to view their stats and class I get this error and the game crashes.
I have no idea how I would define a subclass. I think it would be fine if pressing BB on an enemy to see their stats just didnt show their subclass, anyway to fix this?
 

Attachments

  • script.png
    script.png
    22.5 KB · Views: 9
  • error.png
    error.png
    5.3 KB · Views: 9

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,182
Reaction score
15,544
First Language
English
Primarily Uses
RMMV

I've moved this thread to RGSSx Script Support. Thank you.



Please add a link to the script. I don't know why it would be calling Draw Actor Class for an enemy ... what other scripts do you have that affect enemies?
 

Furiousfox

Villager
Member
Joined
Oct 24, 2021
Messages
9
Reaction score
2
First Language
English
Primarily Uses
RMVXA
The script is GTBS 2.4 with Yanfly subclass system added I believe. Its a tactical battle system and normally you can press a character to see their stats and class, but when I try and do it on an enemy it gives that error. Maybe because I dont have a subclass setup for the enemy? But I dont know how to set one up.
Pic related is it working with regular PC Characters but it doesnt work with enemies.
 

Attachments

  • combat.png
    combat.png
    201.9 KB · Views: 3

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,388
Reaction score
808
First Language
English
Primarily Uses
RMVXA
Yanfly subclass system added I believe
Please be precise.
Yanfly class system?
Can you not give the names at least? A link to the script is what is always preferred.
This just allows us to help you better and faster, otherwise we could give a solution for something that you're not even using.

Add above that line (741) this line
return if actor.is_a?(Game_Enemy)
 
Last edited:

Furiousfox

Villager
Member
Joined
Oct 24, 2021
Messages
9
Reaction score
2
First Language
English
Primarily Uses
RMVXA
All the scripts say GTBS and are dated 2015. I do not have a link to the script unfortunately. Perhaps I can upload all the scripts im using somewhere? (although they all say GTBS)
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,388
Reaction score
808
First Language
English
Primarily Uses
RMVXA
Still... you are using a yanfly script.
Regardless I posted a possible solution above.
 

Furiousfox

Villager
Member
Joined
Oct 24, 2021
Messages
9
Reaction score
2
First Language
English
Primarily Uses
RMVXA
Sorry I did not see the solution before I replied, it worked, you are amazing how do I virtually hug and kiss you?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,347
Reaction score
8,769
First Language
German
Primarily Uses
RMMV
@Furiousfox
just an added comment about something I see in your error message screenshot.

whenever you add a script, you should name the slot you place the script in.
see that part "script '' Line 741" in that screenshot?
That should read "Script 'name of scriptslot' Line 741"

It doesn't matter if you know the script that has a problem, but if the error comes from a combination of scripts and you have to use the backtracer or anything else more complex, the missing name of the scriptslot will make bughunting extremely complicated.
 

Latest Threads

Latest Profile Posts

Took a long, long time, way longer than it should to be honest...but I've finally finished the big content update to my demo!
Lots of not good things happening IRL but I'm not gonna let this day end like this. Quote time:
"Success is not final, failure is not fatal: it is the courage to continue that counts." -Winston Churchill

So, keep going, lads. Whatever you do keep going. Until next time.

It's a Spanish devlog don't get scared!. (please)
Q:"Why don't you get a job?"
A: Posting statuses IS my job. It just so happens to not pay and happen periodically over the course of three months.

Forum statistics

Threads
117,238
Messages
1,105,791
Members
153,403
Latest member
KuroFranctoBikki
Top