Game metrics in Quake III

Locked
Bator
Posts: 2
Joined: Tue Feb 07, 2012 5:40 pm

Game metrics in Quake III

Post by Bator »

Hey guys,

I'm currently about to start my Bachelor Thesis in Human-Computer-Interaction. I want to collect game data from people playing and try to relate this data with psychological measurements.

Since I'm a Quake3 fan, the source code is free and I think the gameplay is still somewhat up to date I want to collect data from people playing Quake III Arena amongst others.

My question is: Is there any tool/script already, that fetches data or can someone who is familiar with the code help me out here?

Sadly my knowledge in C is very small but I think this shouldn't be too complicated since I just need an algorithm to fetch specific game data and save it into a .txt file, right?
Game data I would like to survey could be things like travel paths, points where players die, used weapons and so on...

I'm not sure about the presentation of the collected data yet, maybe I'll use XNA for that.

I would be very thankful for any help and of course you will be mentioned in the thesis! :sly:


Cheers from Germany
Ben
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Game metrics in Quake III

Post by ^misantropia^ »

> Sadly my knowledge in C is very small but I think this shouldn't be too complicated since I just need an algorithm to fetch specific game data and save it into a .txt file, right?

To a certain extent. It depends on what kind of data you want to collect.

Q3A is split into two parts, the engine and 'the game' (the SDK, what mods are made of). The latter is probably what you want to hack on because that's where most of the interesting stuff happens.

Re: writing files: trap_FS_FOpenFile() and trap_FS_Write() are your friends.
Bator
Posts: 2
Joined: Tue Feb 07, 2012 5:40 pm

Re: Game metrics in Quake III

Post by Bator »

thanks for the answer!
UglyFoot
Posts: 139
Joined: Fri Jul 22, 2011 12:35 pm

Re: Game metrics in Quake III

Post by UglyFoot »

A list of events is in bg_public.h, at line 327. If you want to jump to the part of code that handles that event just search for that event, you can ignore all cg_ results because thats the client game module. There's also the weapons and powerups values just above the events.
Locked