- Joined
- Jan 3, 2015
- Messages
- 41
- Reaction score
- 4
- First Language
- English
- Primarily Uses
- RMVXA
Hello!
I'm new to Battle symphony and was wondering if anybody can explain the basics of those "symphony codes" I believe they're called?
[sOLVED]
I recently installed Yami's Battle Symphony engine into my game and I'm pretty sure I did so correctly but I keep getting an error when I go into combat saying one of the codes lines has an error. Can anybody help?
The error message is:
"Script 'Battle Symphony' line 3143: ArgumentError occurred.
comparison of NilClass with 0 failed"
this message pops up when play testing which crashes the test but (to my surprise) not on the exported version. the formatting of the battle is just off because I'm yet to figure out how to set up enemy positioning.
I have no idea what this means as I don't write scripts and am completely new to RPGMaker but I went to the script to look at it anyway. the section (I'll just paste it) with the error is below (I highlighted line 3143 in red):
#--------------------------------------------------------------------------
# new method: update_jump
#--------------------------------------------------------------------------
def update_jump
return unless self.is_moving?
#---
value = [(@screen_x - @destination_x).abs, @move_x_rate].min
@screen_x += (@destination_x > @screen_x) ? value : -value
@parabola[:x] += value
@screen_y -= @arc_y
#---
if @destination_x == @screen_x
@screen_y = @destination_y
@arc_y = 0
@arc = 0
else
a = (2.0*(@parabola[:y0]+@parabola[:y1])-4*@parabola[:h])/(@parabola[
]**2)
b = (@parabola[:y1]-@parabola[:y0]-a*(@parabola[
]**2))/@parabola[
]
@arc_y = a * @parabola[:x] * @parabola[:x] + b * @parabola[:x] + @parabola[:y0]
end
#---
@screen_y += @arc_y
@move_x_rate = 0 if @screen_x == @destination_x
@move_y_rate = 0 if @screen_y == @destination_y
end
what do I need to do in order to get this engine up and running?
I recently installed Yami's Battle Symphony engine into my game and I'm pretty sure I did so correctly but I keep getting an error when I go into combat saying one of the codes lines has an error. Can anybody help?
The error message is:
"Script 'Battle Symphony' line 3143: ArgumentError occurred.
comparison of NilClass with 0 failed"
this message pops up when play testing which crashes the test but (to my surprise) not on the exported version. the formatting of the battle is just off because I'm yet to figure out how to set up enemy positioning.
I have no idea what this means as I don't write scripts and am completely new to RPGMaker but I went to the script to look at it anyway. the section (I'll just paste it) with the error is below (I highlighted line 3143 in red):
#--------------------------------------------------------------------------
# new method: update_jump
#--------------------------------------------------------------------------
def update_jump
return unless self.is_moving?
#---
value = [(@screen_x - @destination_x).abs, @move_x_rate].min
@screen_x += (@destination_x > @screen_x) ? value : -value
@parabola[:x] += value
@screen_y -= @arc_y
#---
if @destination_x == @screen_x
@screen_y = @destination_y
@arc_y = 0
@arc = 0
else
a = (2.0*(@parabola[:y0]+@parabola[:y1])-4*@parabola[:h])/(@parabola[
b = (@parabola[:y1]-@parabola[:y0]-a*(@parabola[
@arc_y = a * @parabola[:x] * @parabola[:x] + b * @parabola[:x] + @parabola[:y0]
end
#---
@screen_y += @arc_y
@move_x_rate = 0 if @screen_x == @destination_x
@move_y_rate = 0 if @screen_y == @destination_y
end
what do I need to do in order to get this engine up and running?
Last edited by a moderator:
