HexenC don't compiling with HCC!

Discuss programming in the QuakeC language.
Post Reply
Naykin
Posts: 16
Joined: Fri Mar 22, 2013 7:28 am

HexenC don't compiling with HCC!

Post by Naykin »

Hello everyone:) I started learn QuakeC(HexenC) to make mod for Hexen 2 and immediately got a problem: HCC and FteQCC just not compiling base sources. Where there may be a bug?
I apologize for my bad english:)
Naykin
Posts: 16
Joined: Fri Mar 22, 2013 7:28 am

Re: HexenC don't compiling with HCC!

Post by Naykin »

OK, I try 2 complects source code H2: http://www.inside3d.com/h2tut/hcc.zip (Its working!) and this http://www.fileplanet.com/51987/50000/f ... ource-Code (include souces and compillers. Dont work). How are they different?
mankrip
Posts: 924
Joined: Fri Jul 04, 2008 3:02 am

Re: HexenC don't compiling with HCC!

Post by mankrip »

Judging from the filesize, that one at FilePlanet seems to be the engine source, not the gamecode source.
Ph'nglui mglw'nafh mankrip Hell's end wgah'nagl fhtagn.
==-=-=-=-=-=-=-=-=-=-==
Dev blog / Twitter / YouTube
Naykin
Posts: 16
Joined: Fri Mar 22, 2013 7:28 am

Re: HexenC don't compiling with HCC!

Post by Naykin »

File on the Fileplanet include ALL, gamecode too)

And another think: Why in the game sountrack play just 1 time, no loop?
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Re: HexenC don't compiling with HCC!

Post by Spike »

Regarding fteqcc, you need -TH2 on the commandline so that it knows its meant to accept hexenc keywords and to use the hexen2 opcodes+crc rules (if you're using the gui version, there's a checkbox in the options menu).
Alternatively, you can also place '#pragma TARGET H2' and '#pragma keyword enable thinktime' at the top of whichever hc file is the first to compile.
Without doing one of those things, fteqcc will assume you're compiling for quake.

Regarding hcc, you should probably use a version from http://uhexen2.sourceforge.net/ and indeed you should definitely grab the gamecode source from that site instead of other versions. The vanilla hexenc code is riddled with bugs, hopefully the HoT version will have the more noticable bugs fixed, or at least hidden.
Naykin
Posts: 16
Joined: Fri Mar 22, 2013 7:28 am

Re: HexenC don't compiling with HCC!

Post by Naykin »

Spike, thanks) If Source on this site fully working, i use it.
Baker
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Re: HexenC don't compiling with HCC!

Post by Baker »

By the way, you spelled "napkin wrong". Just wanted to point that out :P
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
Naykin
Posts: 16
Joined: Fri Mar 22, 2013 7:28 am

Re: HexenC don't compiling with HCC!

Post by Naykin »

What does the napkin? My nik is "Naykin". I came up with it itself.
Baker
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Re: HexenC don't compiling with HCC!

Post by Baker »

Sometimes I joke when I shouldn't. That post was one of those times.
The night is young. How else can I annoy the world before sunsrise? 8) Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
Naykin
Posts: 16
Joined: Fri Mar 22, 2013 7:28 am

Re: HexenC don't compiling with HCC!

Post by Naykin »

Yeah, i undstnd.))))
Post Reply