View previous topic :: View next topic |
Author |
Message |
noctrun
Joined: 15 Nov 2004 Posts: 5
|
Posted: Sun Nov 28, 2004 10:43 pm Post subject: qc tutorial: progs106.zip: 0 error(s), 0 warning(s) |
|
|
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) |
|
Back to top |
|
 |
Wazat
Joined: 15 Oct 2004 Posts: 732 Location: Middle 'o the desert, USA
|
Posted: Mon Nov 29, 2004 12:23 am Post subject: |
|
|
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. |
|
Back to top |
|
 |
Spike
Joined: 05 Nov 2004 Posts: 944 Location: UK
|
Posted: Mon Nov 29, 2004 12:43 am Post subject: |
|
|
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. |
|
Back to top |
|
 |
noctrun
Joined: 15 Nov 2004 Posts: 5
|
Posted: Mon Nov 29, 2004 2:18 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
Wazat
Joined: 15 Oct 2004 Posts: 732 Location: Middle 'o the desert, USA
|
Posted: Mon Nov 29, 2004 3:22 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
Spike
Joined: 05 Nov 2004 Posts: 944 Location: UK
|
Posted: Mon Nov 29, 2004 8:35 pm Post subject: |
|
|
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... |
|
Back to top |
|
 |
noctrun
Joined: 15 Nov 2004 Posts: 5
|
Posted: Tue Nov 30, 2004 4:21 pm Post subject: |
|
|
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. |
|
Back to top |
|
 |
Junrall

Joined: 21 Sep 2009 Posts: 136 Location: North West Oregon, USA
|
Posted: Thu Feb 11, 2010 4:36 am Post subject: |
|
|
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! |
|
Back to top |
|
 |
Sajt
Joined: 16 Oct 2004 Posts: 1026
|
Posted: Thu Feb 11, 2010 5:22 am Post subject: |
|
|
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. |
|
Back to top |
|
 |
Baker

Joined: 14 Mar 2006 Posts: 1538
|
Posted: Thu Feb 11, 2010 1:10 pm Post subject: |
|
|
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!  _________________ Tomorrow Never Dies. I feel this Tomorrow knocking on the door ... |
|
Back to top |
|
 |
Junrall

Joined: 21 Sep 2009 Posts: 136 Location: North West Oregon, USA
|
Posted: Thu Feb 11, 2010 7:42 pm Post subject: |
|
|
Dhoo! My apologies! I'm normally a stickler for these things... should have checked it.
Thanks Baker! _________________ Good God! You shot my leg off! |
|
Back to top |
|
 |
|