Expand debuggingoptions?

Status
Not open for further replies.

MC_Kay

Villager
Member
Joined
Dec 29, 2017
Messages
11
Reaction score
0
First Language
german
Primarily Uses
N/A
Thx for all your helpings.
As I said - Syntax error is when you mistype, exactly like here:

Those are three lines with Syntax errors from your copy&paste, I only accidentally deleted the end of the third line but the missing [ is still visible.
Sry, but these Syntax Errors are mady by myself doing "Copy+Paste". I do a correction in my post. Sry for that. :(

As for the backtracer, that is the tool you were linked above twice in this very topic.
And that tool will give you the exact trace of the error in its console output.
I've used both versions already.
Look at my post:
I've tested both versions, but I don't get more Informations as before.
And there is a small difference between both. The additional "exit" at line 43 in the version posted by TheoAllen.
Is that correct, that this script must be placed in "Skript-Editor" in Skript "Main"?
If yes, than it doesn't work for me :(
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
lol - I told you a backtracer is not going to give you any more information.

Where are you copying & pasting to get these syntax errors? If the engine is reporting a syntax error, then an in-game debugger is not going to help you. You have made a typo in the script, not when copying/pasting to the forum.

To clarify, does this error happen as soon as you launch the game? Or do you get to play a bit and the error happens after you take a particular action in the game?

If you want me to look at your code, please copy it into a text file and load it up somewhere so I can download it. You will never find the issue by looking at the lines you are looking at.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
Is that correct, that this script must be placed in "Skript-Editor" in Skript "Main"?
If yes, than it doesn't work for me :(
Depending on which backtracer you use, either in Main or in a slot directly above Main.

How did you check if it works or not?
If it is installed, it will output the stacktrace of the error into the console, and you'll get the functions names of all active functions involved in the error, ending on Main.
That is usually a big help in identifying where exactly the error is called, because that "eval" is only the first line of that trace.

And your copy mistake is exactly why were always asking for Screenshots. Do not use your snipping tool but make a regular Windows Screenshot like kez explained to you on the first page of this topic. Please give us one of the console output of the backtracer, it should help US point you to the place of the error.
 

MC_Kay

Villager
Member
Joined
Dec 29, 2017
Messages
11
Reaction score
0
First Language
german
Primarily Uses
N/A
lol - I told you a backtracer is not going to give you any more information.
Höööö?
Andar said:
"And that tool will give you the exact trace of the error in its console output."

Where are you copying & pasting to get these syntax errors? If the engine is reporting a syntax error, then an in-game debugger is not going to help you. You have made a typo in the script, not when copying/pasting to the forum.
As I said already, it's from the file called: "syntaxerror.txt"


To clarify, does this error happen as soon as you launch the game? Or do you get to play a bit and the error happens after you take a particular action in the game?
Yes and No ^^
After starting a new game it occur after some hours of gameplay.
But if I make a reload (savegame) it crashed earlier (at the same position).

If you want me to look at your code, please copy it into a text file and load it up somewhere so I can download it. You will never find the issue by looking at the lines you are looking at.
Over 9'000 lines? Oo

Greetings
MC_Kay
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
at the same position? What position? Did you interact with an event? Did you go to a new map? What did you do immediately before the game crashed?

If you interacted with an event, then the error could be in a script call and not in your script at all. Look at the event you just interacted with, to see what it's trying to do. It could also be a map event or common event that's set to autorun or parallel process, and is being activated by you going to a new map or by a switch being turned on or some other condition being met. So it may not be an event you interact with.

Over 9'000 lines? Oo
I saw how many lines there are. I made the offer. Take it up or don't take it up. But look at the events first, because it may not be an issue with your script at all.
 

MC_Kay

Villager
Member
Joined
Dec 29, 2017
Messages
11
Reaction score
0
First Language
german
Primarily Uses
N/A
And your copy mistake is exactly why were always asking for Screenshots. Do not use your snipping tool but make a regular Windows Screenshot like kez explained to you on the first page of this topic. Please give us one of the console output of the backtracer, it should help US point you to the place of the error.
Code:
"VL Gothic"
["タイトル画面", "<link set_title>"]
["タイトル画面", "<link set_title start2>"]
["タイトル画面", "<link set_title game_start>"]
["<link dialogue_npc>"]

The japanese strings are made by RPG Maker itself (I'm using japanese typesetting for playing games from japan)

Code:
---------------------------
The Dark Millenium (TDM)
---------------------------
SyntaxError
(eval):3: syntax error, unexpected tGVAR, expecting ']'
$game_element[1339]] = 0
             ^
(eval):4: syntax error, unexpected keyword_else, expecting $end
** backtrace:
( GI ):667:in `eval'( GI ):667:in `command_355'( GI ):196:in `running'( Messages ):387:in `running'( GI ):397:in `run'( Body ):121:in `block in link_tes'( Body ):112:in `each'( Body ):112:in `link_tes'( Body ):105:in `command_108'( Selection ):7:in `command_108'( GI ):196:in `running'( Messages ):387:in `running'( GI ):397:in `run'( GI ):430:in `item set'
---------------------------
OK   
---------------------------

The exception occur by interaction with a NPC.

Greetings
MC_Kay
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
then please show the npc event. the entire event window, and in particular any script calls that are done.


edit: look at this ...
$game_element[1339]] = 0
You have two closing ] on that line. You really shouldn't copy/paste error messages and then edit them. You should just screenshot, so we know what we're seeing is exactly the message you are getting, and that any errors are from the message, and not your typo, and in the case above, that you have not corrected the error when copy/paste/editing.

