Author Topic: IQ's neogeo Tools  (Read 62167 times)

Offline James33

  • Expert
  • *****
  • Posts: 574
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: IQ's neogeo Tools
« Reply #60 on: November 15, 2005, 06:20:28 am »
These are IQ's codes in use .

Code: [Select]
/* Rom decrypt codes */
static void save_dec_p(void)
{
FILE* PROM = fopen("xxx_p_bin", "wb");
if (PROM) {
fwrite(memory_region(REGION_CPU1), 1, memory_region_length(REGION_CPU1), PROM);
fclose(PROM);
}
}

static void save_dec_s(void)
{
FILE* SROM = fopen("xxx_s_bin", "wb");
if (SROM) {
fwrite(memory_region(REGION_GFX1), 1, memory_region_length(REGION_GFX1), SROM);
fclose(SROM);
}
}

static void save_dec_vs(void)
{
FILE* V1ROM = fopen("xxx_v1d.bin", "wb");
if (V1ROM) {
fwrite(memory_region(REGION_SOUND1), 1, 0x800000, V1ROM);
fclose(V1ROM);
}
FILE* V2ROM = fopen("xxx_v2d.bin", "wb");
if (V2ROM) {
fwrite(memory_region(REGION_SOUND1)+0x800000, 1, 0x800000, V2ROM);
fclose(V2ROM);
}
}
« Last Edit: November 15, 2005, 09:47:23 pm by James33 »
IQ Forum Member

Offline Robert

  • MAME Devs
  • *****
  • Posts: 395
  • Karma: +27/-0
    • The MESSUI Place
Re: IQ's neogeo Tools
« Reply #61 on: November 15, 2005, 04:59:45 pm »
Thank you sir.  :)

Offline Robert

  • MAME Devs
  • *****
  • Posts: 395
  • Karma: +27/-0
    • The MESSUI Place
Re: IQ's neogeo Tools
« Reply #62 on: November 23, 2005, 05:35:59 am »
Just wondering....is there some way that you can do a screendump but instead of a picture, you get a grid showing the tile numbers in the particular screen positions? And, how are the c and s roms divided into each tile? And, is there a utility that shows all the possible tiles, you use left/right arrows to scroll through them, while the tile number appears above?
« Last Edit: November 23, 2005, 05:37:37 am by Robert »

Offline iq_132

  • Administrator
  • *****
  • Posts: 3580
  • Karma: +376/-0
  • Just a lion with a sword
    • NeoSource
Re: IQ's neogeo Tools
« Reply #63 on: January 04, 2006, 06:24:40 am »
Posted this a few weeks ago at RomShare...

Quote
This program requires these files:

271-p1.bin   size 4194304 crc b9da070c sha1 1a26325af142a4dd221c336061761468598c4634
271-p2.bin   size 4194304 crc da3118c4 sha1 582e4f44f03276adecb7b2848d3b96bf6da57f1e
271-bios.bin size 262144  crc c521b5bc sha1 c9a5db63523191dedd1b39baab8772f64f09b77f

and will output these files:

271-p1c.bin  size 4194304 crc 530ecc14 sha1 812CF7E9902AF3F5E9E330B7C05C2171B139AD2B
271-p2c.bin  size 4194304 crc fd568da9 sha1 46364906A1E81DC251117E91A1A7B43AF1373ADA


Just put the required files in the same directory as 2k3toa.exe and run it.  The
program will even tell you the steps it is taking to create the output files.

IQ_132

This DOES NOT deal with the p3


Offline iq_132

  • Administrator
  • *****
  • Posts: 3580
  • Karma: +376/-0
  • Just a lion with a sword
    • NeoSource
Re: IQ's neogeo Tools
« Reply #64 on: January 04, 2006, 07:04:15 am »
Quote
These roms have been tested and work fine as input:

268-p1d.bin size 8388608 crc 16c063a9 sha1 5432869f830eed816ee5ed71c7fd39f749d15619

268-p1d.bin size 5242880 crc 5e8f307e sha1 49bcc5d082979ddd63994f36d3ae766d96f85ae9

