Japanaese Save

Having trouble with the game? Report issues and get help here. Read this first!

Moderators: Forum Moderators, Developers

Forum rules
Before reporting issues in this section, you must read the following topic:

Japanaese Save

Postby HEROA » May 7th, 2009, 9:50 pm

Error: ゲームを自動保存できませんでした。手動で保存してください。 (Could not automatic save. Please manual save.)

I am using a latest version 1.6.1. It saves in English. It gives an error when I play in also Chinese, Russian, Taiwanese. Does only save in English?
HEROA
 
Posts: 1
Joined: May 7th, 2009, 9:32 pm

Re: Japanaese Save

Postby TKS-2009ce » May 30th, 2009, 10:23 am

Hi,

I have same problem on my computer. I'm using 1.6.2 on WinXP Home SP3. My WinXP is English ver. and I installed Wesnoth with English as the default language.

After I examined couple things, I now guess it is probably because the multi-byte code strings are included in the file name. When I try to save the game manually, the file name option is showed up on screen. If I try to proceed with file name which contains multi-byte strings, it refuses to save and it successfully saves when I delete those strings.
The program becomes not responding at the end of scenario, after I press "End Scenario" button and some error messages like "save file could not be made" are popped up. I guess the principle is the same in this case, but I'm not sure.
I don't know if this is a real bug, but I think it can be avoided by editing some .po file and prevent to change the file name into multi-byte code strings, at least as for the temporal solution. I looked through wesnoth.po and wesnoth-lob.po, but I couldn't find the entry that seems to be.
I play the game mostly in English, which I don't have any problem of this kind and switch the language only when I check the translation I made. So, for me personally, this is not a critical one but still annoying.

Does anybody know which file and which item I should edit or if there is any other way to avoid this problem?

Thanks in advance,
TKS-2009ce
 
Posts: 12
Joined: May 30th, 2009, 12:47 am

Re: Japanaese Save

Postby silene » May 30th, 2009, 11:24 am

TKS-2009ce wrote:After I examined couple things, I now guess it is probably because the multi-byte code strings are included in the file name.

Yes, this is a reasonable assumption.
Does it happen with any non-ascii characters? Some specific ones?
If you were creating a file with another application (say notepad) and were putting these characters in the filename, would it fail too?

TKS-2009ce wrote:I don't know if this is a real bug, but I think it can be avoided by editing some .po file and prevent to change the file name into multi-byte code strings, at least as for the temporal solution. I looked through wesnoth.po and wesnoth-lob.po, but I couldn't find the entry that seems to be.

The default filename is simply the scenario name, so the string pair should be located in wesnoth-thecampaign.po. Just look for the [scenario] tag in the comments of the .po file.
The "Auto-save", "Turn", and " replay" suffixes are provided by wesnoth.po
silene
 
Posts: 1109
Joined: August 28th, 2004, 10:02 pm

Re: Japanaese Save

Postby TKS-2009ce » May 31st, 2009, 2:11 pm

Thank you very much for your reply.

1. Other applications allow me to save with multi-byte code strings (in my case, in japanese). I had never tried to save a file with multi-byte code strings, but I just confirmed it with notepad, paint, and OOo.

2. I don't know if any specific character causes a problem because, you know, there are thousands of characters in japanese and I don't have energy and time for that. But it seems that it always happens when the file name contains any multi-byte code (at least, japanese). Because I tried with couple different characters for "Auto-save" but any of them didn't work and it happened with all the scenario (which means (sort of) many combination of different characters) I played in japanese so far.
Btw, Wesnoth does not accept japanese input in the save file dialog and filter option for the load game dialog (none of the characters were shown in the box).

3. OK, here is a bit tricky part. I edited wesnoth.po and wesnoth-tsg.po to remove the entries for saving file and the scenario name. There are 4 of them in wesnoth.po, Auto-save, Turn, Replay, and another replay. First, I deleted all of these four and 1st and 2nd scenario names in TSG. The result was good. The program made auto-save files and did not freeze at the end of scenario.
Then, I played TB from the beginning, whose scenario names are in japanese. Then, as I expected, auto-saves was not made and the game did not respond at the end of scenario. I looked at the file name in the manual save and replay save option. The part of file name, which corresponds to the scenario name was in japanese. OK. I knew that, so it's fine.
But when I loaded a saved scenario from TB, it made a auto-save file successfully. I looked at the file name in the manual save and replay save option and I found the scenario name was in English. I continued to play to the end and press "End Scenario" button. Then, the program was hanged up. This is probably because the next scenario name is in japanese (the current one is too, though) therefore the program tried to save with it.

So, I tried to examine with only one entry is translated for each 4 of them, and tested with 4 cases, TSG (senario names are in english) new game and loaded game, and TB (scenario names are in japanese) in both.
Results were pretty much straightforward. When "Auto-save" is translated, none of them could make a auto-save file. TSG could advance to the next scenario but TB couldn't (btw, TB cannot proceed to the next scenario in any case).
The auto-save file does not contains a term "Turn", so with translated "Turn", there is no problem in auto-saving except TB new game, because it contains scenario name in japanese. And no problem in advancing to the next scenario for TSG. Of course, in the case of manual saving, you have to remove "*turn*" to make a save file because it's in it.
There are 2 entries for "replay"; one, henceforth r1, which is reference to savegame 841 seems to be the entry for auto-saved replay at the end of scenario and the other, r2, savegame 140 and 142 is for manually saved replay file. So, when r1 is translated, it gives me an error message after pressing "End Scenario" button but can go to the next scenario (only for TSG). With translated r2, there is no problem except there is multi-byte code in replay file when trying to save it manually and you have to remove it to save.

OK, that's what I found today. The temporal solution (removing the entries for auto-save, turn(not so important one though), replay, and scenario names) certainly avoids the problem. But It leaves the scenario names in English, therefore not perfect. And why does the loaded game gives english file name even though the scenario name is in japanese and only for that scenario?

Thanks,
TKS-2009ce
 
Posts: 12
Joined: May 30th, 2009, 12:47 am


Return to Technical Support

Who is online

Users browsing this forum: Yandex [Bot] and 2 guests