GameMain.c -> can't publish...!

Posted By: turkkanka

GameMain.c -> can't publish...! - 08/10/09 11:30

My using A7.7 Pro.My game main script "anakod.c".My publishing compile exe.After not exe??
Posted By: Cowabanga

Re: GameMain.c -> can't publish...! - 08/10/09 12:02

First, speak a good English. Because seriously, i can't understand your problem.
Posted By: turkkanka

Re: GameMain.c -> can't publish...! - 08/10/09 12:12

I game main script main.c I am publishing exe.After exe does not appear
Posted By: Cowabanga

Re: GameMain.c -> can't publish...! - 08/10/09 12:27

At least use a translator.
Posted By: turkkanka

Re: GameMain.c -> can't publish...! - 08/10/09 12:40

My game's main code "main.c".I am publishing exe.Exe then no.
Posted By: alibaba

Re: GameMain.c -> can't publish...! - 08/10/09 12:59

he means that he wants to publish his code "main.c" but after publishing there is no exe.
Posted By: turkkanka

Re: GameMain.c -> can't publish...! - 08/10/09 14:15

Yes alibaba yes
Posted By: Ottawa

Re: GameMain.c -> can't publish...! - 08/10/09 15:54

Hi!

Look at this post :

publishing with Pro

This is the way I do it.
Posted By: turkkanka

Re: GameMain.c -> can't publish...! - 08/10/09 16:35

Thank you Ottawa
Posted By: Ottawa

Re: GameMain.c -> can't publish...! - 08/10/09 16:57

Hi!

Let us know if this is the solution.
Posted By: turkkanka

Re: GameMain.c -> can't publish...! - 08/10/09 18:26

Helllp please send example
Posted By: Ottawa

Re: GameMain.c -> can't publish...! - 08/10/09 19:35

Hi!

Can't send example.

Send us a small part of your code so we can look at it.
Posted By: turkkanka

Re: GameMain.c -> can't publish...! - 08/10/09 20:24

I know English a little.Please you send example.

My home script "main.c".I am publishing compile exe but not exe??
Posted By: Ottawa

Re: GameMain.c -> can't publish...! - 08/10/09 21:08

Hi!

The error is on your side.

We want to know what you are doing wrong.
Posted By: alibaba

Re: GameMain.c -> can't publish...! - 08/11/09 08:56

he is using this code:
i write for him because he doesnt know SOO much english.

function main()
{
fps_max = 60;
video_set(800,600,32,1);
level_load("csat.wmb");
wait(2);
while(1)
{
if(key_esc) { sys_exit(""); }
wait(1);
}
}


action oyuncu( )
{
VECTOR HAREKET;
VECTOR zIlk;
VECTOR zSon;
var hiz_max = 20;
var hiz_min = -10;
var hiz_x = 0;
var hiz_y = 0;
var yukseklik = 0;
var durZipla = 0;
vec_zero(HAREKET);
vec_zero(zIlk);
vec_zero(zSon);
player = me;
while(1)
{
if(camera.tilt >= -45 && camera.tilt <= 70)
camera.tilt += 5 * mouse_force.y * time_step;
if(camera.tilt > 70) camera.tilt = 70;
if(camera.tilt < -45) camera.tilt = -45;
player.pan -= 5 * mouse_force.x * time_step;
if((key_w || key_s) && !durZipla)
{
if(hiz_max>hiz_x && hiz_x>hiz_min)
hiz_x += (key_w - key_s)*3;
if(hiz_x>hiz_max) hiz_x = hiz_max;
if(hiz_x<hiz_min) hiz_x = hiz_min;
if(key_w && key_s) hiz_x = 0;
}
else hiz_x = 0;
if((key_a || key_d) && !durZipla)
{
if(hiz_max>hiz_y && hiz_y>hiz_max*-1)
hiz_y += (key_a - key_d)*3;
if(hiz_y>hiz_max) hiz_y = hiz_max;
if(hiz_y<hiz_max*-1) hiz_y = hiz_max*-1;
if(key_a && key_d) hiz_y = 0;
}
else hiz_y = 0;
vec_set(zIlk,player.x);
vec_set(zSon,player.x);
zSon.z -= 5000;
yukseklik =
c_trace(zIlk,zSon,IGNORE_ME|IGNORE_PASSABLE|USE_BOX)-50;
if(key_space && !key_shift && (key_a || key_d || key_w ||
key_s) && yukseklik<2)
{ yukseklik=1; HAREKET.z = 12; }
else if(key_space && !key_shift && !(key_a || key_d ||
key_w || key_s) && yukseklik<2)
{ yukseklik=1; HAREKET.z = 12; durZipla = 1;}
else if(key_space && key_shift && (key_a || key_d || key_w
|| key_s) && yukseklik<2)
{ yukseklik=1; HAREKET.z = 13.5; }
else if(key_space && key_shift && !(key_a || key_d ||
key_w || key_s) && yukseklik<2)
{ yukseklik=1; HAREKET.z = 12; durZipla = 1; }
if (yukseklik>0)
{
HAREKET.z -= 3*time_step;
if (HAREKET.z<yukseklik*-1) HAREKET.z = yukseklik*-1;
}
else { HAREKET.z = yukseklik * -1; durZipla = 0; }
HAREKET.x = hiz_x * time_step;
HAREKET.y = hiz_y * 0.85 * time_step;
if(hiz_x!=0 && hiz_y!=0) vec_scale(HAREKET,1/1.4);
if(key_shift) { HAREKET.x*=1.7; HAREKET.y*=1.7; }
c_move(player,HAREKET,nullvector,IGNORE_PASSABLE|GLIDE);
camera.x = player.x;
camera.y = player.y;
camera.z = player.z;
camera.pan = player.pan;
wait(1);
}
}
Posted By: Ottawa

Re: GameMain.c -> can't publish...! - 08/11/09 20:33

Hi!

If you are working with Lite-C
you need the header

#include <acknex.h>
#include <default.c>

is this part in your code.
Posted By: Nidhogg

Re: GameMain.c -> can't publish...! - 08/12/09 02:10

Hmm Same question new thread. Please do not double post.
© 2024 lite-C Forums