Frictional Games Forum (read-only)
saving .hps files in mac textedit - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Technical Support (https://www.frictionalgames.com/forum/forum-57.html)
+--- Forum: Technical Support - Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-31.html)
+---- Forum: Mac - ATDD (https://www.frictionalgames.com/forum/forum-33.html)
+---- Thread: saving .hps files in mac textedit (/thread-7922.html)



saving .hps files in mac textedit - willochill - 05-10-2011

hi i just began scripting some levels in amnesia editor, but all i have is textedit so i did it in that. problem is, i can't figure out how to save a script file as a .hps file in textedit. help!
also, for a script file to correspond to a map do you just need to name the script file the same thing as the map? or do u need to do some other extra setup to connect the two?


RE: saving .hps files in mac textedit - jens - 05-10-2011

You have to make sure that the text is "plain text" which you can set in the Format menu, then when you save you have to type the .hps as an extension. By default Textedit will append a .txt extension so you have to remove that part of the file name (in the Finder menu, under preferences you can turn on show file extensions.). You can change the default behavior of Textedit in the preferences, under Open and Save where you can uncheck the box that auto adds .txt extensions.

It might be better to use another text editor like Smultron or TextWrangler as they can color the text and do other things making it easier to script.


RE: saving .hps files in mac textedit - willochill - 05-11-2011

(05-10-2011, 06:03 AM)jens Wrote: You have to make sure that the text is "plain text" which you can set in the Format menu, then when you save you have to type the .hps as an extension. By default Textedit will append a .txt extension so you have to remove that part of the file name (in the Finder menu, under preferences you can turn on show file extensions.). You can change the default behavior of Textedit in the preferences, under Open and Save where you can uncheck the box that auto adds .txt extensions.

It might be better to use another text editor like Smultron or TextWrangler as they can color the text and do other things making it easier to script.

well do you have to color different sections of text when scripting, or can it be all black?
also i had another question, to make a script file correspond to a certain map to you just need to save the script file with the same name as the map or do you need to do some other setup?


RE: saving .hps files in mac textedit - The Dark Master - 08-23-2011

bro, just use Unitron, it is already an app on your mac! SCREW TEXTEDIT!


RE: saving .hps files in mac textedit - zekex944resurrection - 05-04-2012

(05-10-2011, 06:03 AM)jens Wrote: You have to make sure that the text is "plain text" which you can set in the Format menu, then when you save you have to type the .hps as an extension. By default Textedit will append a .txt extension so you have to remove that part of the file name (in the Finder menu, under preferences you can turn on show file extensions.). You can change the default behavior of Textedit in the preferences, under Open and Save where you can uncheck the box that auto adds .txt extensions.

It might be better to use another text editor like Smultron or TextWrangler as they can color the text and do other things making it easier to script.
do i just save it right to the custom story folder under the name of my custom story are their any tutorials for mac users


RE: saving .hps files in mac textedit - Cranky Old Man - 05-04-2012

(05-04-2012, 02:30 PM)zekex944resurrection Wrote: do i just save it right to the custom story folder under the name of my custom story are their any tutorials for mac users
I think it's the same for Mac users as for PC users:
Use a text editor that is capable of saving in plain text (.txt) and save it with a custom .hps extension in the same folder as your .map file. If the editor won't allow you to change the extension, then just save it as plain text (.txt) and rename it afterwards.


RE: saving .hps files in mac textedit - Demondays1 - 06-13-2012

use UltraEdit, Its like Notepad++