Frictional Games Forum (read-only)
Script Compiler / Map Viewer Does It Exist? [Solved] - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Script Compiler / Map Viewer Does It Exist? [Solved] (/thread-6137.html)

Pages: 1 2


Script Compiler / Map Viewer Does It Exist? [Solved] - WodahsR - 01-10-2011

I am doing some work creating a custom story and I was wonder if there was a quicker way to compile scripts and run maps other than launch Amnesia, load map, crash, look at error, and have to relaunch it when the error is fixed.

What I am looking for looks very similar to what MulleDK19 was using in his video tutorials any hep would be appreciated.

===================================
It turns out all this stuff is available in debug mode which I learned how to do. Anyone who wants to know how to turn it on go here.


RE: Script Compiler / Map Viewer Does It Exist? [Solved] - DIGI Byte - 01-10-2011

you setup the in game debug, load up a working map
open the script in an editor, select it all copy/delete it all and it so its 'clean' and works, save it
load the map, (so it has no script)
undo the deleted code in your script, save it and switch to the game, and using the debug menu (F1) click (recompile scripts)
the game wont crash and close, it will tell you an error and you can simply close it and edit it and go back, repeat until happy


RE: Script Compiler / Map Viewer Does It Exist? [Solved] - Tottel - 01-10-2011

I recommend using notepad++ for your script if you're not using it already. And set the language to javascript.
Truly, you'll save yourself a lot of trouble when using it.


RE: Script Compiler / Map Viewer Does It Exist? [Solved] - Frontcannon - 01-10-2011

(01-10-2011, 04:42 PM)Tottel Wrote: I recommend using notepad++ for your script if you're not using it already. And set the language to javascript.
Truly, you'll save yourself a lot of trouble when using it.

Frictional released a custom .xml for .hps on Notepad++ on the Wiki.

Lulz Post #404


RE: Script Compiler / Map Viewer Does It Exist? [Solved] - DIGI Byte - 01-10-2011

(01-10-2011, 05:19 PM)Frontcannon Wrote:
(01-10-2011, 04:42 PM)Tottel Wrote: I recommend using notepad++ for your script if you're not using it already. And set the language to javascript.
Truly, you'll save yourself a lot of trouble when using it.

Frictional released a custom .xml for .hps on Notepad++ on the Wiki.
Sweet linkage
http://wiki.frictionalgames.com/hpl2/third_party_tools/text/notepad


RE: Script Compiler / Map Viewer Does It Exist? [Solved] - Tottel - 01-10-2011

Niiice, thanks. Big Grin


RE: Script Compiler / Map Viewer Does It Exist? [Solved] - RawkBandMan - 01-13-2011

Parden me but, where does the dev_user folder live?


RE: Script Compiler / Map Viewer Does It Exist? [Solved] - Tottel - 01-13-2011

Make a new profile in the game, go to:

My Documents/Amnesia/main

rename the folder to dev_user


RE: Script Compiler / Map Viewer Does It Exist? [Solved] - Frontcannon - 01-13-2011

(01-13-2011, 03:39 PM)Tottel Wrote: Make a new profile in the game, go to:

My Documents/Amnesia/main

rename the folder to dev_user

Do not do this.

The profile folders are automatically created in the main folder.


RE: Script Compiler / Map Viewer Does It Exist? [Solved] - Tottel - 01-13-2011

Quote from the wiki:

"Enter the save directory (“My Documents/Amnesia/Main” in windows by default) and rename the user name (e.g. MyName) to “dev_user”."

Guess we'll have to change that then. Smile