qc tutorial: progs106.zip: 0 error(s), 0 warning(s)

Discuss programming in the QuakeC language.
Post Reply
noctrun
Posts: 5
Joined: Mon Nov 15, 2004 10:58 am

qc tutorial: progs106.zip: 0 error(s), 0 warning(s)

Post by noctrun »

I found some older notes form me today and made a tutorial out of it, please take a look at it here and tell me if and what's wrong with it so I can fix it (I suspect some explanations of the warnings that relate to the ai code are way off because I don't really know anything about quake's ai)
Wazat
Posts: 771
Joined: Fri Oct 15, 2004 9:50 pm
Location: Middle 'o the desert, USA

Post by Wazat »

Wonderful! I've been wanting to fix these warnings for a long time but haven't had the chance or the will to work on it. I'll do that now...

.....

Ok, it worked for me. I did it in Conquest, so I had a few other warnings to take care of (my Shop.qc was certainly a mess... ;P ), but all of the errors you mention were easily fixed with the tutorial's guidance. I wouldn't have known what to return in some of those situations.

Once I'd fixed the warnings the tutorial mentioned, it was easy to apply the same knowledge to my other warnings.

Thanks, nocturn!
When my computer inevitably explodes and kills me, my cat inherits everything I own. He may be the only one capable of continuing my work.
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Post by Spike »

knight.qc:32: warning: Duplicate macro defined (attackb1)
oldone.qc:29: warning: Duplicate macro defined (shake12)


....

And the rest:

defs.qc:401: warning: empty_float no references
defs.qc:417: warning: wad no references
defs.qc:428: warning: light_lev no references
defs.qc:501: warning: dest no references
defs.qc:548: warning: waitmax no references
defs.qc:549: warning: distance no references
defs.qc:550: warning: volume no references
fight.qc:298: warning: chance no references
fight.qc:299: warning: enemy_yaw no references
ai.qc:37: warning: current_yaw no references
ai.qc:476: warning: mtemp no references
ai.qc:679: warning: delta no references
ai.qc:680: warning: axis no references
ai.qc:681: warning: direct no references
ai.qc:681: warning: ang_rint no references
ai.qc:681: warning: ang_floor no references
ai.qc:681: warning: ang_ceil no references
items.qc:152: warning: amount no references
items.qc:871: warning: stemp no references
items.qc:872: warning: best no references
items.qc:1007: warning: stemp no references
items.qc:1008: warning: best no references
items.qc:1080: warning: stemp no references
items.qc:1081: warning: best no references
weapons.qc:91: warning: mpuff no references
weapons.qc:376: warning: mpuff no references
weapons.qc:551: warning: mpuff no references
weapons.qc:630: warning: old no references
weapons.qc:646: warning: old no references
weapons.qc:674: warning: hit_z no references
weapons.qc:677: warning: rand no references
weapons.qc:717: warning: rand no references
world.qc:362: warning: e no references
client.qc:292: warning: pos no references
client.qc:694: warning: old_self no references
client.qc:729: warning: start no references
client.qc:729: warning: end no references
client.qc:901: warning: mspeed no references
client.qc:901: warning: aspeed no references
client.qc:902: warning: r no references
client.qc:1113: warning: mspeed no references
client.qc:1113: warning: aspeed no references
client.qc:1114: warning: r no references
monsters.qc:51: warning: ent no references
monsters.qc:51: warning: otemp no references
monsters.qc:51: warning: stemp no references
monsters.qc:71: warning: stemp no references
monsters.qc:72: warning: etemp no references
buttons.qc:88: warning: gtemp no references
buttons.qc:88: warning: ftemp no references
triggers.qc:2: warning: stemp no references
triggers.qc:2: warning: otemp no references
triggers.qc:2: warning: old no references
triggers.qc:224: warning: junk no references
plats.qc:150: warning: t no references
misc.qc:447: warning: vtmp1 no references
misc.qc:447: warning: modi no references
ogre.qc:92: warning: mpuff no references
demon.qc:280: warning: vec no references
dog.qc:306: warning: vec no references
zombie.qc:164: warning: mpuff no references


hehehe...
Enjoy.
noctrun
Posts: 5
Joined: Mon Nov 15, 2004 10:58 am

Post by noctrun »

Spike wrote:knight.qc:32: warning: Duplicate macro defined (attackb1)
oldone.qc:29: warning: Duplicate macro defined (shake12)
how come I don't get those warnings? I can get the no reference with fteqcc, but not those.
Wazat
Posts: 771
Joined: Fri Oct 15, 2004 9:50 pm
Location: Middle 'o the desert, USA

Post by Wazat »

he's probably stim'd up his errorlevel above the frikqcc default.
When my computer inevitably explodes and kills me, my cat inherits everything I own. He may be the only one capable of continuing my work.
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Post by Spike »

noctrun wrote:how come I don't get those warnings? I can get the no reference with fteqcc, but not those.
I souped it up a bit when I found people complaining about not being able to use frame macros from a different qc file. I also added the test for duplicate frame macros whilst I was at it. You should probably consider fixing the unused pointless fields that each waste 4 bytes for every one of your 32767 ents...
noctrun
Posts: 5
Joined: Mon Nov 15, 2004 10:58 am

Post by noctrun »

well, uploading a new version of the tutorial at the above location. I take it that removing the duplicated frame macros would solve the warning(s) and not mess up the numbering on other compilers, as they where ignored in any case, right? I'm too lazy to check myself right now.
Junrall
Posts: 191
Joined: Mon Sep 21, 2009 12:27 am
Location: North West Oregon, USA
Contact:

Post by Junrall »

Just wondering if this is available anywhere... the above link has long since gone to the wayside.

UPDATE: Nnnnever mind! I found it here... http://tremor.quakedev.com/qcide
Good God! You shot my leg off!
Sajt
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Post by Sajt »

noctrun wrote:well, uploading a new version of the tutorial at the above location. I take it that removing the duplicated frame macros would solve the warning(s) and not mess up the numbering on other compilers, as they where ignored in any case, right? I'm too lazy to check myself right now.
Removing the duplicate frame macros will mess up the animations, of course!
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Baker
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Post by Baker »

Junrall wrote:Just wondering if this is available anywhere... the above link has long since gone to the wayside.

UPDATE: Nnnnever mind! I found it here... http://tremor.quakedev.com/qcide
*cough* http://tremor.quakedev.com/qcide.html */cough*

The .html part of the link, it's important! 8)
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 ..
Junrall
Posts: 191
Joined: Mon Sep 21, 2009 12:27 am
Location: North West Oregon, USA
Contact:

Post by Junrall »

Baker wrote:*cough* http://tremor.quakedev.com/qcide.html */cough*

The .html part of the link, it's important! 8)
Dhoo! My apologies! I'm normally a stickler for these things... should have checked it. :oops:

Thanks Baker!
Good God! You shot my leg off!
Post Reply