• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Windows Error in GMS2 with vertex building?

B

Bokkie2988

Guest
Hello,

When I run my game, and I try to buy something in it, the game freezes and shows this error message:

Code:
Win32 function failed: HRESULT: 0x8007000e

Call: GR_D3D_Device-> CreateBuffer at line 279 in file \VertexBuilderM.cpp
**UPDATE
It has something to do with this code:
Code:
//if (mouse_check_button_pressed(mb_left)){
    //if (oControl.cats < cost){
    //    alarm[0] = room_speed*3;
    //    while(alarm[0] != 0)
    //    {
    //        draw_set_font(font2);
    //        draw_text_colour(168, 212, "You don't have enough cats!", c_lime, c_lime, c_green, c_green, 1);   
    //    }
    //}
//}
Because when I remove it, it doesn't happen.

Can anyone help me with this?

-Bokkie
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
Have you first tried clearing the compiler cache and running again? Use the "broom" icon at the top beside the play buttons... Also, try deleting the font resource and re-adding it to make sure that it's available and properly cached to a texture. If it still doesn't work, try changing the font resource for a system font and see if it compiles, and if it does then you know that there's something wrong with the font being used.
 
Top