Help Needed With Reloading Code

Discuss programming in the QuakeC language.
Post Reply
thommoboy
Posts: 95
Joined: Mon Nov 21, 2011 6:35 am

Help Needed With Reloading Code

Post by thommoboy »

when i try to compile reloading code i found in the tutorials section of this site i get this:

,
weapons.qc:931: error: Unknown value "w_pistol".


any help

or proper tutorials for vanilla quake?
Spirit
Posts: 1066
Joined: Sat Nov 20, 2004 9:00 pm
Contact:

Re: Help Needed With Reloading Code

Post by Spirit »

Ask a more verbose and distinct question, link to the tutorial in question. Mention what compiler you used. Double check you did not do ANY other changes to the code. Make sure you use the same base code as the tutorial.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
Seven
Posts: 301
Joined: Sat Oct 06, 2007 8:49 pm
Location: Germany

Re: Help Needed With Reloading Code

Post by Seven »

Hello thommoboy,

Spirit is right. You should be more specific.

Anyway, I want to try to help, so I assume you are talking about Arkage´s tutorial:
http://www.inside3d.com/showtutorial.php?id=249

Be careful with this tutorial, there are some issues in it.
First of all, there are many passages, where he has a typo in the "code": ['code'] blah ['/code']
So be sure to not forget these lines.

Secondly, the issue you described, because there is a mistake in his code.
He wrote, that you should call this function: W_Pistol ();
But it doesnt exist !
So please exchange this call with this one: W_FireShotgun ();

Then it should work (if there are no other issues in his tutorial)...

Best wishes,
Seven
thommoboy
Posts: 95
Joined: Mon Nov 21, 2011 6:35 am

Re: Help Needed With Reloading Code

Post by thommoboy »

hey seven can you write a complete nOOb guide for me to add reloading code it would be much appreciated
DusterdooSmock
Posts: 170
Joined: Thu Aug 19, 2010 9:58 pm

Re: Help Needed With Reloading Code

Post by DusterdooSmock »

thommoboy wrote:hey seven can you write a complete nOOb guide for me to add reloading code it would be much appreciated
You're gonna have to start from the beginning.. You can't just jump in and copy and paste stuff from a tutorial or other people's work..
You need to get yourself a copy of ID's stock QC base and just mess around with it for a while, change little things here and there and see what the outcomes are.
Try experimenting by changing values here and there, and testing out Quake's different built-in functions.
Post Reply