Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Insert file not working? "Insert file must be followed by a new line"

Author
Message
Polaraul
9
Years of Service
User Offline
Joined: 13th Dec 2014
Location:
Posted: 17th Feb 2015 16:04
Has anyone else experienced this issue with insert files?

main.agc


works.agc


Results in "works.agc:1: error: Unexpected token "print", insert file must be followed by a new line"
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 17th Feb 2015 16:15
think u must press enter at end of last line. behind print("HI")

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Polaraul
9
Years of Service
User Offline
Joined: 13th Dec 2014
Location:
Posted: 17th Feb 2015 16:38
Hi Markus. That was my first thought and I did press Enter at the end of the line. Still does not work I'm afraid. In fact, I can add lines after the print command and all produce the same error.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 17th Feb 2015 17:54
Which Print is it referring to, there are 2?
Comment out the Print in the Do Loop and see what happens, it may give some more clues.

Quidquid latine dictum sit, altum sonatur
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 17th Feb 2015 18:18
Are you using the latest version of AppGameKit V2 (2.0.11)? The #insert command had different issues in earlier builds, even in 2.0.08 would not work at all. But I just tested your code in 2.0.11, Steam version, and it works fine.
Polaraul
9
Years of Service
User Offline
Joined: 13th Dec 2014
Location:
Posted: 17th Feb 2015 18:22
@xCept Thank you for testing. I am using 2.0.10 so it seems I need to upgrade!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 17th Feb 2015 18:59 Edited at: 17th Feb 2015 19:13
very stupid, u must enter new row before the print.
then the error disappear.

kind of nonsense why the compiler can't add hisself...

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Polaraul
9
Years of Service
User Offline
Joined: 13th Dec 2014
Location:
Posted: 17th Feb 2015 19:06
@Markus Wow, yes, that works!
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 17th Feb 2015 19:10
yo, you should inform paul in AppGameKit Version 2.0.11 thread.

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Polaraul
9
Years of Service
User Offline
Joined: 13th Dec 2014
Location:
Posted: 17th Feb 2015 19:23
@Markus I haven't installed 2.0.11 yet, was just about to upgrade when I came across your post. So, on 2.0.10 at least, simply hitting enter before the insert file will work!

Login to post a reply

Server time is: 2024-11-25 17:48:34
Your offset time is: 2024-11-25 17:48:34