Nippon Iche DAT: Difference between revisions
imported>Mr.Mouse No edit summary |
imported>Ikskoks No edit summary |
||
| (10 intermediate revisions by 3 users not shown) | |||
| Line 6: | Line 6: | ||
format_specifications=None written yet.| | format_specifications=None written yet.| | ||
notes=All resources in the DAT archive are referred by a file called sector.h. | | notes=All resources in the DAT archive are referred by a file called sector.h. | | ||
bms_script=<bms ext="DAT" version="1.0" author="Mr.Mouse" platforms="'PS2'" games="'Nippon | bms_script=<bms ext="DAT" version="1.0" author="Mr.Mouse" platforms="'PS2'" games="'Nippon Ichi'" silence="no" verbose="no"># MexScript for Nippon Ichi DAT files (PS2) | ||
# By Mr.Mouse | # By Mr.Mouse | ||
# Note that this needs the right SECTOR.H file in the same | # Note that this needs the right SECTOR.H file in the same | ||
| Line 17: | Line 17: | ||
GoTo EOF 1 ; | GoTo EOF 1 ; | ||
SavePos ED 1 ; | SavePos ED 1 ; | ||
# The last entry is extra, we | # The last entry is extra, we dont need it, so set the max size | ||
Math ED -= 40 ; | Math ED -= 40 ; | ||
# Go to start in sector.h | # Go to start in sector.h | ||
| Line 43: | Line 43: | ||
http://multiex.xentax.com| | http://multiex.xentax.com| | ||
documentation=http://forum.xentax.com/viewtopic.php?t=2137| | documentation=http://forum.xentax.com/viewtopic.php?t=2137| | ||
games=Nippon | games=Nippon Ichi | ||
}} | }} | ||
[[Category:BMS]] | |||
[[Category:File Format]] | |||
Latest revision as of 22:32, 16 January 2021
Back to index | Edit this page
DAT
{{GRAFPageMisc{{ subst:#if: Archive | {{subst:!}}Archive }}{{ subst:#if: Little Endian | {{subst:!}}Little Endian }}}}
Format Specifications
Notes and Comments
All resources in the DAT archive are referred by a file called sector.h.
MultiEx BMS Script
<bms ext="DAT" version="1.0" author="Mr.Mouse" platforms="'PS2'" games="'Nippon Ichi'" silence="no" verbose="no"># MexScript for Nippon Ichi DAT files (PS2)
- By Mr.Mouse
- Note that this needs the right SECTOR.H file in the same
- folder as the DAT file!
- --------
- Open the file sector.h in the same folder as the archive (FileDir) as file 1
Open FileDir sector.h 1 ;
- Calculate the size of the sector.h file
SavePos ST 1 ; GoTo EOF 1 ; SavePos ED 1 ;
- The last entry is extra, we dont need it, so set the max size
Math ED -= 40 ;
- Go to start in sector.h
GoTo ST 1 ;
- Start the loop
Do ;
- Save the current offset and then get a null-terminated string
SavePos PE 1 ; Get FileName String 1 ;
- There are 32 bytes reserved for a filename, so jump to the position after that
Math PE += 32 ; GoTo PE 1 ;
- Get the block offset (blocks are 2048 in size) and size
Get BlockOff Long 1 ; Get Size Long 1 ;
- Calculate the actual offset in the DAT file
Math BlockOff *= 2048 ; Log FileName BlockOff Size 0 0 ;
- What position are we now at in the sector.h?
SavePos PE 1 ;
- Is this still less than the end (ED) of our sector.h? If no, quit.
While PE < ED ; </bms>
Supported by Programs
MultiEx Commander http://multiex.xentax.com
Documentation
http://forum.xentax.com/viewtopic.php?t=2137
Games
Nippon Ichi