Welcome,
Guest
. Please
login
or
register
.
March 28, 2024, 08:59:28 AM
News:
tastyspleen.net has a new discord server:
http://discord.tastyspleen.net
Home
Forum
Help
TinyPortal
Search
Calendar
Login
Register
tastyspleen::quake 2 community
»
Forum
»
Quake Related Topics
»
Q2 Training Camp
(Moderators:
[BTF]DeathStalker
,
[BTF]Jehar
) »
How does Quake2 handle the client configuration files?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How does Quake2 handle the client configuration files? (Read 4424 times)
QwazyWabbit
Carpal Tunnel Member
Posts: 1357
Rated:
How does Quake2 handle the client configuration files?
«
on:
December 04, 2017, 03:47:47 PM »
How does Quake2 handle the client configuration files?
There are three files Quake II uses on startup of the client
and on shutdown, they are:
default.cfg, config.cfg, autoexec.cfg
Quake II creates it's own "virtual file system" on startup and
once it's initialized it tries to execute each of these from
within the "current directory". These files are loaded in the
order listed above so anything you write into them overrides
any equivalent setting in the previous file. This virtual
file system is a security feature of the game to prevent
malicious directory traversal attacks and it also includes
the pak files shipped with the game or included with any
mods. This allows mod authors to pak configuration files
into their mods and conveniently ship them with their mod's
custom files.
The Quake II file system is rooted in the Quake2 directory
where the Quake II executable is installed. The maximum path
that Quake II can handle is 64 characters, so you don't want
to use long directory names or long file names and you shouldn't
go very deep. This 64 character limit is hard coded into the game.
How to manage your configuration files.
The original default.cfg is used by the engine when selecting
the "reset defaults" menu item in the Options menu of the game
console. This file may or may not exist on your system as a
"normal" disk file but the default.cfg is defined in pak0.pak
of the original game from idSoftware. Never alter this file.
WARNING: altering idSoftware's pak0.pak should not be attempted.
You can make your game inoperable or incompatible.
NEVER EDIT config.cfg. Why? Because the game writes a new one
each and every time you quit the client. It's used to save the
last state of your binds. Likewise, never make it read-only.
This file is normally located in C:\quake2\baseq2\. You can
copy-paste anything from this file into your autoexec.cfg file
and it makes a handy starting point for your customizations.
One technique you can use is to launch the game, alter the settings
or add binds, then exit the client which forces your current
settings and binds to be written to config.cfg, then copy the
contents into autoexec.cfg and begin your hand edits. This file
is written to the current mod folder when you quit the game from
within a mod, this can be a multiplayer or single player mod.
The autoexec.cfg file is what you or the mod authors want it to
be. THIS is the file you should edit for your default binds and
for your mod-specific binds or parameter settings. There can be
a unique autoexec.cfg file in every mod folder and even in baseq2.
This file is ALWAYS loaded from the current folder for the client
binary you have launched. If you launched the game directly from a
shortcut or from the executable in c:\quake2\ for example, then the
autoexec.cfg will come from c:\quake2\ and not from any subdirectory.
If you launch your game from a game launcher with a target Quake2
server then the configuration files are loaded from the current
mod folder given by the gamedir cvar specified by the server.
Once you are in-game on a modded server the autoexec.cfg and
the config.cfg will be read from and written into the mod folder
for that particular mod.
Enhanced Quake II Clients
R1Q2 and Q2Pro clients also load "postinit.cfg" after loading
autoexec.cfg.
Q2E clients use q2econfig.cfg instead of config.cfg, preserving
the old quake2 configuration file for backward compatibility.
Logged
zhprz
Newbie
Posts: 6
Rated:
Re: How does Quake2 handle the client configuration files?
«
Reply #1 on:
August 18, 2021, 10:57:38 AM »
Quote from: QwazyWabbit on December 04, 2017, 03:47:47 PM
Likewise, never make it read-only.
Actually only this measure had helped me to keep consistency when used to set up and compare several clients. read-only cfg in each game folder )
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
tastyspleen::quake 2 community
»
Forum
»
Quake Related Topics
»
Q2 Training Camp
(Moderators:
[BTF]DeathStalker
,
[BTF]Jehar
) »
How does Quake2 handle the client configuration files?
El Box de Shoutamente
Last 10 Shouts:
-Unh0ly-
March 18, 2024, 03:51:45 AM
https://www.youtube.com/watch?v=NjGjxwHT6ok
played guitar drums bass and sang cuz everyone too lame to start a band with me
0rbisson
March 14, 2024, 04:29:08 AM
HT1 or whatever the stupid map name is instant server killer. the map is trash, Everyone leaves
Costigan_Q2
March 10, 2024, 04:00:02 PM
This is my fave TS post.
And quadz posted it - some ppl must haaate that.
-Unh0ly-
February 29, 2024, 08:35:47 AM
MONDAY NIGHT RAILWARZ GAMES 74.91.120.171:27910 -- BIG FUCKIN GAMES.... LETS GO!!!!!!!
|iR|Focalor
February 29, 2024, 01:19:58 AM
|iR|Focalor
February 27, 2024, 12:23:01 AM
0rbisson
February 26, 2024, 11:38:19 AM
player "shogun" known hacker back on ts servers.
http://forum.tastyspleen.net/quake/index.php?topic=21160.msg201752#msg201752
|iR|Focalor
February 17, 2024, 10:11:59 PM
Costigan_Q2
February 16, 2024, 07:45:01 AM
Almost 4 months ey? that's a new record.
Last accepted: profile;u=7126
Date Registered:17-10-2023
WaKy-FeLa
Last registered: profile;u=7150
Date Registered:09-02-2024
damsonpharmacy
0rbisson
February 14, 2024, 10:51:18 PM
pings back up to 400+ on dm
Show 50 latest
User
Welcome,
Guest
. Please
login
or
register
.
March 28, 2024, 08:59:28 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced search