there is no error messages, the game start but the level appear empty.

read the description that I put here

Originally Posted By: keilyn3d
I solved the problem and I use a warez version, why I am making a game and I am using a code Like the dugeon creator from aum, and it don't work in the new A7 I don't know the reason, but I wish can use the new A7, and if you know the reason you can help me, here I put the details.

This is the code for make that the level been read from a text file that use # for the walls and B for buttons and J for the player, but in the new A7 the level appear empty and in the warez run without problems.

The version of the warez is 7.05.4
Click to reveal..



function leerdatos(){
file_handle = file_open_read(archivo); //abrir el archivo
tamano_x = file_var_read(file_handle); //tamaño X del mapa en la primera linea
tamano_y = file_var_read(file_handle); // Tamaño Y del mapa en la segunda linea
loaddividido /= tamano_y;
file_str_read(file_handle,dat); //tercera linea se copia a el string dat
while(tamano_y > lectura_y){//wait(1); // loop de lectura
str_clip(dat,character); //borra el numero de letras que diga character desde el principio
str_cpy(letra,dat);// copiar la letra que se lee a el string letra

if(str_cmp(letra, "#") == 1){ // si el string letra es igual a # se crea una pared
if(Tipodenivel == 1){ent_create("CAJA4.WMB", posicion, cajaF);}
if(Tipodenivel >= 2){ent_create("CAJA4.WMB", posicion, cajaF);}
ent_create("SombraC.tga", vector(posicion.x + 10, posicion.y - 10, posicion.z), sombracaja);
// ent_create("CAJA2.WMB", posicion, cajaF);
}
if(str_cmp(letra, "j") == 1){ // si el string letra es igual a j se crea el jugador
//ent_create("hombrenuevo.mdl",Vector(posicion.x,posicion.y,31),PlayerK3d);////hombre
ent_create("player.mdl",Vector(posicion.x,posicion.y,19),PlayerK3d);///test cari
//ent_create("hombrenuevo.mdl",Vector(posicion.x,posicion.y,0),PlayerK3d);
ent_create("sombra.tga",Vector(posicion.x,posicion.y,0),sombraf);
vec_set(jugadorinicio,posicion); jugadorinicio.z = 19;
}

if(str_cmp(letra, "t") == 1){ // si el string letra es igual a T se crea una torre
// ent_create(null,vector(posicion.x, posicion.y, posicion.z + 64),finalf);
// ent_create(null,vector(posicion.x, posicion.y, posicion.z + 64),finalf);
// ent_create(null,vector(posicion.x, posicion.y, posicion.z + 64),finalf);
ent_create("finishw.mdl", vector(posicion.x , posicion.y, posicion.z - 5), finalf);
}
if(str_cmp(letra, "b") == 1){ // si el string letra es igual a B se crea un boton
ent_create("boton.mdl", posicion, botonF); cantidaddebotones +=1;
}
if(str_cmp(letra, "p") == 1){ // si el string letra es igual a p se crea una puerta
ent_create("puerta1.wmb", vector(posicion.x,posicion.y,64), puertaF);
}

posicion.y -= 128; //cada vez que lee una letra se le restan 64 a la posicion Y
if(character == 0){character += 1;} //esto es para que al principio no borre nada
lectura_x +=1; //esto es un marcador para saber por que letra va lellendo

if(lectura_x == tamano_x)&&(lectura_y < tamano_y){ //para que lea la proxima linea
file_str_read(file_handle,dat);
loading += loaddividido;
character = 0; //para que no borre la primera letra de la nueva linea
posicion.y = 3000; // para que cree la proxima entidad a la isquierda
posicion.x -= 128;// para que se cree la proxima entidad mas abajo
lectura_x = 0; // resetea el string lectura
lectura_y += 1; //para el loading
// wait(1); loadingp.alpha = 100 - loading;
}}}



I only use the Engine of the warez version, and I use WED, and MED of the legal version.