command_355 is the Script event command.

See how long this thread has gone on because you only gave us a small portion of the error message? How much time would have been saved if you'd just screenshotted and given us the whole thing.

The NPC you interact with has a Script event command. That is where the error will be.

In this case the backtracer was useful, because the error occurred while you were running the game. I had assumed earlier that the error happened when you launched, which is what happens when you have a syntax error in the script files themselves. In that case, the backtracer wouldn't have helped.
 
Last edited:

MC_Kay

Villager
Member
Joined
Dec 29, 2017
Messages
11
Reaction score
0
First Language
german
Primarily Uses
N/A
Ok, ..... I place my cards on the table.
I hope nobody will convict me.

That isn't my game. It's from the game "Dark Elf" made by"oneone1". And that game have 3 or more exceptions with the english translation (chinese works fine). I couldn't found any fixes of these issues. That was the intention for me to fix these for myself!
I can code C, C++, Java, RenPy, Python, etc. How hard can it be to fix this issues? Chinese works fine, but why not english?

I censored the code, log, etc. to prevent complainting from the publisher.
That was the reasond why I didn't posted the whole script in here.

If it is allowed to post, than I can do it, but I'm not sure.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
So you don't have the project files? We probably can't help you then, because it looks like the issue is in the event, not the script, and you would only be able to access/modify the event by hacking the game, which you can't get support for on this forum.

My suggestion now is to go back to the creator of the game and ask them to provide a fix. If the game handles multiple languages, maybe they are all built in, and there are multiple versions of the event commands depending on the language. This could be why it works in one but not another - an error when modifying the events for an individual language.
 

MC_Kay

Villager
Member
Joined
Dec 29, 2017
Messages
11
Reaction score
0
First Language
german
Primarily Uses
N/A
I have a project-file and can edit the whole game in RPG Maker VX Ace. Thats the reason why I could see the console. ;)

It was nice from all of you, that you wanted to help me (big thanks for that), but my question was how I can expand my debugging options in RPG Maker.

I paid the game on steam and the creator is not interested in a fix.
That was the intention for me to fix it for me (!) by myself. I like the game, but the exceptions are a pain in the ass.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,600
Reaction score
6,552
First Language
Indonesian
Primarily Uses
RMVXA
So that was all about. Regarding your actual question though, it's a no
I don't think there is a way of to see the RM script executed line by line for debugging

All you can do is just a wild guess with the help of the console (print everything there to check a certain value).
If you are already familiar on how the default script works in RM, it probably gone easier without you need the expand debug
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
A Syntax error like that can only happen if some one mistyped at that position, in this case in the event command itself.
That mistype must have happened either in the translation or (if the game was multilingual) in the original.

However, if the creator isn't interested in an english version, then most likely the game has no multilingual functions but was translated into several single language versions.

