FAQ  •  Register  •  Login

Custom monster error

Moderator: Inside3D Admins

<<

thommoboy

Posts: 95

Joined: Mon Nov 21, 2011 6:35 am

Post Wed Feb 08, 2012 7:05 am

Custom monster error

okay im adding a monster into quake and have had no hitches up until renaming animations

i am using the base code of the demon

when i compile i get this

error: slasher.qc:303:Demon_Melee redeclared (see previous declaration demon.qc(304))

but when i change all of the Demon_Melee to Slasher_Melee i get this

error: slasher.qc:104:Unknown value "slasher_melee"
error: slasher.qc:110:Unknown value "slasher_melee"

im stumped :P
<<

Jukki

Posts: 210

Joined: Wed Apr 07, 2010 4:59 am

Post Wed Feb 08, 2012 7:29 am

Re: Custom monster error

Did you call the function with lower case? Error has all characters lower vase while you said you renamed them eith first letter beikg uppercase ;)
<<

thommoboy

Posts: 95

Joined: Mon Nov 21, 2011 6:35 am

Post Wed Feb 08, 2012 9:30 am

Re: Custom monster error

no that didnt work :( damn i knew it couldnt be something that simple :P
<<

ratbert

Posts: 29

Joined: Thu Nov 19, 2009 3:47 pm

Post Wed Feb 08, 2012 4:19 pm

Re: Custom monster error

Do you have the function Slasher_Melee declared after (aka lower in source code) where the animation frame code resides?

So if that is the case then your qc compiler needs to know where that function is defined ahead of time to associate it within your animations frames.
So either move the Slasher_Melee function itself or place a "void() Slasher_Melee;" just above where your animation frames code starts
so the compiler knows how to associate it correctly.
<<

thommoboy

Posts: 95

Joined: Mon Nov 21, 2011 6:35 am

Post Sun Feb 12, 2012 2:35 am

Re: Custom monster error

ratbert wrote:Do you have the function Slasher_Melee declared after (aka lower in source code) where the animation frame code resides?

So if that is the case then your qc compiler needs to know where that function is defined ahead of time to associate it within your animations frames.
So either move the Slasher_Melee function itself or place a "void() Slasher_Melee;" just above where your animation frames code starts
so the compiler knows how to associate it correctly.


omg so simple XD thanks

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.
Icons provided by Aha Soft