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

Please help me debug my script

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
View previous topic :: View next topic  
Author Message
Battleblaze
Warrior Thread Monk




Joined: 19 Dec 2003
Posts: 782
Location: IndY OHR

PostPosted: Tue Jan 27, 2004 7:33 am    Post subject: Please help me debug my script Reply with quote

I've gone through OHR hell with on keypress scripts so instead of having a jump script that works on keypress I'll just make it an automatic jump (like in zelda) but the compiler won't work!!!

Please help debug my jumping scripts


include plotscr.hsd


define script (1,northjump,none)
define script (2,eastjump,none)
define script (3,southjump,none)
define script (4,westjump,none)



script,northjump, begin
suspend player
suspend obstruction
set hero picture (me,2,outsidebattle)
walk hero (me,north,5)
set hero picture (me,1,outsidebattle)
resume obstruction
wait (20)
end

script, eastjump, begin
suspend player
suspend obstruction
set hero picture (me,2,outsidebattle)
walk hero (me,east, 5)
set hero picture (me,1,outsidebattle)
resume obstruction
wait (20)
end

script,southjump, begin
suspend player
suspend obstruction
set hero picture (me,2,outsidebattle)
walk hero (me,south, 5)
set hero picture (me,1,outsidebattle)
resume obstruction
wait (20)
end

script,westjump, begin
suspend player
suspend obstruction
set hero picture (me,2,outsidebattle)
walk hero (me,west, 5)
set hero picture (me,1,outsidebattle)
resume obstruction
wait (20)
end




No, no, no...
_________________
Indy OHR! and National OHR Month Contest going on now!

"Aeth calls PHC an anti-semite; PHC blames anti-semitism"
-squall
Back to top
View user's profile Send private message Visit poster's website AIM Address
MultiColoredWizard
Come back, baby!
The Breastmaster



Joined: 01 Feb 2003
Posts: 1232

PostPosted: Tue Jan 27, 2004 8:07 am    Post subject: Reply with quote

Well you left out a resum player. There's not much else I see wrong... Could you tell the error message from the compiler?
Back to top
View user's profile Send private message
Battleblaze
Warrior Thread Monk




Joined: 19 Dec 2003
Posts: 782
Location: IndY OHR

PostPosted: Tue Jan 27, 2004 8:30 am    Post subject: Reply with quote

the compiler flashes some red letters for a nanosecond and turns itself off. and i can't use the error counsil built into hssed because windows XP forces me to click the script and dropt it on the program.
_________________
Indy OHR! and National OHR Month Contest going on now!

"Aeth calls PHC an anti-semite; PHC blames anti-semitism"
-squall
Back to top
View user's profile Send private message Visit poster's website AIM Address
MultiColoredWizard
Come back, baby!
The Breastmaster



Joined: 01 Feb 2003
Posts: 1232

PostPosted: Tue Jan 27, 2004 8:58 am    Post subject: Reply with quote

Oh, hm. I forgot how to counter that. You're supposed to go to start --> run on your taskbar, but i forget where the DOS thing is. I think it's called cmd.exe, or command.exe, so look for that. When you get that up, scroll to the folder with HSPEAK.exe(put the .hss file in this DIR too). use commands like CD FOLDER(replace folder name) to get through. If you screw up do CD ..(dotdot, not just dot). When you get to that directory.. put in i thiiiiiiiiiiink Hspeak HSSFILENAME.HSS, and then WHATHSNAMEISTOBE.hs. Fill in the ovious stuff. It shoudl compile correctly, but I haven't used XP in ages so I don't remember how to work it.
Back to top
View user's profile Send private message
T-Master




Joined: 10 Dec 2003
Posts: 74

PostPosted: Tue Jan 27, 2004 12:36 pm    Post subject: Reply with quote

Code:
include plotscr.hsd


should be

Code:
include, plotscr.hsd


As MCW said, suspend player. Also, you might want a wait for hero(me).

If you're having problems compiling and can't see the errors, you may want to make a .bat file to compile them, like I did. To do this, simply make a text file in your OHR folder called yourgame.txt, and edit it as such:

del hs_error.htm
hspeak.exe -wyz yourgame.hss

Rename the file to yourgame.bat, and anytime you want to compile your scripts just run this instead. If there's an error, a new file will appear called HS_ERROR.htm in your ohr folder.
Back to top
View user's profile Send private message
Setu_Firestorm
Music Composer




Joined: 26 Mar 2003
Posts: 2566
Location: Holiday. FL

PostPosted: Tue Jan 27, 2004 2:36 pm    Post subject: Reply with quote

Do "outsidebattle" and "insidebattle" parameters work with HSpeak? I thought you had to use the number values for those.
_________________


Facebook: http://www.facebook.com/georgerpowell
Newgrounds: http://setu-firestorm.newgrounds.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Me
HI.




Joined: 30 Mar 2003
Posts: 870
Location: MY CUSTOM TITLE CAME BACK

PostPosted: Tue Jan 27, 2004 6:23 pm    Post subject: Reply with quote

They're predefined as constants, Setu. Although, Battleblaze, there's no reason to include the "outside battle," since that function defaults to changing the outside battle sprite.
Anyway, HSSed.exe I have found to work with WinXP, at least on my computer. I hit compile, and it compiles the script just fine. However, it always asks me where the compiler is (this doesn't really get in the way, actually) and all error messages appear in an html file called HS_ERROR.htm.
Back to top
View user's profile Send private message AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Tue Jan 27, 2004 10:20 pm    Post subject: Reply with quote

Umm... look, the REALLY obvious way to stop Hspeak.exe from closing when it finishs is to right click on it and goto Properties, Program, and un-select 'Close on exit'. That way you can read the error messages.

HSpeak works for me in XP under Hssed, but same problem as you, Me.
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Battleblaze
Warrior Thread Monk




Joined: 19 Dec 2003
Posts: 782
Location: IndY OHR

PostPosted: Wed Jan 28, 2004 9:13 am    Post subject: Reply with quote

Thanx guys. I can compile my script just by drag and drop. But like Cacti said I just spelled sumthing wrong (as always) Oookay...
_________________
Indy OHR! and National OHR Month Contest going on now!

"Aeth calls PHC an anti-semite; PHC blames anti-semitism"
-squall
Back to top
View user's profile Send private message Visit poster's website AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Wed Jan 28, 2004 10:57 pm    Post subject: Reply with quote

Mis-spelling? I didn't say anything. You mean TM.
_________________
"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