Tool VN Need help about editting .ain file from Alicesoft's game

kwanlier

Member
Oct 26, 2019
402
819
Since English is not my first language, I'm sorry if I mistype something.

I'm currently trying to translate dialog from Alicesoft's Heartful Maman ( ).
The dialog from each scenario is found in file name Maman.ain. I extract .ain file using Haniwa's alice-tools ( ) into .txt text file and .jam disassembled bytecode file (both file can be edit with Notepad++).
After editing (translating) the dialog from my favorite scenario, create alternative .ain file, and replace old .ain file, I play test the scenario that I edited and find that the dialog is still the same.

So, I really need some advice about mentioned problem, translating dialog from .ain file, something related to what I do, etc.
Also, does anyone doing a translating with editing .ain file like me, if so, please teach me.

I also attach .ain file, .txt file, and .jam file in case someone want to translate it on your own
 
Last edited:

--hi

Member
Modder
May 30, 2021
128
1,214
If you haven't figured it out already then here's what you need to do
In order to re-insert the line just remove ';' before the line
Also read the usage in github, it has more information
 
  • Like
Reactions: CAT0X0 and kwanlier

kwanlier

Member
Oct 26, 2019
402
819
If you haven't figured it out already then here's what you need to do
In order to re-insert the line just remove ';' before the line
Also read the usage in github, it has more information
1647128069025.png

Thank you
It's working now
but there are a lot of sentence that I need to rewrite because the text literally go off the screen.
 

--hi

Member
Modder
May 30, 2021
128
1,214
View attachment 1700844

Thank you
It's working now
but there are a lot of sentence that I need to rewrite because the text literally go off the screen.
Yes, due to Alicesoft's font being really big and awful... People have made tools to edit thier font file, so try this tool- - Just open the font file and redraw the size, use size value like 10 or 12/13 etc..
 
  • Like
Reactions: CAT0X0 and kwanlier

kwanlier

Member
Oct 26, 2019
402
819
Yes, due to Alicesoft's font being really big and awful... People have made tools to edit thier font file, so try this tool- - Just open the font file and redraw the size, use size value like 10 or 12/13 etc..
1647169314854.png
Thank you for the tip!

- Changing font around for more cuter font is kinda fun!

- There are a lot of lines that I may have to rewrite
= to decrease the sentence's length
= changing the moaning, or something like that, to be "translated"
= "Grammar" (I mainly use DeepL which sometime give out a wierd translation so this is important)

I don't know if the .ain file contain all scenario or not (including non-h, or something like that), in the future, if there are people who still play this game, I will upload the translated .ain file and .fnl font file here!
 
  • Like
Reactions: keroro22

khimy132

New Member
Mar 27, 2022
1
2
Yes, due to Alicesoft's font being really big and awful... People have made tools to edit thier font file, so try this tool- - Just open the font file and redraw the size, use size value like 10 or 12/13 etc..
Hi --hi & kwanlier , sorry just a newbie in modding. I don't know if did the right on how to change the font size. anyway here what i did
i opened the font tool exe then click "Open Font" and choose the .fnl file from the game. then it loads on the tool then I input a smaller value in size and clicked "Redraw" button. as in the screenshot, I got my desired size showed in the preview box so I proceed on clicking "save font" button then a window will show that gives you an option to create a new .fnl file to save the font.

I put my new .fnl file to the game directory given that i replaced the original .fnl file with the new one (same file name).
then I opened the game and the font size is still the same with the original one.

The font size didn't change given that i replaced it with the new .fnl file created by the Font Tool.

Hope you can help me. thank you

1648392773790.png
 
Last edited:

kwanlier

Member
Oct 26, 2019
402
819
You don't have permission to view the spoiler content. Log in or register now.

Change this "face" value here (in the rectangle)

1648563263503.png

I think the text for the message in dialog box always contain 2 table value (0 and 1) because I find that for Heartful Maman (currently take a break), it's use face 0, and for Oyako Rankan (currently doing this), it's use face 3.

But for the Tsumamigui 3, I don't know -> Try my trick, it's might work.
 

Altairdrake

Newbie
Nov 7, 2020
23
0
Hi. English isn't my native language so bear with me. I'm trying to translate a game from Alice Soft but don't now how. Know little to nothing of modding and programming but know japanese english and spanish so i was wondering if anyone would be so kind to point me in the right direction. Try to be as simple as possible pretend i'm dumb. A .exe or similar :) Thank you in advance.
 

kwanlier

Member
Oct 26, 2019
402
819
Hi. English isn't my native language so bear with me. I'm trying to translate a game from Alice Soft but don't now how. Know little to nothing of modding and programming but know japanese english and spanish so i was wondering if anyone would be so kind to point me in the right direction. Try to be as simple as possible pretend i'm dumb. A .exe or similar :) Thank you in advance.
0. Backup all files that you will edit

