[bug ?] error exporting external scripts

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!
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

[bug ?] error exporting external scripts

Post by cromcrom »

Hi,

when I try to export my mod, I have this following error message:

stamina:1: '=' expected near '/'

stamina is the name of a script entity that leads to the external script source located here: "mod_assets/scripts/cromlibrary_stamina.lua"

Any idea ?
Last edited by cromcrom on Wed Oct 29, 2014 10:47 am, edited 1 time in total.
A trip of a thousand leagues starts with a step.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: error exporting external scripts

Post by cromcrom »

bump?
A trip of a thousand leagues starts with a step.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: error exporting external scripts

Post by cromcrom »

Did some of you guys manage to export dungeons with external scripts ? I really need to know, I tried a bunch of stuff, couldn't do nothing :-(
A trip of a thousand leagues starts with a step.
User avatar
Lark
Posts: 178
Joined: Wed Sep 19, 2012 4:23 pm
Location: Springfield, MO USA

Re: error exporting external scripts

Post by Lark »

Well, I tried it using different names and a single, simple script in a very small level but it fails with the same type of error message you're getting. It plays fine in the editor, of course, it won't export and I suspect this is probably a bug. I'll keep trying too and let you know if I find anything.

Good luck! -Lark
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: error exporting external scripts

Post by cromcrom »

Thanks, I really appreciate what you did. I tried many things, trying to change the scripts names, to match the script entity name and script name, and so on, to no avail. Hopefully the AH team will hear about that, and maybe fix it...
A trip of a thousand leagues starts with a step.
User avatar
cromcrom
Posts: 549
Joined: Tue Sep 11, 2012 7:16 am
Location: Chateauroux in a socialist s#!$*&% formerly known as "France"

Re: [bug ?] error exporting external scripts

Post by cromcrom »

I am sorry to bump this, but I just want to make sure AH is aware of this "issue" :-)
A trip of a thousand leagues starts with a step.
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: [bug ?] error exporting external scripts

Post by NutJob »

Mine failed to export also.

Code: Select all

library:1: '=' expected near '/'
library being the ID of my script_entity using an external file.

Edit: tried a few things, such as turning off the controller on that script entity to adding my file (import "mod_assets/scripts/tarmin_lib.lua") to the init.lua to saving the external file with a BOM and without a BOM and few other encodings. Unsure how to proceed with compiling. Anyways hope we get a heads up, work around, of acknowledgment to this.

Version: 2.1.13
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: [bug ?] error exporting external scripts

Post by Eleven Warrior »

Yes there must be a bug as I tried to export with skuggs day night routine and it had a similar error to you guys. I took all the functions out of the External file and put them into the Internal Script Entity and I can now export. In the editor it works fine but not when trying to export. I am glad this is brought up now and not when my mod is half way through lol.
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: [bug ?] error exporting external scripts

Post by NutJob »

So has anyone figured this out, yet? I'd really like to start testing outside the editor.
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: [bug ?] error exporting external scripts

Post by NutJob »

Hate to keep bumping this up the page but this is a serious issue if it's 1) a bug or 2) we are doing it wrong. Enlighten us, please. Only this, I won't plead about any other issue, but this is a game stopper. Can't proceed.
Post Reply