Commit graph

1007 commits

Author SHA1 Message Date
Bart Trzynadlowski 0e494a0219 Updated build script to use SFTP (Supermodel3.com server upgrade no longer supports ftp) 2023-10-03 18:02:19 -07:00
Ian Curtis d656643087 gm_mathew worked out that the camera flashes in sega rally 2 have the 'reset-matrix' attribute set inside the culling nodes, which was unsupported until now because we never found any games to have used this bit. The reset matrix is a bit strange, I would assume it would just reset the matrix back to identity, instead it seems to just reset the rotation back to identity whilst preserving the scale/position. 2023-09-27 16:33:53 +01:00
Bart Trzynadlowski e6b5468680
Update README.md: copyright dates. 2023-09-25 14:46:28 +02:00
Bart Trzynadlowski 7867c0145e
Model3.cpp: Comment describing scan line timing. 2023-09-25 14:45:57 +02:00
Matthew Daniels 801945d066 Whitespace 2023-09-25 14:41:35 +02:00
gm-matthew 24d24db988 Ping-pong flip timing depends of the value of tilegen register 0x08
Also make the debugger display 16 bytes per line when using the "listmemory" command. Mirrored system registers can now be watched
2023-09-25 14:41:35 +02:00
Ian Curtis a00e8de988 Update rules file. Not tested this but hopefully it should work 2023-09-23 17:28:18 +01:00
Ian Curtis 6b0d5c453a Merge branch 'master' of https://github.com/trzy/Supermodel 2023-09-23 15:27:12 +01:00
Ian Curtis c6ea81d996 Emulate the entire tilegen chip in a GLSL shader. (This is now possible with opengl 3+). The tilegen drawing was emulated on the CPU, but was one of the most expensive functions in the emulator according to a profiler. On a modern GPU it's pretty much free, because a GPU is a massive SIMD monster.
Tilegen shaders are mapped to uniforms, and the vram and palette are mapped to two textures.

TODO rip out the redundant code in the tilegen class. We don't need to pre-calculate palettes anymore. etc

The tilegen code supports has a start/end line so we can emulate as many lines as we want in a chunk, which will come in later as some games update the tilegen immediately after the ping_pong bit has flipped ~ 66% of the frame.

The scud rolling start tilegen bug is probably actually a bug in the original h/w implementation, that ends up looking correct on original h/w but not for us. Need hardware testing to confirm what it's actually doing.
2023-09-23 15:27:04 +01:00
gm-matthew 38a95088e8 Prevent "ROLLING START" scrolling glitch in Scud Race
There is a quirk of the tilegen chip that causes this glitch not to occur on real hardware, but we can't be sure what it is without testing
Much easier to just patch all the Scud Race ROM sets
2023-09-02 20:40:40 -07:00
gm-matthew c9b718e89a Fix Z80Debug.cpp compile with C++20
String literals should not be used to initialize char* but C++17 and earlier were letting it slide
2023-09-02 20:38:24 -07:00
Bart Trzynadlowski ebff9a8b2d SCSP: added more detail to comment explaining 68K clock speed as recommended by Brian Troha 2023-09-02 20:32:11 -07:00
gm-matthew b2fee4242c DMA device register always returns Step 1.x PCI ID
Step 2.x games by AM3 request PCI ID this way and expect to see 0x16c311db
2023-08-20 17:43:40 -07:00
gm-matthew 7924fed369 Set soundboard CPU to correct clock speed
The 68K on the soundboard is rated at 12 MHz but runs at 11.2896 MHz, which is 256 cycles/sample with a 44100 Hz sample rate. Removed SoundClock and Freq as they are not needed
2023-08-20 17:43:27 -07:00
gm-matthew 015e8e9212 Drive board uses the value 0xFF (not 0x00) on ports 42 and 45 to stop all effects when port 46 is set to 0xFF; fixes FFB effects continuing after game ends 2023-07-01 23:21:51 -07:00
Matthew Daniels 84aa972ef2 Add description of swtrilgy patch from MAME
Star Wars Trilogy will sometimes write to a JTAG register and then read it back to verify it, but this doesn't work correctly with Supermodel's current JTAG implementation; it will try again and never succeed, getting stuck in an infinite loop. This patch stops the code from branching up and trying the write/read cycle again, allowing the subroutine to continue normally.

