Gens4All with Z80 Emulation

Place for discussing homebrew games, development, new releases and emulation.

Moderators: pcwzrd13, deluxux, VasiliyRS

Post Reply
TapamN
letterbomb
Posts: 149
Joined: Sun Jan 10, 2021 10:52 pm

Re: Gens4All with Z80 Emulation

Post by TapamN »

Here's the new version of Gens4All with rasters and a game list browser. Both a precompiled ELF and a 1ST_READ.BIN are included with the source. The 1ST_READ also has the in-game menu from the last version accessible, so now you can also save, reset, and change controller and rendering settings, like you were supposed to be able to in the last version.

There's also some performance improvements, but slowdown still occurs in some games (usually audio related). Tilemap shadow and highlight have not been updated to work with the improved window map and rasters yet, so you might get the wrong shadows or shadows over HUDs. For some games, like Toejam & Earl, you might want to turn S/H off in the video settings.

The game list is an improvement on the file browser from the previous version. It loads the file "gamelist.bin" from the disc, which stores the titles, ROM filenames, SRAM and controller settings, and enabled hacks for the list of games. There's an index option, accessed by pressing X, that lets you jump to a certain letter to navigate the list faster.

A game list can be made using the included "glc" program. The source is located in "src/glparse". There's no precompiled version included, but it's a normal PC program. You don't need a DC dev. setup, just GCC/Clang. Run "make" in that directory to compile it. It has two modes, one mode takes a list of ROMs and generates a text file containing titles from the ROM header as a starting point, and the other mode takes that text file and generates the binary game list file. It's split into two parts so that someone can clean up any issues with the titles and customize save filenames and controller settings.

If there is no gamelist.bin on the disc, the file browser from the last version is used. You can also hold A while pressing Start on the title screen to force the file browser, even if there is a gamelist.bin.

If you run a game from the file browser and create a save file, he filename is generated by a hash of part of the ROM. If you run that game from a game list that specifies a different filename, it won't find the right save. You'll have to rename the save with something like VMU Tool to access it.

I'll explain how the "glc" program works later, I don't have time to fully explain it right now. If someone wants to try to try it out blind, the rough idea is to run "glc -g list.txt [ROMS]" to create the list source file, edit the source to fix bad titles, change save data, or customize controls/hacks, then run "glc -c list.txt" to generate gamelist.bin.

There are a bunch of defines in the Makefile that might be helpful for anyone messing around with it, to enable debugging features or loading gamelist.bin from a PC over dcload for testing. There's a partially working option for aspect correct 256 pixel wide mode, but it only works on VGA at the moment (it uses a custom 640x240 resolution, and I haven't made and tested an NTSC version of the video settings).
Attachments
gens4all v4.7z
(966.17 KiB) Downloaded 173 times
User avatar
Ian Micheal
Developer
Posts: 6009
Joined: Wed Dec 19, 2018 5:23 am
Location: USA
Contact:

Re: Gens4All with Z80 Emulation

Post by Ian Micheal »

Wonderful work TapamN :) never thought i would see rasters working that's for sure.. with PVR hardware acceleration!!
User avatar
CrashMidnick
blackout!
Posts: 140
Joined: Mon Dec 09, 2019 3:26 am
Location: FRANCE

Re: Gens4All with Z80 Emulation

Post by CrashMidnick »

Thank you so much, Xmas before Xmas :)
MastaG
Quad Damage
Posts: 204
Joined: Mon Nov 25, 2013 11:27 pm

Re: Gens4All with Z80 Emulation

Post by MastaG »

Wow TapanM thanks a lot bro !
User avatar
marchegiano
Quad Damage
Posts: 197
Joined: Mon Dec 28, 2020 7:44 pm
Dreamcast Games you play Online: none yet, didn't realize this was around. Figuring it all out, but I still have my DC and games.

Re: Gens4All with Z80 Emulation

Post by marchegiano »

Creating a cdi as I type

Thanks bud!
User avatar
fafadou
Gold Lion
Posts: 1663
Joined: Mon Nov 14, 2016 10:45 am

Re: Gens4All with Z80 Emulation

Post by fafadou »

Many congrats !!
Teuton1379
lithium
Posts: 43
Joined: Fri Sep 25, 2020 4:00 pm

Re: Gens4All with Z80 Emulation

Post by Teuton1379 »

Awesome work. Thanks you. Looking forward to cranking this puppy up.
User avatar
WedgeStratos
blackout!
Posts: 134
Joined: Wed May 06, 2020 11:35 pm
Dreamcast Games you play Online: From AFO to WebTV
Contact:

Re: Gens4All with Z80 Emulation

Post by WedgeStratos »

Aw damn, glad I cleared the Dreamcast desk up then. Alright, time to get to work...
User avatar
Ale DC
undertow
Posts: 26
Joined: Sun Jan 03, 2021 10:14 am
Dreamcast Games you play Online: Quake lll Arena
4x4 Evolution
Phantasy Star Online
Contact:

Re: Gens4All with Z80 Emulation

Post by Ale DC »

Awesome job man, thank you very much !
User avatar
Ro Magnus Larsson
Vagabond
Posts: 797
Joined: Sat Jul 04, 2020 1:34 pm
Dreamcast Games you play Online: Quake 3 arena
Location: Argentina

Re: Gens4All with Z80 Emulation

Post by Ro Magnus Larsson »

Mega Drive Hacks & New Games Collection (2021 Z80 update)

https://dreamcast-talk.com/forum/viewto ... 22&t=14320
Ro Magnus
Argentina.-
Post Reply