Sprite_Battler line 80 error

● ARCHIVED · READ-ONLY
Started by Natmaz 20 posts View original ↗
  1. So I was looking for the solution to my problem by googling it first. I couldn't find anything else beside people replying to themselves "Okay, nvm I solved it" without posting the solution for others to see.

    So here I am, begging for help, because every time I add and remove 1 party member, I get this error:

    zwhjcw.jpg

    I'm using various custom Yanfly scripts, I don't know if that might be the compatibility issue, or something missing, or even a bug.

    I'm able to perfrom this error every time, if it will be needed for anything.
  2. The problem seems came up from any HUD related or any battle system which display the battler sprite

    Try to disable them.
  3. we need to know which scripts you placed in your project (please link to them) and if you configured them correctly (a lot of Yanfly's script need notetags or variables to get their data, and a wrong configuration could also cause this.


    And did you start a new game or does this only happen if you load a savegame?
  4. The problem seems came up from any HUD related or any battle system which display the battler sprite

    Try to disable them.
    I deleted the Visual Battlers script, and it fixed the error, but I wanna keep the "Final Fantasy like" sideways battle system :<

    we need to know which scripts you placed in your project (please link to them) and if you configured them correctly (a lot of Yanfly's script need notetags or variables to get their data, and a wrong configuration could also cause this.And did you start a new game or does this only happen if you load a savegame? 
    The scripts I'm using:

    http://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-shop-options/

    http://yanflychannel.wordpress.com/rmvxa/menu-scripts/system-options/

    http://yanflychannel.wordpress.com/rmvxa/field-scripts/gab-window/

    http://yanflychannel.wordpress.com/rmvxa/core-scripts/adjust-limits/

    http://yanflychannel.wordpress.com/rmvxa/core-scripts/party-system/

    http://yanflychannel.wordpress.com/rmvxa/core-scripts/ace-message-system/

    http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/learn-skill-engine/

    http://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-item-menu/

    http://yanflychannel.wordpress.com/rmvxa/menu-scripts/ace-save-engine/

    http://yanflychannel.wordpress.com/rmvxa/menu-scripts/command-window-icons/

    http://yanflychannel.wordpress.com/rmvxa/battle-scripts/visual-battlers/

    http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/jp-manager/

    http://yanflychannel.wordpress.com/rmvxa/core-scripts/extra-param-formulas/

    http://yanflychannel.wordpress.com/rmvxa/battle-scripts/victory-aftermath/

    (I hope that I linked them the right way)

    I tried in both New and Loaded game, and both give the same error, unless I delete the Visual Battlers.
  5. Yanfly said

    Remember to put this BELOW all Yanfly Scripts.
    Try to put the visual battler below all yanfly script. Or have you tried it?
  6. Yanfly said

    Remember to put this BELOW all Yanfly Scripts.
    Try to put the visual battler below all yanfly script. Or have you tried it?
    Yes, I tried it just now, and it still gives me the error. Replacing doesn't seem to change anything. :<
  7. Have you saved the project after modified the script?

    And... try to make get rid all the scripts. And put ONLY the visual battler
  8. Have you saved the project after modified the script?

    And... try to make get rid all the scripts. And put ONLY the visual battler
    I tried that and I couldn't execute the error since I can't remove or add actors to the party without using the Party System script.

    When I put only the Party System script back again, and try to execute the error, it shows up again.
  9. I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


    Did you start a NEW game AFTER adding all of your scripts? Or did you add some scripts and then load a game you'd previously saved?
  10. I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.Did you start a NEW game AFTER adding all of your scripts? Or did you add some scripts and then load a game you'd previously saved? 
    Ah, I saw similiar posts to mine, so I thought it might be the right place, but... Oh well, at least I know now~ Sorry :<

    And everytime I add pretty much ANYTHING, I always save the project and start a new game.

    I don't see the core engine script listed. I found that with yanfly's scripts, without the core engine, all the other scripts would give an error somewhere. Try adding this script, and putting it first, then also putting the visual battler's script last:

    http://yanflychannel...ce-core-engine/
    I added it and started a new game. Then I tried to execute the error, and it was still there. :<

    I made sure that the Core Engine is on top and Visual Battlers on the very bottom. I'm thinking about completely removing Party system...

    Edit: I've experimented a bit, and I decided to completely get rid of Party system, because that was the only cause of the problem. I have no idea so far if this can be fixed without deleting any script. I will work on that later.
  11. Maybe I don't get what you are trying to do. Are you trying to add and remove party members in battle? If so, stop. I seem to recall Yanfly said (somewhere) that that would crash the game, and to never do that.
  12. Maybe I don't get what you are trying to do. Are you trying to add and remove party members in battle? If so, stop. I seem to recall Yanfly said (somewhere) that that would crash the game, and to never do that.
    Nope, I add one and then remove one outside of battle. When I get into random encounter, it immediately crashes.

    Also, it's impossible to add/remove party members in battle, because there's no such command. :>

    Anyway, I've decided that I won't use the Party System Script, mostly because I don't want any errors, and the default one is just fine. Thanks for the concern tho :3
  13. Ok, glad you got something working at least. Though I may have found it, since I added the party system to my project since the last post.

    I think the error is this. In the party system there is a line that says MAX_Battlers = 5.

    However, the visual battlers is only set up for 4 battlers, so when it looks for the sprite for #5, it finds null, and crashes.

    The (possible) fix? Change the line to say Max_Battlers = 4.

    If you change your mind and wish to still use party system, that may work for you. If not, hopefully this gives another with your issue an idea of how to fix it.
  14. Ok, glad you got something working at least. Though I may have found it, since I added the party system to my project since the last post.

    I think the error is this. In the party system there is a line that says MAX_Battlers = 5.

    However, the visual battlers is only set up for 4 battlers, so when it looks for the sprite for #5, it finds null, and crashes.

    The (possible) fix? Change the line to say Max_Battlers = 4.

    If you change your mind and wish to still use party system, that may work for you. If not, hopefully this gives another with your issue an idea of how to fix it.
    That's a really clever idea. I'll try it out in a while, and when I do, I'll edit this post and tell you how it went, hopefully it will work. :>

    EDIT: I'm sorry that I update this post so long after posting it, but what can you do, busy life.

    Anyways, that was not the case, I don't know much about scripting, but Visual Battlers don't really collide with Party System, the system itself has a bug that gets triggered, once you reduce your party to 0 actors, and then add at least one back. I have no idea why it happens. I'm gonna research some more.
  15. I have to admit, you got me now. I've never tried dropping the party to zero actors ever, as I always add the new actor, then remove the old (so I never have zero). Have you managed to find a fix in the last week or so? Asking as I'm curious what the solution is now at this point.

    Edit: Random idea came after I posted that....does it always crash when you add this particular actor? Have you tried adding a different actor to see if the error is related to that actor?
  16. I have to admit, you got me now. I've never tried dropping the party to zero actors ever, as I always add the new actor, then remove the old (so I never have zero). Have you managed to find a fix in the last week or so? Asking as I'm curious what the solution is now at this point.

    Edit: Random idea came after I posted that....does it always crash when you add this particular actor? Have you tried adding a different actor to see if the error is related to that actor?
    It doesn't matter which actor I add and remove, this error always shows up. I start to think it might be a bug in the script, or a script incompatibility. I have no problems with using the scripts, so I know I'm not doing anything wrong, and if I release my little game, I can't expect my players to NOT remove actors. To get this error, I don't even have to reduce my party to 0. It happens when I add an actor and remove an actor to the party, even if the main character is locked into the party himself.
  17. I can pretty much guarantee that it is not a bug. Yanfly's scripts are HUGELY popular, and the fact that you're having an issue that NOBODY else is having sort of indicates that maybe you're not using the script(s) properly.


    First, since it seems to happen when you have the Visual Battlers script and doesn't happen when you remove it, go through the script documentation (all the lines at the top) VERY carefully and ensure you've set everything up properly - does it use variables? Switches? Have you assigned them correctly? Are you using those variables/switches for something else because you didn't set them up? Are you meant to add tags to your actors or enemies? Have you added them correctly? Are you still using the party system script? Does this happen as soon as you trigger a battle, or are you doing something during the battle that triggers it?


    A bit more of a description about what actions you are doing and when it happens will be helpful.


    I would suggest maybe you have two scripts that are incompatible, but it looks like most of what you're using is from Yanfly, so while that's still a possibility, I would think it's more something that you haven't set up correctly.
  18. I can pretty much guarantee that it is not a bug. Yanfly's scripts are HUGELY popular, and the fact that you're having an issue that NOBODY else is having sort of indicates that maybe you're not using the script(s) properly.First, since it seems to happen when you have the Visual Battlers script and doesn't happen when you remove it, go through the script documentation (all the lines at the top) VERY carefully and ensure you've set everything up properly - does it use variables? Switches? Have you assigned them correctly? Are you using those variables/switches for something else because you didn't set them up? Are you meant to add tags to your actors or enemies? Have you added them correctly? Are you still using the party system script? Does this happen as soon as you trigger a battle, or are you doing something during the battle that triggers it?

    A bit more of a description about what actions you are doing and when it happens will be helpful.

    I would suggest maybe you have two scripts that are incompatible, but it looks like most of what you're using is from Yanfly, so while that's still a possibility, I would think it's more something that you haven't set up correctly.
    I don't know if it might be a bug or not. Maybe I am indeed using it wrong. But I'm not the only one that got this error, I was looking everywhere for answer, but no one replied to their questions, and they were the same as mine here.

    I do look through the green documentation on the very top of the script, as well as well as various forums and even Yanfly's script page, to see if I overlooked something. I do that with every script every time I don't understand something or need clues. I think I did everything correctly according to the documentation, but I might as well describe what I do again on a clean game project:

    1. I add the script Visual Battlers and Party System.

    2. I set up how I want my actors to stand on the battle screen. I just change some of the coordinates for them to stand a bit more to the left, because I have 5 actors in the party, and some of them tend to stand outside the screen by default. That itself doesn't cause any errors.

    3. It all works fine until I try to change the party members. I add and remove my actors as I want them to appear in battle. I keep only 2-3 actors in the party, others are left out. Once I go into battle, a black screen shows up and the error as well.

    Now to try without visual battlers:

    1. I add only the Party System.

    2. The only thing I change in the script is max number of actors.

    3. No errors, everything is all right.

    Now only with Visual Battlers:

    1. The same as the above, no problems.

    Error shows up only when those two are together, even if I just add them and don't change them at all. This error happens only when I go into the game, change party formation, and try to go into battle.

    For example I start the game and go into battle alone. It works without interruption. But when I add and then immediately remove an actor outside of battle, and the go into battle, it gives me the exact error from my first post. It only happens when I add and remove only ONE actor. It works properly after I add more.

    I really don't know why it's happening, I tried to change order of those two scripts, I tried locking the main actor. I can't expect my players to not remove the second actor if they want to do so. Anyways, I will live without Party System, since the standard one works just fine with me.
  19. With so many scripts, it's a pretty big job to start going through and looking at which ones may be causing problems with the others.


    Are you able to zip up your project and load it up somewhere so someone can take a look at it themselves? If you don't want to share your whole project, just start a completely new one and put in all the necessary scripts and resources, and set up the necessary stuff in the database, then zip it up. When you do, try and make it so the person looking doesn't have to actually DO anything to get the error - create a "test" map and put the starting location there. If it's a battle, add a single autorun event to that map to trigger the battle. The faster someone can see the problem happen, the faster they'll be able to get in and look at what's wrong.