We need to implement shift register widths correctly for each JTAG device (Mercury, Venus, Earth, etc.) for the unpatched code to work properly... right now Supermodel implements one JTAG device with a huge 197-bit data shift register
2023-05-16 23:56:03 -07:00
Bart Trzynadlowski ac0e6407b4 Games.xml: Removed seemingly unnecessary swtrilgy and swtrilgya patches, which should re-enable JTAG configuration and fix Endor Death Star tunnel shading 2023-05-07 21:51:22 -07:00
ToBul 583d237b2b Fix GCC 13 build.
MSYS and probably a few Linux distros are now shipping GCC 13.
The new standards and issues are listed here,

https://gcc.gnu.org/gcc-13/porting_to.html
2023-05-07 21:42:21 -07:00
CapitaineSheridan 18f3c23a9f Work around to prevent I/O error after a while on fishing games with tension 2023-05-07 21:41:57 -07:00
CapitaineSheridan 813edb8218 Crosshair optimization:
-create crosshairs only once in Init() instead of created them at every cycle
-use matrix scale to apply the aspect ratio
2023-05-07 21:41:05 -07:00
Bart Trzynadlowski 6993dfcfb0 Makefile.Win32: fixed detection of Windows Command Prompt for rmdir command 2023-03-28 15:38:43 -07:00
Bart Trzynadlowski 87de86f7d1 Crosshair: use actual adjusted viewport resolution (configuration resolution is not the same thing). Fixes crosshair alignment for resolutions with non-Model 3 aspect. 2023-03-18 10:00:28 -07:00
Bart Trzynadlowski 95fc08e0a3 Windows app manifest added to enable PerMonitorV2 DPI awareness 2023-03-15 18:24:01 -07:00
ToBul f497de50d1 Update README.txt
Fix old typos, leaving alone the American English.
Remove the "Virtua Striker 2 '99" unlock code.
I don't think it works,  others have also tried,
https://www.supermodel3.com/Forum/viewtopic.php?f=3&t=2096&p=19784#p19784
2023-03-15 17:35:48 -07:00
Bart Trzynadlowski 5fdb50a869 README.txt: Updated Section 5 (video settings), squeezed everything back into 80 columns, changed 'Virtua Fighter 2 '98' to 'Virtua Striker 2 '98' in Section 10 2023-03-14 17:56:17 -07:00
Bart Trzynadlowski b5ca365928 NetBoard: guard against freeing null pointers and INetBoard needed a virtual destructor (was causing crashes on exit on some systems) 2023-03-14 11:18:20 -07:00
CapitaineSheridan 3848d276da Autobuild script update following crosshair update 2023-03-14 00:59:18 -07:00
CapitaineSheridan abc2900770 m_crosshair is not needed and the config should be checked every frame because otherwise Alt-I command was broken (the number of crosshairs to render is mapped to a UI key) [Bart] 2023-03-13 20:18:51 -07:00
CapitaineSheridan a319bbee0c Better optimisations.
Moved all UI rendering from Main to CCrosshair.
Take care of syntax about crosshair style.
2023-03-13 20:18:51 -07:00
CapitaineSheridan b19fdb6a77 Change Media folder to Assets folder.
Naming variable convention.
Command line change -crosshair-style = vector|bmp.
Config ini variable change CrosshairStyle = vector|bmp.
CCrosshair::DrawCrosshair optimisation.
Modifying UpdateCrosshairs() to eliminate global variable.
2023-03-13 20:18:51 -07:00
CapitaineSheridan 1b066fe4b3 Crosshair refactor
-add a new separate class for crosshair
-crosshair coordinates are calculated by matrix instead of recreating every object at correct coordinates
-add ability to scale crosshair by dpi
-add ability to use bitmap crosshair (located in ./Media/). 32bits bmp format + alpha
-cmd line "-bitmapcrosshair" or "-vectorcrosshair" and/or BitmapCrosshair=0|1 in config file
-these changes are only for lost world game with Crosshairs=1|2|3

