Commit Graph

209 Commits

Author SHA1 Message Date
Spoike ab1d780e33 various linux tweaks that make it run a little better in debian. Added the handy stack dump code for debug client builds too.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4357 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-05-13 13:43:18 +00:00
Spoike 4182d5d160 revert that breakage
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4356 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-05-11 14:10:06 +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 11c7f5965a For debug versions of plugins.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4334 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-05-04 10:37:51 +00:00
Spoike f7737ea294 Finally remove dependancy on X11 library, as no symbols are used from it anyway.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4331 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-05-04 04:48:14 +00:00
Spoike ffc2a08589 pass network addresses around as a pointer rather than as a struct. They've grown quite a bit from vanilla code and can now be quite large. this should give more efficient network filtering+matching.
Added version+time+date to segfault lots.
try to use vbo+vao as needed.
added a manifest file in order to disable uac emulation and its virtual store lies.
particles now support a sort of namespace. eg: an effect called "cfg.effect" will load up the 'cfg' particle config and use its 'effect' effect (but not replace any explicit effects). You can still create particle effects called 'cfg.effect' with no issue.
Added support for fsarchive plugins.
Added a sys_register_file_associations command. .bsp not yet handled, but demo playback should work fine.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4324 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-05-03 04:28:08 +00:00
TimeServ 292f61c6e0 add command line options via query string for web build, add web memory option and boost default to 384MB, use gcc4.7 for android build, fix pnacl, clean makefile slightly
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4310 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-04-09 21:31:44 +00:00
TimeServ 59ce059804 oops
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4292 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-04-06 08:37:45 +00:00
TimeServ 697657b628 some makefile cleanup, add option for prejs location
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4291 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-04-06 08:30:43 +00:00
TimeServ ecc445e88f fix nacl build, change output of web-sv for automated build
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4285 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-04-04 09:59:14 +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
TimeServ 5c53a94b43 fix automated android builds
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4280 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-04-03 09:52:09 +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 64bc9464fe ------------------------------------------------------------------------
r4250 | acceptthis | 2013-03-08 03:32:56 +0000 (Fri, 08 Mar 2013) | 1 line

make sure -ldl is used.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4246 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 23:20:07 +00:00
Spoike 7b700555a9 ------------------------------------------------------------------------
r4249 | acceptthis | 2013-03-08 03:31:52 +0000 (Fri, 08 Mar 2013) | 1 line

make sure -lpthread is used.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4245 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 23:19:45 +00:00
Spoike edffd6c787 ------------------------------------------------------------------------
r4248 | acceptthis | 2013-03-08 03:29:24 +0000 (Fri, 08 Mar 2013) | 1 line

clumsy but hopefully more robust.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4244 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 23:19:24 +00:00
Spoike 2e009e1d26 ------------------------------------------------------------------------
r4227 | acceptthis | 2013-02-26 16:29:38 +0000 (Tue, 26 Feb 2013) | 2 lines

numerous small fixes and tweaks for the nacl+npfte ports.
support for q3bsp tangent-space deluxemaps.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4223 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 23:09:25 +00:00
Spoike 5cb6c9f190 ------------------------------------------------------------------------
r4225 | acceptthis | 2013-02-22 10:59:41 +0000 (Fri, 22 Feb 2013) | 1 line

Make npfte link dynamically to X11+Xt so we can print something meaningful and avoid random crashes if those libraries are missing.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4222 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 23:06:15 +00:00
Spoike 4dd127dc14 ------------------------------------------------------------------------
r4224 | acceptthis | 2013-02-22 01:28:16 +0000 (Fri, 22 Feb 2013) | 1 line

More explicit dependancies.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4221 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 23:05:47 +00:00
Spoike 584dba6ae6 ------------------------------------------------------------------------
r4223 | acceptthis | 2013-02-21 14:43:49 +0000 (Thu, 21 Feb 2013) | 1 line

use multithreading in linux too, because we can. Fix extra-quotes issue.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4220 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 23:05:17 +00:00
Spoike 4ddcdbb5f6 ------------------------------------------------------------------------
r4221 | acceptthis | 2013-02-21 10:29:11 +0000 (Thu, 21 Feb 2013) | 1 line

npfte now links against lib png/jpeg fully dynamically on linux, and thus optionally, reducing dependancies.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4218 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 23:04:31 +00:00
Spoike 6567fe92dd ------------------------------------------------------------------------
r4219 | acceptthis | 2013-02-21 04:54:35 +0000 (Thu, 21 Feb 2013) | 1 line

