Dialog Script Error: "Unexpected end of file"

Started by Eon_Star, Sun 20/04/2025 22:40:07

Previous topic - Next topic

Eon_Star

Hİ,

I don't know if this topic fits here but I never had this problem before. I checek the dialog and could not find the solution. I am using the AGS 3.6.0 version but the error consisted in the 3.6.1 version too.

Here is a screenshot:



Thanks in avance.

Crimson Wizard

Please, don't post the screenshots of the code!, post the code text itself. It's much easier to read text then to read text on a image, and also makes it possible to paste your code into a temporary project and test things.

About the error: usually the cause of such error is that you forgot a closing double quotes or a brace somewhere.

Is this the only dialog that you have? Does the error mention exact dialog or the line number?

Eon_Star

Hi,

Yes I only have one dialog in the game. And all brackets are closed. Dialog stops at line 28.

I do not understand the error logic.

Thank you.

Crimson Wizard

Could you please post the dialog script as a text here? I'd like to make a test and see if the problem will reproduce.

Khris

#4
The error is "unexpected end of file", not line.

Anyway, you forgot a closing ) in line 18.

Code: ags
// Dialog script file 
@S // Dialog startup entry point
return 
@1
 cKaren.SayBubble("Morning Chief!");
 cRubin.SayBubble("Good morning Karen.");
 cKaren.SayBubble("I hope you feel well.");
 cRubin.SayBubble("Thanks Karen. I feel ok. You wanted to talk about something?");
 cKaren.SayBubble("Yes, about the promotion you promised me.");
 cRubin.SpeechView = 12;
 cRubin.SayBubble("You are right, but I need another favor first. Since Harlin Sway died during a ...");
 cRubin.SpeechView = 9;
 cKaren.SayBubble("Well, good. But you will promote me right?.");
 cRubin.SayBubble("You can count on it.");
 cKaren.SayBubble("I should be on my way then!");
 cRubin.SayBubble("Alright.");
option-off 1
option-on 2
return
@2
 cKaren.SayBubble("Can I have the case file?");
 cRubin.SayBubble("yes. Her it is");
option-off 2
return
@3
 cKaren.SayBubble("See you Chief."); 
 cRubin.SayBubble("See you Karen");
stop

Eon_Star

#5
Thanks a lot.

I think I was a little out of track regarding dialog scripts.

Thanks @Crimson Wizard and @Khris for your support.

PS: Problem solved on AGS 3.6.0 but AGS 3.6.1 crashed. I will go with 3.6.0

Thanks for all your help.

Crimson Wizard

Quote from: Eon_Star on Mon 21/04/2025 11:37:15PS: Problem solved on AGS 3.6.0 but AGS 3.6.1 crashed. I will go with 3.6.0

Crashed how? Please post details, I would need to know if this is a problem in the engine that needs to be fixed!

Eon_Star

Hi,

I will send the Screenshot since I cannot find the copied error message.

I have some stuff to do today but I will share the screenshot.

Thanks.


Crimson Wizard

#9
Quote from: Eon_Star on Wed 23/04/2025 16:16:00Hi,

Here is the screenshot:

Could you please clarify, at which point does this happen? is this related to this dialog script, if so then at which point in this script it occurs?

Eon_Star

Sorry,

I could not make out why this happened. At least I know it happened after adding or creating the dialog. The dialog error occured. Then this error came to be. I tried to run AGS 3.6.1 again but it showed me this error.

So I transfered the game to 3.6.0, which I think is more stable.

Thanks for your consideration.

Crimson Wizard

#11
Quote from: Eon_Star on Wed 23/04/2025 17:55:10I could not make out why this happened. At least I know it happened after adding or creating the dialog. The dialog error occured. Then this error came to be. I tried to run AGS 3.6.1 again but it showed me this error.

So I transfered the game to 3.6.0, which I think is more stable.

I won't be able to fix this error in 3.6.1, and it will remain less stable, unless I have an opportunity to observe and diagnose the problem.

If you get little spare time, could you, please, try making a copy of your game in 3.6.1 again and see if it still crashes? If it does, could you send me your project made in 3.6.1 for testing?

Eon_Star

#12
Hi,

I am sending the link as a private message. The game info is confidential.

Thank you for your support.

Eon star


Crimson Wizard

#13
@Eon_Star I did not realize that at first, but now when I double check your project files, and look at the error message again, I see that it mentions version 3.6.1.22. The latest 3.6.1 update is 3.6.1.32. There's a chance that this problem is already fixed.

Eon_Star

Yeah it is possible.

But i think I will go with 3.6.0 first to finish the game. At least the demo. I will share it on "AGS Games in Development" segment. But I need to develop the game furter to publish the info.

Thanks.

SMF spam blocked by CleanTalk