Problems to install BfW 1.11.19 and 1.12.0 under Windows 7

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

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Ryzzak
Posts: 4
Joined: May 7th, 2011, 6:33 pm

Problems to install BfW 1.11.19 and 1.12.0 under Windows 7

Post by Ryzzak »

I tried to install BfW 1.12.0 using the MS Windows package and encountered the problem that the program did not start.
Stderr.txt reported:

Code: Select all

Battle for Wesnoth v1.12.0
Started on Thu Nov 27 01:02:41 2014

Automatically found a possible data directory at C:/Program Files (x86)/Battle for Wesnoth 1.12.0
20141127 01:02:42 error filesystem: Could not open 'C:/Program Files (x86)/Battle for Wesnoth 1.12.0\userdata/preferences' for reading.

Data directory: C:/Program Files (x86)/Battle for Wesnoth 1.12.0
User configuration directory: C:/Program Files (x86)/Battle for Wesnoth 1.12.0\userdata
User data directory: C:/Program Files (x86)/Battle for Wesnoth 1.12.0\userdata
Cache directory: C:/Program Files (x86)/Battle for Wesnoth 1.12.0\userdata\cache
Caught general exception:
Conversion failed
similar, when i choosed the my games/... directory as a save option, although the folders had been correctly by the setup program.

The same problem occurred with BfW 1.11.19, while 1.11.18 and earlier versions had no problem.

Could someone be so kind to give me advice what I should do?
Btw: I am not very experienced with windows - please keep it idiot proofed

many thanks in advance

Ryzzak
energyman76c
Posts: 199
Joined: May 26th, 2004, 9:38 pm

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by energyman76c »

I have the same problem with gentoo linux.

Removed all user directories, still get the same error.

So it is not a windows problem.
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by gfgtdf »

which is the default language on your computer?
Can you please run teh game with log debug general or all and post the log?
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by Anonymissimus »

Can you run BfW from console while passing --log-debug=all and paste stderr.txt again ?
To do so on win xp one can go to Start>Run, type cmd.exe, click OK, navigate to where wesnoth.exe is using cd X:\path\to\wesnoth.exe\ (cd=change directory) command and type wesnoth.exe --log-debug=all, press enter.

EDIT
gfgtdf posts while I'm writing...posting this anyway.
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml startersPlan Your Advancements: mp mod
The Earth's Gut: sp campaignSettlers of Wesnoth: mp scenarioWesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
energyman76c
Posts: 199
Joined: May 26th, 2004, 9:38 pm

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by energyman76c »

LANG=de_DE@euro
LANGUAGE=de_DE@euro
LC_ALL=de_DE@euro

wesnoth --log-debug=all
Battle for Wesnoth v1.12.0
Started on Sat Dec 6 21:34:39 2014

20141206 21:34:39 info font: Initialized true type fonts
20141206 21:34:39 info font: Cairo version: 1.12.16
20141206 21:34:39 info font: Pango version: 1.36.3
20141206 21:34:39 debug filesystem: creating recursive directory: /home/energyman/.config/wesnoth
20141206 21:34:39 info filesystem: Streaming /home/energyman/.config/wesnoth/preferences for reading.

20141206 21:34:39 debug filesystem: creating recursive directory: /home/energyman/.cache/wesnoth
20141206 21:34:39 debug filesystem: creating recursive directory: /home/energyman/.local/share/wesnoth/1.12
20141206 21:34:39 debug filesystem: directory /home/energyman/.local/share/wesnoth/1.12/editor exists, not creating
20141206 21:34:39 debug filesystem: directory /home/energyman/.local/share/wesnoth/1.12/editor/maps exists, not creating
20141206 21:34:39 debug filesystem: directory /home/energyman/.local/share/wesnoth/1.12/editor/scenarios exists, not creating
20141206 21:34:39 debug filesystem: directory /home/energyman/.local/share/wesnoth/1.12/data exists, not creating
20141206 21:34:39 debug filesystem: directory /home/energyman/.local/share/wesnoth/1.12/data/add-ons exists, not creating
20141206 21:34:39 debug filesystem: directory /home/energyman/.local/share/wesnoth/1.12/saves exists, not creating
20141206 21:34:39 debug filesystem: directory /home/energyman/.local/share/wesnoth/1.12/persist exists, not creating
Data directory: /usr/local/share/wesnoth
User configuration directory: /home/energyman/.config/wesnoth
User data directory: /home/energyman/.local/share/wesnoth/1.12
Cache directory: /home/energyman/.cache/wesnoth
20141206 21:34:39 info audio: Initializing audio...
20141206 21:34:39 info audio: Audio initialized.
20141206 21:34:39 debug audio: Channel layout: 32 channels (12 reserved)
0 - bell
1 - timer
2..9 - sound sources
10..11 - UI
12..31 - sound effects
20141206 21:34:39 info general: adding textdomain 'wesnoth' in directory '/usr/local/share/wesnoth/translations'
20141206 21:34:40 info audio: Audio device released.
20141206 21:34:40 info filesystem: streaming /home/energyman/.config/wesnoth/preferences for writing.
20141206 21:34:40 info display: calling SDL_Quit()
20141206 21:34:40 info display: called SDL_Quit()
Caught general exception:
Conversion failed
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by gfgtdf »

