View previous topic :: View next topic |
Author |
Message |
sheamkennedy

Joined: 06 May 2013 Posts: 23 Location: Canada
|
Posted: Mon May 06, 2013 7:44 pm Post subject: Problem running even the simplest of scripts... |
|
|
I'm having a strange scripting error. I am almost positive I am following the plot scripting tutorial properly but cannot not compile due to the following error:
Semicompiling pstutor.HSS to pstutor.hs
reading pstutor.HSS
ERROR: in line 1 of pstutor.HSS
include, plotscr.hsdinclude, pstutor.hsi
^
Found garbage pstutor.hsi after name of file to include. Try enclosing the
filename in "quote marks"?
I have pstutor.rpg, pstutor.hsi and pstutor.HSS all in the same folder on my desktop. My script is directly copied from the wiki page and I reviewed it for any errors. I'll also let you know that I'm running CUSTOM on a MAC, I'm not sure if that makes a difference. I have done plot scripting in the past on WINDOWS computers but haven't had any real problems. _________________ SMK |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue May 07, 2013 5:54 am Post subject: |
|
|
That error seems to show that the first line of your file is "include, plotscr.hsdinclude, pstutor.hsi" all run together. Does it appear that way in your text editor? If so, that's not right. If it doesn't appear run together, perhaps your problem is mixed line endings or other file encoding problems. What text editor are you using? _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
sheamkennedy

Joined: 06 May 2013 Posts: 23 Location: Canada
|
Posted: Tue May 07, 2013 2:28 pm Post subject: Thanks |
|
|
Thanks a lot. It seems to be a problem with the text editors I was using. To avoid further frustrations for MAC users I would suggest using a text editor called TextWrangler. After switching to TextWrangler all my errors seem to be resolved and the scripts I've been working on are now compiling smoothly. _________________ SMK |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Tue May 07, 2013 2:54 pm Post subject: |
|
|
Which text editor were you using before, when you had the problems? |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Tue May 07, 2013 8:24 pm Post subject: |
|
|
I worked out what the problem was: in fact it's a bug in HSpeak. HSpeak isn't accepting files encoded with "Mac" line endings (which was the native line ending encoding in Mac OS 9 and earlier, OSX natively uses "Unix" line endings, although most Mac applications would accept both encodings as well as the DOS encoding). Although I tested this last night, it seems I didn't test it correctly so I missed it. I'll try to fix this bug in HSpeak.
It's likely that the other text editors you used have a setting somewhere to select the end-of-line style. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
|