Main > Main Forum

BYOAC High Score Comp #1-40 all time champs - Got a throw down score?

<< < (12/25) > >>

RobotronNut:

--- Quote from: ahofle on December 17, 2009, 11:30:54 pm ---You are supposed to delete nvram and hi score files (if your version of mame supports them) before you start recording and also before you playback the inp.  That is the best way to make sure the game behaves exactly the same for the playback.  As mentioned, 'randomness' really doesn't exist in computing and is based on 'seeds' (numbers) -- arcade games used things like the hi-score table to seed the randomness, so if you try to playback an inp with a different hiscore table (for example), the enemies may appear in totally different places and you will look like you are 'wandering around like an idiot' when you playback hehe.
You also should use the same exact version of MAME for recording and playback (ie you can't record in MAME 0.35 and expect it to playback in MAME v.035.

--- End quote ---

ahofle - i've been assuming that if you have the following 5 pieces, you can reproduce the game:
        mame version
        name of rom (e.g. "robotron")
        robotron.inp
        robotron.cfg
        robotron.nv
does that sound correct? i know that is sufficient for me to reproduce games on my machine, but i'm not sure it's sufficient for someone else to reproduce my games on their system.

(+_+) - i tried your .inp and got the "wandering around" effect. there was obviously something out of sync. are you using mame 0.133?  you can just always delete your .nv file, as ahofle suggested, or you can do what i do:

in your mame directory, make a folder named SavedConfig.
copy nvram\robotron.nv SavedConfig\robotron.nv
copy cfg\robotron.cfg SavedConfig\robotron.cfg

make a file named robotron_capture.bat:
    copy SavedConfig\robotron.nv nvram\robotron.nv
    copy SavedConfig\robotron.cfg cfg\robotron.cfg
    mame -skip_gameinfo -record robotron.inp robotron

make a file named robotron_playback.bat:
    copy SavedConfig\robotron.nv nvram\robotron.nv
    copy SavedConfig\robotron.cfg cfg\robotron.cfg
    mame -skip_gameinfo -playback robotron.inp robotron

now to play a game and capture an inp file: just double-click robotron_capture.bat.
when sharing an inp file, include also the 2 files from SavedConfig.
to playback the current inp file,  just double-click robotron_playback.bat.

(+_+):
RobotronNut,

I noticed that there was no mention of delete as per ahofle's input.

I have attached the .nv and .cfg files.

Mame Version - 0.133
Rom Name - Robotron

I hope that does the trick.

Thanks you guys for your help!

(+_+):
I have been toying around with the batch file idea based on the marp version below and what you guys said previously and what I've noticed is if you move these files, you will constantly be having to tweak your controls and difficulty settings before you play every time. I'd like to come up with a bat file that archives and time stamps your games, but I need to have a better understanding first so I can do it right.

The question I have is if you were to zip up your game inp, cfg, nv and hi (if applicable) files and pass those along to the person who wants to view them and they replace their versions accordingly, would that work also? I'm new to the recording business, so I may be missing the boat completely but I'd really like to have an understanding of the ins and outs.

Thanks.

rem usage: record <gamename> [ other MAME options ]

move hi\%1.hi hi\%1.tmp
move cfg\%1.cfg cfg\%1.tmp
move nvram\%1.nv nvram\%1.tmp
mame %1 -record %1 %2 %3 %4 %5 %6
move hi\%1.tmp hi\%1.hi
move cfg\%1.tmp cfg\%1.cfg
move nvram\%1.tmp nvram\%1.nv

ahofle:
I think it works if you pass the original pre-recording hi and nvram along, but it's just easier to delete them before you start recording just to take them out of the equation (basically it's like a fresh boot up of the game).  If you zip up the nvram AFTER your recording, it is already modified and the recording will be useless (you need the pre-recording nvram).  I don't think the cfg file should affect anything as it's just MAME input related.

RobotronNut:

--- Quote from: ahofle on December 18, 2009, 01:52:08 pm ---I think it works if you pass the original pre-recording hi and nvram along . . .

--- End quote ---

that's what the bat files i posted above do. every time you record or play back, you start from the exact same saved cfg and nv files. perhaps the cfg is not necessary, as you suggest. the advantage of this over just removing the files is that changes you've made (like setting the difficulty in robotron) are preserved, so you don't have to re-make them every time you capture an inp.

i'm not familiar with the hi directory or .hi files. i don't seem to have them in any of the versions of mame i have installed (0.103, 0.121, 0.133). i assume they're for the "high score hack", which i suppose you have to explicitly enable, which i haven't. my understanding is that the high score hack peeks into memory and scrapes out high score info, which it saves in files. does it also copy that info back into memory from the files? if not, then it could be safely ignored.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version