Difference between revisions of "Gens/GS"

From Sega Retro

old>GerbilSoft
(Undo revision 117521 by GerbilSoft (Talk) fffffffffffffff)
old>GerbilSoft
("Download" is a second-level section. The subsections should be third-level.)
Line 105: Line 105:
 
==Download==
 
==Download==
  
==Stable Release==
+
===Stable Release===
 
{{Multidownload|file1=Gens-2.15.5-gs-m6.tar.gz|filename1=Gens/GS Milestone 6 (Source Code)|filesize1=1.45 MB|file2=Gens_2.15.5-gs-m6-1_i386.deb|filename2=Gens/GS Milestone 6 (Ubuntu 8.04+, 32-bit)|filesize2=622 KB|file3=Gens-2.15.5-gs-m6-win32.zip|filename3=Gens/GS Milestone 6 (Win32)|filesize3=855 KB}}
 
{{Multidownload|file1=Gens-2.15.5-gs-m6.tar.gz|filename1=Gens/GS Milestone 6 (Source Code)|filesize1=1.45 MB|file2=Gens_2.15.5-gs-m6-1_i386.deb|filename2=Gens/GS Milestone 6 (Ubuntu 8.04+, 32-bit)|filesize2=622 KB|file3=Gens-2.15.5-gs-m6-win32.zip|filename3=Gens/GS Milestone 6 (Win32)|filesize3=855 KB}}
  
==Preview Release==
+
===Preview Release===
 
{{Multidownload|file1=Gens-gs-r7_pre2.tar.gz|filename1=Gens/GS Release 7, Preview 2 (Source Code)|filesize1=2.04 MB|file2=Gens_2.15.5-gs-r7-pre2_i386.deb|filename2=Gens/GS Release 7, Preview 2 (Ubuntu 8.04+, i386)|filesize2=800 KB|file3=Gens-gs-r7_pre2-win32.zip|filename3=Gens/GS Release 7, Preview 2 (Win32, i386)|filesize3=1.33 MB}}
 
{{Multidownload|file1=Gens-gs-r7_pre2.tar.gz|filename1=Gens/GS Release 7, Preview 2 (Source Code)|filesize1=2.04 MB|file2=Gens_2.15.5-gs-r7-pre2_i386.deb|filename2=Gens/GS Release 7, Preview 2 (Ubuntu 8.04+, i386)|filesize2=800 KB|file3=Gens-gs-r7_pre2-win32.zip|filename3=Gens/GS Release 7, Preview 2 (Win32, i386)|filesize3=1.33 MB}}
  
==Git Repository==
+
===Git Repository===
 
The Gens/GS git repository is available at http://gs_server.gerbilsoft.ddns.info/cgi-bin/gitweb.cgi?p=gens.git;a=summary .
 
The Gens/GS git repository is available at http://gs_server.gerbilsoft.ddns.info/cgi-bin/gitweb.cgi?p=gens.git;a=summary .
  
==Prior Versions==
+
===Prior Versions===
 
* {{file|Gens-2.15.5-gs-m5.3.tar.gz|Gens/GS Milestone 5.3 (Source Code)}} (1.35 MB, released 2008/11/16)
 
* {{file|Gens-2.15.5-gs-m5.3.tar.gz|Gens/GS Milestone 5.3 (Source Code)}} (1.35 MB, released 2008/11/16)
 
* {{file|Gens_2.15.5-gs-m5.3-1_i386.deb|Gens/GS Milestone 5.3 (Ubuntu 8.04+, 32-bit)}} (582 KB, released 2008/11/17)
 
* {{file|Gens_2.15.5-gs-m5.3-1_i386.deb|Gens/GS Milestone 5.3 (Ubuntu 8.04+, 32-bit)}} (582 KB, released 2008/11/17)

Revision as of 22:31, 2 August 2009

GensGS.png

Gens/GS is a version of Gens maintained by GerbilSoft. The main goal of Gens/GS is to clean up the source code and combine features from various forks of Gens.

Release 7, Preview 3

