• 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!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

HTML5 "Compile error", but it actually does compile, just won't run

Nallebeorn

Member
EDIT: For the record, I "solved" this (accidentally) by doing a Save As... on the project.

I tried compiling an existing project for HTML5, but all I get is a Compile Error dialogue. It's one of those that don't really give me any useful information, just telling me to "Please check the Compile window for any additional information." – only, there are no errors of any sort in the compile window. It's just the regular log of compiled events and script, ending with a "Compile finished" as if nothing went wrong at all.
(here's the whole compile log for good measure)
Compile started: 10:32:39 PM
"C:\Users\Benjamin\AppData\Roaming\GameMaker-Studio\GMAssetCompiler.exe" /c /m=html5 /nodnd /obfuscate /wt /html5folder="raftraftraft" /nocache_html5 /o="C:\Users\Benjamin\Documents\GameMakerStudioWebRoot\raftraftraft" /HTMLRunner="C:\Users\Benjamin\AppData\Roaming\GameMaker-Studio\scripts.html5.zip" /config="Default" /tgt=32 /obob=True /obpp=False /obru=True /obes=False /i=3 /j=4 /cvm /tp=2048 /mv=1 /iv=0 /rv=0 /bv=1763 /gn="raftraftraft" /td="C:\Users\Benjamin\AppData\Local\Temp" /cd="C:\Users\Benjamin\Documents\GameMaker\Cache" /sh=True /dbgp="4999" /hip="192.168.10.122" /hprt="51268" /optionsini="C:\Users\Benjamin\AppData\Local\Temp\gm_ttt_78429\gm_ttt_95598\raftraftraft.ini" "C:\Users\Benjamin\Documents\GameMaker\Projects\raftraftraft.gmx\raftraftraft.project.gmx"

Reading project file....finished.
Saving HTML5 file... C:\Users\Benjamin\Documents\GameMakerStudioWebRoot\raftraftraft\raftraftraft\raftraftraft.js
0 Compressing texture... writing texture raftraftraft_texture_0.png...
Compiling - gml_Script_file_text_load
Compiling - gml_Script_log
Compiling - gml_Script_logf
Compiling - gml_Script_draw_text_outline
Compiling - gml_Script_draw_text_colour_outline
Compiling - gml_Script_draw_text_ext_outline
Compiling - gml_Script_draw_text_transformed_outline
Compiling - gml_Script_makestr
Compiling - gml_Script_string_format_0
Compiling - gml_Script_string_replace_multiple
Compiling - gml_Script_view_xborder
Compiling - gml_Script_view_yborder
Compiling - gml_Script_view_xcenter
Compiling - gml_Script_view_ycenter
Compiling - gml_Script_strf
Compiling - gml_Script_sprite_set_width
Compiling - gml_Script_sprite_set_height
Compiling - gml_Script_dur2spd
Compiling - gml_Script_trunc
Compiling - gml_Script_approx
Compiling - gml_Script_string_parse
Compiling - gml_Script_ds_map_merge
Compiling - gml_Script_irandom_seed
Compiling - gml_Script_random_seed
Compiling - gml_Script_random_range_seed
Compiling - gml_Script_irandom_range_seed
Compiling - gml_Script_instance_position_list
Compiling - gml_Script_snap
Compiling - gml_Script_Array
Compiling - gml_Script_List
Compiling - gml_Script_Map
Compiling - gml_Script_iif
Compiling - gml_Script_bool2sign
Compiling - gml_Script_mouse_is_hovering
Compiling - gml_Script_text_align
Compiling - gml_Script_mod2
Compiling - gml_Script_approach
Compiling - gml_Script_approach_angle
Compiling - gml_Script_draw_sprite_outline
Compiling - gml_Script_get_inputs
Compiling - gml_Script_inventory_add
Compiling - gml_Script_inventory_free_space
Compiling - gml_Script_inventory_open
Compiling - gml_Script_inventory_select
Compiling - gml_Script_inventory_remove
Compiling - gml_Script_inventory_drop
Compiling - gml_Script_inventory_drop_index
Compiling - gml_Script_craft_update_list
Compiling - gml_Script_craft_add
Compiling - gml_Script_craft_remove
Compiling - gml_Script_craft_craft
Compiling - gml_Script_init_items
Compiling - gml_Script_init_recipes
Compiling - gml_Script_ds_list_add_unique
Compiling - gml_Script_create_item_drop
Compiling - gml_Script_update_raft_bounds
Compiling - gml_Script_get_raft_bounds
Compiling - gml_Script_follow_raft
Compiling - gml_Script_raft_wave_transform
Compiling - gml_Script_raft_reset_transform
Compiling - gml_Script_near_player
Compiling - gml_Script_on_screen
Compiling - gml_Script_spawn_stuff
Compiling - gml_Script_random_x
Compiling - gml_Script_random_y
Compiling - gml_Script_equipItem
Compiling - gml_Script_add_wood
Compiling - gml_Object_obj_player_Create_0
Compiling - gml_Object_obj_player_Step_2
Compiling - gml_Object_obj_player_Step_0
Compiling - gml_Object_obj_player_Draw_0
Compiling - gml_Object_obj_player_KeyPress_112
Compiling - gml_Object_obj_controller_Create_0
Compiling - gml_Object_obj_controller_Destroy_0
Compiling - gml_Object_obj_controller_Alarm_0
Compiling - gml_Object_obj_controller_Step_1
Compiling - gml_Object_obj_controller_Other_4
Compiling - gml_Object_obj_controller_Draw_64
Compiling - gml_Object_obj_controller_KeyPress_114
Compiling - gml_Object_obj_inventoryItem_Create_0
Compiling - gml_Object_obj_inventoryItem_Destroy_0
Compiling - gml_Object_obj_inventoryItem_Step_2
Compiling - gml_Object_obj_inventoryItem_Step_0
Compiling - gml_Object_obj_inventoryItem_Draw_73
Compiling - gml_Object_obj_inventoryGUI_Create_0
Compiling - gml_Object_obj_inventoryGUI_Destroy_0
Compiling - gml_Object_obj_inventoryGUI_Alarm_0
Compiling - gml_Object_obj_inventoryGUI_Step_0
Compiling - gml_Object_obj_inventoryGUI_Draw_0
Compiling - gml_Object_obj_craftingGUI_Create_0
Compiling - gml_Object_obj_craftingGUI_Destroy_0
Compiling - gml_Object_obj_craftingGUI_Alarm_0
Compiling - gml_Object_obj_craftingGUI_Step_0
Compiling - gml_Object_obj_craftingGUI_Draw_73
Compiling - gml_Object_obj_inventorySlot_Create_0
Compiling - gml_Object_obj_inventorySlot_Step_0
Compiling - gml_Object_obj_inventorySlot_Draw_73
Compiling - gml_Object_obj_craftingSlot_Create_0
Compiling - gml_Object_obj_craftingSlot_Destroy_0
Compiling - gml_Object_obj_craftingSlot_Step_0
Compiling - gml_Object_obj_craftingSlot_Draw_73
Compiling - gml_Object_obj_craftItem_Create_0
Compiling - gml_Object_obj_craftItem_Step_0
Compiling - gml_Object_obj_craftItem_Draw_73
Compiling - gml_Object_obj_craftItem_Draw_0
Compiling - gml_Object_obj_playerController_Create_0
Compiling - gml_Object_obj_playerController_Step_0
Compiling - gml_Object_obj_playerController_Other_4
Compiling - gml_Object_obj_playerController_Draw_73
Compiling - gml_Object_obj_item_drop_Create_0
Compiling - gml_Object_obj_item_drop_Step_2
Compiling - gml_Object_obj_item_drop_Step_0
Compiling - gml_Object_obj_item_drop_Draw_0
Compiling - gml_Object_obj_item_Create_0
Compiling - gml_Object_obj_item_Step_2
Compiling - gml_Object_obj_item_Draw_0
Compiling - gml_Object_obj_itemTemplate_Create_0
Compiling - gml_Object_obj_itemTemplate_Step_0
Compiling - gml_Object_obj_itemPlace_Create_0
Compiling - gml_Object_obj_itemPlace_Step_2
Compiling - gml_Object_obj_itemPlace_Step_0
Compiling - gml_Object_obj_itemPlace_Other_10
Compiling - gml_Object_obj_itemPlace_Draw_0
Compiling - gml_Object_obj_raftTilePlace_Create_0
Compiling - gml_Object_obj_raftTilePlace_Step_0
Compiling - gml_Object_obj_raftTilePlace_Other_10
Compiling - gml_Object_obj_autoOarPlace_Create_0
Compiling - gml_Object_obj_autoOarPlace_Step_0
Compiling - gml_Object_obj_emptyHand_Create_0
Compiling - gml_Object_obj_emptyHand_Step_0
Compiling - gml_Object_obj_oar_Create_0
Compiling - gml_Object_obj_oar_Step_2
Compiling - gml_Object_obj_oar_Step_0
Compiling - gml_Object_obj_oar_Other_7
Compiling - gml_Object_obj_oar_Draw_73
Compiling - gml_Object_obj_raftTile_Create_0
Compiling - gml_Object_obj_raftTile_Destroy_0
Compiling - gml_Object_obj_raftTile_Step_1
Compiling - gml_Object_obj_raftTile_Draw_72
Compiling - gml_Object_obj_raftTile_Draw_0
Compiling - gml_Object_obj_raftTile_Collision_2
Compiling - gml_Object_obj_raft_Create_0
Compiling - gml_Object_obj_raft_Alarm_0
Compiling - gml_Object_obj_raft_Step_2
Compiling - gml_Object_obj_raft_Step_0
Compiling - gml_Object_obj_raft_Other_40
Compiling - gml_Object_obj_raft_Draw_73
Compiling - gml_Object_obj_water_Create_0
Compiling - gml_Object_obj_water_Other_5
Compiling - gml_Object_obj_water_Draw_72
Compiling - gml_Object_obj_water_Draw_0
Compiling - gml_Object_obj_autoOar_Create_0
Compiling - gml_Object_obj_autoOar_Step_2
Compiling - gml_Object_obj_autoOar_Step_1
Compiling - gml_Object_obj_autoOar_Step_0
Compiling - gml_Object_obj_autoOar_Draw_0
Compiling - gml_Object_obj_driftwood_Create_0
Compiling - gml_Object_obj_driftwood_Step_0
Compiling - gml_Object_obj_driftwood_Draw_0
Compiling - gml_Object_obj_smallRock_Create_0
Compiling - gml_Object_obj_debris_Create_0
Compiling - gml_Object_obj_debris_Other_7
Compiling - gml_Object_obj_splash_Create_0
Compiling - gml_Object_obj_splash_Other_7
Compiling - gml_Object_obj_smallSplash_Step_2
Compiling - gml_Object_obj_spawner_Create_0
Compiling - gml_Object_obj_spawner_Destroy_0
Compiling - gml_Object_obj_spawner_Alarm_0
Compiling - gml_Object_obj_spawner_Step_0
Compiling - gml_Object_obj_spawner_Other_5
Compiling - gml_Object_obj_tutorial_Create_0
Compiling - gml_Object_obj_tutorial_Step_0
Compiling - gml_Object_obj_tutorial_Draw_73
Compiling - gml_Object_obj_tutorial_Draw_0
Compiling - gml_Object_obj_tutorial_KeyPress_113
Compiling - gml_Object_obj_sand_Create_0
Compiling - gml_Object_obj_sand_Step_2
Compiling - gml_Object_obj_sand_Step_1
Compiling - gml_Object_obj_sand_Step_0
Compiling - gml_Object_obj_sand_Draw_72
Compiling - gml_Object_obj_sand_Draw_0
Compiling - gml_Object_obj_sand_Collision_2
Compiling - gml_Object_obj_shoreline_Create_0
Compiling - gml_Object_obj_fadeToGame_Create_0
Compiling - gml_Object_obj_fadeToGame_Draw_73
Compiling - gml_Object_obj_fadeFromBlack_Create_0
Compiling - gml_Object_obj_fadeFromBlack_Draw_73
Compiling - gml_Object_obj_gameOver_Create_0
Compiling - gml_Object_obj_gameOver_Destroy_0
Compiling - gml_Object_obj_gameOver_Alarm_1
Compiling - gml_Object_obj_gameOver_Alarm_0
Compiling - gml_Object_obj_gameOver_Other_5
Compiling - gml_Object_obj_gameOver_Other_3
Compiling - gml_Object_obj_gameOver_Draw_73
Compiling - gml_Object_obj_gameOver_KeyPress_90
Compiling - gml_Object_obj_whale_Create_0
Compiling - gml_Object_obj_whale_Step_0
Compiling - gml_Object_obj_whale_Collision_18
Compiling - gml_Room_rm_init_Create
Compiling - gml_Room_rm_tutorial_Create
Compiling - gml_RoomCC_rm_tutorial_2_Create
Compiling - gml_RoomCC_rm_tutorial_3_Create
Compiling - gml_Room_rm_game_Create
Compiling - gml_RoomCC_rm_game_3_Create
Compiling - gml_RoomCC_rm_game_4_Create
Compiling - const_INPUT
Compiling - const_C_RED
Compiling - const_C_LTGREEN
Compiling - const_C_YELLOW
Compiling - const_C_HOVER
Obfuscating...
Done!
Stats : GMA : Elapsed=6488,0702
Stats : GMA : sp=46,au=15,bk=1,pt=0,sc=67,sh=0,fo=1,tl=1,ob=36,ro=3,da=0,ex=1,ma=97,fm=0x4D7C0EE0
Compile finished: 10:32:48 PM

I tried doing Create Application, too, which gave the same non-descript error. Howerver, by launching a Python web server in the build directory I could actually play the game with no apparent issues at all. This made me suspect there was something wrong with the configuration of GM:S that made it unable to run the web server (and incorrectly report this as a compilation issue). But this doesn't seem to be the case, as other projects compile and run perfectly fine on the HTML5 target. Which means there is probably something wrong with my project that causes an invisible compile error, I just have no clue what that could be.

Is this something any one else has experienced? I could really need some help here, I'm not very familiar with the HTML5 export :/
 
Last edited:
Top