Commit Graph
100 Commits
Author SHA1 Message Date
fgsfds 1eb1e9686a port: allow user to disable framebuffer use 2023-10-16 23:19:18 +02:00
fgsfds dbebe7e626 port: fix new fb effects when MSAA is on 2023-10-16 23:06:00 +02:00
fgsfds 79f8a35c33 port: implement fisheye 2023-10-16 22:38:44 +02:00
fgsfds b78a5ee064 port: implement motion blur and zoom blur 2023-10-16 22:07:41 +02:00
fgsfds ed3bd97dd7 port: when loading GL try 3.0 and 3.2 core as well 2023-10-05 18:20:37 +02:00
fgsfds d3d313c9e8 Merge pull request #194 from rafccq/port
bug fix: incorrect RGBA values for some embedded textures
2023-10-04 10:53:40 +02:00
fgsfds 63b38e48ba port: actually use RumbleScale 2023-10-03 11:03:27 +02:00
fgsfds 8a71ff651a port: correct aspect ratio of combat scenario-specific timers 2023-10-01 17:33:37 +02:00
fgsfds 0278458a28 port: fix #193 2023-10-01 16:22:51 +02:00
fgsfds 50e3393951 Update README.md 2023-09-30 19:09:12 +02:00
fgsfds 72fa10634f Merge pull request #191 from TwitchBronBron/patch-1
Improve windows build instructions
2023-09-30 19:08:13 +02:00
fgsfds 28837dd034 port: different fix for chrAlertOthersOfInjury crash 2023-09-30 14:17:47 +02:00
fgsfds 9a7e9c9ee3 port: small fixes for previous commit 2023-09-30 14:05:53 +02:00
fgsfds 608b02d363 Merge pull request #188 from NeonNyan/ammenu-abs
hack: cp `inputMouseGetScaled -> inputMouseGetScaledDeltaAbsSens` for intuitive amenu UX while using aim inversion
2023-09-30 12:41:49 +02:00
fgsfds 86ed199054 port: fix external seg loading 2023-09-28 09:05:11 +02:00
fgsfds 466c77362e port: mod: add support for sequence replacements 2023-09-28 00:55:14 +02:00
fgsfds 8a342a0698 port: mod: add a dumb replacement system for individual textures and animations 2023-09-27 23:42:47 +02:00
fgsfds 75b0d2dd29 port: modconfig: allow defining the alarm sound and extra gunmem size 2023-09-27 20:19:09 +02:00
fgsfds 704015deac port: modconfig: add user defined extended weather config
includes a way to specify weatherproof rooms and other hardcoded stuff

this might break something, as it removes some hardcoded checks
2023-09-27 19:44:51 +02:00
fgsfds d98575d77b port: add basic mod directory support with config files for custom stages
select mod directory with --moddir whatever

