Home Artists Posts Import Register
Patreon importer is back online! Tell your friends ✅

Content

The AIR version of the main game is complete for now, but the installers need to be rebuilt as well. Since I've implemented AIR, I'd like to challenge to create an installer that automatically copies files using the AIR function. Here I try to make a new MOD installer.
The contents of this article are intended for creators, but I'd be glad if you could see we usually have such hardships.


To copy the files, it's necessary to 1st get the location of the game folder and write it to the existing save data. The folder path can only be retrieved by AIR, so the save file must be shared between the AIR side and the game body. However, although the program was not wrong, somehow it didn't work and failed from the beginning.
After trial and error, I realized that the AIR side should not designate the save data before the game is loaded, so I improved to wait for the loading completion. However, this time the save data was initialized.
This was because the AS3 program in AIR and the AS1 program in the game have different file binary (file writing) formats, so I added a command to adapt the format to AS1.

Now I could finally share them. Next, get the folder path (location) of the game using AIR.

"data" folder is to be copied, so add it by the command and write to the save data.

However, it was not written at all... After more trial and error, I found that the folder path data couldn't be written in AS1 format. So I gave up on sharing the save data and decided to make a new save file exclusively for AIR and write to it, which I finally succeeded.

Huhh, that's it for today.

Comments

No comments found for this post.