[Problem SOLVED !] Game crashing at building map save/load

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:
Post Reply
Glxblt76
Posts: 21
Joined: April 28th, 2012, 5:57 pm

[Problem SOLVED !] Game crashing at building map save/load

Post by Glxblt76 » April 28th, 2012, 6:08 pm

Good evening,

Please understand my medium english, I'm french.

I'm coming ask your technical help because my game crashes each time I try to save a map in the map editor.
It's a visual C++ error, so a very general one.

1. Operating system, including its version
Windows XP
2. Version of Wesnoth, including the configured language.
1.10.1
3. A step-by-step walkthrough of how to reproduce the problem. If the problem can’t be reproduced it will severely limit the chance we will able to identify and fix the problem.
1) Open the map editor.
2) Click on "save map" or "save map as" ; or use the keyboard shortcuts : ctrl +c, shift + ctrl + c

4. Please attach a savegame where possible, as this is the easiest way for developers to reproduce errors occurring during gameplay.
Since apart from this issue, the game works well, I don't have any.

5. If you are reporting a crash bug and you are on Linux, Mac OS X and other Unix-like operating system, please try to provide a backtrace of the game executable as described in this thread.
Maybe you call this a "backtrace" :
stderr wrote:Battle for Wesnoth v1.10.1
Started on Sat Apr 28 19:43:57 2012

Automatically found a possible data directory at C:/Documents and Settings/Theophile.THÉOPHILE/Bureau/Battle for Wesnoth 1.10.1

Data directory: C:/Documents and Settings/Theophile.THÉOPHILE/Bureau/Battle for Wesnoth 1.10.1
User configuration directory: C:/Documents and Settings/Theophile.THÉOPHILE/Bureau/Battle for Wesnoth 1.10.1/userdata
User data directory: C:/Documents and Settings/Theophile.THÉOPHILE/Bureau/Battle for Wesnoth 1.10.1/userdata
Cache directory: C:/Documents and Settings/Theophile.THÉOPHILE/Bureau/Battle for Wesnoth 1.10.1/userdata/cache
Checking video mode: 1366x706x32...
setting mode to 1366x706x32
20120428 19:43:59 error config: Skipping over a utf8 BOM
20120428 19:44:01 error config: Skipping over a utf8 BOM
20120428 19:44:02 error filesystem: Trying to open file with empty name.
I think that it's a directory route problem, but I don't see how to solve it.

Thanks in advance for your support.
Regards,
Glx
Last edited by Glxblt76 on April 30th, 2012, 1:21 pm, edited 2 times in total.

User avatar
alexanderthegre
Posts: 193
Joined: December 8th, 2011, 3:23 am
Location: nowhere

Re: game crashing at building map saving

Post by alexanderthegre » April 28th, 2012, 8:24 pm

I'm not very experienced in this sort of thing, but special characters (É) and spaces in filepaths aren't often a good thing.

Can you load add-ons? Because it's probably not a directory problem if you can, as they're stored in (mostly) the same path as maps.

Glxblt76
Posts: 21
Joined: April 28th, 2012, 5:57 pm

Re: game crashing at building map saving

Post by Glxblt76 » April 29th, 2012, 7:21 am

Hi,

Yes, I can install extensions, this problem is my own one.

I precise that I installed the 1.10.1 version in an other computer (windows 7) and then transferred the whole folder in that computer, via an external hard drive.

Could this be the reason ?