1. You need set of software listed here
- Alice-tools ( ) + Its documentation ( ) for extracting file, compiling file
- FNLRemapper ( ) for editing the font
- Any text editor, but recommend using Notepad++
- Computer assisted translator program

2. Check where the dialog file is located
- Is a ".ain" file
- Open the file called "AliceStart.ini"
- look for "CodeName = ....ain"
- That will tell which file you have to deal with

3. Extracting the dialog file
- Open cmd.exe by use run from start menu or type cmd in the start menu
- In cmd, change the working directory to where your game is installed by
= Change drive by just type "[Letter]:", for example, my game is in drive D, I will type "D:"
= Change to the game directory by just type "cd [Game directory]", for example, "cd D:\Game\Heartful_Maman"

4. Run the alice-tools by
- dragging alice-tools.exe into.cmd window
- press space bar and add "ain dump -t -o [whatever_you_want].txt ....ain" ( )
- If you do it correctly, you will get the .txt file, which you will use it.

5. Text editing
- Open the .txt file with text editor
- Find the scenario that you want through the search function
- You will see 2 types of text : m[number] and s[number] -> You only need to focus on m[number]
- You will also see that every m[number] have ";" in front of it, for example {;m[14334] = "あいうえお"}
- Before you translate the あいうえお, what you have to do is erase the ";",
for example {;m[14334] = "あいうえお"} will become {m[14334] = "AIUEO"}
- Save the .txt file
- Create the new .ain file by following the step 4, then change "ain dump -t -o [whatever_you_want].txt ....ain" to
"ain edit -t [whatever_you_want].txt -o [whatever_you_want].ain ....ain"
- If you are not sure, check the documentation

