Page 1 of 1

[solved] lol, cause im a very good scripter, i have

Posted: Thu Oct 23, 2014 7:04 pm
by Lai
crashed my save :/
it now couldnt be open anymore
are there any way to recover?

Re: lol, cause im a very good scripter, i have crashed my sa

Posted: Thu Oct 23, 2014 7:15 pm
by Doridion
Yep, you can invoke the devil power to launch your washing machine and roll a dwarf over ham to the dark moon ... or simply explain us what you done before your save crashed ;)

Saves are crashing when some of external script part ( like hooks ) or asset are badly writen, or more simply, when link is missing.

However ( and you're very lucky ^^ ), when started, LoG2 gives you a message where the error is. Give us the error message, and the evil power, the dwarf, or us, explain you how solve your problem ;)

Re: lol, cause im a very good scripter, i have crashed my sa

Posted: Thu Oct 23, 2014 7:17 pm
by NutJob
Do you declare anything with the local keyword?

Re: lol, cause im a very good scripter, i have crashed my sa

Posted: Thu Oct 23, 2014 7:21 pm
by Lai
oh, cool!
never thought its easy like this :p

the point crashing the save are, making something wrong while copy the EASY METHODS (viewtopic.php?f=22&t=7306) hrhr

mod_assets/scripts/dungeon.lua1690:unexpected symbol near "."
:mrgreen:

Re: lol, cause im a very good scripter, i have crashed my sa

Posted: Thu Oct 23, 2014 7:22 pm
by NutJob
Ok, then.

Re: lol, cause im a very good scripter, i have crashed my sa

Posted: Thu Oct 23, 2014 7:45 pm
by Doridion
Lai wrote:mod_assets/scripts/dungeon.lua1690:unexpected symbol near "."
Ok, so it says that you effectively bad copied the script.

Don't be sad, your error is reparable ;) All scripts embled scripts are stocked in the "dungeon.lua" file in your "My documents/Almost Human/Grimrock Legend 2/Dungeons/[Name of your dungeon]/mod_assets/scripts/" directory.

Here, it seems than a sign is missing after the ".". Go download Notepad2 ( usefull util to work on files ) on the web, open the dungeon.lua file, search the part of script you copied with Ctrl-F ( for example ), see what's different beetween your script and the forum's script, and ... change differences !

After, if another error appear, do again this operation awhile errors appears ;)

For records and to "read" error messages :
Lai wrote:mod_assets/scripts/dungeon.lua1690:unexpected symbol near "."
mod_assets/scripts/dungeon.lua = Path and name of the file where having error
1690 = Code of the error
unexpected symbol near "." = Explanation of the error

That's all folks !

Re: lol, cause im a very good scripter, i have crashed my sa

Posted: Thu Oct 23, 2014 7:48 pm
by SnowyOwl47
Doridion wrote:
Lai wrote:mod_assets/scripts/dungeon.lua1690:unexpected symbol near "."
Ok, so it says that you effectively bad copied the script.

Don't be sad, your error is reparable ;) All scripts embled scripts are stocked in the "dungeon.lua" file in your "My documents/Almost Human/Grimrock Legend 2/Dungeons/[Name of your dungeon]/mod_assets/scripts/" directory.

Here, it seems than a sign is missing after the "." at the line 1690. Go download Notepad2 ( usefull util to work on files ) on the web, open the dungeon.lua file, see what's different beetween your script and the forum's script, and ... change differences !

After, if another error appear, do again this operation awhile errors appears ;)

For records and to "read" error messages :
Lai wrote:mod_assets/scripts/dungeon.lua1690:unexpected symbol near "."
mod_assets/scripts/dungeon.lua = Path and name of the file where having error
1690 = Line of the error
unexpected symbol near "." = Explanation of the error

That's all folks !
Open up dungeons.lua with notepad 2 or something and go to line 1690 and find something that might be messed up :D

Re: lol, cause im a very good scripter, i have crashed my sa

Posted: Thu Oct 23, 2014 7:59 pm
by Lai
Doridion wrote:
Lai wrote:mod_assets/scripts/dungeon.lua1690:unexpected symbol near "."
Ok, so it says that you effectively bad copied the script.

Don't be sad, your error is reparable ;) All scripts embled scripts are stocked in the "dungeon.lua" file in your "My documents/Almost Human/Grimrock Legend 2/Dungeons/[Name of your dungeon]/mod_assets/scripts/" directory.

Here, it seems than a sign is missing after the ".". Go download Notepad2 ( usefull util to work on files ) on the web, open the dungeon.lua file, search the part of script you copied with Ctrl-F ( for example ), see what's different beetween your script and the forum's script, and ... change differences !

After, if another error appear, do again this operation awhile errors appears ;)

For records and to "read" error messages :
Lai wrote:mod_assets/scripts/dungeon.lua1690:unexpected symbol near "."
mod_assets/scripts/dungeon.lua = Path and name of the file where having error
1690 = Code of the error
unexpected symbol near "." = Explanation of the error

That's all folks !
thank u very much- it was easy to find: surprissing just last entry ^^
im realy happy to get it back, cause ive worked a few hours on it

i miss the "save AS" button i now realize, to make different saves from same dungeon

Re: lol, cause im a very good scripter, i have crashed my sa

Posted: Thu Oct 23, 2014 8:09 pm
by Doridion
Happy for you you've find back your save. We've all got this case once time before ;)

Now if you can place a little [Solved] before the title of your thread :D