fteqcc error: Unknown value "void".

Post anything on anything here

Moderator: Moderators

fteqcc error: Unknown value "void".

Postby Mizu Kitsune » Sat Sep 19, 2009 3:06 am

I dont know where to put this, but anyways i was making some changes to id1qc with making the lightning gun shoot a flare that had lasers come out of it and play music. however now i get this output:
Code: Select all
in function W_Attack (line 1005),
weapons.qc:1078: warning: Hanging ';'
weapons.qc:1086: error: Unknown value "void".
weapons.qc:1086: warning: Expected punctuation
weapons.qc:1086: warning: Expected punctuation
weapons.qc:1086: warning: Expected punctuation
weapons.qc:1086: warning: Expected punctuation
weapons.qc:1086: warning: Expected punctuation
weapons.qc:1086: warning: Expected punctuation
weapons.qc:1086: error: expected ;, found W_ChangeWeapon

************ ERROR ************
Errors have occured

Error in weapons.qc on line 1453

any idea on why fteqcc does this and how to fix it?, it also happens with editing nexuiz qc.
+The Dude+
[-Project 2501-]
Mizu Kitsune
Alien trapper
 
Posts: 362
Joined: Sat Apr 11, 2009 7:51 pm
Location: Maridia

Postby Ronan » Sat Sep 19, 2009 11:35 am

Hard to say without seeing your W_Attack function, can you post it, it's the occasion to see the coding skill you praised. :)
And be sure to use fteqcc compiled from the recent svn sources, many bugs was fixed.
Ronan
Alien trapper
 
Posts: 292
Joined: Tue Mar 20, 2007 10:25 pm
Location: France

Postby mand1nga » Sat Sep 19, 2009 12:35 pm

COMPILER PWNT
mand1nga
Alien trapper
 
Posts: 321
Joined: Mon May 12, 2008 12:19 am

Postby Mizu Kitsune » Sat Sep 19, 2009 6:07 pm

this is my lycanthrope&robot folder, one of many full of qc code.
I'm making a mod for Nexuiz that is pretty much ratchet and clank so i needed to have a fresh id1qc because I'm gonna use the monster code from id1qc and weapons like the music gun are easier to make in id1qc then port them to nex qc, then I started with copying my usual content over, and left my realistic pistol, shotgun, and got bored with the nailgun, but those don't matter because they wont be transferred to the nex qc. I haven't made any monster monster code for find radius to make them stop and dance yet, just started working on the weapon code first. in my opinion its a ghetto way of putting electro secondary in q1. disco.mdl and mg1.wav arent included as i haven't made them yet and the crappy laser gun model will be the old electro model once transferred to nexqc. just copy the id1 grenade model and rename it to disco.mdl for now and just through a random wav file named mg1.wav. if anyone wants to help with lycanthrobe & robot, let me know, cause i'm gonna need help to reanimating lycanthrope, robot, and a few others of the models and making new ones and mapping, just one big open ended map, not a bunch of little maps with slip gates to the next area, and modeling some new weapons for it.

http://www.fileden.com/files/2009/8/4/2 ... thrope.zip
+The Dude+
[-Project 2501-]
Mizu Kitsune
Alien trapper
 
Posts: 362
Joined: Sat Apr 11, 2009 7:51 pm
Location: Maridia

Postby Mr. Bougo » Sat Sep 19, 2009 8:35 pm

You do realize that you are making us download a >100 megabyte file for us to have a look at a few kilobytes of code, just to find your error which is probably a misplaced semicolon or something, right?
Meh.
Mr. Bougo
Keyboard killer
 
Posts: 760
Joined: Mon Sep 10, 2007 3:29 pm

Postby divVerent » Sat Sep 19, 2009 8:54 pm

It is more likely a misplaced, missing or too much other character than a semicolon.

But 100% sure a typo.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Mr. Bougo » Sat Sep 19, 2009 9:05 pm

Your
Code: Select all
   else if (self.weapon == IT_FLARE)
   {

has no closing brace. So the end brace of the definition of W_Attack is considered as this, I guess, and it never ends.
Meh.
Mr. Bougo
Keyboard killer
 
Posts: 760
Joined: Mon Sep 10, 2007 3:29 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron