Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,475,942
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-24-24 05:32 AM
Guest: Register | Login

0 users currently in ROM Hacking | 2 guests

Main - ROM Hacking - Desktop Shortcut Target to help ROM Hackers New thread | New reply


elbobelo
Posted on 02-27-13 09:32 PM (rev. 6 of 02-28-13 04:37 PM) Link | Quote | ID: 153487


Red Koopa
Level: 27

Posts: 104/124
EXP: 107809
Next: 8350

Since: 08-16-07

Last post: 2166 days
Last view: 608 days
Hey guys,

I just created a shortcut to my ROM with some added features.

The Shortcut will

Open the ROM
Make a Copy of the ROM and place it in a BACKUP folder
Make a copy of the ROM every 20 minutes for as long as the CMD window is open
or Make a Copy of the ROM when you press ENTER in the CMD window.

This helps me keep properly dated backups of my game whenever I open it to hack. And allows me to recover from nasty memory leaks that reduce my game to 0kb.

Here's the steps on how to make one for yourself.


1. Right click on the desktop and create a new shortcut
2. goto the shortcut properties
3. copy the code below into the TARGET section

%COMSPEC% /V:ON /C "SET M=8-Eyes to Castlevania - Scroll Demo&Start "" "!M!.nes"&FOR /l %X in (1,0,2) DO (SET /A R=%TIME:~0,2%%2&CLS&&ECHO F | XCOPY "!M!.nes" "%CD%\BACKUPS\!M!\!M!_%date:~10%_%date:~4,2%_%date:~7,2%_!R!.nes" /F /Y&&TIMEOUT 1200)"

4. replace '8-Eyes to Castlevania - Scroll Demo' with the name of YOUR rom minus ".nes" of course
5. change the path in the PATH section to the path of your rom.
6. change the RUN section to "Minimized"
7. create a cool icon to replace the CMD one.

note: make sure your ROMs have a default program assigned to them

------------------------------------------------------------------------------------------
Here's one I like a lot better.

%COMSPEC% /V:ON /C "SET M=8-Eyes to Castlevania - Scroll Demo.nes&Start "" "!M!"&FOR /l %X in (1,0,2) DO (SET /A R+=1&ECHO F | XCOPY "!M!" "%CD%\BACKUPS\!M:~0,-4!\(!date:~10!_!date:~4,2!_!date:~7,2! #!R!) !M!" /Y&CLS&TITLE #!R! !TIME!&TIMEOUT 999)"

This will make a back-up once opened and every 999 seconds thereafter
the back-ups are sequenced with no limit
The sequence number and time of last backup are displayed in the Title of the CMD window
The Copy is now in this format
(2013_02_28 #1) 8-Eyes to Castlevania - Scroll Demo.nes

and you now put in the full ROM name for M=, the code will truncate the extension when adding the backup folder.

This will also work for any file on your computer that you need to make regular backups of when you work on them.

Does anyone find this useful?

Main - ROM Hacking - Desktop Shortcut Target to help ROM Hackers New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.018 seconds. (339KB of memory used)
MySQL - queries: 37, rows: 57/58, time: 0.015 seconds.