Page 1 of 1
"Failed to blit surface" in editor
Posted: Mon Mar 27, 2017 11:21 pm
by Szilard
I get a fatal error with this message in the editor, at seemingly random times, but I think it always happens eventually unless I leave the editor after a very short time.
This has happened since v1.0, I think, but maybe as the eradication of gameplay bugs comes to an end, this could be looked at now?
RE: "Failed to blit surface" in editor
Posted: Tue Mar 28, 2017 2:08 am
by harrer
Hi,
Seems to be the same as
here
I'm still doing tests with Hubert, who's trying to figure out how to fix it...
RE: "Failed to blit surface" in editor
Posted: Tue Mar 28, 2017 2:26 am
by Szilard
Presumably related, but my bug is inside the editor (v1.02).
FWIW, the error log has this:
[2017-03-28 11:18:10 AM; 6.2.9200; 1440x900x32(0); v1.02.01] SDL FAILED(draw_current_sprite_to_buffer_dc(general)): Failed to blit surface
Should note that the error log shows same error occurring for all versions back to v1.00
RE: "Failed to blit surface" in editor
Posted: Tue Mar 28, 2017 2:54 am
by harrer
Can you just take the 1939 campaign in the editor, save it with another name in your user folder and test it? (without any modification)
When I do it, I got such a bug in the editor but also in the game, it begins after polish surrender.
I got the bug in the editor and in the game with user campaigns.
I tried all versions to 1.02.01 with the new hotfix.
But I have no bug in the default campaigns.
This far, making lots of tests, I seems to be able to avoid the bugs this way :
1. I save my user campaigns in the default campaign folder. (and do all the mods I want)
2. Then i make a copy in the user campaign folder ( Documents\My Games\Strategic Command WWII - War In Europe\Campaigns\ )
If you don't make a copy in this folder, it won't appear in the campaign lists you may launch in the game.
If you don't have the files in the user campaign folder AND in the default campaign folder, you'll have the bug.
I tried it and no bug in the game ... at least I tested until december 1939 this morning.
My errorlog looks more like this :
[2017-03-28 6:56:05 AM; 6.2.9200; 1600x1024x32(0); v1.02.01] SDL FAILED(draw_sprite_on_map_surface): Failed to blit surface
RE: "Failed to blit surface" in editor
Posted: Tue Mar 28, 2017 3:15 am
by Szilard
Wonder if it has anything to do with this: In the MyGames/[SCWiE]/Campaigns folder, any campaign I create (by saving from a default campaign) has this in the campaign.ini file -
#CUSTOM_BITMAPS= 1
#CUSTOM_INTERFACE= 1
#CUSTOM_SOUND= 0
#CUSTOM_MUSIC= 0
#CUSTOM_FONTS= 0
#CUSTOM_LOCALIZATION= 1
But I actually haven't done anything to customize bitmaps, interface or localization.
Also created is a BitMaps/Major_04 folder associated with the campaign, with NATO & 3D sprite files. There are no other folders within BitMaps, and only the sprite files in Major_4.
So - is there a bogus customization happening whenever you create a new campaign by saving a default campaign, involving bad sprite files?
Looking at the BitMaps folder in the Matrix game director, my suspicions increase: The sprite files in the Major_4 folder are different sizes to the ones in the MyGames Major_4 folder.
RE: "Failed to blit surface" in editor
Posted: Tue Mar 28, 2017 4:50 am
by harrer
Those sprite files have the same size in my user and default folders... strange.
My last test showed me that I still suffer the bug, even when doing the manipulations I posted[:(]
[2017-03-28 9:44:24 AM; 6.2.9200; 1600x1024x32(1); TEST] SDL FAILED(draw_sprite_to_buffer): Failed to blit surface
So ... waiting for Hubert's (or anyone else [;)]) help [&o]
RE: "Failed to blit surface" in editor
Posted: Tue Mar 28, 2017 5:14 am
by harrer
Just to check, I tried to copy paste the default campaign "1939 Storm over Europe" in the user folder.
I changed the name into 1939 Storm.
I launched it ... and when trying to move on the map:
[2017-03-28 10:12:23 AM; 6.2.9200; 1600x1024x32(0); v1.02.01] SDL FAILED(draw_sprite_on_map_surface): Failed to blit surface
Note that the error message is a little different...
RE: "Failed to blit surface" in editor
Posted: Tue Mar 28, 2017 6:57 am
by Szilard
My idea of changing the campaign.ini to no customization & deleting the Major_4 folder didn't work either

RE: "Failed to blit surface" in editor
Posted: Tue Mar 28, 2017 10:14 am
by Hubert Cater
ORIGINAL: Szilard
I get a fatal error with this message in the editor, at seemingly random times, but I think it always happens eventually unless I leave the editor after a very short time.
This has happened since v1.0, I think, but maybe as the eradication of gameplay bugs comes to an end, this could be looked at now?
Hi Szilard,
Thanks for the report and I have a suspicion on what this one might be after your description, i.e. of being in the Editor for quite some time. I'll look into this today and if you can send me an email at
support@furysoftware.com this would be great.
Hubert
RE: "Failed to blit surface" in editor
Posted: Tue Mar 28, 2017 10:20 am
by Hubert Cater
ORIGINAL: Szilard
Wonder if it has anything to do with this: In the MyGames/[SCWiE]/Campaigns folder, any campaign I create (by saving from a default campaign) has this in the campaign.ini file -
#CUSTOM_BITMAPS= 1
#CUSTOM_INTERFACE= 1
#CUSTOM_SOUND= 0
#CUSTOM_MUSIC= 0
#CUSTOM_FONTS= 0
#CUSTOM_LOCALIZATION= 1
But I actually haven't done anything to customize bitmaps, interface or localization.
Also created is a BitMaps/Major_04 folder associated with the campaign, with NATO & 3D sprite files. There are no other folders within BitMaps, and only the sprite files in Major_4.
So - is there a bogus customization happening whenever you create a new campaign by saving a default campaign, involving bad sprite files?
This is correct as the default campaigns themselves have a few customizations, so when you create a new campaign based off of the default campaigns it passes forward the same info/settings into the USER folder.