Inside3D!
     

where to find FRIK_FILE

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming
View previous topic :: View next topic  
Author Message
MonkRocker



Joined: 07 Aug 2010
Posts: 6

PostPosted: Tue Aug 10, 2010 3:48 pm    Post subject: where to find FRIK_FILE Reply with quote

I keep hearing about FRIK_FILE. Where can one obtain a copy of it?
Back to top
View user's profile Send private message
frag.machine



Joined: 25 Nov 2006
Posts: 728

PostPosted: Tue Aug 10, 2010 4:04 pm    Post subject: Reply with quote

FRIK_FILE is one of many QuakeC extensions that a number of engines (FTEQW, Darkplaces, etc.) supports.
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/
Back to top
View user's profile Send private message Visit poster's website
MonkRocker



Joined: 07 Aug 2010
Posts: 6

PostPosted: Tue Aug 10, 2010 4:24 pm    Post subject: Reply with quote

frag.machine wrote:
FRIK_FILE is one of many QuakeC extensions that a number of engines (FTEQW, Darkplaces, etc.) supports.


Right but is there a src file or a function list somewhere?
Back to top
View user's profile Send private message
frag.machine



Joined: 25 Nov 2006
Posts: 728

PostPosted: Tue Aug 10, 2010 4:31 pm    Post subject: Reply with quote

MonkRocker wrote:
frag.machine wrote:
FRIK_FILE is one of many QuakeC extensions that a number of engines (FTEQW, Darkplaces, etc.) supports.


Right but is there a src file or a function list somewhere?


You may start here:

http://dpwiki.slipgateconstruct.com/index.php?title=QuakeC_Extensions
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/
Back to top
View user's profile Send private message Visit poster's website
MonkRocker



Joined: 07 Aug 2010
Posts: 6

PostPosted: Tue Aug 10, 2010 6:00 pm    Post subject: Reply with quote

frag.machine wrote:
MonkRocker wrote:
frag.machine wrote:
FRIK_FILE is one of many QuakeC extensions that a number of engines (FTEQW, Darkplaces, etc.) supports.


Right but is there a src file or a function list somewhere?


You may start here:

http://dpwiki.slipgateconstruct.com/index.php?title=QuakeC_Extensions


Awesome. Thanks. And one more thing, I keep seeing functions declared like this:
Code:

float(string s) stof = #81;


What does the #81 part mean?
Back to top
View user's profile Send private message
Arkage



Joined: 19 Nov 2009
Posts: 27

PostPosted: Tue Aug 10, 2010 6:12 pm    Post subject: Reply with quote

Thats a built in, when that function is called it calls a function in the engines c code.
The number referees to the built-ins number in the engine.
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Tue Aug 10, 2010 6:17 pm    Post subject: Reply with quote

it means builtin number 81.

or in other words, this function is provided by the engine, I'm going to call it stof in my code, but the engine knows it only by the name '81'.

The engine provides functionality almost purely based upon numbers. It can check the number of arguments passed to it (see centerprint) but that's usually only for string concatination, and only for a handful of them.
Put another way, you can change #81 to #424212 if you want, but it'll crash when you run it - its a magic number, all that matters is that it matches the behaviour.
(you are free to change the name of your builtin definition without any issues. you can do this to wrap it easily. but if you change the # you will crash and burn, unless you comply with the required behaviour of the new number, they're magic, okay?).
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> QuakeC Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group