npapi support on linux too.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4216 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 23:03:46 +00:00
Spoike b8e29f5a47 ------------------------------------------------------------------------
r4198 | acceptthis | 2013-02-13 19:35:33 +0000 (Wed, 13 Feb 2013) | 1 line

Use xinput2, if available, for "raw" mouse input without mouse acceleration or middle-button emulation or anything.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4196 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 22:54:12 +00:00
Spoike 6299d07c0a ------------------------------------------------------------------------
r4192 | acceptthis | 2013-02-10 17:21:31 +0000 (Sun, 10 Feb 2013) | 1 line

-DUSE_EGL no longer excludes the use of glx
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4190 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 22:49:04 +00:00
Spoike 0ecf71adaf ------------------------------------------------------------------------
r4189 | acceptthis | 2013-02-05 12:54:29 +0000 (Tue, 05 Feb 2013) | 1 line

clipboard, icon, fullscreen support for glx. Numerous fixes for compile-time warnings.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4187 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 22:47:42 +00:00
Spoike 602e8cfb45 ------------------------------------------------------------------------
r4180 | acceptthis | 2013-01-27 13:24:22 +0000 (Sun, 27 Jan 2013) | 1 line

fix menu tint.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4178 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 22:37:59 +00:00
Spoike a339c727d0 ------------------------------------------------------------------------
r4175 | acceptthis | 2013-01-26 18:23:37 +0000 (Sat, 26 Jan 2013) | 8 lines

improved replacementdeltas+nq a little, still needs work.
embrace the menuqc! pr_dumpplatform now includes MENU defs+builtins.
swapped search ordering of paks+dirs, so progs.dat will be used instead of pak0.pak/progs.dat.
fteqcc slightly more sensible with if statements and void+vector types.
fteqcc shows the first line where models are precached/used instead of showing no line at all.
fix missing explosions when running qw gamecode.
accept channels between 8 and 255. 
support for sending fitzquake's increased stat limits.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4173 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 22:35:33 +00:00
Spoike 8d5b217266 ------------------------------------------------------------------------
r4169 | acceptthis | 2013-01-17 08:55:12 +0000 (Thu, 17 Jan 2013) | 31 lines