Release 7 introduces the following new features:

  • Mega Drive Plugins v1.0.0. This major update to the plugins system adds support for external plugins (.dll on Windows, .so on Linux), as well as support for more than just rendering plugins.
  • doc/mdp/ contains the MDP Interface Specifiction Version 1.0.0. This document is licensed under the GNU Free Documentation License v1.3.
  • A new manual for Gens/GS has been created. It is available in doc/manual/.
  • The Game Genie functionality has been moved to an MDP plugin. It now supports 8-bit, 16-bit, and 32-bit patch codes, and uses a new patch code file format. Old patch code files are supported for loading; however, they will be written in the new format when saved. Later versions will add support for patching CPU address spaces other than the main MC68000.
  • New MDP Plugin: VDP Layer Options. This lets you adjust the visible layers on screen, so e.g. you can hide sprites, swap scroll priorities, and lock the palette to prevent color changes.
  • New MDP Plugin: Sonic Gens. This lets you view various information in memory in several Sonic games. Sonic Gens was originally written by LOst as a standalone version of Gens.
  • New renderers:
    • EPX (ported from Gens Rerecording)
    • EPX Plus (ported from Gens Rerecording)
    • Super 2xSaI (ported from Gens Plus)
    • Super Eagle (ported from Gens Plus)
    • Blargg's NTSC filter for MD
  • [Win32] Ported the GDI video backend from Gens Plus. It still has a few bugs, but it mostly works.
  • Extended controller configuration format. The new configuration format allows for up to 128 axes, 256 buttons, and 64 POV hats, whereas the old configuration format only allowed for 6 axes [5 axes on Win32], 112 buttons, and 4 POV hats. This mainly affects the Linux version, since Linux usually reports all axes as axes instead of mapping some axes to POV hats, and some newer controllers (e.g. the Xbox 360 controller) have more than 6 axes. Older configurations are automatically updated to use the new controller configuration format.
  • The reverse-engineered 32X firmware, written by DevSter, is now included in Gens/GS. If you do not have the original Sega 32X firmware files, the reverse-engineered ones are used instead.
  • Added SH2 DMA support for PWM audio. Thanks to Joseph Fenton for submitting a patch.
  • [Win32] Joysticks connected after loading Gens/GS will now be detected in the Controller Configuration dialog.
  • WAV dumping has been reimplemented.
  • ROM History now caches the ROM type (MD/MCD/32X), so it doesn't have to check the ROM type every time the ROM History menu is rebuilt. This improves performance significantly if some ROM images were loaded from network shares.
  • ROM History now keeps track of compressed files inside of multi-file archives. For example, if you have a 7z archive containing several different versions of a game, selecting version 1 will result in a ROM History entry for that specific version, and selecting version 2 will result in another ROM History entry.
  • Added initial support for the "Palette Select" bit in VDP register 0. If the "Palette Select" bit is cleared, only the LSBs of each color component in CRAM is used to determine the colors to display, resulting in a maximum of 8 colors onscreen. This isn't very useful, but it's more accurate.
  • SRAM can now be disabled in the Options menu. This fixes Puggsy, which checks for the existance of SRAM and prevents the user from advancing past a certain point if it exists. (Puggsy uses a password system, not SRAM.)
  • Improved PWM scaling algorithm, provided by Chilly Willy on the Sonic Retro forums.
  • A new command line option, "--boot-cd", can be specified to tell Gens/GS to boot from an actual SegaCD CD-ROM on startup.
  • [Unix] Improved VSync support with the OpenGL backend. Both the MESA and SGI swap control methods are now supported.
  • The video subsystem now supports fallbacks. For example, on the Linux version, if SDL+OpenGL is selected but OpenGL isn't available, it will simply revert back to SDL instead of crashing. As an added bonus, this allows for Gens/GS to start up properly on Windows NT 4.0, since the default backend on Win32 is DirectDraw 4, but NT4 doesn't support it. Instead of crashing, it will fall back to the GDI backend.
  • Gens/GS no longer changes non-alphanumeric characters in SegaCD game names to spaces. This may cause some games to have different names, which will prevent their BRAM files from being loaded properly. If you have any of these games, you will need to rename the BRAM files in order to get them to load correctly.
  • [Unix] If a game has a Shift-JIS encoded title in the Japanese title field and the country code is set to Japan, the title will be converted to the system's native locale, e.g. UTF-8. (Win32 support for this feature will be added once Gens/GS fully supports Windows' Unicode implementation.)

Release 7 fixes the following bugs:

  • Dragging and dropping a ROM image onto the Gens/GS window will now synchronize the menus. This bug was reported by Tets on the Sonic Retro forums.
  • Loading a GSX savestate file that is not in GSX format will now show an error instead of crashing. Apparently, Gens Plus GZips its savestate files when saving by default. This bug was reported by SoNick in #retro.
  • [GTK+] Copied g_uri_unescape_string() (and dependent functions) from GLib 2.18.4 into Gens/GS. This function was introduced in GLib 2.16, but Gens/GS should be compatible with versions of GLib 2.4 and later.
  • Two VDP DMA bugs have been fixed:
    • Zero-length DMA operations are now handled as 65,536-word operations. This may break some poorly-written hacks.
    • DMA operations now wrap on a 128k boundary. This bug was reported by TmEE.
  • The VDP H_Int register is now initialized to 0xFF. This fixes Sik's test ROM that produced "rain" on Gens, but not on Regen or the actual hardware.
  • Several buffer overflow bugs that caused crashes in the release build on some Linux platforms have been fixed. This includes a long-standing bug in the SegaCD code, plus a new bug in the partially-rewritten savestate loading code.

