NEO4ALL for GDEMU

Moderators: pcwzrd13, deluxux, VasiliyRS

User avatar
MoeFoh
Uber
Posts: 1062
Joined: Sun Nov 08, 2020 5:32 am

Re: NEO4ALL for GDEMU

Post by MoeFoh »

I've made a few titles in all their glorious BGM that work under NEO4GDEMU.

Metal Slug for NEO4GDEMU.7z (517.8MB)
https://mega.nz/file/ZVAkFTYS#QT0vZmpto ... ffKfSqUKX8

Metal Slug 2 for NEO4GDEMU.7z (378.3MB)
https://mega.nz/file/lQ5S2b7a#Axgm5Qy-A ... RLVNq1CWrU

King of Fighters '98 for NEO4GDEMU.7z (512.2MB)
https://mega.nz/file/NEBnhAhQ#iOukZbSX8 ... JHIjHT438c

Last Hope for NEO4GDEMU.7z (160.4MB)
https://mega.nz/file/ddBSxTLK#YoBLK88H1 ... p53CF4lm1A

Neo Turf Masters for NEO4GDEMU.7z (280.6MB)
https://mega.nz/file/AIoxQYjQ#WpFhVcG3c ... EF-3cB169o

Bust-a-Move for NEO4GDEMU.7z (1.3MB)
https://mega.nz/file/NVh1HYpA#Mogen5Xpz ... 2PVUQmWVXk


If you have made any titles that work, let me know.

Summary:
-Working Titles:
Metal Slug
Metal Slug 2
King of Fighters '98
Last Hope
Neo Turf Masters
Bust-a-Move

-NON-Working Titles:
2020 Super Baseball
Aero Fighters 3
Art of Fighting
Baseball Stars 2
Bang Bang Busters
Fatal Fury - The Battle of Fury
King of Fighters '94
League Bowling
Super Sidekicks
Viewpoint

I've yet to see a working title that has "MACTOPIX" in the .IMG file. MACTOPIX is the pre-mastering software. "NON-Working" means it does not show up when 'Select Game' is clicked from NEO4GDEMU.
Last edited by MoeFoh on Thu Sep 14, 2023 4:17 am, edited 11 times in total.
“The problem with the world is that the intelligent people are full of doubts, while the stupid ones are full of confidence.”
- Charles Bukowski
ilyas
Fancy Pants Admin
Posts: 1
Joined: Thu Apr 08, 2021 5:49 am

Re: NEO4ALL for GDEMU

Post by ilyas »

MoeFoh wrote:I've made a few titles in all their glorious BGM that work under NEO4GDEMU.

Metal Slug for NEO4GDEMU.7z (517.8MB)
https://mega.nz/file/ZVAkFTYS#QT0vZmpto ... ffKfSqUKX8

Metal Slug 2 for NEO4GDEMU.7z (378.3MB)
https://mega.nz/file/lQ5S2b7a#Axgm5Qy-A ... RLVNq1CWrU
Great! I miss them for my collection, now I only miss the Art of Fighting titles. I also miss Fatal Fury 1 and Fatal Fury 2, I would like to make them myself but I have some difficulties.
zerodark
Fancy Pants Admin
Posts: 2
Joined: Thu Apr 08, 2021 11:39 am
Dreamcast Games you play Online: None
Contact:

Re: NEO4ALL for GDEMU

Post by zerodark »

Thanks for sharing!
User avatar
MoeFoh
Uber
Posts: 1062
Joined: Sun Nov 08, 2020 5:32 am

Re: NEO4ALL for GDEMU

Post by MoeFoh »

ilyas wrote:
MoeFoh wrote:I've made a few titles in all their glorious BGM that work under NEO4GDEMU.

Metal Slug for NEO4GDEMU.7z (517.8MB)
https://mega.nz/file/ZVAkFTYS#QT0vZmpto ... ffKfSqUKX8

Metal Slug 2 for NEO4GDEMU.7z (378.3MB)
https://mega.nz/file/lQ5S2b7a#Axgm5Qy-A ... RLVNq1CWrU
Great! I miss them for my collection, now I only miss the Art of Fighting titles. I also miss Fatal Fury 1 and Fatal Fury 2, I would like to make them myself but I have some difficulties.
Only certain titles are working. I PM'd megavolt85 yesterday, hopefully he has time to take a look at the code.

I'll look and see if any AOF or FF titles can be converted.
“The problem with the world is that the intelligent people are full of doubts, while the stupid ones are full of confidence.”
- Charles Bukowski
User avatar
megavolt85
Developer
Posts: 1862
Joined: Wed Jan 31, 2018 4:14 pm

