Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
1 user currently in Rom Hacking: hukka | 2 guests
Acmlm's Board - I2 Archive - Rom Hacking - The usefulness of .bat files in backing up your ROMs
  
User name:
Password:
Reply:
 

UserPost
midget35
Posts: 57/70
Thanks for replying!

I'm surprised you think there'd be a browser issue. It would effectively only have to drag 'n drop the zipped rom to the emu. Once one exits the emu, the user returns to the browser, no?

Either way I'd be very grateful if someone could suggest a script that might accomplish this, or show me in the right direction.

Thanks again.
HyperLamer
Posts: 7057/8210
Sure, but I don't know of any browser that would just execute the file like that. It'd be horribly insecure.
midget35
Posts: 56/70
This may make no sense at all-

but! --- is it possible to create a bat file which takes a rom from one directory and loads it into an emu in another directory?

I only ask because I've always wanted to create an HTML frontend which starts games w/ just one click (w/ hyperlinks to bat files inside tables).

Thx
Kyoufu Kawa
Posts: 2296/2481
I love 'em. I use 'em to compile installers for Unkillable, and used them to rebuild, pack and copy Catnip.
DahrkDaiz
Posts: 831/885
I use batch files to help me synchronized the two different roms that I use to hack Luigi vs Mario. One ROM has only level changes for Mario's side and a few basic ASM changes. The other ROM has Luigi's side of the hack and has all the updated changes. With the use of a batch file, I can move over certain data from Mario's side (map, level, palette, etc) over to the master ROM with Luigi's side.

So yes, batch files are useful for backing up ROMs and other things for certain hacking projects.
FloBo
Posts: 90/101
Batch-files are most useful if you're translating a rom.

I usually create a bat-file that backs up my old rom, starts my script-inserter, backs up the modified rom and finally starts the modified rom in the emulator... saves veeeery many clicks^^
Gideon Zhi
Posts: 78/79
I love batches. Use 'em to dump text, insert scripts and assemble code, so I don't have to bother with bringing up a command window more often than I have to. Backing up for me, though, is as simple as right-click-dragging a tiny ways and selecting "Copy Here" from the popup menu :p
HyperLamer
Posts: 7035/8210
Batch files r teh r0x.

I like that IPS idea, but I don't know of any IPS creators that work entirely from the command line... *program idea!* I just keep RARed copies of the ROM at various stages using WinRAR's command line utility.

@echo off
echo Backing up ROM...

mkdir "F:\Other Stuff\Backup\temp"

copy emerald.gbc "F:\Other Stuff\Backup\temp" > NUL
cd "F:\Other Stuff\Backup\temp"

C:\progra~1\winrar\winrar.exe a -agDD-MM-YYYY.HH-MM-SS.NN PKEMERALD- *.*
move *.rar .. > NUL
cd ..
del /f /q temp\*.*
rd temp

echo Done.
pause


Then in F:\Other Stuff\Temp I end up with a file like PKEMERALD-26-04-2005.16-58-00.01.rar which contains a backup from April 26th 2005 at 4:58:00 PM. The same script, with some minor tweaks, is used for my source codes as well. Then every now and then I dump the most recent backup onto a disk or FTP server in case the HD crashes.
DukeNukem007
Posts: 77/90
I prefer to just keep incremental .ips files, along with an original copy of the ROM. i.e. SMILE still crashes the rom if you edit some rooms the wrong way (i.e. Tourian,) so in my editing I keep the original "Super Metroid (JU) [!].smc" plus an .ips that doesn't crash and has updated work.
Sokarhacd
Posts: 1553/1757
Yeah. batch files are awesome, I use them for backing up some programming projects, just one click and its all backed up.(Well technically 2, since you need to double click)
beneficii
Posts: 481/567
Originally posted by Mega-Dog
Batch files are quite old...I have been using them for over 10 years...also I do think this belongs in a nother Fourm...


I know. I didn't know how many people used them; when I started using them they seemed so great, so I thought some people might appreciate my passing the info along.

I put this here because I was discussing backing up ROMs, which is relevant to ROM hacking.
Mega-Dog
Posts: 87/139
Batch files are quite old...I have been using them for over 10 years...also I do think this belongs in a nother Fourm...
beneficii
Posts: 480/567
I'm not sure how many have made use of the .bat files; the way the icon looks makes it sort of forbidden. It's actually quite simple; a .bat file seems to be simply a Command Prompt script. For example, if you tend to have to do this on the command prompt alot:

del c:\files\myfile.myf

followed by

copy c:\files2\myfile.myf c:\files\myfile.myf

It can get annoying typing it out over and over again, or having to go to Explorer to do it visually. This is where the magic of .bat files comes in. You can simply enter the statements in the order you want them executed dileneated by a return carriage:

del c:\files\myfile.myf
copy c:\files2\myfile.myf c:\files\myfile.myf

Open up Notepad, type the statements like that and then save as a .bat file. When you want to execute the .bat file, just open it up from the operating system and you can watch it go!

I wonder how many people know this. I recently discovered it by accident.
Acmlm's Board - I2 Archive - Rom Hacking - The usefulness of .bat files in backing up your ROMs


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.004 seconds.