268-p1d.bin size 8388608 crc 2ecc772d sha1 971db65d11aa98833c494fc2d7657cea702e4caa

268-p1d.bin size 5242880 crc 83270fef sha1 2f18c1a880b42e0faa6396c0fc90bb02bf4d24b1

If your rom isn't listed above, give it a try, it may work
(or not, you never know unless you try ;) ).



Make sure your p1 is named 268-p1d.bin, run ms5pcnv.exe,
and you should get these files:

rom ( name 268-p1cr.bin size 4194304 crc d0466792 sha1 880819933d997fab398f91061e9dbccb959ae8a1 )
rom ( name 268-p2cr.bin size 4194304 crc fbf6b61e sha1 9ec743d5988b5e3183f37f8edf45c72a8c0c893e )


 - IQ_132


PS. Thanks to Halrin for the original mslug5 Px decrypt routine :)


Offline iq_132

  • Administrator
  • *****
  • Posts: 3580
  • Karma: +376/-0
  • Just a lion with a sword
    • NeoSource
Re: IQ's neogeo Tools
« Reply #65 on: January 04, 2006, 03:04:08 pm »
Quote
BootCEn -- Bootleg C Encryptor

The purpose of this tool is to encrypt and decrypt bootleg roms with
scrambled (protected) graphics.  It can deal with the type of scramble
used on:

   Lansquenet 2004
   King of Gladiator
   Samurai Shodown 5 (bl)

   Crouching Tiger, Hidden Dragon 2003
   Matrimelee (bl)
   SNK vs Capcom (bl)

   King of Fighters 2002 (bl)

This program only does one rom at a time, so it's best to use a .bat
to create the roms so that you don't have to convert them one-by-one.

Here's an example:

svcboot
----------------------------------

BootCEn 2 d svc-c1.bin svc-c1d.bin
BootCEn 2 d svc-c2.bin svc-c2d.bin
BootCEn 2 d svc-c3.bin svc-c3d.bin
BootCEn 2 d svc-c4.bin svc-c4d.bin
BootCEn 2 d svc-c5.bin svc-c5d.bin
BootCEn 2 d svc-c6.bin svc-c6d.bin
BootCEn 2 d svc-c7.bin svc-c7d.bin
BootCEn 2 d svc-c8.bin svc-c8d.bin


---------------------------------------------------------------------

If you want to know more commands for this tool, simply run it.
All available commands are listed. ;)

   -IQ

1.1 -- Thanks to Prof. Killjoy for pointing out a bug preventing use.
    - Also, fixed a bug with outputting if a file is not present.


Offline KaNyErO

  • Member
  • ***
  • Posts: 126
  • Karma: +4/-0
Re: IQ's neogeo Tools
« Reply #66 on: January 04, 2006, 05:15:38 pm »
Thanks iq, i would need a little tool.

It´s similar to your s descrambler tool, but you should be able to use the swap as parameter instead of a predefined table when you know the swap but not the protection, for example if i need a new swap 8 like this....

rom = BITSWAP8(rom, 0, 6, 5, 4, 3, 2, 1, 7)

the usage should be

"swap 8 0,6,5,4,3,2,1,7"

The first number should be the swap type, and the second separated by an space from the swap type and separated by , between them is the kind of moves that should be made.

This tool + bswap8 could make very easy to decrypt every new rom using the original + the encrypted, even if the swap was not programed in the tool like it was in S_decrypt

Thanks

Offline prof.killjoy

  • Newbies
  • *
  • Posts: 2
  • Karma: +0/-0
Re: IQ's neogeo Tools
« Reply #67 on: January 10, 2006, 12:06:55 am »
IQ, there is a bug in BootCEn.

if (argc < 6)

should read

if (argc < 5)

and recompile, then it should work as expected.

Offline iq_132

  • Administrator
  • *****
  • Posts: 3580
  • Karma: +376/-0
  • Just a lion with a sword
    • NeoSource
Re: IQ's neogeo Tools
« Reply #68 on: January 10, 2006, 12:35:29 am »
Ah thanks :) I wonder why I didn't notice that before????


Offline prof.killjoy

  • Newbies
  • *
  • Posts: 2
  • Karma: +0/-0
