Commit Graph

113 Commits

Author SHA1 Message Date
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
Spoike d0d380a19a Attempting to reduce the absurdity of ent.field[idx]=foo in fteqcc.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3524 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-03-26 03:29:44 +00:00
Spoike 589ef03c05 FTE, now with added C support - no longer treating enums as regular ints.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3509 fc73d0e0-1445-4013-8a0c-d673dee63da5
2010-02-06 01:25:04 +00:00
Spoike 79a45e1a19 __NULL__ no longer triggers deprecation warnings.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3423 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-11-07 04:34:32 +00:00
Spoike 66b78c0b11 Work In Progress branch.
In this version: replacement GL backend. Replacement D3D backend sharing code with GL. Lots of code reorganisation.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3401 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-11-04 21:16:50 +00:00
Blub fbf5e5b627 OP_MULSTORE_V is actually vec*float, so translate it to OP_MUL_VF instead of OP_MUL_V - this allows the direct use of vec *= float
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3375 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-09-18 18:39:11 +00:00
Blub e197253558 -Ocj must take OP_GOTO into account
this removes the unreachable-code warning when using 'break' at the end of an
if block within a loop


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3366 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-09-02 13:22:32 +00:00
Spoike 59d474b547 don't use -fiffloat by default due to the performance hit. but always force it to be active if we have an actual OP_IF_F instruction in the target.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3362 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-08-29 19:44:58 +00:00
Spoike f62dc94d87 You can kill me now.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3351 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-08-29 15:07:08 +00:00
Spoike 2158389bef Added IF_F instructions.
Added -fassumeint so constants are by default ints instead of floats (like in C). Use a decimal point and it'll be a float.
Fixed a couple of omissions/bugs reported by Blub.
Added lame x86 jit which is still buggy, incomplete, and disabled. And bigfoot will hate it.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3349 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-08-29 14:56:42 +00:00
Spoike 2513254510 My god, was I asleep when I did that?
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3251 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-07-09 18:31:43 +00:00
Spoike 3b8c5d74bc I wonder how many more bugs there are left for Blub to find.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3235 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-07-05 21:44:17 +00:00
Spoike 2b58210060 Bugfixes courtesy of Blub:
Fixed new line counting in multi-line comments.
Fixed unary operators to favour a single term, except for the unary not operator.
Added:
Unary not operator warns whenever it consumes more than a single term.
Added more ways to optimise logic (a+0 = a).


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3232 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-07-03 19:02:42 +00:00
Spoike 1c985c65d2 and a bit more
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3221 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-06-13 12:25:39 +00:00
TimeServ 740f4a09f9 actually apply fteqcc intrinsics patch http://stud4.tuwien.ac.at/~e0725517/patches/fteqcc_fix_intrinsics.diff
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3204 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-05-24 18:56:05 +00:00
Spoike 9cd988a836 Added csqc->ssqc requests.
Fixed up cl_indepphysics. Sending is fully independent, bar sync points.
Fixed so #if 0 works in qc code.
Fixed up error conditions in qclib when features are not supported.
The webpage generator will now refcount properly.
Fixed error conditions when using glsl shaders.
If MULTITHREAD is defined, r_loadlit will not light inside a separate thread.
We now generate VBOs for bsp objects. Shaders/rtlights don't use them yet.
Fixed up MVD/multiview playback a bit. It now looks like it works! (cl_hightrack will no longer track the same person in all views).
Fixed error conditions when attempting to download versioned csprogs.
Reduced the number of places that a q3-style marked up string is expanded. I think there are a couple places left still though. Approximated ezquake colour codes.
Memory mapped read file access in win32, where we can. Not sure about this. Lets see how things pan out.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3195 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-05-24 10:11:17 +00:00
Spoike ff22785542 Should fix certain compiler issues reported to me by Blub\0, found when compiling nexuiz code. This is Blub's fix.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3189 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-05-11 00:17:31 +00:00
Spoike 5f1a9d8cbf added cprint console command.
fixed nq client loading-screen persisting bug
fixed nq clients getting flooded by packets.
fixed nq clients not receiving any entities
removed a bit of redundant code in pmove
fteqcc: merged array function calls with real function calls, fixing return values in the process.
vid_preservegamma now defaults to off. windows sucks.
tweeked the prototype FTE_CSQC_SKELETONOBJECTS a bit. still not official nor advertised.
added a little bit more functionality to halflife support
csqc got some pmove tweeks. this is how I want it to work. nothing has been changed that is really incompatible with darkplaces in this commit.
added markers around some ext_csqc_1 features.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3178 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-04-19 00:50:42 +00:00
Spoike 262bc69548 So I can define globals/functions as static.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3147 fc73d0e0-1445-4013-8a0c-d673dee63da5
2009-03-29 23:47:29 +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
Spoike 819d541362 local float blob = someformula; works now.
added support for -TDP (and #pragma TARGET DP). It is identical to -TFTE except for the instructions used. To be used with Blub's patch when he commits it for DP. It should allow more, this is a first-version.
#if defined(A) && defined(B) will also work as expected. Careful with nesting however, as complex formulas will not. Please use only a single operator.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3047 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-16 23:04:36 +00:00
Spoike 0629d013b5 Fixed bug causing parameter conflict in statements like func(array[idx], func2(blah))
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3043 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-13 09:17:47 +00:00
Spoike 0a4c047eec Greater internal control over which variables are saved. Fixed a bug regarding temps and array references, which a couple of the nexuiz people found but didn't report (personally I found it was needed to be able to fire, but whatever).
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3037 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-10-05 02:55:01 +00:00
Spoike 7c6f37c4ae Yes Blub, I suck.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3026 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-07-17 07:41:59 +00:00
Spoike 887a278bce patch from Blub\0 to fix issues with compiling:
b = min(a, b);
with -TFTE active.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3024 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-07-10 20:38:17 +00:00
Lance 8c6dccbb70 BlackHC's patch to add support for \ (backslash) in macros
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2879 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-26 18:32:41 +00:00
Spoike d591079731 Fixes Black's latest bug. Ensure saved return values are in a locked temp, and not corrupted by the following function call.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2874 fc73d0e0-1445-4013-8a0c-d673dee63da5
2008-01-23 15:54:36 +00:00
Molgrum 0f02f12b8b s/compatable/compatible (take notice that sv_compatablehulls will have a changed name too)
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2717 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-05 18:08:47 +00:00
Molgrum 379efc8376 s/thier/their
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2716 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-10-05 17:43:26 +00:00
Spoike 7ea15cfdc1 Fixed a recent bug. EvaluateDebugString (ie: the give command) can now accept numbers as entities to retrieve fields from.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2518 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-06-19 23:55:04 +00:00
Spoike d74c6f738a Added some new bugs.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2515 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-06-10 21:33:24 +00:00
Spoike 8c987f6bf9 Fixed the comma operator to function correctly.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2513 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-06-09 22:30:16 +00:00
Spoike cced0039c3 And don't forget +=/-= with vectors.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2496 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-04-15 17:45:10 +00:00
Spoike 3671902d06 Added a warning for void() functionname() {} functions.
Fixed the ent.field.field += bug; by swapping the order of statements.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2495 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-04-15 17:35:58 +00:00
Spoike 6a31083ed5 This hopefully fixes a warning or two.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2493 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-04-12 01:40:32 +00:00
Spoike 451b8ccc79 Moved a chunk of code. This will prevent the temp from a calculation in the argument from overwriting the actual return value. a()+b(c+d) should now compile fine.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2490 fc73d0e0-1445-4013-8a0c-d673dee63da5
2007-04-11 22:45:34 +00:00
Mark Olsen 59d86d9c58 Improved the warning output from implicit casts.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2397 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-09-28 14:55:05 +00:00
Spoike b5b74f2529 Rotating BSP fixes, hexen2 fixes, and a few extra bugs...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2134 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-03-23 19:22:12 +00:00
Spoike a906ad0326 comma operator.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2038 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-03-01 18:53:31 +00:00
Spoike 7d09a3efdc The ternary operator.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2037 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-02-28 22:55:07 +00:00
Spoike 3399f05c3b Randomer found a way to crash fteqcc, but he still needs to fix his code.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2018 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-02-23 23:03:12 +00:00
Spoike 6f98f6f108 fastarrays works properly now.
changed stereo -> numchannels in the sound code
added/tweeked the download menu
fixed a coupld of fs functions
switched the key config menu to mouse-driven
right click now closes menus


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1901 fc73d0e0-1445-4013-8a0c-d673dee63da5
2006-01-28 06:41:20 +00:00
Spoike 0371d2cab6 Print out a warning count, added an entnum intrinsic.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1718 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-12-16 17:15:43 +00:00
TimeServ 9776d00e71 should make non locals-marshalling/overlaptemps much faster
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1706 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-12-14 21:03:18 +00:00
Spoike c7e7a3ac86 Should fix the problem with "effectless statement" lines being off-by-a-statement.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1692 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-12-09 19:35:25 +00:00
Spoike f34cbf7bca fix a bug.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1687 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-12-07 00:01:44 +00:00
Spoike 2dbef6be40 According to gcc, this var isn't used, so let's strip it.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1542 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-10-28 01:51:21 +00:00
Spoike 4366f644e5 A few tweeks here and there.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1407 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-10-01 03:09:17 +00:00
Spoike 184ca975fc Removed the prints, added a -Wno-mundane, and readded some ifstring stuff that black took out a while ago. grr. if he carelessly breaks anything like that again.... grr.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1384 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-09-28 16:57:10 +00:00
Spoike 43a1890bcc Fixed an issue with fteqw's pr_fixbrokenqccarrays cvar when used with mutators. Also fixed field remapping with regard to multiple fields with the same offsets.
Played around with classes a bit. Should work a bit better now.
Added an extra compiler flag, to allow for fast-tracking arrays in supported engines. It uses a global to detect it, but we don't yet set that global anywhere in the loader. This will probably have issues in DP.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1325 fc73d0e0-1445-4013-8a0c-d673dee63da5
2005-09-14 04:36:07 +00:00