Unexpected symbol error

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
DrKojak
Posts: 23
Joined: Fri Oct 24, 2014 11:19 am

Unexpected symbol error

Post by DrKojak »

So this happened, i cannot load the dungeon now.
Image
Is there a way to fix this? im afraid i don't have a backup and have gone quite far into the dungeon.
It's possible for me to upload it somewhere if there is a way to recover it.
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Unexpected symbol error

Post by NutJob »

It's literally telling what line is having the problem. Go to C:\Users\YOURNAME\Documents\Almost Human\Legend of Grimrock 2\Dungeons\YOURMODULE\mod_assets\scripts and open dungeon.lua and fix what's wrong on line 3408
dancodan
Posts: 19
Joined: Sun Apr 29, 2012 1:38 pm

Re: Unexpected symbol error

Post by dancodan »

A friend told me that if you get a problem on a line, it could actualy be the line above it that has the root cause. The line pointed out in the error message is just the symptom.
I don't know, just my two cents..
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Unexpected symbol error

Post by NutJob »

Perhaps a concatenation with an ellipsis?
DrKojak
Posts: 23
Joined: Fri Oct 24, 2014 11:19 am

Re: Unexpected symbol error

Post by DrKojak »

NutJob wrote:It's literally telling what line is having the problem. Go to C:\Users\YOURNAME\Documents\Almost Human\Legend of Grimrock 2\Dungeons\YOURMODULE\mod_assets\scripts and open dungeon.lua and fix what's wrong on line 3408
The thing is this all seems to be correct, removing any of the symbols near the "." doesn't work
Image

I will however try to delete the alcove and letter entirely and see if it corrects itself regardless and let you know.
Last edited by DrKojak on Fri Oct 24, 2014 11:53 am, edited 2 times in total.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: Unexpected symbol error

Post by cromcrom »

I wouldn't start an item ref with a . in the first place....

Or maybe you forgot the "letter" before .item ?
A trip of a thousand leagues starts with a step.
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Unexpected symbol error

Post by NutJob »

You're missing the object reference.
Last edited by NutJob on Fri Oct 24, 2014 11:53 am, edited 1 time in total.
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: Unexpected symbol error

Post by Doridion »

Already answered there => viewtopic.php?f=22&t=7703

Thanks to search before asking ;)

And for your problem, try to write in 3407 and 3408 lines : XXXX.item, and not just ".item" ^^
Last edited by Doridion on Fri Oct 24, 2014 11:52 am, edited 1 time in total.
DrKojak
Posts: 23
Joined: Fri Oct 24, 2014 11:19 am

Re: Unexpected symbol error

Post by DrKojak »

NutJob wrote:You're missing the object reference
cromcrom wrote:I wouldn't start an item ref with a . in the first place....

Or maybe you forgot the "letter" before .item ?
im a dumbass, that's what's missing!
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Unexpected symbol error

Post by NutJob »

DrKojak wrote:
NutJob wrote:You're missing the object reference
cromcrom wrote:I wouldn't start an item ref with a . in the first place....

Or maybe you forgot the "letter" before .item ?
im a dumbass, that's what's missing!
~shrugs~

Anyone can do this, no worries. Get them pellets where they need to be! Oh, may want to give it a better unique ID than just "". ~laughs~
Doridion wrote:Already answered there => viewtopic.php?f=22&t=7703

Thanks to search before asking ;)
Yeah, because "lol, cause im a very good scripter, i have" is so descriptive.

Doridion wrote:And for your problem, try to write in 3407 and 3408 lines : XXXX.item, and not just ".item" ^^
And 3406.
Post Reply