I currently believe this is related to boost locale. Boost locale usually uses differnt backends on different OS. So there quite often happen bugs that are not the same on differnt OS, that's why i'd also like to see the output with log debug all and the language setings for windows occurance.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
Yarra
Posts: 1
Joined: December 9th, 2014, 11:20 am

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by Yarra »

I also get this error:

Code: Select all

Battle for Wesnoth v1.12.0
Started on Tue Dec 09 14:17:43 2014

Automatically found a possible data directory at D:/User/bfw
20141209 14:17:43 info font: Initialized true type fonts
20141209 14:17:43 info font: Cairo version: 1.10.2
20141209 14:17:43 info font: Pango version: 1.30.1
20141209 14:17:43 debug filesystem: creating recursive directory: D:/User/bfw\userdata
20141209 14:17:43 debug filesystem: directory D:/User/bfw\userdata\editor exists, not creating
20141209 14:17:43 debug filesystem: directory D:/User/bfw\userdata\editor\maps exists, not creating
20141209 14:17:43 debug filesystem: directory D:/User/bfw\userdata\editor\scenarios exists, not creating
20141209 14:17:43 debug filesystem: directory D:/User/bfw\userdata\data exists, not creating
20141209 14:17:43 debug filesystem: directory D:/User/bfw\userdata\data\add-ons exists, not creating
20141209 14:17:43 debug filesystem: directory D:/User/bfw\userdata\saves exists, not creating
20141209 14:17:43 debug filesystem: directory D:/User/bfw\userdata\persist exists, not creating
20141209 14:17:43 info filesystem: Streaming D:/User/bfw\userdata/preferences for reading.

Data directory: D:/User/bfw
User configuration directory: D:/User/bfw\userdata
User data directory: D:/User/bfw\userdata
Cache directory: D:/User/bfw\userdata\cache
20141209 14:17:43 info audio: Initializing audio...
20141209 14:17:43 info audio: Audio initialized.
20141209 14:17:43 debug audio: Channel layout: 32 channels (12 reserved)
    0 - bell
    1 - timer
    2..9 - sound sources
    10..11 - UI
    12..31 - sound effects
20141209 14:17:43 info general: adding textdomain 'wesnoth' in directory 'D:/User/bfw/translations'
20141209 14:17:43 info audio: Audio device released.
20141209 14:17:43 info filesystem: streaming D:/User/bfw\userdata/preferences for writing.
20141209 14:17:43 info display: calling SDL_Quit()
20141209 14:17:43 info display: called SDL_Quit()
Caught general exception:
Conversion failed
Windows 7 32bit.

how can i fix it?
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by gfgtdf »

I am not sure, but i think this bug can for example appear if the game eigher tries to open a transation file that has invalid UTF8 or if the game due to some bug tries to open the translation files assuming something different than UTF8. Since i currently dont know why this happen all i currently do is adding more debug info about translations in the next release. If you want to start the game at any costs you can try to rename the "translations" folder to something different so that the game won't find them. But then the game might not be translated.

If you are on linux and compile wesnoth yourselves you can try to build wesnoth without boost locale.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
energyman76c
Posts: 199
Joined: May 26th, 2004, 9:38 pm

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by energyman76c »

in ccmake I see an entry for the path of the boost-locale lib, but if I just delete the path, cmake errors out. Is there an option somewhere?

Besides, I can live very well without translations - I play in english anyway..
User avatar
iceiceice
Posts: 1056
Joined: August 23rd, 2013, 2:10 am

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by iceiceice »

