Inside3D!
     

Progs.h out of date error with Scratch Tutorials

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
timbobsteve



Joined: 10 Oct 2005
Posts: 15

PostPosted: Wed Oct 19, 2005 12:40 am    Post subject: Progs.h out of date error with Scratch Tutorials Reply with quote

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
Back to top
View user's profile Send private message
RenegadeC



Joined: 15 Oct 2004
Posts: 370
Location: The freezing hell; Canada

PostPosted: Wed Oct 19, 2005 1:32 am    Post subject: Reply with quote

You changed defs.qc where you shouldn't of; All additional stuff you add to defs.qc should be shoved at the bottom.
Back to top
View user's profile Send private message AIM Address MSN Messenger
timbobsteve



Joined: 10 Oct 2005
Posts: 15

PostPosted: Wed Oct 19, 2005 4:48 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Wed Oct 19, 2005 7:03 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
timbobsteve



Joined: 10 Oct 2005
Posts: 15

PostPosted: Wed Oct 19, 2005 10:04 pm    Post subject: Reply with quote

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 Razz).... its messy I know.... but its just me ATM that reads the code.
Back to top
View user's profile Send private message
FrikaC
Site Admin


Joined: 08 Oct 2004
Posts: 947

PostPosted: Thu Oct 20, 2005 11:45 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail
timbobsteve



Joined: 10 Oct 2005
Posts: 15

PostPosted: Thu Oct 20, 2005 11:50 am    Post subject: Reply with quote

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 Razz

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

-Timbobsteve
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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 © 2004 phpBB Group