Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Detailled Call Script Error Message, Shows some details about error in call script and don't exit game.
ERZENGEL
post Apr 12 2008, 10:59 AM
Post #1


Level 8
Group Icon

Group: Revolutionary
Posts: 127
Type: None
RM Skill: Undisclosed




Screenshot


Credits
ERZENGEL

Description/Instructions
Insert in Materials or under Game_Interpreter. After this a more detailled error message will pop up if an error was caused. Then you can copy it with Ctrl+C and insert with Ctrl+V and so you are able to report some errors to the author of the game. And as a side effect the game won't close if an error appears smile.gif

PLZ READ THIS => Perhaps the script can cause an error. If this happened to you please report this with the error message.

Script
CODE
#==============================================================================
# ** [ERZVX] Detailled Call Script Error Message (13. April 2008 01:14)
#------------------------------------------------------------------------------
#  Shows some details about error in call script and don't exit game.
#==============================================================================

class Game_Interpreter
  #--------------------------------------------------------------------------
  # * Script
  #--------------------------------------------------------------------------
  def command_355
    script = @list[@index].parameters[0] + "\n"
    loop {
      if @list[@index+1].code == 655        # Second line of script and after
        script += @list[@index+1].parameters[0] + "\n"
      else
        break
      end
      @index += 1
    }
    begin
      eval(script)
    rescue Exception
      msg  = "Error Type:\n#{$!.class}\n\n"
      msg += "Map ID:\n#{@map_id}\n\n"
      msg += "Event ID:\n#{@event_id}\n\n"
      line = $!.message[7, 1].to_i
      msg += "Error's line number:\n#{line}\n\n"
      lines = script.split(/\n/)
      msg += "Error's line:\n#{lines[(line - 1)]}\n\n"
      msg += "Whole script:\n#{script}"
      print(msg)
    end
    return true
  end
end


This post has been edited by ERZENGEL: Apr 14 2008, 05:12 AM
Go to the top of the page
 
+Quote Post
   
aevonhaldy
post Apr 12 2008, 11:13 AM
Post #2


Level 4
Group Icon

Group: Member
Posts: 58
Type: Developer
RM Skill: Beginner




Hey, cool! This will be very useful during beta testing. Thanks, Erzengel!


__________________________
[Show/Hide] VX Project

Story - 85%
Database - 55%
Scripts - 90%
Maps - 8%
Graphics - 38%
Original Music - 20%
Go to the top of the page
 
+Quote Post
   
YanXie
post Apr 12 2008, 11:33 AM
Post #3


Because Tomorrow Will Surely Come...
Group Icon

Group: Revolutionary
Posts: 1,137
Type: None
RM Skill: Skilled




Oh great,it sure will be usefull for scripter + eventer tongue.gif


__________________________
how make teleport to graveyard then your character die?

AWAY FOR VACATION.
NOT HERE UNTIL JAN/FEB 2010 -w-/
Go to the top of the page
 
+Quote Post
   
storymasterq
post Apr 12 2008, 11:37 AM
Post #4


Level 7
Group Icon

Group: Member
Posts: 91
Type: Developer
RM Skill: Skilled




Awesome! Definitely gonna be useful for beginner scripters such as myself.

Cheers,
SQ


__________________________
Current Skills: Writing(Str) Lv. 4, Writing(Evt) Lv. 4, Scripting Lv. 3, Mapping Lv. 1, Spriting Lv. 0, Composing Lv. 0
Currently expanding: Scripting
[Show/Hide] My Personality

QUOTE (Arthur C. Clarke)
We have to abandon the idea that schooling is something restricted to youth. How can it be, in a world where half the things a man knows at 20 are no longer true at 40 - and half the things he knows at 40 hadn't been discovered when he was 20? (link)
Go to the top of the page
 
+Quote Post
   
woratana
post Apr 12 2008, 02:30 PM
Post #5


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




As I said in rpgvx, this is really great!!!!! XD


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
ERZENGEL
post Apr 12 2008, 04:14 PM
Post #6


Level 8
Group Icon

Group: Revolutionary
Posts: 127
Type: None
RM Skill: Undisclosed




I updated it because if an error is in a second, third, etc. call script in the List of Event Commands the error's line is the one in the first call script. (Hard to describe in another language than the native one)

And thank you for the thanks ^^

This post has been edited by ERZENGEL: Apr 12 2008, 04:32 PM
Go to the top of the page
 
+Quote Post
   
woratana
post Apr 12 2008, 04:30 PM
Post #7


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Anyway, why you have to hide window title in screenshot >_>?

This script inspired me about new script to do now. smile.gif

p.s. I like foxkeh! XD


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
ERZENGEL
post Apr 12 2008, 04:37 PM
Post #8


Level 8
Group Icon

Group: Revolutionary
Posts: 127
Type: None
RM Skill: Undisclosed




Err.. because it's my secret project laugh.gif

And I hope we will see your script soon ^^
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th June 2013 - 01:44 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker