Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
saving .hps files in mac textedit
Author Message
willochill Offline
Member

Posts: 72
Joined: Apr 2011
Reputation: 0
Post: #1
saving .hps files in mac textedit
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?
05-10-2011 03:28 AM
Find all posts by this user Quote this message in a reply
jens Offline
Frictional Games

Posts: 3,111
Joined: Apr 2006
Reputation: 108
Post: #2
RE: saving .hps files in mac textedit
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.
05-10-2011 06:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply
willochill Offline
Member

Posts: 72
Joined: Apr 2011
Reputation: 0
Post: #3
RE: saving .hps files in mac textedit
(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?
05-11-2011 12:49 AM
Find all posts by this user Quote this message in a reply
The Dark Master Offline
Junior Member

Posts: 2
Joined: Aug 2011
Reputation: 0
Post: #4
RE: saving .hps files in mac textedit
bro, just use Unitron, it is already an app on your mac! SCREW TEXTEDIT!
(This post was last modified: 08-23-2011 01:31 PM by The Dark Master.)
08-23-2011 01:29 PM
Find all posts by this user Quote this message in a reply
zekex944resurrection Offline
Junior Member

Posts: 3
Joined: Apr 2012
Reputation: 0
Post: #5
RE: saving .hps files in mac textedit
(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
05-04-2012 02:30 PM
Find all posts by this user Quote this message in a reply
Cranky Old Man Offline
Posting Freak

Posts: 925
Joined: Apr 2012
Reputation: 37
Post: #6
RE: saving .hps files in mac textedit
(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.

Noob scripting tutorial: From Noob to Pro

05-04-2012 07:30 PM
Find all posts by this user Quote this message in a reply
Demondays1 Offline
Member

Posts: 57
Joined: Jun 2012
Reputation: 0
Post: #7
RE: saving .hps files in mac textedit
use UltraEdit, Its like Notepad++

Intel HD Lag fix: tiny.cc/pyv1gw
06-13-2012 12:31 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)