don't forget to copy the 2 crosshair images in Supermodel/Media folder
2023-03-13 20:18:51 -07:00
Bart Trzynadlowski 0cc1b37f95 README.txt: Fixed a typo, end-of-sentence formatting in section 10, and added ECA cheat codes as per Brian Troha's suggestion 2023-03-13 20:10:08 -07:00
Bart Trzynadlowski 05c57abc2f README.txt: fixed typo 2023-03-11 11:08:10 -08:00
Bart Trzynadlowski 188bb5c285 README.txt: Added region codes to section 10 (c/o Brian Troha) 2023-03-10 18:13:04 -08:00
Bart Trzynadlowski 7e7686c6f2 Games.xml: Corrected name of Virtual On 2 to Cyber Troopers Virtual-On Oratorio Tangram 2023-03-10 14:59:10 -08:00
Bart Trzynadlowski ae5af4c036 Fixed window position config storage and command line parsing 2023-03-09 10:34:51 -08:00
Bart Trzynadlowski 83144f80b7 Config nodes: added the ability to clear out node values or create empty leaf nodes 2023-03-09 10:34:51 -08:00
joachim 043f901c80 comply to @trzy requested changes # 2023-03-09 10:34:51 -08:00
joachim 4a64a0df71 comply to @trzy requested changes 2023-03-09 10:34:51 -08:00
joachim c301a574ed -pos=<x>,<y> -> correct error when not present 2023-03-09 10:34:51 -08:00
joachim c97e3acce7 Add two video settings:
-pos=<x>,<y>            Position [Default: centered]
-borderless             Windowed mode with no border

These 2 settings are usefull when setting up a multiplayer game on one machine.

Example for 4 windows in fullHD:

start "Master" /D"Master_P4" Supermodel.exe -input-system=sdl ..\ROMS\dayto2pe.zip -res=960,540 -borderless -pos=0,0
start "Slave1" /D"Slave1_P4" Supermodel.exe -input-system=sdl ..\ROMS\dayto2pe.zip -res=960,540 -borderless -pos=960,0
start "Slave2" /D"Slave2_P4" Supermodel.exe -input-system=sdl ..\ROMS\dayto2pe.zip -res=960,540 -borderless -pos=0,540
start "Slave3" /D"Slave3_P4" Supermodel.exe -input-system=sdl ..\ROMS\dayto2pe.zip -res=960,540 -borderless -pos=960,540
2023-03-09 10:34:51 -08:00
joachim 5fa190490d Allow joystick to be fetch if windows has no focus in SDL input mode.
This is usefull for multiple instance of supermodel networked on the same machine.
2023-03-09 10:34:51 -08:00
Bart Trzynadlowski f7dcc1c445 Games.xml and README.txt updated by Brian Troha (new Ocean Hunter ROM sets and several updates to version descriptions, etc.) 2023-03-06 21:47:03 -08:00
The Brink of Tomorrow ffc320904e Update README.md with macOS build details
Update README.md with macOS build and run instructions
2023-02-25 14:52:32 -08:00
Aaron Paden 78f5056223 Add missing filename to ErrorLog call. 2022-12-28 20:04:25 -08:00
CapitaineSheridan 7e025e64a2 Memory allocated but not released. 2022-12-28 18:24:11 -08:00
Ian Curtis 69a458ecf7 Make sure to invalidate texture memory when going fullscreen otherwise it might not be syned correctly. 2022-12-25 00:32:01 +00:00
Ian Curtis 11c01a349f SDL_SetWindowFullscreen isn't needed as we call ResizeGLScreen which sets the fullscreen mode afterwards. 2022-12-24 23:54:47 +00:00
Ian Curtis 6dcf144694 We must explicitly call SDL_SetWindowFullscreen after setting the display mode otherwise the refresh rate doesn't change. 2022-12-24 17:29:08 +00:00
Ian Curtis ad0aed42a4 be a bit more flexible with the display frequencies we'll match 2022-12-19 14:11:21 +00:00