zturtleman / spearmint

Spearmint — an updated id Tech 3 engine for continuing the classics and creating new games.
https://clover.moe/spearmint
GNU General Public License v3.0
239 stars 27 forks source link

Add more settings to gameconfig.txt #103

Closed zturtleman closed 11 years ago

zturtleman commented 11 years ago

Let gameconfig.txt set renderer cvar defaults? r_flares, r_overBrightBits and r_mapOverBrightBits are known to differ between games.

Also see #72 (client loading screen settings).


Console settings, but lets move console to cgame VM instead #110.


I reviewed the q3map2 per-game settings. emitFlares should default to enabled as Spearmint supports flares. wolfLight changes how light entities render in q3map2, so should be set per-game (though maybe not in gameconfig.txt, may have separate editor/map-compiler config file?).

zturtleman commented 11 years ago

WIP idea:

defaultSound [file name] defaultFlare [shader]

consoleFont [shader] consoleBackground [shader] [alpha] consoleLogo [shader] [x] [y] [width] [height] [alpha]

Eh, it seem like console drawing should move to cgame VM instead... see #110.

Q3
consoleBackground "console"
consoleFont "gfx/2d/bigchars"
consoleLogo "" 0 0 0 0 0 // Q3 didn't have a logo in console
flareShader "flareShader"
defaultSound "sound/feedback/hit.wav"

RTCW-SP
consoleBackground "console" <r> <g> <b> <a>
consoleFont "gfx/2d/bigchars"
consoleLogo "console2" 192 70 256 128 1.0
flareShader "flareShader"
defaultSound "sound/feedback/hit.wav" // FIXME

RTCW-MP
consoleBackground "console-16bit" <r> <g> <b> <a>
consoleFont "gfx/2d/hudchars"
consoleLogo "console2-16bit" 192 70 256 128 1.0
flareShader "flareShader"
defaultSound "sound/feedback/hit.wav" // FIXME

ET
consoleBackground "console-16bit" <r> <g> <b> <a>
consoleFont "gfx/2d/consolechars"
consoleLogo "console2-16bit" 192 70 256 128 1.0
flareShader "flareShader"
defaultSound "sound/feedback/hit.wav" // FIXME

Doom 3
defaultSound "_default.ogg"
zturtleman commented 11 years ago

If I am adding patch data for games, it might be just as well to include a shader file with flareshader... no reason new games need to rename it afaik.

zturtleman commented 11 years ago

Added support for reading defaultSound from gameconfig.txt in 5cbbe636341fd5e310c6ef13376ac9311987111d.

zturtleman commented 11 years ago

Added loading screen support to gameconfig.txt in 3c7aec6940cb24f32eaa4bd6305f5b4d73805f25.

Split remaining things into #131 and #132. Closing issue.