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

Re: Unexpected symbol error

Post by DrKojak »

Doridion wrote:And for your problem, try to write in 3407 and 3408 lines : XXXX.item, and not just ".item" ^^
adding 'letter' or 'letter_1' didn't work, but then i saw your post, it's fixed now!

yeah this is kinda my stupidity, and since i haven't scripted anything before grimrock 1 and 2

Well im embarrassed, but thanks!
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Unexpected symbol error

Post by NutJob »

I been working several hours only trying to force a lantern to a wall, with no luck.


Bad code:

Code: Select all

dungeon_wall_lantern_1.model:setAnchorPos(vec(0.05, 1.53, -0.25))
Why don't lanterns default to the wall?! Rarrrrrg! I wish we'd just get dump of all the method calls to the scripting reference. I don't even care if it's organized, formatted, or explained anymore. Just dump it all to a text file and I'll sort it out. heh
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: Unexpected symbol error

Post by Doridion »

Glad your problem is solved ^^

@NutJob : Simple search in Search bar/section with terms like "Unexpected symbol error" gives directly the link to some threads ;)

Anyway, in the future DrKojak, try to remember Ref-name or ID-name of your items/monsters/etc. LoG2 include an ID search system by typing "F" when nothing selectioned if i remember well. More else, when you're on an/the item, you can search all it references by clicking on the "controller" box.

The Modding section of the website is growing and script references will come soon, so if you're not sure, ask for, every modder is always welcome ;)
DrKojak
Posts: 23
Joined: Fri Oct 24, 2014 11:19 am

Re: Unexpected symbol error

Post by DrKojak »

Thanks!
Post Reply