This is the content of my "preferences" files :
UI_sound=""
UI_volume=""
ally_sighted_interrupts=""
animate_map=""
ask_delete=""
auto_save_max=10
bell_volume=""
chat_lines=""
chat_message_aging=""
chat_timestamp=""
client_type=""
color_cursors=no
completed_campaigns=""
compress_saves=""
confirm_end_turn=""
confirm_load_save_from_different_version=""
delete_saves=""
disable_notifications=""
enable_planning_mode_on_start=""
encountered_terrain_list="Ce, Ch, Cud, Ds, Ft, Gg^Efm, Gg^Em, Gg^Es, Gg^Ve, Gg^Vh, Gg, Gs^Fds, Gs^Fms, Gs^Fp, Gs^Vht, Gs, Gt, Hh^Fds, Hh^Fms, Hh^Fp, Hh^Vhh, Hh, Ke, Kh, Kud, Mm^Vhh, Mm, Rd, Re^Gvs, Re, Rr, Ss, Uh^Ii, Uh, Uu^Ii, Uu^Uf, Uu^Vu, Uu^Vud, Uu, Vi, Ww^Bw\, Ww, Wwf, Xt, Xu, ^Uf"
encountered_units="Ancient Lich,Assassin,Bone Shooter,Cavalryman,Dark Adept,Dark Sorcerer,Dragoon,Dwarvish Fighter,Dwarvish Steelclad,Dwarvish Thunderer,Elvish Fighter,Elvish Ranger,Elvish Scout,Elvish Shaman,Ghost,Heavy Infantryman,Horseman,Lich,Lieutenant,Mage,Mounted Fighter,Orcish Archer,Orcish Grunt,Orcish Slayer,Orcish Warrior,Outlaw,Poacher,Revenant,Rogue,Sergeant,Shock Trooper,Skeleton,Skeleton Archer,Spearman,Thief,Thug,Troll,Troll Whelp,Vampire Bat,Walking Corpse,White Mage,Wolf Rider"
flip_time=""
floating_labels=""
friends=""
fullscreen=no
grid=yes
hide_whiteboard=""
iconize_list=""
idle_anim=""
idle_anim_rate=""
joystick_cursor_deadzone=""
joystick_cursor_threshold=""
joystick_cursor_xaxis_num=""
joystick_cursor_yaxis_num=""
joystick_num_cursor_xaxis=""
joystick_num_cursor_yaxis=""
joystick_support_enabled=""
lobby_auto_open_whisper_windows=""
lobby_joins=""
lobby_playerlist_group_players=""
lobby_sounds=""
lobby_whisper_friends_only=""
local_tod_lighting=""
locale="fr_FR"
login=""
middle_click_scrolls=""
mouse_scrolling=""
music=no
music_volume=""
new_lobby=""
ping_timeout=""
remember_password=""
remember_timer_settings=""
sample_rate=""
save_replays=""
scroll=50
scroll_threshold=10
scroll_to_action=yes
scroll_when_mouse_outside=""
show_ai_moves=""
show_all_units_in_help=""
show_combat=""
show_haloes=yes
show_side_colors=""
sort_list=""
sound=""
sound_buffer_size=""
sound_volume=""
startup_effect=""
theme=""
turbo=no
turbo_speed=2
turn_bell=""
turn_dialog=""
unit_standing_animations=""
use_twelve_hour_clock_format=""
xwindowsize=1366
ywindowsize=706
[history]
[/history]
Sorry for post length.

Glxblt76
Posts: 21
Joined: April 28th, 2012, 5:57 pm

Re: game crashing at building map saving

Post by Glxblt76 » April 29th, 2012, 9:17 am

Desperatly, I built this morning a map on my netbook, in which the editor works, and projected to send through my mailbox the map I made on my fix computer, which as more resources.
But I encounter a lot of difficulties to actually find this file on my netbook, and it gave me an idea.

This is how I got rid of that difficulty it and then my idea :
I took me file from Windows 7 and had several difficulties to find it inside the system. In fact, I had to search on google and found a post specifying that the file I was looking for was in Users/Admin/AppData/Local/VirtualStore/Program Files/Battle For Wesnoth 1.10.1.

I actually found it in that weird directory way ... After getting rid of that annoying hidding (Appdata is a hidden folder ...)

But now, I'm on my best computer, a Windows XP one. If the game tries to find this access on XP, it will not (VirtualStore system apparently was implemented on Windows Vista, and let like that on Seven ...). So, Maybe this is the source of the error. Then, how to redirect the way the program takes to save maps ?

Additionnal information :
I had a stderr.txt in the Users/Admin/AppData/Local/VirtualStore/Program Files/Battle For Wesnoth 1.10.1 folder. It was almost the same to the former I shown to you, except this sentence which I can only read on my XP computer :
20120428 19:44:02 error filesystem: Trying to open file with empty name.

SlowThinker
Posts: 876
Joined: November 28th, 2008, 6:18 pm

Re: game crashing at building map saving

Post by SlowThinker » April 29th, 2012, 10:19 am

You must not have a space in the path: http://forums.wesnoth.org/viewtopic.php?f=4&t=29520

Solution: use another Wesnoth userdata directory when you run the editor. You can achieve it by this command-line parameter: --config-dir . More details here: http://forums.wesnoth.org/viewtopic.php ... 78#p388078
I work on Conquest Minus • I use DFoolWide, Retro Terrain Package and the add-on 'High Contrast Water'
I moved to Nosebane's corner (Doc Paterson's signature); I am spending my time there, so PM me if I don't answer your post in forums

Glxblt76
Posts: 21
Joined: April 28th, 2012, 5:57 pm

Re: game crashing at building map saving

Post by Glxblt76 » April 30th, 2012, 7:40 am

Hi,

Thanks for your intervention. But ...
I simply don't undestand how to fix this bug even after reading your links.
Indeed, when I'm right-clicking on the name of my game-shortcut, and try to rename it, it refuses special characters like : or /, preventing me from specifying a directory for my userdata.

And I don't have any options avaliable at normal right clicking which let me type commands. I can't open this .exe with Ms Dos Command.

Could you describe me a precise protocol to solve the problem ? :oops:

SlowThinker
Posts: 876
Joined: November 28th, 2008, 6:18 pm

Re: game crashing at building map saving

Post by SlowThinker » April 30th, 2012, 8:48 am

If you right-click on the shortcut then in a textbox "target" you will see something like this:

Code: Select all