And in that case it's easy to explain why it doesn't work in english but works in chinese.
The script command reacts very sensitive to line breaks at the wrong position, giving error messages exactly like those you got.
The automatic translation of the text parts of the script moved the linebreak for that script line from a position where the interpreter knows that the command line continues on the next line to a position where it doesn't detect that any longer and breaks the command completely.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
How did you get the project file?

Aside from your original question (the answer is no, btw), I've told you that the error is specifically in the NPC you interact with, and even more specifically in a Script event command within that event. If there is some dialogue or activity that happens after you interact, but before the crash, that will help you fine-tune your search even further. If that isn't enough to help you locate it, and you're not going to show us screenshots of the event, I'm not sure what else we can do. We can only help people who want to work with us, and provide the things we request to help troubleshoot.
 

MC_Kay

Villager
Member
Joined
Dec 29, 2017
Messages
11
Reaction score
0
First Language
german
Primarily Uses
N/A
@Andar
That was my first idea as well. I checked the differences in the chinese and english version of the dialogues.

However, if the creator isn't interested in an english version, then most likely the game has no multilingual functions but was translated into several single language versions.

English version (npc02_h.txt) at Linke 4290:
Code:
> BEGIN STRING
【Man】
> EVENT CODE: 401
> VALUE ID: 1353
> PARAMETER ID: 0

> END STRING

> BEGIN STRING
Hmmmm....Still has the first time here.
> EVENT CODE: 401
> VALUE ID: 1364
> PARAMETER ID: 0
Chinese version (npc02_h_CHS.txt) at line 4274:
Code:
> BEGIN STRING
【男】
> EVENT CODE: 401
> VALUE ID: 1361
> PARAMETER ID: 0

> END STRING

> BEGIN STRING
「嗯……。這裏還沒有經驗啊
> EVENT CODE: 401
> VALUE ID: 1362
> PARAMETER ID: 0

You can see the differences between the chinese and english version. At first I've looked for differences in typo -> nope. Than I've changed the Value ID in english version to the used in chinese version -> other exceptions.
Set english translation strings into chinese version -> it works, but if I set Game-language to chinese.

About Exception:
I got these:
Code:
---------------------------
Dark Elf
---------------------------
解決できない例外 SyntaxError が発生したため、処理を継続できません。
(eval):3: syntax error, unexpected tGVAR, expecting ']'
$game_variables[89] = 0
               ^
(eval):4: syntax error, unexpected keyword_else, expecting $end
** backtrace:
( Game_Interpreter ):1409:in `eval'( Game_Interpreter ):1409:in `command_355'( Game_Interpreter ):196:in `execute_command'( メッセージ機能拡張 ):440:in `execute_command'( Game_Interpreter ):102:in `run'( TES本体 ):121:in `block in link_tes'( TES本体 ):112:in `each'( TES本体 ):112:in `link_tes'( TES本体 ):105:in `command_108'( 自由選択肢 ):98:in `command_108'( Game_Interpreter ):196:in `execute_command'( メッセージ機能拡張 ):440:in `execute_command'( Game_Interpreter ):102:in `run'( Game_Interpreter ):59:in `block in create_fiber'
---------------------------
OK
---------------------------

Code:
"OK:LNX09_アニメーション速度変更"
"OK:LNX10_バトルスピード調整"
"OK:LNX11a_XPスタイルバトル ver1.12"
"OK:LNX11aconf_XPスタイルバトル#コンフィグ"
"OK:LNX11b_リフォーム・バトルステータス"
"OK:LNX11bskin_リフォーム・バトルステータス#スキン設定"
"OK:LNX25_ウィンドウサイズ変更"
"VL Gothic"
["タイトル画面", "<link set_title>"]
["<link translation>"]
["タイトル画面", "<link set_title start2>"]
["タイトル画面", "<link set_title game_start>"]
["<link npc02_h npch06_31>"]


@Shaz
"How did you get the project file?"

That was easy. <reference deleted by mod>
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
yeah, you've hacked the game. We can't help you any further.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
I deleted the references to the hacking tool.
Consider yourself lucky to not get banned for hacking, because this is the official, company owned forum for the RMs and is under corporate law, not a private fanforum.
Degica could be sued if there is any support for piracy or hacking here.

Closing
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top