Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Problem running even the simplest of scripts...

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
sheamkennedy




Joined: 06 May 2013
Posts: 23
Location: Canada

PostPosted: Mon May 06, 2013 7:44 pm    Post subject: Problem running even the simplest of scripts... Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Tue May 07, 2013 5:54 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
sheamkennedy




Joined: 06 May 2013
Posts: 23
Location: Canada

PostPosted: Tue May 07, 2013 2:28 pm    Post subject: Thanks Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Tue May 07, 2013 2:54 pm    Post subject: Reply with quote

Which text editor were you using before, when you had the problems?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Tue May 07, 2013 8:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group