"E:\Games\Battle for Wesnoth 1.10.2\wesnoth.exe" --config-dir Wesnoth1.10
side note:
you need to edit it so that it is like this:

Code: Select all

"E:\Games\Battle for Wesnoth 1.10.2\wesnoth.exe" --config-dir "E:/Data/Wesnoth/Wesnoth1.10/"
You can use any path in place of "E:/Data/Wesnoth/Wesnoth1.10/", but it should not contain spaces, national characters ...
Edit: spaces may be allowed (no guarantee)
Last edited by SlowThinker on May 7th, 2012, 9:30 am, edited 2 times in total.
I work on Conquest Minus • I use DFoolWide, Retro Terrain Package and the add-on 'High Contrast Water'
I moved to Nosebane's corner (Doc Paterson's signature); I am spending my time there, so PM me if I don't answer your post in forums

Glxblt76
Posts: 21
Joined: April 28th, 2012, 5:57 pm

Re: game crashing at building map saving

Post by Glxblt76 » April 30th, 2012, 10:26 am

If I right click, this appears :

Open
Execute as ...
Analyse wesnoth.exe
Add to archive ...
Add to "wesnoth.rar"
Compress and send by e-mail ...
Compress in"wesnoth.rar" and send by e-mail
Add to start menu
_____
Send to ...
_____
Copy
Paste
_____
Create a shortcut
Delete
Rename
______
Properties

This is a translation from french.
Where to click to see what you say ? I don't succeed.
I'm in windows XP.

SlowThinker
Posts: 876
Joined: November 28th, 2008, 6:18 pm

Re: game crashing at building map saving

Post by SlowThinker » April 30th, 2012, 10:37 am

Click the last item in your list: "Properties".
Then go to 2nd tab, "Shortcut"

Glxblt76
Posts: 21
Joined: April 28th, 2012, 5:57 pm

Re: game crashing at building map saving

Post by Glxblt76 » April 30th, 2012, 11:37 am

Thanks for your help, but I have only those 3 tabs :

General
Compatibility
Summary

None of those 3 tabs contains what you say.

Max
Posts: 1449
Joined: April 13th, 2008, 12:41 am

Re: game crashing at building map saving

Post by Max » April 30th, 2012, 11:46 am

here's an image what this dialog looks like in win7 (including the part you should edit):
http://forums.wesnoth.org/viewtopic.php ... 30#p449560

according to this page it should like similar in winxp (can't test right now).

here's a wiki page with details about the userdata directory:
http://wiki.wesnoth.org/EditingWesnoth# ... rectory.3F

SlowThinker
Posts: 876
Joined: November 28th, 2008, 6:18 pm

Re: game crashing at building map saving

Post by SlowThinker » April 30th, 2012, 11:56 am

Yes, the image Max posted is shown in Win XP too.

The icon you are clicking to is not a shortcut, and therefore 'Shortcut' tab is missing.
You need to find Wesnoth's shortcut, for example it should be in 'Start/All programs'.
(You can also create a shortcut)

Glxblt76
Posts: 21
Joined: April 28th, 2012, 5:57 pm

Re: game crashing at building map saving

Post by Glxblt76 » April 30th, 2012, 1:14 pm

Problem solved ! :D

So, to summarize the protocol I used to solve that problem (thanks to the help of all posters on this topic) :

Recipie to solve this problem
- Create a shortcut of wesnoth.exe in the folder where wesnoth.exe is
- Right-Click on that shortcut
- Click on "Properties"
- Click on "shortcut" table
- Add at the end of the field "Target"
--config-dir "C:/programmes/Wesnoth1.10/"
(It's important to let a space at the begin, before "--config-dir")

- Create a folder named "programmes" in C:\directory
- Create a folder named Wesnoth1.10 in the folder "programmes"
TAKE CARE TO DON'T INCLUDE NATIONAL CHARACTERS OR SPACE IN THE NAMES OF THE DIRECTORY PATH : If not, it don't work (I tried ...)

Then I created a new map and saved it, and load it : IT WORKS ! :lol2:

Great thanks for all the helpers !
Last edited by artisticdude on April 30th, 2012, 1:57 pm, edited 1 time in total.
Reason: As per point 1d of the Posting Guidelines, please do not use colored text in your posts unless they are essential for conveying the purpose of your message, which in this case they were not. I have removed the colors from your post accordingly.

SlowThinker
Posts: 876
Joined: November 28th, 2008, 6:18 pm

Re: game crashing at building map saving

Post by SlowThinker » May 6th, 2012, 10:37 pm

Glxblt76 wrote:TAKE CARE TO DON'T INCLUDE NATIONAL CHARACTERS OR SPACE IN THE NAMES OF THE DIRECTORY PATH : If not, it don't work (I tried ...)
Did you test spaces but no national characters?

I tested it now and got no problem.
So maybe spaces caused problems only in previous versions of Wesnoth, and Wesnoth 1.10 can use spaces in paths (?)

Post Reply