Schala Battle System: GameInterpreter NoMethod Error

qRkndHt.png


This thing still haunts my game. I thought I got rid of this bug years ago but seemingly it still causes crashes. The support for this plugin stopped years ago and Moghunter hasn't responded to my mails in ages. Please help, I'm desperate to get this really annoying bug catched.


https://atelierrgss.wordpress.com/rgss3-schala-battle-system/
Please follow the link to "how to use a script" in my signature, install the backtracer you'll find linked there and give us a screenshot of the console output of this error when it pops up next. That will help us identify which scripts are involved and what really caused the error.
Please follow the link to "how to use a script" in my signature, install the backtracer you'll find linked there and give us a screenshot of the console output of this error when it pops up next. That will help us identify which scripts are involved and what really caused the error.

Problem is I don't get the error. It's very evasive and it has been for years. Three people play through whole game and never get it once and one guy plays it and gets it repeatedly.

I've seen this happen when during the animation, the enemy attacks before the action sequence is over thus causing error with the hero not able to return to position because the enemy attacks them "too soon."
unfortunatley the "undefined" errors, when happening sporadic, are impossible to trace without the backtracer output.
At the moment I can give no other suggestion than to install the backtracer and then play until you get the output, because that is the only way to reliably trace it down.
unfortunatley the "undefined" errors, when happening sporadic, are impossible to trace without the backtracer output.
At the moment I can give no other suggestion than to install the backtracer and then play until you get the output, because that is the only way to reliably trace it down.

I have never gotten this to happen but multiple people have had it happen. Is there no way for it to export the backtracer to txt file or something so they can share this log with me?
By default, the backtracer saves the output as a error. file in the directory of the game. So as long as you include it, it should save the output and then they can email it to you.
Couldn't it be fixed by adding an if statement around the offending code that makes sure the object that's trying to call restore_position exists before calling it?
Couldn't it be fixed by adding an if statement around the offending code that makes sure the object that's trying to call restore_position exists before calling it?

That's the thing, the whole attack has plenty of ifs so it shouldn't run into this error in theory.

Code:
user.move_to(target_enemy) if user && target_enemy
wait 1 frame 
target_enemy.move_to(user,0,-1,0) if target_enemy && user
target_enemy.priority_type = 2
user.make_pose("_Skill3",999)
user.set_direction(2)
user.priority_type = 2
wait 10 frames
Control Variable 100 = 0
Loop
target_enemy.move_to(user,0,0,0) if target_enemy && user
target_enemy.angle = 30
user.set_direction(4)
wait 3 frames
target_enemy.angle = 60
wait 3 frames
Play SE pancake
target_enemy.angle = 90
active_hit(true)
wait 45 frames
target_enemy.angle = 6
wait 3 frames
target_enemy.angle = 30
wait 3 frames
Play SE pancake
target_enemy.move_to(user,0,-1,0) if target_enemy && user
target_enemy.angle = 0
user.set_direction(2)
Wait 3 frames
target_enemy.move_to(user,0,0,0) if target_enemy && user
target_enemy.angle = 330
user.set_direction(6)
Wait 3 frames
target_enemy.angle = 300
Wait 3 frames
Play SE pancake
target_enemy.angle = 270
active_hit(true)
Wait 45 frames
target_enemy.angle = 300
Wait 3 frames
target_enemy.angle = 330
Wait 3 frames
target_enemy.move_to(user,0,-1,0) if target_enemy && user
target_enemy.angle = 0
user.set_direction(2)
Wait 3 frames
Control Variables 100 = 0
Conditional Branch Variable 100 = 3 
Break Loop

Branch End

Repeat Above

Wait 60 frames
user.move_to(target_enemy,0,-7,10) if user && target_enemy
user.set_direction(2)
user.priority_type = 2
user.make_pose("_Skill3",999)
target_enemy.move_speed = 4
target_enemy.move_to(target_enemy,0,-7,10)
target_enemy.priority_type = 2
Wait 1 frames
Play SE Pancake
target_enemy.angle = 180
Wait 20 frames
Play SE Down
user.move_to(target_enemy,0,7,10) if user && target_enemy
target_enemy.angle = 180
target_enemy.move_to(target_enemy,0,7,10)if target_enemy && user
Wait 1 Frames
self_event.move_to(target_enemy,0,0,0)
self_event.animation_id = 143
active_hit(true)
Wait 60 frames
user.restore_position
Wait 15 frames
target_enemy.angle = 0
target_enemy.jump(0,0)
Wait 15 frames
Change user.restore_position to

user.restore_position if user
Change user.restore_position to

user.restore_position if user

If user is what? I can't help but feel this command is lacking something.
Nope, that's exactly what I want you to type there, to the letter.

Code:
user.restore_position if user

Ruby is a language that allows you to specify conditions after a statement; it's the equivalent of

Code:
if user
  user.restore_position
end

which is itself a shortened way of writing

Code:
if user != nil
  user.restore_position
end

Honestly given how many if user && target_enemy conditionals there are in the script (look at the lines above the one I told you to change) the whole damn thing should just be wrapped in an "if user" probably, but this should fix that bug anyway.
Okay that helped not crashing it during the move but now it crashes in way that didn't before.

Code:
Game_Interpreter:1411:in `eval': uninitialized constant Game_Interpreter::Achievements, NameError
    from Game_Interpreter:1411:in `eval'
    from Game_Interpreter:1411:in `command_355'
    from Game_Interpreter:197:in `execute_command'
    from Game_Interpreter:103:in `run'
    from Schala Battle System:3091:in `run'
    from Game_Interpreter:60:in `block in create_fiber'
Achievements? Do you have an achievement script or something? If so you may have found the conflict.
Achievements? Do you have an achievement script or something? If so you may have found the conflict.

Yes, I use the one by Zeriab but it never gave me problems before.
Not necessarily true. It might have been the problem with the random bug, you just didn't know it. See, if you get that error message while in an action sequence, then that means the script is the one that was sending the NULL through the system more than likely (and therefore causing the old crash). Start by disabling the achievement script and see if that bug goes away. If it does, we will have isolated the cause of the new bug until someone who knows more coding than me can fix it.
Not necessarily true. It might have been the problem with the random bug, you just didn't know it. See, if you get that error message while in an action sequence, then that means the script is the one that was sending the NULL through the system more than likely (and therefore causing the old crash). Start by disabling the achievement script and see if that bug goes away. If it does, we will have isolated the cause of the new bug until someone who knows more coding than me can fix it.

I tried to remove the achievements and I tried another achievements by Cyanic, both crash. But I absolutely need achievements in my game and it used to work fine before that.

EDIT:
EFF IT. I'll just remove the skill that never worked as intended for some people and replace it with another fun skill instead.

Original thread: https://forums.rpgmakerweb.com/threads/schala-battle-system-gameinterpreter-nomethod-error.75954/