[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4787: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3922)
InsideQC Forums • View topic - Progs.h out of date error with Scratch Tutorials

Progs.h out of date error with Scratch Tutorials

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Progs.h out of date error with Scratch Tutorials

Postby timbobsteve » Wed Oct 19, 2005 12:40 am

Hi All,

I am getting the progs.h out of date error when I try to run the code created from the Scratch tutorials (here at Inside3D). Why would this be? I followed the tutorials precisely and my code is identical to the tutorials.

Its wierd.

It would be really awsome if someone can help me with this as I am trying to make a TC and it is a bit hard having to sift through all the ID code and add in my own... I think it would be easier to start with the Scratch model and then work my way up.

Thanks for any help you can provide.

-Timbobsteve
timbobsteve
 
Posts: 15
Joined: Mon Oct 10, 2005 12:56 pm

Postby RenegadeC » Wed Oct 19, 2005 1:32 am

You changed defs.qc where you shouldn't of; All additional stuff you add to defs.qc should be shoved at the bottom.
User avatar
RenegadeC
 
Posts: 391
Joined: Fri Oct 15, 2004 10:19 pm
Location: The freezing hell; Canada

Postby timbobsteve » Wed Oct 19, 2005 4:48 am

I don't remember adding anything to defs.QC other than

.entity camera;

(for my custom camera mod I am trying to make)

and I added that right down at the bottom after:

//End

Hmmmm I will go home and check again... Thanks Ren!

-Timbobsteve
timbobsteve
 
Posts: 15
Joined: Mon Oct 10, 2005 12:56 pm

Postby Spike » Wed Oct 19, 2005 7:03 pm

I don't seem to be able to get to the scratch tutorials anyway.

in defs.qc, never add any definitions before void end_sys_fields;
doing so will cause the crc built into the engine to not match, and the engine will complain with that cryptic message about a file that you never even saw being out of date...

qcc generates a c header file which is compiled into the engine. this header file contains the same crc as the one built into the progs. the header file consists of all the defs before the end_sys_fields def.
Which explains the cryptic message, at least.
So don't change the top of defs.qc unless you know what you're doing. You can use precompiler stuff (in supporting qccs), so long as it ends up with the right progdefs.h
Some compilers don't write the progdefs.h anymore. However, they still generate it, just never write it.

Hurrah for the wierdness of QC.
Spike
 
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby timbobsteve » Wed Oct 19, 2005 10:04 pm

Thanks for that Spike. I don't usually add anything at all to the defs.qc file anyways... I hava a bad habbit of declaring globals when I need them (right above the function :P).... its messy I know.... but its just me ATM that reads the code.
timbobsteve
 
Posts: 15
Joined: Mon Oct 10, 2005 12:56 pm

Postby FrikaC » Thu Oct 20, 2005 11:45 am

Did you add another file to progs.src above the defs.qc line? The system definitions need to be the first things the compiler compiles.
FrikaC
Site Admin
 
Posts: 1026
Joined: Fri Oct 08, 2004 11:19 pm

Postby timbobsteve » Thu Oct 20, 2005 11:50 am

Thanks for that Frik... that was the problem. I got it to work now.

Bummer for me though... I am too confused to make anything worthwhile. I have been trying to code a camera that is Top-down... but I have no idea what I am doing :P

Anyways... I am on my way now... hopefully I will have something to show soon... thanks for your help all..

-Timbobsteve
timbobsteve
 
Posts: 15
Joined: Mon Oct 10, 2005 12:56 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 3 guests