6. Edit the font
- Open FNLMapper
- Open the font file, mostly in the ".fnl"
- Choose your desired font and desired size
- Press "Redraw"
- If you are not satisfied with font and size, redo the choosing again until you satisfied
- Change the "Face" value (https://f95zone.to/threads/need-hel...file-from-alicesofts-game.108838/post-7820351)
- Press "Redraw table" and wait until it finish
- Press "Save font"

7. Do the play test
- If you find that the font is problematic, redo the font again
- If you find that the translation is problematic, redo the translation

Hope this is enough

By the way, which game do you plan to translate? and which language will you use?
 
  • Red Heart
Reactions: No NTR no Life

Altairdrake

Newbie
Nov 7, 2020
23
0
i did all of the above besides the font and size of letters. The game doesn't have a .fnl file could you tell me if there is any other place where the font could be stored.
 
Last edited:

kwanlier

Member
Oct 26, 2019
402
819
i did all of the above besides the font and size of letters. The game doesn't have a .fnl file could you tell me if there is any other place where the font could be stored.
Umm...I'm not sure but, check the AliceStart.ini again, maybe it will tell where the font file is.
 

Altairdrake

Newbie
Nov 7, 2020
23
0
I did that too.

; ★ System4.0 初期設定ファイル ★
; このファイルの中身は書き換えないで下さい

; iniファイルバージョン
IniFileVersion = 1

; 初期ビューサイズ
ViewWidth = 800
ViewHeight = 600

; ゲーム名
GameName = "GALZOOアイランド"

; レジストリ名
RegName = "Software\AliceSoft\GALZOOアイランド"

; コード名
CodeName = "GALZOO.ain"

; VM設定
MainVM = "Sys42VM"

; セーブフォルダ設定
SaveFolder = "SaveData"

; DLLフォルダ設定
DLL = "DLL"

; DLLファイル設定
LoadDLL = {
"SACT_DLL.INC",
"GALZOODLL.INC",
}

; スキップ名前設定
MsgSkipName = "既読スキップ"

; 音楽設定
UseCD = false

; ジョイパッド設定
UseJoypad = true

; ボリュームバランサー設定
VolumeValancer[0] = "BGM"
VolumeValancer[1] = "効果音"
VolumeValancer[2] = "女の子"
VolumeValancer[3] = "男の子"

; end of file
 

kwanlier

Member
Oct 26, 2019
402
819
I did that too.

; ★ System4.0 初期設定ファイル ★
; このファイルの中身は書き換えないで下さい

; iniファイルバージョン
IniFileVersion = 1

; 初期ビューサイズ
ViewWidth = 800
ViewHeight = 600

; ゲーム名
GameName = "GALZOOアイランド"

; レジストリ名
RegName = "Software\AliceSoft\GALZOOアイランド"

; コード名
CodeName = "GALZOO.ain"

; VM設定
MainVM = "Sys42VM"

; セーブフォルダ設定
SaveFolder = "SaveData"

; DLLフォルダ設定
DLL = "DLL"

; DLLファイル設定
LoadDLL = {
"SACT_DLL.INC",
"GALZOODLL.INC",
}

; スキップ名前設定
MsgSkipName = "既読スキップ"

; 音楽設定
UseCD = false

; ジョイパッド設定
UseJoypad = true

; ボリュームバランサー設定
VolumeValancer[0] = "BGM"
VolumeValancer[1] = "効果音"
VolumeValancer[2] = "女の子"
VolumeValancer[3] = "男の子"

; end of file
Umm...are there any file that has the word "font" in the name of the file ?
(in my case, 母娘乱館Font.fnl or MamanFont.fnl)

Edit: Holy shit the game is old (2005), so the file structure is probably super different from what I do now.
 

Altairdrake

Newbie
Nov 7, 2020
23
0
Umm...are there any file that has the word "font" in the name of the file ?
(in my case, 母娘乱館Font.fnl or MamanFont.fnl)

Edit: Holy shit the game is old (2005), so the file structure is probably super different from what I do now.
Indeed is old but fun... is like Rance 5D but with gal monsters as playable characters.
 

huysound

New Member
Oct 29, 2019
5
0
Umm...are there any file that has the word "font" in the name of the file ?
(in my case, 母娘乱館Font.fnl or MamanFont.fnl)

Edit: Holy shit the game is old (2005), so the file structure is probably super different from what I do now.
0. Backup all files that you will edit

1. You need set of software listed here
- Alice-tools ( ) + Its documentation ( ) for extracting file, compiling file
- FNLRemapper ( ) for editing the font
- Any text editor, but recommend using Notepad++
- Computer assisted translator program

2. Check where the dialog file is located
- Is a ".ain" file
- Open the file called "AliceStart.ini"
- look for "CodeName = ....ain"
- That will tell which file you have to deal with

3. Extracting the dialog file
- Open cmd.exe by use run from start menu or type cmd in the start menu
- In cmd, change the working directory to where your game is installed by
= Change drive by just type "[Letter]:", for example, my game is in drive D, I will type "D:"
= Change to the game directory by just type "cd [Game directory]", for example, "cd D:\Game\Heartful_Maman"

4. Run the alice-tools by
- dragging alice-tools.exe into.cmd window
- press space bar and add "ain dump -t -o [whatever_you_want].txt ....ain" ( )
- If you do it correctly, you will get the .txt file, which you will use it.

5. Text editing
- Open the .txt file with text editor
- Find the scenario that you want through the search function
- You will see 2 types of text : m[number] and s[number] -> You only need to focus on m[number]
- You will also see that every m[number] have ";" in front of it, for example {;m[14334] = "あいうえお"}
- Before you translate the あいうえお, what you have to do is erase the ";",
for example {;m[14334] = "あいうえお"} will become {m[14334] = "AIUEO"}
- Save the .txt file
- Create the new .ain file by following the step 4, then change "ain dump -t -o [whatever_you_want].txt ....ain" to
"ain edit -t [whatever_you_want].txt -o [whatever_you_want].ain ....ain"
- If you are not sure, check the documentation

6. Edit the font
- Open FNLMapper
- Open the font file, mostly in the ".fnl"
- Choose your desired font and desired size
- Press "Redraw"
- If you are not satisfied with font and size, redo the choosing again until you satisfied
- Change the "Face" value (https://f95zone.to/threads/need-hel...file-from-alicesofts-game.108838/post-7820351)
- Press "Redraw table" and wait until it finish
- Press "Save font"

7. Do the play test
- If you find that the font is problematic, redo the font again
- If you find that the translation is problematic, redo the translation

Hope this is enough

By the way, which game do you plan to translate? and which language will you use?
Hi, I am translating Rance01 for my localization translation(vietnam), but i can't package it because it doesn't support UTF-8 can you help me plz TT_TT
 

kwanlier

Member
Oct 26, 2019
402
819
Hi, I am translating Rance01 for my localization translation(vietnam), but i can't package it because it doesn't support UTF-8 can you help me plz TT_TT
I'm guessing the game engine does not support anything but English and Japanese characters, that's why the AliceTool does not let you compile the .ain file.

Trust me, because I tried to translate Heartful Maman from Japanese to Thai before.
 

LaPlala

New Member
Jul 11, 2018
1
0
I'm guessing the game engine does not support anything but English and Japanese characters, that's why the AliceTool does not let you compile the .ain file.

Trust me, because I tried to translate Heartful Maman from Japanese to Thai before.
Jees I really want to play this game in Thai