"Failed to blit surface" in editor

Post bug reports and ask for help with other issues here.
Post Reply
Szilard
Posts: 386
Joined: Wed Jan 03, 2001 10:00 am

"Failed to blit surface" in editor

Post 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?
harrer
Posts: 753
Joined: Wed Dec 01, 2004 8:34 am

RE: "Failed to blit surface" in editor

Post 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...
Szilard
Posts: 386
Joined: Wed Jan 03, 2001 10:00 am

RE: "Failed to blit surface" in editor

Post 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
harrer
Posts: 753
Joined: Wed Dec 01, 2004 8:34 am

RE: "Failed to blit surface" in editor

Post 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
Szilard
Posts: 386
Joined: Wed Jan 03, 2001 10:00 am

RE: "Failed to blit surface" in editor

Post 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.

harrer
Posts: 753
Joined: Wed Dec 01, 2004 8:34 am

RE: "Failed to blit surface" in editor

Post 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]
harrer
Posts: 753
Joined: Wed Dec 01, 2004 8:34 am

RE: "Failed to blit surface" in editor

Post 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...
Szilard
Posts: 386
Joined: Wed Jan 03, 2001 10:00 am

RE: "Failed to blit surface" in editor

Post by Szilard »

My idea of changing the campaign.ini to no customization & deleting the Major_4 folder didn't work either :(
User avatar
Hubert Cater
Posts: 5986
Joined: Mon Jul 22, 2013 11:42 am
Contact:

RE: "Failed to blit surface" in editor

Post 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
User avatar
Hubert Cater
Posts: 5986
Joined: Mon Jul 22, 2013 11:42 am
Contact:

RE: "Failed to blit surface" in editor

Post 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.
Post Reply

Return to “Tech Support”