removed MAX_VISEDICTS limit.
PEXT2_REPLACEMENTDELTAS tweaked, now has 4 million entity limit. still not enabled by default.
TE_BEAM now maps to a separate TEQW_BEAM to avoid conflicts with QW.
added android multitouch emulation for windows/rawinput (in_simulatemultitouch).
split topcolor/bottomcolor from scoreboard, for dp's colormap|1024 feature.
now using utf-8 for windows consoles.
qcc warnings/errors now give clickable console links for quick+easy editing.
disabled menutint when the currently active item changes contrast or gamma (for OneManClan).
Added support for drawfont/drawfontscale.
tweaked the qcvm a little to reduce the number of pointers.
.doll file loading. still experimental and will likely crash. requires csqc active, even if its a dummy progs. this will be fixed in time. Still other things that need cleaning up.
windows: gl_font "?" shows the standard windows font-selection dialog, and can be used to select windows fonts. not all work. and you probably don't want to use windings.
fixed splitscreen support when playing mvds. added mini-scoreboards to splitscreen. 
editor/debugger now shows asm if there's no linenumber info. also, pressing f1 for help shows the shortcuts.
Added support for .framegroups files for psk(psa) and iqm formats.
True support for ezquake's colour codes. Mutually exclusive with background colours.
path command output slightly more readable.
added support for digest_hex (MD4, SHA1, CRC16).
skingroups now colourmap correctly.
Fix terrain colour hints, and litdata from the wrong bsp.
fix ftp dual-homed issue. support epsv command, and enable ipv6 (eprt still not supported).
remove d3d11 compilation from the makefile. the required headers are not provided by mingw, and are not available to the build bot, so don't bother.
fix v *= v.x and similar opcodes.
fteqcc: fixed support for áéíóú type chars in names. utf-8 files now properly supported (even with the utf-8 bom/identifier). utf-16 also supported.
fteqcc: fixed '#if 1 == 3 && 4' parsing.
fteqcc: -Werror acts on the warning, rather than as a separate error. Line numbers are thus more readable.
fteqcc: copyright message now includes compile date instead.
fteqccgui: the treeview control is now coloured depending on whether there were warnings/errors in the last compile.
fteqccgui: the output window is now focused and scrolls down as compilation progresses.
pr_dumpplatform command dumps out some pragmas to convert more serious warnings to errors. This is to avoid the infamous 'fteqcc sucks cos my code sucks' issue.
rewrote prespawn/modelist/soundlist code. server tracks progress now.
------------------------------------------------------------------------


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4167 fc73d0e0-1445-4013-8a0c-d673dee63da5
2013-03-12 22:29:40 +00:00
Spoike 95266f8215 d3d11 fixes. mipmapping implemented, vertex streaming more performant. Still behind the d3d9 renderer.
Fixed d3d11 vs d3d9 conflicts when switching renderers.
Fixed hlsl-less d3d9 lava.
Added gl_specular_fallback to override the default gloss level.
Added these cvars to give more control over imported/dlight lighting r_shadow_realtime_dlight_ambient r_shadow_realtime_dlight_diffuse r_shadow_realtime_dlight_specular r_editlights_import_radius r_editlights_import_ambient r_editlights_import_diffuse r_editlights_import_specular. Effective value of r_editlights_import_specular is now 1. Was 4.
Fixed spot/cube/smap lights.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4160 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-12-04 19:37:57 +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
Lance 9552e7fb64 Tweaking Speex still
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4150 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-10-25 07:02:09 +00:00
Lance cc0f60c2f7 Let's hope I got it right this time
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4149 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-10-25 06:10:20 +00:00
Lance 978af08cbf Fix my mistake in last commit
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4148 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-10-25 06:05:20 +00:00
Lance 5747d75042 Added Speex development files, updated headers as well.
Makefile changed to statically compile Speex into FTEQW where possible.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4146 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-10-25 04:52:55 +00:00
Lance 8d4a0a671c Disable Ogg for Mac too
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4145 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-10-24 14:05:19 +00:00
Lance c8d3f617e0 MorphOS doesn't need Ogg
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4144 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-10-24 12:57:12 +00:00
Lance 089f40b8e6 Prefer the stable MinGW 64bit compiler over the experimental one.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4143 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-10-24 12:49:23 +00:00
Lance 70c0818c4c Enabled Ogg in Linux builds
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4141 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-10-24 04:16:38 +00:00
Lance c16517fbcb OggVorbis support now turned on (AVAIL_OGGVORBIS)
Ogg/Vorbis: Will now look for 'libvorbisfile-3.dll' as well as 'vorbisfile.dll' in Windows.
MinGW builds now have OggVorbis statically linked. (LIBVORBISFILE_STATIC)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4138 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-10-24 02:59:31 +00:00
Lance 78b59d54c3 Allow win32 fte to be large address aware (access beyond 2GB address space).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4135 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-10-22 14:26:47 +00:00
Spoike e9de58cf6a couple of compile fixes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4130 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-10-14 11:20:14 +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 c6c3d3f4e0 Trimmed some dead files.
Quick hack preliminary d3d11 renderer. I'm not likely to touch this again for quite some time.
Sys_Error works properly on android, with an error message shown. Should be less of a stab in the dark if you get errors. Seg faults are still instantly fatal. Not much I can reliably do about those - most of the juicy ones will likely occur within the gl drivers (even if its my fault) and java will still call in to it.
Stereoscopic (quad-buffered) rendering is in the gl renderer. You'll likely need a quatro to use it despite it being a gl 1.0 feature. No idea about ati. See r_stereo_method for non-quad-buffered alternatives.
Tweaked networking to not overflow so much. Needs testing against other qw clients.
Fixed an issue with surface numbers > 32k on limit-breaking maps.
Fixed a preparse issue resulting in QW clients dying with the ne_ruins map's progs.
Support for the DP-variant of BSP2. The depricated RMQ variant is still supported.
QTV proxy now uses ipv6 hybrid sockets where possible. Preliminary pext support.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4105 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-09-30 05:52:03 +00:00
Spoike d44b546b10 misc compile fixes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4103 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-08-04 12:27:24 +00:00
Spoike 65fb47c9f6 Android isn't really failing. Lets fix up the makefile.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4089 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-07-21 07:36:26 +00:00
Spoike 8ae45223dc Android: fat presses, vibrator, onscreen keyboard, keep-screen-on, console scaling, touch-based console scrolling, additional bindables.
Some memory leaks fixed.
latency with the nq protocol over loopback is much reduced.
Terrain: now mostly a property of a (q1 for now) bsp map, file format changed, glsl now built in, terrain editor builtin improved/changed, holes supported.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4067 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-07-14 16:25:18 +00:00
Lance 46d38af14e Fix for Android under buildbot
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4048 fc73d0e0-1445-4013-8a0c-d673dee63da5
2012-05-11 04:44:18 +00:00