Re: NEO4ALL for GDEMU

Post by megavolt85 »

I'll leave it here in case someone wants to make a native application for windows

Code: Select all

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <stdarg.h>
#include <stdint.h>
#include <sys/stat.h>

static char text_buffer[2048];
static char buf[256];
static char header[8] = { 0x01, 0x43, 0x44, 0x30, 0x30, 0x31, 0x01, 0x00 };
static char check_str[32] = "APPLE COMPUTER, INC., TYPE: 0002";

void usage(char *text)
{
	printf ("Usage\n"
			"\t%s disk_image.img text_file.txt\n\tMaximal len 32 chars\n", text);
}

int main(int argc, char *argv[])
{
	if (argc < 2)
	{
		usage(argv[0]);
		return -1;
	}
	
	int i, img, txt;
	
	img = txt = 0;
	
	for (i = 1; i < argc; i++)
	{
		if ( !img && !strncasecmp(&argv[i][strlen(argv[i])-4], ".img", 4) )
		{
			img = i;
		}
		else if ( !txt && !strncasecmp(&argv[i][strlen(argv[i])-4], ".txt", 4) )
		{
			txt = i;
		}
	}
	
	if (!img)
	{
		printf("ERROR need IMG\n");
		return -1;
	}
	
	if (!txt)
	{
		printf("ERROR need TXT\n");
		return -1;
	}
	
	FILE *f, *fi;
	struct stat st;
	uint8_t *buf;
	
	if (!(f = fopen(argv[img], "r+b")))
	{
		printf("Can't open %s\n", argv[img]);
		return -1;
	}
	
	if (txt)
	{
		stat(argv[txt], &st);
		
		if (st.st_size > 2048)
		{
			printf("ERROR: very big text file\n");
			goto ret_err;
		}
		
		if (!(fi = fopen(argv[txt], "rb")))
		{
			printf("ERROR: can't open %s\n", argv[txt]);
			goto ret_err;
		}
		
		fread(text_buffer, 1, st.st_size, fi);
		fclose(fi);
		
		fseek(f, 16, SEEK_SET);
		fwrite(text_buffer, 1, st.st_size, f);
		
		fseek(f, 0x9310, SEEK_SET);
		fread(buf, 1, 8, f);
		
		if (!memcmp(buf, header, 8))
		{
			fread(buf, 1, 32, f);
			
			if (strncmp(buf, check_str, 32))
			{
				fseek(f, 0x9318, SEEK_SET);
				fwrite(check_str, 1, 32, f);
			}
		}
		else
		{
			printf("WARNING: not standart image, send megavolt85 for analize\n");
		}
	}
	
	printf("All done\n");
ret_err:
	
	fclose(f);
	
	return 0;
}
User avatar
MoeFoh
Uber
Posts: 1062
Joined: Sun Nov 08, 2020 5:32 am

Re: NEO4ALL for GDEMU

Post by MoeFoh »

What I found out:

1. With IMG_insert.exe, there should be no spaces in either filename. Megavolt85 just posted the source code. There could be an issue with Windows 10 when running this program. A recent update to Windows 10 broke BootDreams.

2. Name of title not showing up after selecting 'Select Game' issue.
If "MACTOPIX" is in the .IMG then this happens. MACTOPIX is the pre-mastering software. Not sure why and I have no solution. Maybe there is something weird about the file system on the CD.
Last edited by MoeFoh on Sun Apr 11, 2021 7:20 pm, edited 3 times in total.
“The problem with the world is that the intelligent people are full of doubts, while the stupid ones are full of confidence.”
- Charles Bukowski
User avatar
Anas4fire
dark night
Posts: 55
Joined: Wed Nov 11, 2020 2:49 am
Dreamcast Games you play Online: King of fighters 99 Evolution

Re: NEO4ALL for GDEMU

Post by Anas4fire »

Ian Micheal wrote:Bootdreams was fixed https://github.com/TItanGuy99/BootDreams btw
Thanks!
jcv59140
Fancy Pants Admin
Posts: 1
Joined: Thu May 18, 2023 7:16 pm

Re: NEO4ALL for GDEMU

Post by jcv59140 »

Everything works but i have a problem. NEO4GDEMU seems run at 50Hz, it's normal ?
User avatar
deluxux
Black Mesa
Posts: 1405
Joined: Sat Jul 02, 2016 7:00 am

Re: NEO4ALL for GDEMU

Post by deluxux »

bump
Post Reply