gfgtdf wrote:... game eigher tries to open a transation file that has invalid UTF8...
gfgtdf, I added a check to travis like 4 or 5 months ago that checks that every file in po/ (also most in src and data) is utf8: https://github.com/wesnoth/wesnoth/blob ... ck_utf8.sh

It did once flag a bug when someone signed a translation file using an umlaut character in their name but the encoding was broken somehow. But Ivanovic corrected this right away after the travis fail.

The check is not currently running in 1.12 branch. I ran the script just now there, this is the output that I got:

Code: Select all

chris@chris-KLR650 ~/wesnoth-src/.a-a-áÇØßÜ/wesnoth $ find src/ -type f -print0 | xargs -0 isutf8 --
src/tests/test_serialization.cpp: line 39, char 1, byte offset 63: invalid UTF-8 code
src/mp_game_settings.hpp: line 2, char 1, byte offset 34: invalid UTF-8 code

chris@chris-KLR650 ~/wesnoth-src/.a-a-áÇØßÜ/wesnoth $ find data/ -not -name "*.png" -not -name "*.ogg" -not -name "*.jpg" -not -name "*.wav" -not -name "*.gif" -not -name "*.xcf" -type f -print0 | xargs -0 isutf8 --
data/tools/wesnoth/__init__.pyc: line 1, char 1, byte offset 2: invalid UTF-8 code
data/tools/wesnoth/wmltools.pyc: line 1, char 1, byte offset 2: invalid UTF-8 code
data/tools/wesnoth/wmliterator.pyc: line 1, char 1, byte offset 2: invalid UTF-8 code
chris@chris-KLR650 ~/wesnoth-src/.a-a-áÇØßÜ/wesnoth $ find po/ -type f -print0 | xargs -0 isutf8 --
chris@chris-KLR650 ~/wesnoth-src/.a-a-áÇØßÜ/wesnoth $ 
The same output is obtained at checkout 1.12.0. So I don't think any of the translation files currently have corrupt utf8... but maybe people have corrupt downloads, or it's your other suggestion about assuming the wrong encoding.
energyman76c wrote: Is there an option somewhere?
There should be an option "NLS", it is on by default but if you disable it then translation catalogues will not be assembled. I know that NLS=false is an option in scons, idk for sure what the equivalent in cmake is though.
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by gfgtdf »

i made 2 commits
https://github.com/wesnoth/wesnoth/comm ... c2118acab3
and https://github.com/wesnoth/wesnoth/comm ... 09ebcbcada

which give more debug info and could also prevent wesnoth from crashing in this case, it'd be good if someone who can reproduce this problem can test those commits.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
User avatar
Pentarctagon
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by Pentarctagon »

Here's some instructions (Windows) if anyone who can reproduce the bug feels like compiling it for themselves.

Another thought would be to upload the entire wesnoth install somewhere and let someone else who is not experiencing the bug try and run it.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
energyman76c
Posts: 199
Joined: May 26th, 2004, 9:38 pm

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by energyman76c »

did a git clone

does not compile - autorevision error. Says that I am lacking rights. Even as root.
User avatar
iceiceice
Posts: 1056
Joined: August 23rd, 2013, 2:10 am

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by iceiceice »

energyman76c wrote:does not compile - autorevision error. Says that I am lacking rights. Even as root.
Can you post the full console log?
energyman76c
Posts: 199
Joined: May 26th, 2004, 9:38 pm

Re: Problems to install BfW 1.11.19 and 1.12.0 under Windows

Post by energyman76c »

I give you the last couple of lines instead...

[ 77%] mo-update: Done.
[ 77%] Built target mo-update
[ 77%] Built target wesnoth-game
[ 77%] Built target wesnoth-lua
/bin/sh: /mnt/data/data/wesnoth_git/utils/autorevision: Permission denied
src/CMakeFiles/wesnoth-revision_dummy.dir/build.make:52: recipe for target 'src/CMakeFiles/wesnoth-revision_dummy' failed
make[2]: *** [src/CMakeFiles/wesnoth-revision_dummy] Error 126
CMakeFiles/Makefile2:656: recipe for target 'src/CMakeFiles/wesnoth-revision_dummy.dir/all' failed
make[1]: *** [src/CMakeFiles/wesnoth-revision_dummy.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
Post Reply