these should contain a modconfig.txt that can specify replacements for some stage table fields, etc
2023-09-26 23:05:07 +02:00
fgsfds 9b17aaf258 port: gl: add ARB_vertex_array_object
for those #ifdef APPLE parts
2023-09-26 15:29:59 +02:00
fgsfds 4638af52e2 port: gl: don't die without fbo support 2023-09-26 15:28:43 +02:00
fgsfds 8aa1e6b9c9 port: gl: check for GL_MIRROR_CLAMP_TO_EDGE; cleanup 2023-09-26 15:01:49 +02:00
fgsfds c4e0e4f868 port: more GL error checking 2023-09-26 14:49:14 +02:00
fgsfds 85b2ba5f77 port: cap pad size
this is required for some custom levels that have pads with wrong flags
2023-09-25 01:39:01 +02:00
fgsfds ef090a2b8f port: properly get size from external files 2023-09-25 01:39:01 +02:00
fgsfds d1d11b9362 port: fix alreadySwapped
how the fuck did this work fine before?
2023-09-25 01:39:00 +02:00
fgsfds ee4434eb6c Merge pull request #181 from jonaeru/enable-combatknife-jp
Add the combat knife in jpn-final
2023-09-24 19:40:10 +02:00
fgsfds d303971c2d Revert "port: use system trig functions"
apparently this only causes issues, though it might be possible to use SOME trig functions from libc
2023-09-24 11:47:14 +02:00
fgsfds bd113a5b44 port: nicer GL debug output
now only enabled if you pass --debug-gl
2023-09-24 00:41:57 +02:00
fgsfds dad5b3c074 port: use system trig functions
this might cause different behavior from the N64 version or it might fix some issues, who knows
2023-09-23 13:18:51 +02:00
fgsfds 7d5f33d033 port: fix surfacetypes in g_Textures 2023-09-22 21:26:02 +02:00
fgsfds 54842f50db port: another UB fix in bg.c 2023-09-22 21:06:32 +02:00
fgsfds 5ae29afdeb port: fix some pointer ub in bg.c 2023-09-22 20:52:31 +02:00
fgsfds 8a62b884cc port: make crosshair sway resolution independent
this might suck
2023-09-22 20:37:52 +02:00
fgsfds ca8851789a port: add centered HUD mode
set Game.CenterHUD=1 in pd.ini to enable
2023-09-22 20:26:32 +02:00
fgsfds 205032c626 Merge pull request #176 from rafccq/port
bug fix: hoverbike jittering
2023-09-22 20:13:59 +02:00
fgsfds b2cb5c1737 tools: assetmgr: move --raw-out into a separate function 2023-09-20 11:19:36 +02:00
fgsfds eef42a1e3e tools: assetmgr: allow writing raw binary instead of ELF; fix zip() on windows
use --raw-out filename to get the raw output (zipped if applicable)
2023-09-20 10:58:19 +02:00
fgsfds 53ff42836c tools: rarezip: use system gzip on non-linux 2023-09-20 10:36:21 +02:00
fgsfds 31bb7c62ad port: add scanline effects for NV and IR goggles and slayer 2023-09-17 23:53:12 +02:00
fgsfds c3f572f016 port: recreate infiltration camera effects
using newly added modulation blending and noise
2023-09-17 23:34:02 +02:00
fgsfds 309aff78fe Merge pull request #171 from Phnod/enhancement/auto-switch-classic-weapons
Add classic weapons to auto-switch list
2023-09-16 12:41:44 +02:00
fgsfds 8553c788ab port: disable reverse pitch and lookahead by default 2023-09-15 21:08:04 +02:00
fgsfds d567f707cb port: fix #170 2023-09-15 20:59:48 +02:00
fgsfds 6686221029 port: fix #169 2023-09-15 20:53:06 +02:00
fgsfds 3ee473d909 Revert "port: fall back to copy if a zipped file is not zipped"
This reverts commit 233f4b7514.
2023-09-15 20:38:58 +02:00
fgsfds 2010d31f6b Revert "port: fix error message in previous commit"
This reverts commit ae2d463d7e.
2023-09-15 20:38:37 +02:00
fgsfds ae2d463d7e port: fix error message in previous commit 2023-09-15 20:32:31 +02:00
fgsfds 233f4b7514 port: fall back to copy if a zipped file is not zipped 2023-09-15 20:31:24 +02:00
fgsfds 6a1b0a474c port: allow specifying path to eeprom file
--eeprom-file file.bin
2023-09-14 21:35:05 +02:00
fgsfds 78ff5683ce port: make the reverse pitch option affect mouselook 2023-09-14 20:41:19 +02:00
fgsfds 53e881b75e port: support loading/saving from/to a directory in HOME or APPDATA
~/.local/share/perfectdark on Linux

AppData/Roaming/perfectdark on Windows

on Windows if the game has write access to the working directory it will save there by default, otherwise it will save to AppData

on Linux the game will save to the working directory if there is already a config there, otherwise it will save to ~

additionally the ROM/data files will be loaded from wherever they're found, working directory taking priority
2023-09-13 20:36:42 +02:00
fgsfds fff2fcae21 port: don't increment module refcount when getting base address 2023-09-12 23:28:30 +02:00
fgsfds a68a23d1cb port: print module base in crash message 2023-09-12 23:24:23 +02:00
fgsfds cb1e1e5dca port: fix #163 2023-09-12 17:34:34 +02:00
fgsfds c10050a14c port: jpn-final: possibly fix japanese characters 2023-09-11 18:32:09 +02:00
fgsfds f8ef6939b0 port: roll back to old variant of #76 2023-09-08 22:28:19 +02:00
fgsfds 52854b6502 port: fix #139 2023-09-08 15:47:24 +02:00
fgsfds fe5d1dd152 port: fix #158 2023-09-08 15:09:05 +02:00
fgsfds 180e62d597 port: cosmetics 2023-09-08 14:37:44 +02:00
fgsfds 4870641d38 Merge pull request #126 from Phnod/zoom-hud-fov
Zoom HUD fov fix and zoom fov config option
2023-09-08 13:00:14 +02:00
fgsfds 33e2f15f49 Merge pull request #121 from rafccq/port
Bug fix: double reload
2023-09-08 12:59:32 +02:00
fgsfds cf51f09826 Merge pull request #160 from tmyqlfpir/port
Fix random five scenario using classic weapons for last slot
2023-09-08 12:59:21 +02:00
fgsfds 892d50ba7c port: revert #134 for now
there must be a different solution for that problem
2023-09-05 11:45:12 +02:00
fgsfds dde656c4c3 port: fix typo 2023-09-04 21:47:42 +02:00
fgsfds 2d628e2b5a Merge pull request #134 from Phnod/fix/guard-line-of-sight
fix: return false in chrHasLosToPosWasteful if outside FOV check
2023-09-04 21:46:52 +02:00
fgsfds d7652a6db6 port: remove stray field in TextureCacheKey 2023-09-04 21:10:20 +02:00
fgsfds 491d3521f7 port: different names for pal and jpn EXEs 2023-09-04 21:06:49 +02:00
fgsfds d6854c412c port: allow building with pal-final and jpn-final
this will produce a separate executable that will load pd.pal-final.z64 or pd.jpn-final.z64, respectively

