Page 1 of 3

[bug ?] error exporting external scripts

Posted: Sun Oct 26, 2014 4:26 pm
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 ?

Re: error exporting external scripts

Posted: Mon Oct 27, 2014 8:34 pm
by cromcrom
bump?

Re: error exporting external scripts

Posted: Mon Oct 27, 2014 10:31 pm
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 :-(

Re: error exporting external scripts

Posted: Mon Oct 27, 2014 10:42 pm
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

Re: error exporting external scripts

Posted: Mon Oct 27, 2014 10:52 pm
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...

Re: [bug ?] error exporting external scripts

Posted: Wed Oct 29, 2014 10:48 am
by cromcrom
I am sorry to bump this, but I just want to make sure AH is aware of this "issue" :-)

Re: [bug ?] error exporting external scripts

Posted: Wed Oct 29, 2014 1:06 pm
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

Re: [bug ?] error exporting external scripts

Posted: Wed Oct 29, 2014 5:16 pm
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.

Re: [bug ?] error exporting external scripts

Posted: Thu Oct 30, 2014 2:42 am
by NutJob
So has anyone figured this out, yet? I'd really like to start testing outside the editor.

Re: [bug ?] error exporting external scripts

Posted: Thu Oct 30, 2014 2:36 pm
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.