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

compile failed see the compiler error output for details

GoliBroda

Member
Hi all.
I did all same like in this tutorial:
http://learn.heartbeast.co/blog/278464/3d-dungeon-crawler

and when i want to test the game ian error apears:
compile failed see the compiler error output for details

it not saying where is the issue.

Code:
Compile started: 18:26:26
"C:\Users\uhaszYsz\AppData\Roaming\GameMaker-Studio\GMAssetCompiler.exe" /c /m=win  /config="Default" /tgt=64 /obob=True /obpp=False /obru=True /obes=False /i=4 /j=2 /cvm /tp=2048 /mv=1 /iv=0 /rv=0 /bv=1763 /gn="3D Dungeon Crawler Start" /td="C:\Users\uhaszYsz\AppData\Local" /cd="C:\Users\uhaszYsz\Documents\GameMaker\Cache" /sh=True /dbgp="6502" /hip="192.168.1.120" /hprt="51268" /o="C:\Users\uhaszYsz\AppData\Local\gm_ttt_86062\gm_ttt_67549" "C:\Users\uhaszYsz\Desktop\3D Dungeon Crawler Start.gmx\3D Dungeon Crawler Start.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_o_player_KeyPressed_DOWN_1(6) : malformed if statement
Error : gml_Object_o_player_KeyPressed_UP_1(6) : malformed if statement
finished.
Saving IFF file... C:\Users\uhaszYsz\AppData\Local\gm_ttt_86062\gm_ttt_67549\3D Dungeon Crawler Start.win
Writing Chunk... GEN8
Writing Chunk... OPTN
Writing Chunk... LANG
Writing Chunk... EXTN
Writing Chunk... SOND
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...
1 Compressing texture... writing texture texture_1.png...
2 Compressing texture... writing texture texture_2.png...
3 Compressing texture... writing texture texture_3.png...
Writing Chunk... AUDO
Writing Chunk... SCPT
Writing Chunk... DBGI
Writing Chunk... INST
Writing Chunk... LOCL
Writing Chunk... STRG
Stats : GMA : Elapsed=1208,9844
Stats : GMA : sp=4,au=0,bk=0,pt=0,sc=0,sh=0,fo=0,tl=0,ob=3,ro=1,da=0,ex=0,ma=41,fm=0x180801A0
Asset Compile finished: 18:26:30
Compile finished: 18:26:30
 

jo-thijs

Member
Hi and welcome to the GMC!

The compile window you pasted there contains this:
Code:
Final Compile...Error : gml_Object_o_player_KeyPressed_DOWN_1(6) : malformed if statement
Error : gml_Object_o_player_KeyPressed_UP_1(6) : malformed if statement
stating that you have some malformed if statements.
This usually occurs when you have some semicolons ; too much,
as in, you've got something of the form:
Code:
if cond;
 

GoliBroda

Member
Okey, thanks very much for help and fast anwser.
It works fine now, but i have another problem.
My character is not walking straight but mitre.
you know, instead of dooing 1 step in x, it makes 1 step in x and 1 step in y.
 

jo-thijs

Member
It'd be handy if you could provide us with your movement code in order for us to help you with that issue.
 

GoliBroda

Member
everything was in the tutorial that i've posted.

heres my code
Information about object: o_player
Sprite:
Solid: false
Visible: true
Depth: 10000
Persistent: false
Parent:
Children:
Mask:
No Physics Object
Create Event:
execute code:

//Player
z = 16;
dir = 0;

//variables for movement
target_dir = dir;
target_x = x;
target_y = y;

//set the colour to the white
draw_set_colour(c_white);

//start 3d drawing
d3d_start();

//the fog
dark_purple = make_colour_rgb(27, 3, 59);
d3d_set_fog(true, dark_purple, 16, 128);

Draw Event:
execute code:

//draw the projection and update the possition
//update the dir and pos
dir = lerp(dir, target_dir, .1);
x = lerp(x, target_x, .1);
y = lerp(y, target_x, .1);

var vect_x = lengthdir_x(32, dir);
var vect_y = lengthdir_y(32, dir);

//set the projection
d3d_set_projection(x, y, z, x+vect_x, y+vect_y, z, 0, 0, 1);

Key Press Event for <Left> Key:
execute code:

// turn left
target_dir += 90;


Key Press Event for <Up> Key:
execute code:

//movement
var vect_x = lengthdir_x(32, target_dir);
var vect_y = lengthdir_y(32, target_dir);

//check walls
if !place_meeting(target_x+vect_x, target_y+vect_y, o_wall) {
target_x += vect_x;
target_y += vect_y;
}


Key Press Event for <Right> Key:
execute code:

// turn right
target_dir -= 90;


Key Press Event for <Down> Key:
execute code:

//move
var vect_x = lengthdir_x(32, target_dir);
var vect_y = lengthdir_y(32, target_dir);

//check walls
if !place_meeting(target_x-vect_x, target_y-vect_y, o_wall) {
target_x -= vect_x;
target_y -= vect_y;
}
 

jo-thijs

Member
I'm currently having difficulties with my internet and I can't view the tutorial, but I can still somehow do this.
This line looks kind of odd though:
Code:
y = lerp(y, target_x, .1);
Shouldn't it be target_y?
 
Top