• 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!

[HELP] Compile Errors in GM

D

Diaj3

Guest
so I was learning todo multiplayer in gamemaker with this tutorial :
but at the end of ep2 where it was time to rn the game this error apeared http://imgur.com/awesulP

i'm using gm for a while now but this error never appeared, can someone pls help me?
 

Bingdom

Googledom
What does the compile window say? Sometimes it provides more information than the compile error pop-up.
 
D

Diaj3

Guest
when i try to run it - http://imgur.com/a/oic9Y
when i try to create executable for Target - shows me an error and this is the compile wimdow:

Create started: 15:11:26
"C:\Users\João Dias\AppData\Roaming\GameMaker-Studio\GMAssetCompiler.exe" /c /m=windows /config="Default" /tgt=64 /obob=True /obpp=False /obru=True /obes=False /i=4 /j=8 /cvm /tp=2048 /mv=1 /iv=0 /rv=0 /bv=1763 /gn="FIRST LEGIT VIDEO GAME" /td="C:\Users\João Dias\AppData\Local" /cd="C:\Users\João Dias\Documents\GameMaker\Cache" /sh=True /dbgp="6502" /hip="127.0.0.1" /hprt="51268" /o="C:\Users\João Dias\AppData\Local\gm_ttt_67094\gm_ttt_30531" "C:\Users\João Dias\Desktop\FIRST LEGIT VIDEO GAME.gmx\FIRST LEGIT VIDEO GAME.project.gmx"

Reading project file....finished.
Compile Constants...finished.
Remove DnD...finished.
Compile Scripts...finished.
Compile Objects...finished.
Compile Timelines...finished.
Compile Triggers...finished.
Compile Rooms...finished.
Compile Extensions...finished.
Global scripts...finished.
Final Compile...Error : gml_Object_obj_enemy_StepNormalEvent_1(3) : Case argument should be a constant
Error : gml_Object_obj_enemy_StepNormalEvent_1(10) : Case argument should be a constant
finished.
Saving IFF file... C:\Users\Jo�o Dias\AppData\Local\gm_ttt_67094\gm_ttt_30531\FIRST LEGIT VIDEO GAME.win
Writing Chunk... GEN8
Writing Chunk... OPTN
Writing Chunk... LANG
Writing Chunk... EXTN
Writing Chunk... SOND
*writing audio file C:\Users\Jo�o Dias\AppData\Local\gm_ttt_67094\gm_ttt_30531\sound_warrior.ogg...
*writing audio file C:\Users\Jo�o Dias\AppData\Local\gm_ttt_67094\gm_ttt_30531\sound_machine.ogg...
Writing Chunk... AGRP
Writing Chunk... SPRT
Writing Chunk... BGND
Writing Chunk... PATH
Writing Chunk... SCPT
Writing Chunk... GLOB
Writing Chunk... SHDR
Writing Chunk... FONT
Writing Chunk... TMLN
Writing Chunk... OBJT
Writing Chunk... ROOM
Writing Chunk... DAFL
Writing Chunk... TPAGE
Writing Chunk... CODE
Writing Chunk... VARI
Writing Chunk... FUNC
Writing Chunk... STRG
Writing Chunk... TXTR
0 Compressing texture... writing texture texture_0.png...
Writing Chunk... AUDO
Writing Chunk... SCPT
Writing Chunk... DBGI
Writing Chunk... INST
Writing Chunk... LOCL
Writing Chunk... STRG
Stats : GMA : Elapsed=1416,1098
Stats : GMA : sp=17,au=2,bk=1,pt=0,sc=9,sh=0,fo=3,tl=0,ob=21,ro=1,da=0,ex=0,ma=4,fm=0x48EC0261
Create finished: 15:11:46
 

Attachments

Last edited by a moderator:

Bingdom

Googledom
Final Compile...Error : gml_Object_obj_enemy_StepNormalEvent_1(3) : Case argument should be a constant
Error : gml_Object_obj_enemy_StepNormalEvent_1(10) : Case argument should be a constant
finished
You are using your switch statement incorrectly, check out this post to help you understand how to use it.
 
D

Diaj3

Guest
You are using your switch statement incorrectly, check out this post to help you understand how to use it.
ok thank you

You are using your switch statement incorrectly, check out this post to help you understand how to use it.
i found the mistake, i eliminated the room so the new one didn't have the creation code for the states chase and idle for the enemy, thank you so much
 
Last edited by a moderator:
Top