Commit Graph

376 Commits

Author SHA1 Message Date
Spoike d6d0105d3c A couple of changes.
Added a higher quality particle config.
Quick hack for crepuscular rays.
added new command, eg: pr_dumpplatform -FFTE -O csplat
used package reporting on servers, auto package downloading on clients, should be fully implemented.
Smoothed out players a little. Added option to menus.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3926 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-12-05 15:23:40 +00:00
Spoike a3257e524f divVerent was not happy!
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3925 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-11-27 16:17:02 +00:00
Spoike 6398930473 Fixes bugs found by xonotic team ('0 0 0' being overlapped with globals, initialisers not being marked as referenced, fixed macro argument expansion to not crash when given long values).
Enables compilation of 'float foo=5;float foo=5;' (similarly functions, fields are never initialised anyway, the dupe is ignored so long as the initialisation is the same).
Fixed an offset bug with arrays stored within typedefed structs.
Fixed int += int to not require an explicit addstore operand.
Added support for ! operator in #if statements, as well as fixing a couple of other issues there, should be much more usable.
Added 'optional' keyword when defining function arguments. All trailing arguments must have it too. This allows stricter type checking with functions that take optional arguments.
Removed warnings with __variant types.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3921 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-11-08 06:00:35 +00:00
Spoike 77ac72e78c bumped MAX_NAME limit. seems to not be part of any structures/dynamic allocations, so there's no super-massive memory hole added by this.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3917 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-10-29 23:16:51 +00:00
Spoike b356dc75aa linux/gcc/general fixups.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3911 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-10-27 16:42:53 +00:00
Spoike f33873ddb7 committing for fixes for OMC
some minor changes. Mostly bug fixes and internal reorganisation.
Added code to provide an activex control as part of the npfte.dll plugin. If the dll is registered the regsvr32 way, the plugin can be used with IE as well.
fisheye/panoramic view enable is now controlled by rulesets instead of serverinfo.
server will list all pak files it has loaded. client will probably do the wrong thing and still needs fixing properly.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3910 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-10-27 16:16:29 +00:00
Spoike 50a8624f59 no dupe _("") stuff.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3908 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-10-06 19:59:53 +00:00
Spoike f3bbed043b Some qcc changes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3905 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-10-03 02:45:44 +00:00
Spoike 6236971e48 Fix a couple of recent bugs in features that noone else uses.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3900 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-09-06 20:59:08 +00:00
Spoike e8c1f669cc Couple of changes.
D3D now supports hlsl shaders. Much functionality is still missing, but sky and water surfaces are in.
IQM models now supported.
Engine physics code is now potentially callable from csqc, but there are some issues which need to be resolved before its enabled.
FTEQCC has had some pointer/struct/array functionality improved. Complex trees can now be navigated properly.
added r_dumpshaders command to dump internal glsl scripts for editing.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3896 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-09-03 03:49:43 +00:00
Spoike 261b104c09 Added a cvar to enable recording mvd files containing 'unsafe' extensions, so CSQC ents can now be recorded. This defaults to off, and is expected to be enabled for mods that are truely FTE only.
Recording qwd files works again.
Not all extensions are fully implemented, when recording both mvds and qwds, particularly the initial connection info (including model list length).
Ezquake's invalid chunk requests generate no protocol response. Ezquake should no longer kick itself after every download.
Couple of other bugs fixed.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3893 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-08-16 04:12:15 +00:00
Spoike 729d6181c2 Misc bugfixes, including q3bsp-rtlights and bloom. Matrix use clarifications. Working towards skeletal glsl code.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3890 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-07-30 14:14:56 +00:00
Lance 8af2750173 Added MSVC9 (dotnet2008) & MSVC10 (dotnet2010) project files for QCLIB aka FTEQCC
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3879 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-07-16 11:25:56 +00:00
TimeServ 26e2638301 revert qcjit undefine..
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3870 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-07-13 05:49:32 +00:00
TimeServ a0e7300da2 add cl_yieldcpu, fix setmodel with NULL pointer
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3869 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-07-13 05:48:09 +00:00
TimeServ 987a86a4ac use mmap calls for executable memory allocation on non-win32
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3868 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-07-12 04:38:54 +00:00
Spoike f6856f7d2d Changed internal opcode names to always specify variable type.
The x86 jit appears to work properly after quick tests. Needs wider testing. Currently disabled still.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3857 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-07-08 18:59:48 +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 1c1723d237 merge wip branch back into trunk
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3835 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-06-25 18:33:11 +00:00
Lance fc421a05bc Added parentheses around some assignments (where they're meant to assign instead of compare in an if statement) which GCC was giving this warning "warning: suggest parentheses around assignment used as truth value"
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3803 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-05-30 13:36:44 +00:00
Lance 4b93855ff8 Handling of return values of filesystem functions (fread, write etc) by printing to console when the return value isn't equal to size of the data being read/written
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3801 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-05-30 04:32:04 +00:00
Lance afa29b36fb Wrapped #pragma comments()'s with MSVC specific macros so GCC can be read more easily. Also undeprecated edict_size in world.h.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3800 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-05-29 04:26:29 +00:00
Spoike d5ab16befc heightmap semi-functional again, but still useless.
A few bugs fixed.
Slightly better compatibility with DP.
Added breakpoint_csqc command to set breakpoints in csqc to better debug csprogs.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3793 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-05-20 04:10:46 +00:00
Lance f6741d8dde My attempt at handling GCC warnings, everything but incorrect pointer types, #pragma warnings, " is deprecated etc.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3787 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-05-15 13:23:13 +00:00
TimeServ 2091c2f83e accept trailing comma with enum and enumflags
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3786 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-05-03 22:37:56 +00:00
Spoike fcb7dbd04b Cleanups, wine fixes, generic stuff, added makefile directive for use of gccs -combine option.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3753 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-03-12 13:51:40 +00:00
TimeServ 56ef606d0e fix typos
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3746 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-03-04 15:35:16 +00:00
TimeServ 2fba86e3a0 progs version 3 support in qclib, attempt fix qtest traceline
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3745 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-03-04 13:59:06 +00:00
TimeServ 23bc19fc14 particle parse fix (count=255 should be explosion), fix qtest mdl loading, fix decompile, map MOVETYPE_ANGLENOCLIP to MOVETYPE_NOCLIP, map some qtest builtins/globals
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3740 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-02-27 15:01:56 +00:00
Spoike 946b5d6f52 lots of useless stuff.
will attempt to load doom3 maps.
_gl_fog 1 and friends can be used to activate fog, still needs tweeks for use, not a final feature at all.
added gl_screenangle which rotates the screen, including hud.
seems to be some nvidia driver issue. may need end-tasking after video shuts down (including from-fullscreen vid_restarts).
double-frees on glsl shaders is now supposedly fixed.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3735 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-02-25 04:22:14 +00:00
Spoike ab865b7e25 Playing with valgrind and hexen2.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3730 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-01-30 01:32:30 +00:00
Spoike dc2212aa84 Fixed a couple of warnings.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3728 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-01-29 21:01:40 +00:00
Spoike 4fb854e261 Fix a couple of things I noticed while playing in linux.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3727 fc73d0e0-1445-4013-8a0c-d673dee63da5
2011-01-29 19:53:38 +00:00
Spoike f0a1318c2b Misc attempts at fixes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3708 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-12-23 03:55:10 +00:00
Spoike f4ae7d680f divVerent's patch to enable subscoped locals, not sure if subscoped_away is required, but committing that anyway. Its copied from pastebin, so sorry for conflicts.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3706 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-12-22 01:05:33 +00:00
Spoike ec206be55a divVerent's patch to enable subscoped locals, not sure if subscoped_away is required, but committing that anyway. Its copied from pastebin, so sorry for conflicts.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3705 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-12-22 00:33:19 +00:00
Spoike 3a413ede89 divVerent's patch to fix += operations involving function calls.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3704 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-12-22 00:13:49 +00:00
Lance 47c3a6873b MinGW64 fixes, unbreaking FTEQCC too
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3703 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-12-19 03:51:37 +00:00
Spoike 4505f7321b various small bugfixes, mvd+voip should work again, qcjit changes, towards usability.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3700 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-12-18 17:02:47 +00:00
Lance 6a0549acc1 FTE_TARGET=win64 (thanks to MinGW64), 64bit MinGW64 static libs, and fix for undefined references to vsnprintf within qclib when using MinGW64
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3688 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-12-08 14:42:05 +00:00
Spoike f575777728 d3d renderer works a little better in q3.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3639 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-11-10 03:32:47 +00:00
Spoike fcba94f554 Merging D3D and GL renderers a little.
D3D should be functional now. Maybe not pretty, maybe not complete, maybe not correct, but at least playable, at least with classic particles.
Some download fixes.
Some q3vm 64bit fixes.
Removed some dead cvars.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3614 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-11-02 23:17:25 +00:00
Blub 2ef27d913d Patch by divVerent: factor out stupid -s option in the makefile so it can be disabled by command line option
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3613 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-10-31 14:31:19 +00:00
Spoike dfd02ad9e3 Fix hexen2 cd tracks.
Fix zalon's crash.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3605 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-09-05 10:42:23 +00:00
Spoike 22bb395305 hexen2 client effects now go via the particle system, if they're supported at all. Added 'h2part' description to provide this.
Fixed svc_setangles and sv_bigcoords.
Model code is now responsible for transforming traces instead of it being generic. This fixes rotating things getting stuck in players in hexen2.
The renderer now generates a list of surfaces to draw. Backend now performs rotations/scaling per entity. This fixes sorting order, at least when not using realtime lights.
Hidden items in the hexen2 inventory that you do not have.
Added colourmapping for hexen2.
Should be easier to click on menu items for hexen2.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3602 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-08-28 17:14:38 +00:00
Mark Olsen 1218dd866e qccHunkAlloc(): Round block sizes up to the next 8 to make sure all blocks returned are aligned at least to that size. Fixes problems with alignment exceptions occuring on MIPS/Irix and should also improve performance on those systems that silently emulate badly aligned data accesses.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3589 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-08-17 09:35:40 +00:00
Mark Olsen 223ac397af qccHunkAlloc(): Round block sizes up to the next 8 to make sure all blocks returned are aligned at least to that size. Fixes problems with alignment exceptions occuring on MIPS/Irix and should also improve performance on those systems that silently emulate badly aligned data accesses.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3588 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-08-17 09:22:36 +00:00
Spoike 18564b98f6 Wasn't prototyped, apparently.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3584 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-08-15 15:02:30 +00:00
Spoike ce07219448 Fixes, workarounds, and breakages. Hexen2 should work much better (-hexen2 says no mission pack, -portals says h2mp). Started working on splitting bigcoords per client, far too much work still to go on that. Removed gl_ztrick entirely. Enabled csprogs download by default. Added client support for fitzquake's 666 protocol, needs testing, some cleanup for dp protocols too, no server support, couldn't selectively enable it anyway. Now attempting to cache shadow meshes for explosions and stuff. Played with lightmaps a little, should potentially run a little faster on certain (intel?) cards. Tweeked npfte a little to try to avoid deadlocks and crashes. Fixed sky worldspawn parsing. Added h2mp's model format. Fixed baseline issue in q2 client, made servers generate q2 baselines. MOVETYPE_PUSH will not rotate extra if rotation is forced. Made status command show allowed client types. Changed lighting on weapons - should now be shaded.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3572 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-08-11 03:36:31 +00:00
Spoike a963445415 posix continues to confuse me.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3558 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-07-18 12:14:36 +00:00