Forum

Nukes!

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Postby redrum » Tue Dec 04, 2007 3:24 pm

Daemon, thanks for the in depth analysis!
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby Electro » Thu Dec 06, 2007 7:46 am

haha oops! my bad, it's been a long time since i've looked at the function :)
Benjamin Darling
http://www.bendarling.net/

Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
Electro
 
Posts: 312
Joined: Wed Dec 29, 2004 11:25 pm
Location: Brisbane, Australia

Postby redrum » Wed Dec 12, 2007 3:25 am

Orion, I got a server crash after implementing the new NewRadiusDamage(); function:

CALL6 433(NewRadiusDamage)()
weapons.qc : T_MissileTouch
<NO FUNCTION>
NULL function
SV_Error: Program error


error occurs when missile hits something :(
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby Orion » Thu Dec 13, 2007 1:19 am

Please show me the code... Don't call a bunch of them like you did before.
User avatar
Orion
 
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Postby redrum » Thu Dec 13, 2007 3:55 am

used your code from earlier in this thread
Welcome to the Overlook Hotel: The-Overlook-Hotel.game-server.cc
User avatar
redrum
 
Posts: 410
Joined: Wed Mar 28, 2007 11:35 pm
Location: Long Island, New York

Postby Sajt » Thu Dec 13, 2007 3:34 pm

The error report tells you that you tried to call a function, NewRadiusDamage, which does not exist. (Check if your compiler gave you a warning about this as well... some compilers like FTEQCC warn when they should error).

You really should be able to figure this one out on your own.
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.
Sajt
 
Posts: 1215
Joined: Sat Oct 16, 2004 3:39 am

Postby Orion » Thu Dec 13, 2007 5:42 pm

Redrum, it's probably because you didn't declare the code correctly.

Where did you declare it? weapons.qc? defs.qc?

It should be declared this way:

Code: Select all
void(entity inflictor, entity attacker, float damage, float radius, entity ignore, string dtype) NewRadiusDamage;
User avatar
Orion
 
Posts: 476
Joined: Fri Jan 12, 2007 6:32 pm
Location: Brazil

Previous

Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest