Page 1 of 1
.inp file size = time???
Posted: Wed Jun 22, 2005 11:44 pm
by TRB_MetroidTeam
1 - The PLAYED TIME of one .INP is directly related to the FILE SIZE of the same???
2 - Is it related to "how many info / buttons pressed / etc...", or not? (I think is NOT)
3 - Inputs recorded in different WolfMAME versions, with the same playtime, have the same file size? (I am almost sure NOT)
4 (Off-topic) - I know is possible to create "folder" to select wich games I want... and is possible to create more than one folder. How is "sorted" this folders in the WolfMAME? Alphabetically? I want to go up and go down with some folders, but I am not sure how it is sorted. Maybe the date of the creation of the .ini file in the "folders" folder???
Re: .inp file size = time???
Posted: Wed Jun 22, 2005 11:55 pm
by LN2
TRB_MetroidTeam wrote:1 - The PLAYED TIME of one .INP is directly related to the FILE SIZE of the same???
Yes. A game that takes 5 minutes to play versus 10 minutes to play would have twice as many frames of input data to store thus the resulting inp file essentially double the size. It's not exactly double cuz of headers etc.
2 - Is it related to "how many info / buttons pressed / etc...", or not? (I think is NOT)
yep...it's not. The input data for each frame is saved...whether you are actively pressing any buttons or not. Some analog games might not follow this though...but not sure.
3 - Inputs recorded in different WolfMAME versions, with the same playtime, have the same file size? (I am almost sure NOT)
well...for many versions the inp file format is changed so the #bytes stored per frame has changed...thus the inp file size versus time has changed.
4 (Off-topic) - I know is possible to create "folder" to select wich games I want... and is possible to create more than one folder. How is "sorted" this folders in the WolfMAME? Alphabetically? I want to[/quote]
Yes, you can have many folders wolfmame will scan for available games to play.
I have not figured out if there is a way to actually show your custom folders within the GUI though.
To do the first thing I mentioned, in the GUI select "Options" then "Directories..." and click the "Insert" button. Select a folder that you want to add.
Once done..that and any other folders you add are all within the search path list for wolfmame to search for rom files.
Note...I am still using 0.78...so am assuming the above is still in the same locations in the GUI in the latest wolfmame.
Posted: Thu Jun 23, 2005 12:20 am
by mahlemiut
A MAME inp stores the input port data (typically controls and DIP switches) as per that defined by the relevant driver. Each port is 32-bit (or 16-bit prior to 0.84u4), and MAME supports up to 30. MAME always writes the maximum amount of ports each frame (ie: 120 bytes per frame for 0.84u4 and later). Analogue ports, while also defined in the driver's input port structure like digital ports, are constantly updated whenever the game reads the port, and can be more than once a frame. These will add another 4 bytes for each port as it is read to the end of each frame. Of course, WolfMAME adds another 4 bytes for the speed of each frame.
For any game that doesn't have analogue ports, you can figure out the length by subtracting 32 bytes from the size for the header, and dividing the result by the game's framerate (usually 60fps, but this can vary, check the game information screen) for the number of seconds the inp runs for.
Re: .inp file size = time???
Posted: Thu Jun 23, 2005 12:34 am
by TRB_MetroidTeam
1, 2 and 3 are ok. Thank you!
LN2 wrote:Yes, you can have many folders wolfmame will scan for available games to play.
Sorry... I think I wrote with bad words...
In other words... in the .EXE path, have a folder named "folder". If I create a file into this folder, ie: TRB.ini, in the MAME, in the Folder List ("All Games", "Available",... "Samples"), after Samples will appear the new customized folder: "TRB", and I can select wich games I want into this folder. I think I was a lot more CLEAR now.
My question is "how to organizate / sort this customized folders?".
Thank you in advance.
Posted: Thu Jun 23, 2005 12:48 am
by TRB_MetroidTeam
Thanks for the technical help Barry!
In the current Wolf version, with only digital inputs, and 60Hz game, 1 second is...
32 + [(120 + 4) * 60)] = 7472 b. Is it?
PS.: Barry, I am not a hacker trying to break your WolfMAME, don't worry about it!

Hehehe, I know to it would be necessary a lot more that this "basic" knowledge, hehehe.
Posted: Thu Jun 23, 2005 1:30 am
by mahlemiut
Sounds right to me.
Posted: Thu Jun 23, 2005 9:12 pm
by TRB_MetroidTeam
Thank you for the Math and programing knowledge

Posted: Thu Jun 23, 2005 9:14 pm
by TRB_MetroidTeam
Hmm... just now in my mind...
Which MAME version change the .cfg system to "CFG10" system???
I am trying to organizate my WolfMAME folder, including and "installing" all the versions, at least the Wolf verions, and this answer will help me...

Re: .inp file size = time???
Posted: Wed Jun 29, 2005 1:37 pm
by TRB_MetroidTeam
Still with doubts:
TRB_MetroidTeam wrote:In other words... in the .EXE path, have a folder named "folder". If I create a file into this folder, ie: TRB.ini, in the MAME, in the Folder List ("All Games", "Available",... "Samples"), after Samples will appear the new customized folder: "TRB", and I can select wich games I want into this folder. I think I was a lot more CLEAR now.
My question is "how to organizate / sort this customized folders?".
TRB_MetroidTeam wrote:Which MAME version change the .cfg system to "CFG10" system???
I am trying to organizate my WolfMAME folder, including and "installing" all the versions, at least the Wolf verions, and this answer will help me...