Commit Graph

5075 Commits

Author SHA1 Message Date
Spoike 445e7f476b a dos port, as a dig at eukara about his xbox port project.
mouse+kb+soundblaster devices should work.
you can compile a dedicated server, but the lack of any networking support makes it a bit pointless.
the software renderer will work, but its crap and gets absolutely dire framerates.
there's no code to init mesa or anything, so its crappy-software rendering only.
I doubt anything useful will ever result from this, but it was still interesting to do. possibly the only useful thing to come from this will be from limiting ram use.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5104 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-05-19 03:32:02 +00:00
Spoike 5d2ff1286d first version with dtls support. disabled for now.
schannel (ie: windows native) works as a client, not a server.
gnutls provides both client+server support. servers need to load a pre-generated cert from disk.
tweaked gamepads to actually work in the web target.
tweak gamepads a bit. added gp_* bind aliases. xinput+sdl+web should all use the same key mappings.
finally added the itemtimer glsl.
tweaked software renderer to not be quite so buggy, but you probably won't realise that if you try it.
disabled the ill-fated QWOVERQ3 feature.
don't do the oldorigin thing in quakeworld mods. hopefully this'll fix cspree's weird stuck-in-floor issue.
dpp7 is buggy serverside. disabled for now. I'm part way through rewriting its deltas.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5103 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-05-18 10:24:09 +00:00
Spoike e5db7c32ba git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5102 fc73d0e0-1445-4013-8a0c-d673dee63da5 2017-05-10 05:05:39 +00:00
Spoike 670d96dc3e git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5101 fc73d0e0-1445-4013-8a0c-d673dee63da5 2017-05-10 04:49:12 +00:00
Spoike 493d66b832 misc fixes
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5100 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-05-10 04:32:49 +00:00
Spoike 1f729f4afd compile fixes
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5099 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-05-10 03:13:18 +00:00
Spoike f449b0eb88 Small tweaks to get libav working as well as ffmpeg, for old debian versions. Some other tweaks too
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5098 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-05-10 02:57:34 +00:00
Spoike 484e8bbfc2 playdemo accepts https urls now. will start playing before the file has finished downloading, to avoid unnecessary delays.
reworked network addresses to separate address family and connection type. this should make banning people more reliable, as well as simplifying a whole load of logic (no need to check for ipv4 AND ipv6).
tcpconnect will keep trying to connect even if the connection wasn't instant, instead of giving up instantly.
rewrote tcp connections quite a bit. sv_port_tcp now handles qtv+qizmo+http+ws+rtcbroker+tls equivalents.
qtv_streamport is now a legacy cvar and now acts equivalently to sv_port_tcp (but still separate).
rewrote screenshot and video capture code to use strides. this solves image-is-upside down issues with vulkan.
ignore alt key in browser port. oh no! no more red text! oh no! no more alt-being-wrongly-down-and-being-unable-to-type-anything-without-forcing-alt-released!
reworked audio decoder interface. now has clearly defined success/unavailable/end-of-file results. this should solve a whole load of issues with audio streaming.
fixed various openal audio streaming issues too. openal also got some workarounds for emscripten's poor emulation.
fixed ogg decoder to retain sync properly if seeked.
updated menu_media a bit. now reads vorbis comments/id3v1 tags to get proper track names. also saves the playlist so you don't have to manually repopulate the list so it might actually be usable now (after how many years?)
r_stains now defaults to 0, and is no longer enabled by presets. use decals if you want that sort of thing.
added fs_noreexec cvar, so configs will not be reexeced on gamedir change. this also means defaults won't be reapplied, etc.
added 'nvvk' renderer on windows, using nvidia's vulkan-inside-opengl gl extension. mostly just to see how much slower it is.
fixed up the ftp server quite a lot. more complete, more compliant, and should do ipv6 properly to-boot. file transfers also threaded.
fixed potential crash inside runclientphys.
experimental sv_antilag=3 setting. totally untested. the aim is to avoid missing due to lagged knockbacks. may be expensive for the server.
browser port's websockets support fixed. experimental support for webrtc ('works for me', requires a broker server).
updated avplug(renamed to ffmpeg so people know what it is) to use ffmpeg 3.2.4 properly, with its new encoder api. should be much more robust... also added experimental audio decoder for game music etc (currently doesn't resample, so playback rates are screwed, disabled by cvar).

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5097 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-05-10 02:08:58 +00:00
Eukara f6cbd61760 Fixed particleeffectnum failing from looking up already existing particle effect
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5096 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-05-03 22:51:25 +00:00
Spoike 85da162f49 Try to fix up some linux / build script stuff.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5095 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-04-29 02:45:21 +00:00
Spoike e5e7ba17da fix a stupid bug when loading q2/q3 bsps.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5094 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-04-22 14:17:45 +00:00
Spoike 40a52b3724 fix nocompat builds
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5093 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-04-18 16:58:17 +00:00
Spoike 96f4f0ac80 Disable world damping by default, it was making ODE physics unusable.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5092 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-04-18 16:57:44 +00:00
Spoike 46d3fedc14 git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5091 fc73d0e0-1445-4013-8a0c-d673dee63da5 2017-04-18 13:47:02 +00:00
Spoike 09ec3bf6ea added explicit 'blend rtsmoke' particles that are intended to lit by rtlights without needing to override shaders.
addtrisoup_simple now supports line lists too.
fix a memory leak in the sound code.
fix chunked http download corruption in certain cases.
reworked the networking associated with entity editing. now carries ids instead of indexes (qc isn't aware of them).
'map blarg.map' will now auto-create a dummy map if it does not already exist. this should make it easier to get started with map editing.
fix some issues with banning yourself - loopback can now mute etc themselves, but not ban themselves.
downloads/updates menu now handles plugin detection. user-installed plugins will result in a prompt allowing the user to enable/disable/delete them. This makes using plugins more explicit.
revamped help menu to remove m_state
fix silly ode copypasta bug, added preliminary bullet code in case anyone is interested.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5090 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-04-18 11:12:17 +00:00
Spoike 81a9c45efa Added the build-everything script from triptohell to the svn. Made more generic, and included a second script to install emscripten+android+nacl dependancies. Updated the makefile and fixed a couple of bugs.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5089 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-04-16 09:27:43 +00:00
Spoike aef821b9c6 Makefile tweaks to make building more robust with respect to android sdk changes.\nFix video capture on linux.\nSupport a few more jpegs.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5088 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-04-10 07:52:18 +00:00
Spoike 9efb2c5c0e Work around triptohell's self-signed certs, using the same method as on windows.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5087 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-04-09 05:43:08 +00:00
Spoike c46f6a3a53 fix a couple of serious issues molgrum reported.
fix dedicated server to integrate inside fteqcc.
fix bug with jump being released.
fix fteqcc always using 32bit output.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5086 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-30 18:37:16 +00:00
Eukara 492feafd1d More XDK related guff
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5085 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-28 19:18:47 +00:00
Spoike 98beab3f53 fixes for stuff that (probably) I broke.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5084 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-27 23:10:29 +00:00
Spoike 5e7f55d0c8 lame way to fix decals not affecting rtworld.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5083 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-27 22:57:54 +00:00
Eukara 2abaa866a3 Some more progress on the Xbox version. If you can call it that. Also changed the wastes.ico to be up to date.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5082 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-27 21:45:45 +00:00
Spoike 5e58832acf Try to clean up a few things in the hopes of making Eukara's efforts easier. That or just to give him conflicts.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5081 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-26 23:03:02 +00:00
Eukara e200777d6a Some new droid overlays.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5080 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-26 19:14:05 +00:00
Eukara 7b873086ce Stupid typo.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5079 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-26 17:31:39 +00:00
Eukara cf1c0a715a First steps towards an XDK build...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5078 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-26 17:23:53 +00:00
Spoike 4fcfe8abb0 droid: new icon from eukara that doesn't have the resized uglyness.
droid: support qw:// scheme
droid: finally added touch.cfg with some crappy programmer art to go with it.
mvd: new name cleanup logic when recording, to avoid some more chars.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5077 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-26 01:46:08 +00:00
Spoike 1946cdc694 fix some warnings. d3d8 renderer builds with cygwin's mingw.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5076 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-21 17:51:34 +00:00
Spoike f80cafc6fa small fixups for the d3d8 renderer, to give eukara the conflicts that he asked for. disabled by default, because I cba to deal with the dxsdk headers.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5075 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-21 17:35:27 +00:00
Spoike afa9fce336 d3d8 renderer
(17:08:12) eukara: Let's make one!
(17:09:01) eukara: I'd even maintain it!
chances are that he'll need to get it working first.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5074 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-21 05:30:13 +00:00
Spoike a97007ae5a dpp7: Treat 'dropped' c2s packets as choked when using dpp7 protocols. This is because the protocol provides no way to disambiguate, and I don't like false reports of packetloss (only reliables loss can be detected, and that's not frequent enough to be meaningful). Pings can still be determined with dpp7, for those few packets which are acked.
package manager: reworked to enable/disable plugins when downloaded, which can also be present-but-disabled.
package manager: display a confirmation prompt before applying changes. do not allow other changes to be made while applying. prompt may be skipped with 'pkg apply' in dedicated servers.
sv: downloads are no longer forced to lower case.
sv: added sv_demoAutoCompress cvar. set to 1 to directly record to *.mvd.gz
cl: properly support directly playing .mvd.gz files
menus: reworked to separate mouse and keyboard focus. mouse focus becomes keyboard focus only on mouse clicks. tooltips follow mouse cursors.
menus: cleaned up menu heirachy a little. now simpler.
server browser: changed 'hide *' filters to 'show *' instead. I felt it was more logical.
deluxmapping: changed to disabled, load, generate, like r_loadlit is.
render targets api now supports negative formats to mean nearest filtering, where filtering is part of texture state.
drawrotpic fixed, now batches and interacts with drawpic correctly.
drawline fixed, no interacts with draw* correctly, but still does not batch.
fixed saving games.
provide proper userinfo to nq clients, where supported.
qcc: catch string table overflows safely, giving errors instead of crashes. switch to 32bit statements if some over-sized function requires it.
qtv: some bigcoords support tweaks

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5073 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-21 05:27:07 +00:00
Spoike cb010176a1 fix hitmodel with hlmdl, to actually work properly with rotated entities.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5072 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-06 15:30:45 +00:00
Spoike dadec86338 fix wireframe.
increase xz memory limit
fix fseek/fsize to match definitions.
r_deluxemapping is more aggressive with regards to generating lux files on demand (but won't generate lit data at the same time).
fix webgl shader issues.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5071 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-06 14:06:12 +00:00
Spoike c385cb71b4 git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5070 fc73d0e0-1445-4013-8a0c-d673dee63da5 2017-03-04 19:49:40 +00:00
Spoike 7635a15797 git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5069 fc73d0e0-1445-4013-8a0c-d673dee63da5 2017-03-04 19:46:37 +00:00
Spoike 4bfdc546de git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5068 fc73d0e0-1445-4013-8a0c-d673dee63da5 2017-03-04 19:42:12 +00:00
Spoike 9aed521689 make developer a little less spammy. move much of it to developer 2.
net_mtu "" now means something large for servers and something smaller for clients. this should give clients more freedom to screw up their connections as much as they want when servers are not configured. I dunno.
package manager now tries to include packages listed from default.fmf. note that this may include dlls etc so this isn't available for any other fmf (ie: ones specified via the commandline/file associations).
fix up trace logic to use skeletal data for skeletal models, finally fixing toneddu's big hitmodel crash. hopefully.
console links inherit background text colours, where possible.
fix text background colour weirdness for both freetype2 fonts and spaces.
qcc: implement support for mac line endings, matching scintilla's line numbers, although this breaks rogue due to stray carrage returns inside a single-line comment (easy to fix, assuming some scintilla-based editor, anyway).
server: reworked deltas overflow to do round-robin properly with priority for players, so things shouldn't stall when overloaded.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5067 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-03-04 19:36:06 +00:00
Spoike 1b88cda2db Fix some silly issues.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5066 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-02-28 05:04:41 +00:00
Spoike 655c09bd76 compile fixes
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5065 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-02-27 09:53:59 +00:00
Spoike cf0e8fd923 added r_meshpitch cvar that allows for fixing the unfixable mesh pitch bug from vanilla... needs a better name... do note that this will break pretty much any mod, so this is really only for TCs designed to use it. Its likely that I missed places.
nqsv: added support for spectators with nq clients. the angles are a bit rough, but hey. need to do something about frags so nq clients know who's a spectator. use 'cmd observe' to get an nq client to spectate on an fte server (then attack/jump behave the same as in qw clients).
nqsv: rewrote EF_MUZZLEFLASH handling, so svc_muzzleflash is now translated properly to EF_MUZZLEFLASH, and vice versa. No more missing muzzleflashes!
added screenshot_cubemap, so you can actually pre-generate cubemaps with fte (which can be used for reflections or whatever).
misc fixes (server crash, a couple of other less important ones).
external files based on a model's name will now obey r_replacemodels properly, instead of needing to use foo.mdl_0.skin for foo.md3.
identify <playernum> should now use the correct masked ip, instead of abrubtly failing (reported by kt)
vid_toggle console command should now obey vid_width and vid_height when switching to fullscreen, but only if vid_fullscreen is actually set, which should make it seem better behaved (reported by kt).
qcc: cleaned up sym->symboldata[sym->ofs] to be more consistent at all stages.
qcc: typedef float vec4[4]; now works to define a float array with 4 elements (however, it will be passed by-value rather than by-reference).
qcc: cleaned up optional vs __out ordering issues.
qccgui: shift+f3 searches backwards

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5064 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-02-27 09:34:35 +00:00
Spoike 217f3ce569 more misc compile fixes.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5063 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-02-22 00:16:43 +00:00
Spoike 459c3dcb5d more compile fixes
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5062 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-02-21 23:44:11 +00:00
Spoike 1c90422226 added support for vector bitwise operators emulation.
fix some compile issues

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5061 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-02-21 23:26:13 +00:00
Spoike 88eee17e70 gah, I failed to refresh the file list. dammit
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5060 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-02-21 21:18:48 +00:00
Spoike 5b0843e0c7 split up NOMEDIA into individual defines. The Wastes should now be able to do music now.
tweak rtlights a bit, to not bug out on The Waste's decals.
use compatibility glsl in order to get ftransform working for consistent vertex coords (still uses core if there's no fixed function stuff). this fixes z-fighting issues with rtlights.
Rework punchangles for greater compatibility.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5059 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-02-21 20:22:07 +00:00
Spoike e7c1f9a490 rework config.h stuff a little, fixing up numerous ifdefs etc. added some more for potentially smaller builds.
make the 'identify' command assume that a single decimal number is not an address (allowing it to be handled as a user id).
qcc: support default initialisers in function calls.
tweak filesystem code to try to flush individual files instead of discarding the entire fs hash.
fix 'snap' stuff.
other tweaks...

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5058 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-02-19 00:15:42 +00:00
Spoike 2d1b554813 git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5057 fc73d0e0-1445-4013-8a0c-d673dee63da5 2017-02-11 17:17:54 +00:00
Spoike 7bfb3b56fa small fix for a crash that I added at the last moment...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5056 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-02-11 17:16:51 +00:00
Spoike 3061ed448f fix a silly performance-sapping typo.
implemented identify+iplog stuff for nq users.
r_tessellation forces blinn tessellation on meshes. can also be specified manually.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5055 fc73d0e0-1445-4013-8a0c-d673dee63da5
2017-02-11 16:14:06 +00:00