That's a really good advice. My problem now is as follow:
Let me put the code first and the the error:
My save function now:
function Mysave()
{
//remove pp bloom effect
BloomChecker = 1;
Bloom();
if (inkey_active == 1) {return;}
if (players_health <= 0) {return;}
game_save("save", 1, SV_ALL);
//restart pp bloom
BloomChecker = 0;
Bloom();
}
My Load function:
function Myload()
{
if (game_load("save",1) <= 0) {
slot1_txt.flags |= SHOW;
}
else{
slot1_txt.flags &= ~SHOW;
game_load("save", 1);
BloomChecker = 0;
Bloom();
}
}
Then in my main function:
void main()
{
d3d_anisotropy = 2;
d3d_mipmapping = 4;
video_mode = 10;
video_depth = 32; // 32 bit mode
video_screen = 1; // C-Script: start settings for Fullscreen*/
fps_max = 60;
level_load("level.wmb");
shadow_offset = 2;
mouse_sync = 1;
mouse_mode = 0;
d3d_automaterial = 1+2; // automatically assign materials to textures and entities
shadow_stencil = 4; // activate z-fail stencil shadows
shadow_lod = 2; // use the second LOD stage for stencil shadows
stencil_blur(1); // activate blurred shadows (included in mtlView.c, look better)
on_f2 = save_progress;
on_f3 = load_progress;
//pp bloom effect
Bloom();
// Wait for 3 frames, until the level is loaded
wait (3);
}
I got no problems saving the game now and restarting the pp bloom effect, then after it finish loading the previous saved game it shows me this error, and a green square bitmap in the left hand side:
Malfunction W1508
Can't load save01.SAVAny ideas.
Thank you in advance.