Author Topic: batch files for automatic savegame backup and rom flashing with madmonkey neocmd  (Read 6600 times)

0 Members and 1 Guest are viewing this topic.

Offline sanni

  • Moderator
  • Hero Member
  • *****
  • Posts: 502
Hi,

today I wrote a little cmd batchfile to use with madmonkeys neocmd programmer and the Neo N64 Myth Cart.
Hopefully madmonkey will support the N64 soon, and until then you can have fun with this  ::sm-16.gif::

* supports both Goodset and no-intro
* automatic region fix
* automatic save type setting
* automatic cic setting
* automatic flashing
* since it is only a *.bat you can easily edit it

***USE AT OWN RISK, IT WILL MOST LIKELY EAT ALL YOUR CHOCOLATS***

README.TXT
Code: [Select]
BATCHFILE TO FLASH NEO N64 MYTH CART USING MADMONKEY PROGRAMMER
***************************************************************

***This is only for testing purposes until madmonkey adds N64 support to his excellent programmer GUI***


How to use
**********

1) Install libusb-win32-filter-bin-0.1.12.2

2) Edit REGION.INI to set region for PALadin
- If PAL, PALadin patches all roms to PAL
- If NTSC, PALadin patches all roms to NTSC
- If NONE, PALadin will not run


3a) Copy your two roms that you want to flash to the "put_roms_here" directory
3b) if you only want to flash one game copy only one rom to the "put_roms_here" directory

4) Run flash.bat and wait for some time, about 12 minutes


INCLUDED FILES AND DIRECTORYS:
******************************

[INI] Directory containing all Rom ini's
- 4KB.INI games with 4KB Save Chip are listed here
- 16KB.INI games with 16KB Save Chip are listed here
- 6101.INI games with 6101 CIC Chip are listed here
- 6103.INI games with 6103 CIC Chip are listed here
- 6105.INI games with 6105 CIC Chip are listed here
- 6106.INI games with 6106 CIC Chip are listed here
- FLASH.INI games with FLASH Save Chip are listed here
- SRAM.INI games with SRAM Save Chip are listed here

[put_roms_here] empty directory, this is where you put the roms you want to flash in

flash.bat the batch file doing all the work

hexciting Hexeditor from http://sourceforge.net/projects/hexciting/
it patches the save and cic information to the menu

libusb-win32-filter-bin-0.1.12.2 from http://sourceforge.net/projects/libusb-win32/files/
Needs to be installed for neocmd

menu1.bin Menu for the Neo2 cart, it was extracted from my Neo2 cart after
flashing 1 game with Neo Ultra Menu

menu2.bin Menu for the Neo2 cart, it was extracted from my Neo2 cart after
flashing 2 games with Neo Ultra Menu

neocmd.exe madmonkey superb programmer
http://www.neoflash.com/forum/index.php/topic,5914

PALadin.exe great programm to region fix games, made by Hotblack from dextrose

README.txt this file

REGION.INI ini file where you edit the region of your N64 console into
for example replace "NONE" with "NTSC" if your N64 console is NTSC

ucon64.exe best programm to make changes to the rom
here used to enlarge all roms to 32MB and also to convert to v64 format
http://ucon64.sourceforge.net/

zlib.dll dll needed by ucon64



****************
batchfile 2010 sanni

But always remember I can't code, so if some aspects of this are looking silly please forgive me :-\
« Last Edit: March 11, 2010, 03:32:57 AM by sanni »

Offline Dr.neo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3826
Re: batch file to automaticly flash Neo N64 Myth with madmonkey neocmd
« Reply #1 on: March 09, 2010, 06:22:21 PM »
many thanks, sanni!  ~sm-37.gif~
In my world,have 0 and 1 only ......Matrix World......

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2203
Re: batch file to automaticly flash Neo N64 Myth with madmonkey neocmd
« Reply #2 on: March 10, 2010, 01:06:10 AM »
That's very useful actually!  ::sm-29.gif::

Quote
But always remember I can't code, so if some aspects of this are looking silly please forgive me

Its not that important to be able to program in order to contribute to a community 8)

Offline stefan_iro

  • Full Member
  • ***
  • Posts: 218
  • It´s a me, Mario
Re: batch file to automaticly flash Neo N64 Myth with madmonkey neocmd
« Reply #3 on: March 10, 2010, 01:27:22 AM »
Its not that important to be able to program in order to contribute to a community 8)

YES, and sanni hast contributed a lot to the community the last few weeks.
Many thanks!  ~sm-43.gif~
-----------------------------------
8bit & 16bit
the golden age of videogames

Offline sanni

  • Moderator
  • Hero Member
  • *****
  • Posts: 502
Re: batch file to automaticly flash Neo N64 Myth with madmonkey neocmd
« Reply #4 on: March 11, 2010, 03:10:28 AM »
Thank you very much but it would not be possible without madmonkey's excellent coding skills.

If Dr. Neo reads this, would it be possible to send madmonkey a Neo N64 Myth Cart? That would make things so much easier because at the moment he codes "blind" since he can't test his work with a Neo N64 Myth Cart.

Here is another release  ;D
It reads out the savegames using madmonkeys neocmd and then converts and renames them accordingly  ~sm-42.gif~
Code: [Select]
BATCHFILE TO READ SAVEGAMES FROM NEO N64 MYTH CART USING MADMONKEY PROGRAMMER
*****************************************************************************

***This is only for testing purposes until madmonkey adds N64 support to his excellent programmer GUI***


How to use
**********

1) Install libusb-win32-filter-bin-0.1.12.2

2) Run backupsaves.bat

3) look in folder "saves"


INCLUDED FILES AND DIRECTORYS:
******************************

[saves] empty directory for backed up saves

backupsaves.bat the batch file doing all the work

chsize.exe changes filesize, found it at http://www.dmares.com/maresware/html/chsize.htm

hexciting Hexeditor from http://sourceforge.net/projects/hexciting/
it reads savetype and name from the menu

Hjsplit http://www.freebyte.com/hjsplit/#classic, here used to split n64sram

libusb0.dll part of libusb

libusb-win32-filter-bin-0.1.12.2 from http://sourceforge.net/projects/libusb-win32/files/
Needs to be installed for neocmd

n64convert converter wrote by madmonkey, converts to eep

neocmd.exe madmonkey superb programmer
http://www.neoflash.com/forum/index.php/topic,5914

README.txt this file

ucon64.exe best programm to make changes to the rom
here used to convert flash and sram saves
http://ucon64.sourceforge.net/

zlib.dll dll needed by ucon64


**********
2010 sanni

Download
« Last Edit: March 11, 2010, 03:35:40 AM by sanni »

Offline madmonkey

  • Neo MOD
  • Full Member
  • *
  • Posts: 178
I'm ordering the cart, so there is no need to worry :)
everything takes time, I will update the app tomorrow.
I have to thank you for you work here, because without your batch file, it would probably took another month or two to get there :)

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2203
Good news!
By the way , madmonkey , you can use my plugin if you wish to add cic/save type detection and patching support  ::sm-24.gif:: .
The core is super portable!  ~sm-42.gif~

Offline madmonkey

  • Neo MOD
  • Full Member
  • *
  • Posts: 178
I tried to compile your plugin with mingw, and it compiled without any problems :)
I'll post in your thread - basically I need a subset of the functionality of your plugin, for now it will be compiled into the app, but I can create a plugin interface in the future revisions.
« Last Edit: March 12, 2010, 05:03:06 PM by madmonkey »