Commit Graph

47 Commits

Author SHA1 Message Date
Spoike 4a1416a5d2 removed hunk memory (as well as -mem argument).
removed cache memory.
added fallback normalmap texture.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4421 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-07-14 12:22:51 +00:00
Spoike 4c3c8a2e64 couple of compile fixes for the webgl port
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4401 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-06-23 20:11:58 +00:00
Spoike 9dbf5b5837 changed to not load gamecode from quake paths, to avoid issues with buggy quakeworld clients that will freely download stuff from anywhere (not sure what to do about ktx, but it can be reenabled with a cvar).
image_width is now only set by a single function.
tweaked scancode inputs slightly. added support for printscreen binds.
changed the way gamma works. glsl gamma now used when running windows, or hardware gamma is not available. removed gl_contrast+gl_brightness.
q2 gamecode support no longer has a system componant. this means that ports only need the generic stuff.
misc tweaks to the d3d11 renderer.
added brief descriptions to many builtins. need to add comments to constants, globals, and fields too, somehow.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4355 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-05-11 14:02:55 +00:00
Spoike 873f0a8134 Fix various warnings.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4353 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-05-11 05:03:07 +00:00
Spoike 577419de37 improve handling of writing to world entity.
split left and right alt. binds+gamecode still use left-alt exclusively. alt-for-red-chars only works with left alt. right alt is alt-gr, so text input now works fine.
fixed support for keypad and text entry.
sdl2 clipboard support, if we're compiled with sdl2.
fixed issues with sdl sound. shouldn't be so terrible now.
soundinfo command now more verbose.
support for interpolated ramps.
removed input line length limitations, although some limitations still remain.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4315 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-04-13 08:15:18 +00:00
Spoike 2632c351fd some kind of standard header for mkdir or something. mneh.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4304 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-04-08 09:45:26 +00:00
Spoike 5b2bd7fe87 hopefully sdl target should work a little better on mac.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4303 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-04-08 09:31:59 +00:00
Spoike 49197218bc Slow progress. Most of what I am fighting is emscripten's javascript-based libc. Its networking is laughable at best, trust me you don't want to see it. Whereas its GL emulation seems to break things rather than anything else so for now I'm just disabling everything that isn't vbo+es2 and I still get warnings about emulation being enabled. No idea how to get rid of those. Still, bsp objects should now render correctly, but not models+particles+2d+text stuff.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4283 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-04-04 08:08:49 +00:00
Spoike 1e9af3f441 Early hack at emscripten compat.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4278 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-04-02 05:18:17 +00:00
Spoike 6a831e2f99 qwsvdef.h is no more. Many files changed because of this.
enabled ssl support in windows for plugins.
updated jabber plugin.
tweaked downloading logic in an effort to end the madness.
Updated sql code to support sleeping the qc thread until query completion, as a more readable alternative to callbacks.
Client updates should be more explicit now, removing a potential bug.
networked terrain editing should now be in a better state.
updated the dir command to show paths too (so when the same file is listed twice, the pak its in will at least be different). Many files changed because of this.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4273 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-31 04:21:08 +00:00
Spoike d248ce223f added support for persistent particle effects in hexen2.
tweaked shutdown of sql to not make sql unusable after 'disconnect' on a listen server, fixed a couple of mem leaks.
audio no longer starts up twice in windows.
removed specular permutation. its either globally active or globally inactive.
Use oblique near-plane clipping instead of a clipplane, fixing our rtlighting+water warping.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4156 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-11-29 13:37:48 +00:00
Spoike 53a7b3d47c added support for external capture plugins - and using avcodec as a plugin.c.
The ragdoll API is potentially usable now, but still really limited.
Enabled SQL requests by default using sqlite. Note that you'll need the sqlite dll to use this. MySQL should still be usable, but I didn't try. MySQL requires -DUSE_MYSQL to compile it, and a dll and -mysql argument to enable it.
Fixed nacl.
NPFTE plugin now invokes an exe to run the game rather than running the game within the browser.
externvalue builtin now accepts & prefix to return a pointer instead.
Fixed vector autocvars.
uri_get, bufstr_add, bufstr_free, now functional.
QC debugger can now show asm if line numbers are not available.
Added support for QC watchpoints. Use the watchpoint command.
gl_specular now give specular even without rtlights, thankfully not as blatently, but its there.
android will not crash due to supported audio formats, and gles2 can be selected via a cvar (requires full FTEDroidActivity/program restart).

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4152 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-11-27 03:23:19 +00:00
Spoike cac1e0fb57 Unified input subsystems. Should now all act the same.
_windowed_mouse 0 on windows is basically identical to mono-touch on android, at least the touchless emulator. :)
This needs testing on other platforms. Committing so I can easily get my source onto loonix.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4126 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-10-14 09:00:49 +00:00
Spoike 25ef3f02db Couple of bugs fixed - other-player prediction, net_preparse crashes, q2 gamecode no longer crashes.
Throttle getstatus requests (so we don't end up being used for udp escilation (d)dos attacks so usefully/expensively).
Added cl_predict_players_frac. vanilla QW effectively had a hardcoded value of 0.5.
Added simple fps preset menu, which keeps on appearing until they actually pick one. mwahaha.
Quit menu offers to save settings if some CVAR_ARCHIVE cvar was changed.
alias models do vertex blending on the gpu.
GL renderer now uses vao when available.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4031 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-04-24 07:59:11 +00:00
Spoike e5845b86a8 stub Sys_RandomBytes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3912 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-10-28 15:15:35 +00:00
TimeServ 8c17e200bb fix sdl non-multithreaded
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3848 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-07-06 06:02:12 +00:00
TimeServ 7f1db63765 remove defunct splash screen code, add cl_idlefps to reduce cpu usage in "idle" situations
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3845 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-07-06 01:01:13 +00:00
TimeServ 4a59ea5993 make threaded physics/input/whatever use generic mutex calls, fix up multithread calls and add sleep func
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3844 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-07-03 16:24:53 +00:00
Spoike d039841d21 Does this fix anything?
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3812 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-06-05 23:53:33 +00:00
TimeServ 8464020053 remove gl_lightmap_shift, fix shader to match gl_overbright, es2/egl fixes
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3804 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-05-30 21:48:32 +00:00
Spoike 93aba48cdc TA couple of fixes.
Meshes now have the right lighting if they were cached before rendering.
npFTE startup/shutdown/restartup is more robust and is less likely to crash browsers.
Re-added the r_shadows cvar. It now provides blob shadows.
Hopefully fixes mingw voip crash, may need mingw upgrade, sorry in advance moodles.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3784 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-04-30 17:21:10 +00:00
Spoike 609dbda629 err, forgot to save those.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3683 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-12-05 02:52:41 +00:00
Spoike 6d8e3b01a9 Can jump through hexen2 windows now, changing h2 classes no longer kills the server. Provided Sys_EnumerateFiles for win32+unix targets, other targets will now spam warnings, as its kinda needed for fs_cache (which is default).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3578 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-08-11 23:55:35 +00:00
Spoike b3543a3b19 Less compile errors please.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3559 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-07-18 12:52:24 +00:00
Spoike e6f90bea14 Tweeks to the d3d renderer. Supports various shader features now. Other changes/fixes/breakages also.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3531 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-05-01 22:47:47 +00:00
Mark Olsen 9c69d3fa3a Mmm, const...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3460 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-11-15 10:22:26 +00:00
TimeServ aac9ba3f4f oh hey look i can code without looking at the specs oh wait
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3162 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-04-07 03:41:24 +00:00
TimeServ e79171082f sdl wait code possible fix
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3161 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-04-07 03:38:08 +00:00
Lance f2688e7866 My attempt to get SDL binaries under Linux to compile
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3159 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-04-06 14:19:29 +00:00
Spoike 498173e878 It has come to light that I suck. This incorporates the fixes already made to sys_linux since my huge commit. Again, these have not been tested. But they are more likely to work properly... As in the syntax errors are fixed.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3056 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-12 04:19:22 +00:00
Spoike dce284811e Minor update...
Q3 clients can connect to q1 gamecode (sv_listen_q3).
hacked support for SendFlags. It'll work compatibly, just not efficiently.
Unified shared qc builtins.
fteqcc supports int |= float, more params in macros, &~= operator.
Additional recent DP QC extensions.
Particle system abstraction. 'r_particlesystem classic' (vs null or script) will revert to truly classic particles.
Nexuiz might run again.
Network address revamp (sv_port and sv_port_ipv6 can both be used to specify an ipv4 address:port and both corrently accept clients). localhost now properly favours ipv4 (use ::1 for ipv6 localhost).
Download system revamp.
Numerous other changes.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3051 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-11-09 22:29:28 +00:00
TimeServ a631205fe7 added conditional variables for win/linux/sdl, switched sql thread worker to conditional to avoid busy looping, corrected a spikeism
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2991 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-06-01 05:42:23 +00:00
TimeServ 16caf0e1da added another thread call and fixed up some thread creation logic
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2834 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-30 20:05:49 +00:00
TimeServ a6617581c8 thread creation/mutex stubs, code is probably wrong but everything is surronded by #define MULTITHREAD so shouldn't break anything
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2831 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-12-30 00:09:34 +00:00
Spoike 6398316b1f SVN compiles here too
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2545 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-07-23 12:05:41 +00:00
Spoike dcec305bd9 Fixed Ogg support a bit. Enhanced DarkPlaces/Nuxuiz compatability. Fixed a couple other minor bugs.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2519 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-06-20 00:02:54 +00:00
TimeServ ceafd30644 vid_width/vid_height/vid_bpp 0 will use default desktop settings, added vid_desktopsettings which uses default width/height/bpp/refresh rate, command line -current maps to vid_desktopsettings 1
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2208 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-04-15 03:31:23 +00:00
TimeServ 6330ce6046 warning fixes, change favorites color to cyan
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2139 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-04-02 03:47:06 +00:00
Spoike 1730d4dc81 This is fun.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1924 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-02-01 22:36:12 +00:00
TimeServ 87d4c83abe logging now shuts off after a bad write
colormapping made more generic (more with that later)
small stat fix


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1663 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-12-05 16:47:29 +00:00
Mark Olsen 9792a49cbf Don't declare the isDedicated variable if it is #defined
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1625 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-11-29 23:14:45 +00:00
Spoike e3db3df028 Fixed SDL targets
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1551 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-10-31 19:53:37 +00:00
Mark Olsen 5e3d74c8f9 Removed unused cachedir variable.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1193 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-08-03 21:48:18 +00:00
Spoike f1e145867e Be more generous with default memory sizes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@970 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-04-20 23:45:24 +00:00
Spoike b192d3a175 SDL works a bit better now
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@768 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-01-12 08:38:31 +00:00
Spoike 95875ecb10 Apparently I went for non-standard paths.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@617 fc73d0e0-1445-4013-8a0c-d673dee63da5
2004-12-10 21:31:53 +00:00
Spoike d498f99342 System logic for use with the more portable SDL library.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@600 fc73d0e0-1445-4013-8a0c-d673dee63da5
2004-12-09 23:38:11 +00:00