-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWrite.bat
56 lines (41 loc) · 2.95 KB
/
Write.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
::Roms
set baseImage=%cd%\roms\Tensai Bakabon (Japan).sms
set newImage=%cd%\roms\Tensai Bakabon (NEW).sms
::Folders
set projectFolder=%cd%
set toolsFolder=%projectFolder%\tools
set spiroFolder=%toolsFolder%\spiro
set armipsFolder=%toolsFolder%\armips
set compressionTool=%toolsFolder%\compression
set checksumTool=%toolsFolder%\checksum
set asmFolder=%cd%\asm
set graphicsUncompressedOriginal=%projectFolder%\graphics\uncompressed (original)
set graphicsUncompressedNew=%projectFolder%\graphics\uncompressed (new)
set graphicsCompressedNew=%projectFolder%\graphics\compressed (new)
set tileMapUncompressedOriginal=%projectFolder%\tilemap\uncompressed (original)
set tileMapUncompressedNew=%projectFolder%\tilemap\uncompressed (new)
set tileMapCompressedNew=%projectFolder%\tilemap\compressed (new)
del "%newImage%"
copy "%baseImage%" "%newImage%"
"%spiroFolder%\Spiro.exe" /ProjectDirectory "%projectFolder%" /WriteScriptToROM
::Compress graphics
copy "%graphicsUncompressedOriginal%\skycastle1.bin" "%graphicsUncompressedNew%\skycastle1.bin"
copy "%graphicsUncompressedOriginal%\skycastle2.bin" "%graphicsUncompressedNew%\skycastle2.bin"
"%compressionTool%\Tensei Bakabon GFX.exe" "Write" "%graphicsUncompressedNew%\font - password.bin" "%graphicsCompressedNew%\font - password.bin" "4"
"%compressionTool%\Tensei Bakabon GFX.exe" "Write" "%graphicsUncompressedNew%\title.bin" "%graphicsCompressedNew%\title.bin" "4"
"%compressionTool%\Tensei Bakabon GFX.exe" "Write" "%graphicsUncompressedNew%\overworld.bin" "%graphicsCompressedNew%\overworld.bin" "4"
"%compressionTool%\Tensei Bakabon GFX.exe" "Write" "%graphicsUncompressedNew%\shooter.bin" "%graphicsCompressedNew%\shooter.bin" "4"
"%compressionTool%\Tensei Bakabon GFX.exe" "Write" "%graphicsUncompressedNew%\skycastle1.bin" "%graphicsCompressedNew%\skycastle1.bin" "4"
"%compressionTool%\Tensei Bakabon GFX.exe" "Write" "%graphicsUncompressedNew%\skycastle2.bin" "%graphicsCompressedNew%\skycastle2.bin" "4"
"%compressionTool%\Tensei Bakabon GFX.exe" "Write" "%graphicsUncompressedNew%\shootersprites.bin" "%graphicsCompressedNew%\shootersprites.bin" "4"
"%compressionTool%\Tensei Bakabon GFX.exe" "Write" "%graphicsUncompressedNew%\endcard.bin" "%graphicsCompressedNew%\endcard.bin" "4"
"%compressionTool%\Tensei Bakabon GFX.exe" "Write" "%graphicsUncompressedNew%\hajimegame.bin" "%graphicsCompressedNew%\hajimegame.bin" "4"
"%compressionTool%\Tensei Bakabon GFX.exe" "Write" "%tileMapUncompressedNew%\title.bin" "%tileMapCompressedNew%\title.bin" "2"
"%compressionTool%\Tensei Bakabon GFX.exe" "Write" "%tileMapUncompressedNew%\talktime.bin" "%tileMapCompressedNew%\talktime.bin" "2"
"%compressionTool%\Tensei Bakabon GFX.exe" "Write" "%tileMapUncompressedNew%\underground.bin" "%tileMapCompressedNew%\underground.bin" "12"
::Armips scripts
"%armipsFolder%\armips.exe" "%projectFolder%\asm\main.asm"
::Fix checksum
"%checksumTool%\MSChecksumFixer.exe" "%newImage%"
::"%newImage%"
@Pause