Hello I just tried to update the battle for wesnoth application. However now when I am trying to run I am getting a C++ error. It appears to be version 1.16.5. I have deleted the app and tried to install again by downloading directly from the website but I get the same error. I don't see an older version I am able to download to verify it's just the latest version and not something I did.
Please "include system details (OS version, 32 vs 64-bit, install path, new vs upgrade, etc)." as mentioned at the top of the page when creating a new forum topic. Please also include the exact error (you can often CTRL-C a messagebox).
Sometimes, the impossible can become possible, if you're awesome!
Sorry about that.
I am running windows 10 64-bit. Version 21H2. The install path of the game is F:\PortableApps\WesnothPortable.
Below is the error I cam getting after both an upgrade, and now trying to completely reinstall. I get the same message on two different PC's both running window 10 64-bit. One is home and the other is pro.
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Assertion failed!
Program: ...
File: /wesnoth/src/filesystem.cpp
Line: 1498
Expression: game_config::path.empty() == false
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts
(Press Retry to debug the application - JIT must be enabled)
---------------------------
Abort Retry Ignore
---------------------------
Please try downloading this zip of MS VC 2013 64-bit runtime files and extracting it to the WesnothPortable\App\Wesnoth64 directory. Does this fix the issue?
Sometimes, the impossible can become possible, if you're awesome!
I tried installing all of those .dlls into that location you specified but I am still getting the same error.
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Assertion failed!
Program: ...
File: /wesnoth/src/filesystem.cpp
Line: 1498
Expression: game_config::path.empty() == false
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts
(Press Retry to debug the application - JIT must be enabled)
---------------------------
Abort Retry Ignore
---------------------------
Please try running wesnoth.exe directly within WesnothPortable\App\Wesnoth64 to see if the same occurs. Note that this will run it in local mode and may create some files on your local PC.
If that fails, the only thing I can think of is if there's some corrupted VC runtime on your system messing with it.
Sometimes, the impossible can become possible, if you're awesome!
I am still getting the same error and I am getting it on two different systems. Do you think the same VC runtime could be corrupted on both? The most recent release previous to this one worked fine on both computers.
I should mention the game works fine if I load it and run it through steam. I try to use the portable apps version because it saves my progress across the two devices I use for travel.
Make tests on (many) other (legions of) computers than yours, maybe you have a same software/configuration causing the issue.Maybe some people do not understand/appreciate word playing.
“My brain is only a receiver, in the Universe there is a core from which we obtain knowledge, strength and inspiration. I have not penetrated into the secrets of this core, but I know that it exists.”
― Nikola Tesla ―
I double checked and the files within WesnothPortable\App\Wesnoth64 are the exact same files that will be installed in a fresh install on Windows 10 64-bit within C:\Program Files\Battle for Wesnoth 1.16.5 as well as the same when extracting from the installer directly (minus the PLUGINSDIR and uninstall.exe). I went through Wesnoth's local installer source and there is no check or install of any VC runtimes.
Is there anything unusual about the USB sticks formatting or permissions wise?
Please try copying your WesnothPortable folder from F:\PortableApps\WesnothPortable to your desktop (C:\Users\USERNAME\Desktop) and then run it from there. This may help with what's triggering it.
Sometimes, the impossible can become possible, if you're awesome!
OK,
This was a good step. I will need to figure out what is happening with the USB sticks. When I dragged the app to my desktop it ran fine. (Wesnothportable) as well as the app in the folder names 'Wesnoth'. Thanks for the tips I am going to have to diagnose how the thumb drives are being formatted.
The main issue I've seen pop up is NTFS formatted drives that were formatted on an older Windows PC or a non-Windows PC with incorrect permissions. 'Everyone' should be set as 'Full Access' if you're moving it around between PCs. Even if you have the same username on both PCs, they'll be different users (unless you're using a Domain or something).
exFAT and FAT32 don't have these permissions issues, but something else could be up.
Sometimes, the impossible can become possible, if you're awesome!
OK,
I tried another drive and I am still having trouble. Other apps like VLC, Notepad++ work, The local version works when I copy it to my desktop but a complete fresh install of the portable apps suite and wesnoth still gets the same error. 32 bit file will open if I try it but not the 64 bit. I am really confused here. I don't see any options for permissions at this point. The file system when I check is labeled as 'exFAT'.
I ran the command prompt to see what is happening and copied this. Not sure if it will help.
Battle for Wesnoth v1.16.5 x86_64
Started on Thu Aug 25 23:58:00 2022
20220825 23:58:00 error filesystem: Failed to check existence of file F:\PortableApps\WesnothPortable\App\Wesnoth64/data/_main.cfg: The parameter is incorrect
20220825 23:58:00 error filesystem: Failed to check existence of file F:/PortableApps/WesnothPortable/App/Wesnoth64/data/_main.cfg: The parameter is incorrect
Data directory:
User configuration directory: C:\Users\USER\Documents\My Games\Wesnoth1.16
User data directory: C:\Users\USER\Documents\My Games\Wesnoth1.16
Cache directory: C:\Users\USER\Documents\My Games\Wesnoth1.16\cache
Since when you run the unmodified app itself within WesnothPortable\App\Wesnoth64 it fails with that error, it is a bug within the base app itself. Not sure what the issue is, though. The 32-bit version is an older version of the app as it now requires 64-bit.
So, it seems the current version doesn't like running from F:\ specifically, doesn't like running from an exFAT drive, or doesn't like something else specific about your external drive setup. You could try remapping the drive to another letter to rule out the first option. You could try formatting a drive as NTFS and running from there to eliminate the second.
Sometimes, the impossible can become possible, if you're awesome!
Thanks for the tips. I have tried changing the drive to G:\ now but still no luck. I have used two different thumb drives but I will try and switch to an external SSD and see if that can work. I have tried both exFAT and FAT32 but not NTFS but I'll give that a shot.
OK I tried this on another computer and I ran the .exe from the wesnot folder directly. The non 64bit file and it opened. But the 64 bit version gets the same error.
F:\PortableApps\WesnothPortable\App\Wesnoth = Works
F:\PortableApps\WesnothPortable\App\Wesnoth64 = error
Is there anyway I can get the previous version installer to see if deleting and rolling back will solve the problem. Every machine I try it’s not working and I have used two different USB sticks now. I have tried installing through downloading the .paf file from the website and also through the tool within portable apps.
I am a Battle of Wesnorth fan from an age long ago (I think it was on my RiscPC), and was pleased to see it available here, but I am having the same problem as jmesch04.
Windows 10
Portable Apps is on an external (USB) hard drive (currently E:)
E:\PortableApps\PortableApps\WesnothPortable\App\Wesnoth64 >> 05-Sep-2022 02: 59 = Error
E:\PortableApps\PortableApps\WesnothPortable\App\Wesnoth >> 21-Jun-2021 12:29 = Runs
Was any more progress made on this problem?
Thank you