japanese characters are broken in jpn and pal crashes when you try to select language, so no autobuilds yet
2023-09-04 21:06:10 +02:00
fgsfds 110386a3dd tools: mklang: explicitly specify utf-8 2023-09-04 21:02:50 +02:00
fgsfds 840a2e73a5 port: implement screen shake 2023-09-03 19:12:29 +02:00
fgsfds 07c3a513ef port: generalize the texture font filter a bit
now called TextureFilter2D; although for now I couldn't find anything other than fonts to use it on
2023-09-03 00:36:27 +02:00
fgsfds 18b467a4d8 Merge pull request #127 from Phnod/font-filtering
port: add a config option to disable texture filtering on fonts
2023-09-03 00:22:06 +02:00
fgsfds ff8505c013 Merge pull request #130 from Phnod/rotated-text-cutoff-fix
fix: remove height trim on rotated text
2023-09-03 00:19:06 +02:00
fgsfds 7207bb6293 Merge pull request #137 from NeonNyan/pc-ab
Use XBox / PC Menu A/B semantics
2023-09-02 23:21:30 +02:00
fgsfds 721c27c329 port: add exit option to 4mb menu 2023-09-02 22:05:33 +02:00
fgsfds 702db43590 port: workarounds for some sky issues 2023-09-02 19:35:04 +02:00
fgsfds 0942f61aff port: possibly fix skyboxes
by just rendering them with normal triangles
2023-09-02 16:18:06 +02:00
fgsfds 56df5b4054 port: ignore invert pitch setting when mouse aiming 2023-09-01 23:08:52 +02:00
fgsfds cc079e842b port: small crashhandler fix 2 2023-09-01 22:58:45 +02:00
fgsfds 37907dccfc port: small crashhandler fix 2023-09-01 22:49:45 +02:00
fgsfds 701193e71a port: add crash handler
you probably won't get symbol names, but you can still use addr2line
2023-09-01 22:42:44 +02:00
fgsfds e5e685902c port: don't use G_RM_NOOP2 with non-noop 1cyc modes
this ALMOST fixes sparks and blood splatter
2023-09-01 17:56:00 +02:00
fgsfds b0d97bde89 port: possibly fixed a bunch of textures
at the cost of about 22kb extra memory, how horrifying
2023-09-01 17:55:07 +02:00
fgsfds 29dae044cc port: also disable hi-res and aspect options in 2p pause menu 2023-09-01 12:45:05 +02:00
fgsfds 9744b2266f port: dummy out hi-res and screen ratio options 2023-09-01 09:22:09 +02:00
fgsfds 60e2118001 Merge pull request #114 from iamgreaser/gm/ubfix-0001
Fix a few cases of UB incl. OoB
2023-08-31 18:29:38 +02:00
fgsfds e883144a76 port: fix texformat errors 2023-08-31 13:00:04 +02:00
fgsfds b6a3aef345 port: add logging and some command line args
--log: logs messages to pd.log

--boot-stage N: sets initial stage number to N (MP stages will crash or hang if booted like this)

--no-sound: disable sound

--rom-file S: set ROM filename
2023-08-31 12:54:18 +02:00
fgsfds 2e49ba10dd port: aspect correct radial menu 2023-08-31 10:36:21 +02:00
fgsfds 24ced381de port: add separate mouse aim sensitivity
Game.MouseAimSpeedX and Game.MouseAimSpeedY
2023-08-31 01:21:33 +02:00
fgsfds e265482cb4 port: more widescreen HUD hacks 2023-08-31 00:55:17 +02:00
fgsfds ba8346edb7 port: experimental hack for proper 16:9 HUD
might or might not be more convenient than editing all offsets
2023-08-31 00:45:18 +02:00
fgsfds 600f261dcb port: don't crash silently on GL errors 2023-08-30 18:19:54 +02:00
fgsfds 14efaee388 port: add wide rect commands; fix crosshair spazzing out on screen borders
if you're building manually, this change requires a clean rebuild
2023-08-30 17:21:13 +02:00
fgsfds 687682cab0 port: fix gamepad aiming with MOUSEAIM_CLASSIC
also uninvert Y when moving the camera with it
2023-08-30 16:10:42 +02:00
fgsfds c3b4d59168 port: add 1964GEPD-like mouse aim mode
you can switch to the old variant by setting Game.MouseAimMode to 1 in pd.ini
2023-08-30 15:28:33 +02:00
fgsfds 970e13773d port: remove unused fileSlots array 2023-08-30 12:45:39 +02:00
fgsfds af1422a1de port: move CrosshairSway and FovY to the [Game] ini section
fov doesn't really belong in the video functions either
2023-08-30 12:31:27 +02:00