The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: SorceressKyrsty on May 01, 2008, 11:27:27 AM

Title: Strange Error in Minkoff's SV Script...
Post by: SorceressKyrsty on May 01, 2008, 11:27:27 AM
Just recently I've begun to get a rather strange error in my game...
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi260.photobucket.com%2Falbums%2Fii21%2FSorceressKyrsty%2Fpainfulerror.png&hash=67ee5780d5cedd76e9c31e0bf5c86ee95d299316)
The line it refers to is this one:
#--------------------------------------------------------------------------
 # * Obtain Pose
 #     pose_base   : default pose to return
 #     pose_actor  : list of poses for actors
 #     pose_enemy  : list of poses for enemies
 #--------------------------------------------------------------------------
 def pose_obtain(pose_base, pose_actor, pose_enemy)
   # create Arrays
   pos_a = {}
   pos_e = {}
   # fill created Arrays & Set pose
   pos_a = pose_actor
   pos_e = pose_enemy
   pose_now = pose_base
   # Obtain pose if not a standard pose
   if @battler.is_a?(Game_Actor)
     pose_now = pos_a[@battler.id] if pos_a[@battler.id] != nil
   else
     pose_now = pos_e[@battler.id] if pos_e[@battler.id] != nil
   end
   # Return the final pose (minus 1 for neceties)
(THIS ONE:)-->pose_now -= 1 if pose_now != nil
   return pose_now
 end
It came with this script by Charlie Lee (I'm using all script found in the demo but I'm unsure whether I'm using v.6 or v.7; I don't have drain or demi in my game:
http://www.hbgames.org/forums/index.php?topic=28837.0
I'm also using these scripts
http://rmrk.net/index.php/topic,21396.0.html<--By NAMKCOR
And ccoa's UMS, but I don't know where I found it >_<. Sorry.
Can anyone help?
Title: Re: Strange Error in Minkoff's SV Script...
Post by: Sophist on May 01, 2008, 12:21:14 PM
I don't know anything about scripting, but through general theory you should make 2 back ups of your game.

Open one of the backups and change the - inbetween pose_now and = to a !

And another just take out the - inbetween pose_now and =.

Don't do this with your main copy because I don't want to be the one who destroyed your RPG. ;o;
Title: Re: Strange Error in Minkoff's SV Script...
Post by: SorceressKyrsty on May 01, 2008, 01:07:41 PM
Tried both to no avail.
Both times both of the sprites froze, and when I executed an action the poses were delayed.
I think GMTBB is screwed >_<. I think I might copy/paste all my events onto a new game.
(Still swears loudly, though)
Title: Re: Strange Error in Minkoff's SV Script...
Post by: Tsunokiette on May 10, 2008, 08:18:21 PM
Can you upload another pic of the error? :x