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 | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
beneficii

Lakitu
Level: 36

Posts: 480/567
EXP: 299656
For next: 8454

Since: 06-27-04
From: Cordova, TN, USA

Since last post: 14 hours
Last activity: 6 hours
Posted on 09-13-05 05:01 AM Link | Quote
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.
Mega-Dog

Level: 20

Posts: 87/139
EXP: 40051
For next: 2388

Since: 03-15-04
From: Minnesota

Since last post: 8 days
Last activity: 4 days
Posted on 09-13-05 05:08 AM Link | Quote
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

Lakitu
Level: 36

Posts: 481/567
EXP: 299656
For next: 8454

Since: 06-27-04
From: Cordova, TN, USA

Since last post: 14 hours
Last activity: 6 hours
Posted on 09-13-05 05:12 AM Link | Quote
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.
Sokarhacd

Ball and Chain Trooper
Resistance is Futile
You Will Be Assimilated
Hab SoSlI' Quch
Level: 61

Posts: 1553/1757
EXP: 1799888
For next: 76708

Since: 03-15-04

Since last post: 6 days
Last activity: 4 hours
Posted on 09-13-05 05:51 AM Link | Quote
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)


(edited by Dcahrakos on 09-12-05 08:51 PM)
DukeNukem007

Shyguy
Level: 13

Posts: 77/90
EXP: 9247
For next: 1020

Since: 07-08-05
From: Quahog, RI

Since last post: 18 days
Last activity: 12 hours
Posted on 09-13-05 06:21 AM Link | Quote
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.
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 7035/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 09-13-05 06:42 AM Link | Quote
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.
Gideon Zhi

Red Tektite
Level: 13

Posts: 78/79
EXP: 10265
For next: 2

Since: 04-02-05

Since last post: 47 days
Last activity: 2 days
Posted on 09-13-05 08:40 AM Link | Quote
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
FloBo

Koopa
Level: 17

Posts: 90/101
EXP: 20723
For next: 4020

Since: 09-11-04

Since last post: 3 days
Last activity: 13 hours
Posted on 09-13-05 12:21 PM Link | Quote
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^^
DahrkDaiz

Red Super Koopa

Acmlm's Mosts 2005
Best ROM Hacker

Level: 45

Posts: 831/885
EXP: 643520
For next: 16644

Since: 03-15-04
From: K-Town

Since last post: 4 hours
Last activity: 4 hours
Posted on 09-13-05 06:25 PM Link | Quote
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.
Kyoufu Kawa
I'm not bad. I'm just drawn that way.
Level: 70

Posts: 2296/2481
EXP: 3008456
For next: 7355

Since: 03-19-04
From: Catgirl Central

Since last post: 14 hours
Last activity: 13 hours
Posted on 09-13-05 06:32 PM Link | Quote
I love 'em. I use 'em to compile installers for Unkillable, and used them to rebuild, pack and copy Catnip.
midget35

Paragoomba
Level: 13

Posts: 56/70
EXP: 8877
For next: 1390

Since: 03-17-05

Since last post: 3 days
Last activity: 14 hours
Posted on 09-13-05 06:57 PM Link | Quote
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
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 7057/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 09-14-05 12:43 AM Link | Quote
Sure, but I don't know of any browser that would just execute the file like that. It'd be horribly insecure.
midget35

Paragoomba
Level: 13

Posts: 57/70
EXP: 8877
For next: 1390

Since: 03-17-05

Since last post: 3 days
Last activity: 14 hours
Posted on 09-14-05 01:17 AM Link | Quote
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.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
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.020 seconds.