Re: IQ's neogeo Tools
« Reply #69 on: January 10, 2006, 01:07:40 am »
Ah thanks :) I wonder why I didn't notice that before????

No problem :biggrin:
Is it possible to write a tool to deal with the protection of other roms i.e. Vs in lans2004 romset?

Offline iq_132

  • Administrator
  • *****
  • Posts: 3580
  • Karma: +376/-0
  • Just a lion with a sword
    • NeoSource
Re: IQ's neogeo Tools
« Reply #70 on: January 10, 2006, 01:58:28 am »
Quote
bitswap8 is a tool to bitswap files. It can only do bitswaps of 8 bits for now.
You can encrypt and decrypt with the same commands.


Here's an example of how to use it:

bitswap8 246-v1.bin lnsq-v1.bin 0 1 5 4 3 2 6 7

    input_file output_file

Enjoy.

   -IQ


Offline fernando2

  • Newbies
  • *
  • Posts: 6
  • Karma: +0/-0
Re: IQ's neogeo Tools
« Reply #71 on: January 12, 2006, 08:41:20 am »
These are IQ's codes in use .

Code: [Select]
/* Rom decrypt codes */
static void save_dec_p(void)
{
FILE* PROM = fopen("xxx_p_bin", "wb");
if (PROM) {
fwrite(memory_region(REGION_CPU1), 1, memory_region_length(REGION_CPU1), PROM);
fclose(PROM);
}
}

static void save_dec_s(void)
{
FILE* SROM = fopen("xxx_s_bin", "wb");
if (SROM) {
fwrite(memory_region(REGION_GFX1), 1, memory_region_length(REGION_GFX1), SROM);
fclose(SROM);
}
}

static void save_dec_vs(void)
{
FILE* V1ROM = fopen("xxx_v1d.bin", "wb");
if (V1ROM) {
fwrite(memory_region(REGION_SOUND1), 1, 0x800000, V1ROM);
fclose(V1ROM);
}
FILE* V2ROM = fopen("xxx_v2d.bin", "wb");
if (V2ROM) {
fwrite(memory_region(REGION_SOUND1)+0x800000, 1, 0x800000, V2ROM);
fclose(V2ROM);
}
}

this code goes on neogeo.c? i don`t understand how to use it someone could explain how it works please?

thanks for your help

Offline FerchogtX

  • FBA Dev
  • ******
  • Posts: 378
  • Karma: +6/-0
  • FB Alpha Team ;)
    • FB Alpha Plus! Web Site
Re: IQ's neogeo Tools
« Reply #72 on: February 15, 2006, 11:45:35 am »
add that at the end of your codes in desired driver init... maybe there's another place to add that... maybe in the MACHINE DRIVER START function
See ya!!!! :biggrin:

Good and evil co-exist because of the balance, lies are not part of it...
WingLeah character by FerchogtX

FB Alpha Plus! site infos updated, see the latest info clicking on my profile link...

Offline dante999

  • Newbies
  • *
  • Posts: 3
  • Karma: +0/-0
Re: IQ's neogeo Tools
« Reply #73 on: January 30, 2007, 11:51:54 pm »
Hi iq_132
do you have a 'SVC P rom encrypt' tool?
i found 'p_dec'... so i want to encrypt tool
thanks your help!
 
« Last Edit: February 06, 2007, 07:45:30 am by dante999 »

Offline LastResort

  • Newbies
  • *
  • Posts: 1
  • Karma: +0/-0
Re: IQ's neogeo Tools
« Reply #74 on: March 11, 2007, 03:08:48 am »
Yep, ngcd only can load 4 mb of sprites at the same time, because ngcd only hast 4 mb of ram for that pourpose. even if it were possible, Hacking a Program rom to make diferent loads may be a pain in the ass :S.

Im still waiting someone that understand to fix the final romance 2 conversion that was released a long time ago , the program rom must be modified to avoid it hang , i think there could be some calls to bios or cd that do that. Anyone could help  :confused: :confused: :confused:

Can anyone post the website to download the fr2 roms, or post them. I'll take a look at what's wrong with them.

Thanks