Release 7 has the following low-level code changes:

  • The video, audio, and input subsystems have been ported back to C. The C++ system was too awkward and had too much overhead.
  • Similarly, the decompression subsystem has been ported back to C. In addition, the LZMA SDK is now built into Gens/GS, so 7z archives can be read without an external 7z binary.
  • Initial port of the Z80 emulator to C. The Z80 emulator has been moved out of the src/gens directory and into its own directory, src/mdZ80. Currently, the only functions that have been ported to C are the helper functions. The actual emulation code is currently being worked on in the mdZ80 branch in the Gens/GS git repository.
  • Many assembly-language files have been converted from Intel-style (nasm) assembly to AT&T-style (GNU `as`) assembly.
  • Many assembler functions have been ported to C/C++, including the UPDATE_PALETTE macros and Reset_VDP() (now VDP_Reset()).
  • Multitap support has been ported from x86 assembler to C. In the process, both Sega Teamplayer and 4-Way Play support have been improved. Notably, Teamplayer now works on "NBA Jam" and "NBA Jam TE", and 4-Way Play now works (sometimes) on "Triple Play '96". A complete list of tested multitap games can be found in doc/teamplayer.txt .
  • yasm is now supported as an alternative to nasm. To use yasm, add the option --with-nasm=yasm when using the ./configure script.
  • Precompiled binaries are now compiled for i686 or higher. If you want to run Gens/GS on an original Intel Pentium or older, you will have to compile your own Gens/GS binary.
  • [Unix] On systems that support sigaction(), the signal handler dialog will now show extended signal information for some signals, e.g. SIGFPE.

For information about previous releases, see the ChangeLog.txt file included with Gens/GS r7_pre2.

VDP Layer Options

Milestone 6 adds a new feature that allows modifying VDP layer options; however, there is currently no GUI for this feature. (A GUI will be included as a plugin in r7.) If you're using Linux and have gdb installed, you can modify the VDP layer options manually. (This requires a non-stripped Gens/GS build; you may have to compile Gens/GS from source.)

To start Gens/GS in gdb, open a terminal and run the following command:

gdb gens

gdb will load. To start the program, type "run" and press enter. Gens/GS will start.

To change the layer settings, go back to the terminal and press Ctrl-C. gdb will show the following:

Program received signal SIGINT. Interrupt.
0x[numbers] in [function] ()
(gdb)

Ignore the [numbers] and [function] part. Type the following command:

print /x VDP_Layers

gdb should output 0xdb, which is the default VDP layers value.

This value is a bitfield. To set a new value, you will need to add flag values from the table below. Make sure to add the values for the flags that you want enabled, and ignore the values for the flags that you want disabled.

VDP_LAYER_SCROLLA_LOW        = 0x00000001
VDP_LAYER_SCROLLA_HIGH       = 0x00000002
VDP_LAYER_SCROLLA_SWAP       = 0x00000004
VDP_LAYER_SCROLLB_LOW        = 0x00000008
VDP_LAYER_SCROLLB_HIGH       = 0x00000010
VDP_LAYER_SCROLLB_SWAP       = 0x00000020
VDP_LAYER_SPRITE_LOW         = 0x00000040
VDP_LAYER_SPRITE_HIGH        = 0x00000080
VDP_LAYER_SPRITE_SWAP        = 0x00000100
VDP_LAYER_SPRITE_ALWAYSONTOP = 0x00000200
VDP_LAYER_PALETTE_LOCK       = 0x00000400

The default value, 0xdb, corresponds to ScrollA Low, ScrollA High, ScrollB Low, ScrollB High, Sprite Low, and Sprite High.

Once you've come up with your new value, type the following commands into gdb:

set VDP_Layers=0xdb
continue

Replace 0xdb with your new VDP layer options value.

Download

Stable Release

Download.svg

Download Gens/GS
Multiple downloads available

Gens/GS Milestone 6 (Source Code) ("Gens-2.15.5-gs-m6.tar.gz" does not exist) (info)
Gens/GS Milestone 6 (Ubuntu 8.04+, 32-bit) ("Gens_2.15.5-gs-m6-1_i386.deb" does not exist) (info)
Gens/GS Milestone 6 (Win32) ("Gens-2.15.5-gs-m6-win32.zip" does not exist) (info)

Preview Release

Download.svg

Download Gens/GS
Multiple downloads available

Gens/GS Release 7, Preview 2 (Source Code) ("Gens-gs-r7_pre2.tar.gz" does not exist) (info)
Gens/GS Release 7, Preview 2 (Ubuntu 8.04+, i386) ("Gens_2.15.5-gs-r7-pre2_i386.deb" does not exist) (info)
Gens/GS Release 7, Preview 2 (Win32, i386) ("Gens-gs-r7_pre2-win32.zip" does not exist) (info)

Git Repository

The Gens/GS git repository is available at http://gs_server.gerbilsoft.ddns.info/cgi-bin/gitweb.cgi?p=gens.git;a=summary .

Prior Versions

Other Information

Forum Threads

Older Forum Threads