Single player campaigns no longer work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
If i do try to start a single player game campaign mission with current trunk, i get the following error:
This is Widelands Version unofficial-
Set home directory: C:\Users\
Adding directory: c:\data\
selected language: (system language)
Graphics: Try to set Videomode 800x600
Graphics: OpenGL: Version "4.5.0 - Build 25.20.100.6576"
Graphics: SDL_GL_RED_SIZE is 8
Graphics: SDL_GL_GREEN_SIZE is 8
Graphics: SDL_GL_BLUE_SIZE is 8
Graphics: SDL_GL_ALPHA_SIZE is 8
Graphics: SDL_GL_BUFFER_SIZE is 32
Graphics: SDL_GL_DOUBLEBUFFER is 1
Graphics: SDL_GL_DEPTH_SIZE is 16
Graphics: SDL_GL_STENCIL_SIZE is 0
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_STEREO is 0
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: SDL_GL_
Graphics: OpenGL: Double buffering enabled
Graphics: OpenGL: Max texture size: 16384
Graphics: OpenGL: ShadingLanguage: "4.50 - Build 25.20.100.6576"
**** GRAPHICS REPORT ****
VIDEO DRIVER windows
pixel fmt 370546692
size 800 600
**** END GRAPHICS REPORT ****
Style Manager: Reading style templates took 6ms
**** SOUND REPORT ****
SDL version: 2.0.9
SDL_mixer version: 2.0.4
**** END SOUND REPORT ****
Initializing economy serial
There's no configuration file, using default values.
lastserial: 0
Unexpected error during the game
RealFSImpl::write: could not open file for writing: C:\Users\
My userdir "x.xxx" does contain a dot, but this seems no problem when saving/
I think there were some changes recently to change how widelands handles which missions are available and the missing file "campaigns.conf" became obsolete? But i cannot find the commit....
Related branches
- Widelands Developers: Pending requested
-
Diff: 11 lines (+1/-0)1 file modifiedsrc/ui_fsmenu/campaigns.cc (+1/-0)
tags: | added: campaign |
tags: | added: savegame |
summary: |
- Single player campaigns no longer work on windows + Single player campaigns no longer work |
Changed in widelands: | |
milestone: | none → build21-rc1 |
status: | New → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
It is missing a check if the save directory already exists:
src/ui_ fsmenu/ campaigns. cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/ui_ fsmenu/ campaigns. cc b/src/ui_ fsmenu/ campaigns. cc .5b96ca98e1 100644 fsmenu/ campaigns. cc fsmenu/ campaigns. cc :Campaigns( ) { unique_ ptr<Profile> campvis; directory_ exists( kSaveDir) ; >file_exists( kCampVisFile) )) { reset(new Profile( kCampVisFile. c_str() ));
index 1a84f5aeb9.
--- a/src/ui_
+++ b/src/ui_
@@ -37,6 +37,7 @@ const std::string kCampVisFileLegacy = "save/campvis";
Campaigns:
// Load solved scenarios
std::
+ g_fs->ensure_
if (!(g_fs-
// There is no campaigns.conf file - create one.
campvis.