DescriptionThis tool converts programs for PetitCom mkII(SB2) to run in PetitCom 3gou(SB3).
You can use SB2 PTC files(PRG,MEM,GRP,CHR,SCR and COL) transferred with PetitModem.
This project contains the resources, tools and sample games of SB2, so you can run them even if you don't have SB2 or PetitModem.
I also uploaded the 1st and 2nd PetitCom Ogiri(Program Contest) works at sbkey[5BRE533E](1.4MB)
All of these programs works on SB3, I think.
The 1st PetitCom Ogiri: https://smileboom.com/special/ptcm2/co_contest/1st.php
The 2nd PetitCom Ogiri: https://smileboom.com/special/ptcm2/co_contest/2nd.php
Specifications / Known issues
RECVFILE,SENDFILE,GDRAWMD are not supported yet.
FREEVAR doesn't work.
The PTC files transferred from SB1 (file format is "PETC0100RPRG") are not supported yet.
All the variables will be destroyed on EXEC.
GPUTCHR is quite slow.
COLOR of the console is different.(COL0 doesn't work for console)
Fonts are always same in upper and lower screen.
The 2nd arguments of VISIBLE (panel on/off) doesn't work.
"BGD" and "SPK" resources are not available.
The first VSYNC may take a moment.(since it updates all the changes of sprites and BGs at once.)
1. Download PetitModem.
2. Prepare PTC file from somewhere.
(3. Change extension of PTC file to ".dat".)
(4. Run "LZSS for PetitCom" in PetitModem (PC side) and compress dat file to PDA.)
5. Send the PTC or PDA file to SB3.
Convert PTC files
Start "-MKIICVT". (You need to run this once in order to convert the default resources etc. in the project.)
First, all files with the extension ".PTC" and ".PDA" in the project are extracted.
The extracted files have extensions ".PRG2", ".MEM2", ".GRP2", ".CHR2", ".SCR2" and ".COL2".
Resources packaged in a PRG are exported with a file name as "(PRG name)_Pxx".
Next, all the PRG2 files are converted for SB3.
Some files may take several minutes to convert.
The converted files' extension is ".PRG".
If there is already PRG file with the same name as PRG2 file in the project, it will not be converted.
If you want to convert it again, please delete the converted file.
To write and execute SB2 program directly
Write a SB2 program in slot 2.
If you didn't load a SB2 program (when slot 2 is [NEW FILE]), make sure to write 'PRG2 on the first line.
Start "-MKIICVT", and you will be asked whether you convert the program of slot 2 or not.
Press Yes to convert and execute.
The converted program is in slot 3.
To run programs from the converted files
Execute the converted PRG directly, or start from "-MKIIMENU".
The D-pad and ABXYLR can be used like SB2.
The left stick (slide pad) functions as a cross key, and the right stick (C stick) functions as an ABXY button.
The START button is replaced with ZL, ZR or SELECT.
These button settings are written at the beginning of "-MKIILIB", and you can change them.
File menu screen
If you start "-MKIIMENU", you can open the file menu.
Up / Down key: Select file
Left and right keys: tab switching
A button: Run.
The contents of the MEM resource are displayed.
The contents of the GRP resource are displayed.
A button: Output as SB3 GRP file.
B button: Output as TXT or DAT (8-bit palette number, 32-bit palette number (4 dots per element) or 32 bits for GLOAD).
The contents of the CHR resource are displayed.
X button: Change character size.
Y button: Change the color palette.
B button: Set to the character used in the "SCR" tab.
A button: Output as GRP file.
The BG map will be displayed.
Move with the slide pad.
The contents of the COL resource are displayed.
X button: Set as a color palette to use on the GRP tab.
Y button: Set as a color palette to be used on the CHR tab.
A button: Output as GRP file.
To run on PetitCom4
If you use Petit Converter(by utsurikimagure),
"-MKIICVT" does not need to be converted (It can be executed on PetitCom4, but I haven't test yet.)
"-MKIILIB" does not need to be converted (because it is automatically converted at the time of EXEC.)
"-MKIIMENU" needs to be converted.
If you select and execute The converted files (.PRG) directly, you need to convert it.
If you start from "-MKIIMENU", you don't have to convert them.