Back to the Korax Forum Archives


Forum

Hexen script compiling

Wed, 21 Jan 2009 22:44:55

Dancso

Hi, I'm trying to create a vanilla Hexen level with vanilla scripts after getting used to zdoom's scripting style, i'm having trouble with getting it to work, it just won't run the scripts for some weird reason. I've tried self-compiling it with zdoom's acc and the -h parameter which is said to make it work, but doesn't seem to. The code works in zdoom and the relative ports, but not in vanilla hexen (nor korax mod hehe) Can anybody help me with this?
Thu, 22 Jan 2009 13:34:05

Crimson Wizard

I know there's a difference in script formats that modern ports use, I think they store action special in 1 byte, while vanilla Hexen used 2 or even 4 bytes (don't remember that clearly, but I definitely saw something like this in the code), although it still not allowed action special values > 255. But I thought that -h key should save scripts in vanilla Hexen format, so I cannot guess what else can be a problem here. Say, do you get any results if you just make some text displayed on screen ('print' command)?
Thu, 22 Jan 2009 15:57:35

Dancso

It works now! The problem was there were a few things in the code that made it un-runnable, like
int var1 = 0;
wont work, had to make it like
int var1;
then later define it in an open script. It also seems that in vanilla hexen there weren't any ENTER scripts so i changed that too, since my project is for singleplayer, it doesn't matter. Took me a few hours of examining the original codes in maps of hexen to figure the solution out. Thanks for the reply, actually if you wouldn't have replied i'd have probably abandoned my project! Keep an eye out for something awesome in the close future <!-- s:wink: --><img src="{SMILIES_PATH}/orc9.gif" alt=":wink:" title="Wink" /><!-- s:wink: -->
Thu, 22 Jan 2009 17:04:09

Firebrand

IIRC, there was an old Hexen ACS documentation included with the ancent ACC.exe from original Hexen, maybe if you read that one you can find what are the most recent additions to ACS scripts in modern source ports <!-- s;) --><img src="{SMILIES_PATH}/orc9.gif" alt=";)" title="Wink" /><!-- s;) -->. As for that awesome thing... I wonder what is it? <!-- s:) --><img src="{SMILIES_PATH}/orc2.gif" alt=":)" title="Smile" /><!-- s:) -->
Fri, 23 Jan 2009 12:33:45

Crimson Wizard

2 Dancso: Yeah, that was exactly what I was thinking this morning - to ask you if you are using some advanced scripting stuff <!-- s:) --><img src="{SMILIES_PATH}/orc2.gif" alt=":)" title="Smile" /><!-- s:) --> glad you figured that yourself. [quote="Firebrand":7dfwtsyv]IIRC, there was an old Hexen ACS documentation included with the ancent ACC.exe from original Hexen AFAIK there's also scripting documentation that comes with WadAuthor map editor.

Back to the Korax Forum Archives