1 registered members (Akow),
626
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Error after Published?
#228494
09/19/08 21:50
09/19/08 21:50
|
Joined: Aug 2008
Posts: 218 U.S.
GamerX
OP
Member
|
OP
Member
Joined: Aug 2008
Posts: 218
U.S.
|
Ok so i was working on a project and decided to publish a part of it to check something out. During publishing there was no problems at all but then when i go to launch the .exe i get an error report. So i went into my script and deleted some parts and found it only works after published when a few blocks of code are deleted (the blocks of code are the ones under ///////ALL LINES BELOW HERE!)
///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////
ENTITY* arm;
ENTITY* door;
BMAP* control ="controls.bmp";
var shoot_percentage;
STRING* gameover = "GAME OVER!!";
var trigx;
var trigy;
var blocktrigx;
var blocktrigy;
var traced;
ENTITY* trig1;///Openx entity
ENTITY* trig2;///Openx2 entity
ENTITY* trig3;///openy entity
ENTITY* trig4;///openy2
void make_player();
PANEL* gameover_pan =
{
digits = (450, 300,"Press C to close" , "Arial#24d", 1, gameover);
}
function main()
{
max_entities = 9000;////Enable up to 2000 Entities
video_mode = 7;
level_load ("scifi_1.wmb");
wait (2); // wait until the level is loaded
arm = ent_create ("handgloc.mdl", vector(-768.000, -112.000, -272.000), make_player);
}
action door_open()
{
door = me;
}
void gun_blowback()
{
while (shoot_percentage < 100.0001){
ent_animate(arm,"shoot",shoot_percentage, 0);
shoot_percentage += 1.6 * time_step; wait(1);}
}
void option_panel();
void make_player()
{
arm = me;
while (1)
{
trigx = my.x;
trigy = my.y;
camera.x = arm.x;
camera.y = arm.y;
camera.z = arm.z + 3;
camera.pan = arm.pan;
camera.tilt = arm.tilt;
arm.z = -320.500;
if (key_w)
c_move (arm, vector(10 * time_step, 0, 0), nullvector,IGNORE_PASSABLE);
if (key_s) c_move (my, vector(-5 * time_step, 0, 0), nullvector, IGNORE_PASSABLE);
arm.pan -= 8 * mouse_force.x * time_step;
arm.tilt += 8 * mouse_force.y * time_step;
arm.tilt = clamp (arm.tilt,-40, 20);
if (mouse_left) {shoot_percentage = 0; gun_blowback();}
option_panel();
c_setminmax(me);
vec_set(my.min_x,vector(-29,-23,-40));
vec_set(my.max_x,vector(29,23,40));
wait (1);
}
}
///////ALL LINES BELOW HERE!
PANEL* controls_pan =
{
bmap = "control";
pos_x = 187;
pos_y = 97;
}
void option_panel()
{
if (key_f8){
controls_pan.flags =TRANSLUCENT | VISIBLE;
}
else
{
controls_pan.flags = NULL;
}
}
action openy2()
{
trig4 = me;
}
action openx()
{
trig1 = me;
while(door.z > -572.000){
if ((arm.x < my.x) && (arm.x > trig2.x) && (arm.y < trig1.y) && (arm.y > trig2.y))
if (key_o){ set(gameover_pan,INVISIBLE);
while(door.z > -572.000)
{
door.z -= .5; wait(1);
}
}
wait(1);
}
}
action openx2()
{
trig2 = me;
}
action openy()
{
trig3 = me;
}
Any1 got an idea? I have been able to solve all my other probs so far but this one makes no sense there isn't anything special about those lines. Any help would help a lot because if i can't publish this there is no reason to proceed and i really want too. Thanks!
"You may never know what results come of your action, but if you do nothing there will be no result." -Mahatma Gandhi
|
|
|
Re: Error after Published?
[Re: GamerX]
#228508
09/19/08 23:33
09/19/08 23:33
|
Joined: Aug 2008
Posts: 218 U.S.
GamerX
OP
Member
|
OP
Member
Joined: Aug 2008
Posts: 218
U.S.
|
Any1? If any1 has A7 extra(thats what i have) and could maybe publish it and see if it works or not that would help alot in determining weather its my A7 and maybe have to re download it. Here is the link if you wish to help! Source Its basically just two rooms. If you could help me out on this i would be very grateful. All you have to do is download it publish it and try and run the .exe see if you get an error like i did.
Last edited by GamerX; 09/20/08 16:17. Reason: Have A7 extra and put pro on accident.
"You may never know what results come of your action, but if you do nothing there will be no result." -Mahatma Gandhi
|
|
|
Re: Error after Published?
[Re: GamerX]
#228564
09/20/08 16:19
09/20/08 16:19
|
Joined: Aug 2008
Posts: 218 U.S.
GamerX
OP
Member
|
OP
Member
Joined: Aug 2008
Posts: 218
U.S.
|
Sorry meant A7 extra not pro, i would really appreciate it because i can't really go on with my project unless i know, you don't have to give me the .exe just tell me if you get an error or not please!
"You may never know what results come of your action, but if you do nothing there will be no result." -Mahatma Gandhi
|
|
|
Re: Error after Published?
[Re: GamerX]
#228565
09/20/08 16:25
09/20/08 16:25
|
Joined: Jan 2004
Posts: 557 Wurzen, Deutschland
White_Wolf
User
|
User
Joined: Jan 2004
Posts: 557
Wurzen, Deutschland
|
Hello,
the problem is the openx() function. you have used the wrong var for the door.z. It is not -572. The door.z postion is -241. You must change that. So the engine whont crash. And two of your Modells have a wrong Texture size. (The Textur size must be a Potency of 2. 128, 256, 512, 1024 ...).
By White_Wolf
P.S. Sorry for my bad english
A8 Com Version 8.40 Win 7 64 Bit
|
|
|
Re: Error after Published?
[Re: White_Wolf]
#228575
09/20/08 17:57
09/20/08 17:57
|
Joined: Aug 2008
Posts: 218 U.S.
GamerX
OP
Member
|
OP
Member
Joined: Aug 2008
Posts: 218
U.S.
|
Fixed that but then the door doesn't work correctly. The -572 is there because it is meant to run that function only when the door pos.z is bigger than -572 so it runs until the door pos is equal to 572 and then stops there.
But thanks for helping and i am guessing one of the textures you were talking about was the first room?
"You may never know what results come of your action, but if you do nothing there will be no result." -Mahatma Gandhi
|
|
|
Re: Error after Published?
[Re: GamerX]
#228587
09/20/08 18:48
09/20/08 18:48
|
Joined: Jan 2004
Posts: 557 Wurzen, Deutschland
White_Wolf
User
|
User
Joined: Jan 2004
Posts: 557
Wurzen, Deutschland
|
The texture of the Modell computer_withoutstand.mdl and table.mdl . I have testet again and when the var from the first while go under -241 the enging creched.
A8 Com Version 8.40 Win 7 64 Bit
|
|
|
Re: Error after Published?
[Re: White_Wolf]
#228592
09/20/08 19:36
09/20/08 19:36
|
Joined: Aug 2008
Posts: 218 U.S.
GamerX
OP
Member
|
OP
Member
Joined: Aug 2008
Posts: 218
U.S.
|
O ok yea i see what texture now. Thanks
So when you published the original script did you get a system error when you ran the .exe or just when you were compiling did you get an error?
I guess ill go on without doors for know lol till i find out what the hell is wrong.
Thanks for all your help so far.
"You may never know what results come of your action, but if you do nothing there will be no result." -Mahatma Gandhi
|
|
|
Re: Error after Published?
[Re: GamerX]
#228593
09/20/08 19:43
09/20/08 19:43
|
Joined: Jan 2004
Posts: 557 Wurzen, Deutschland
White_Wolf
User
|
User
Joined: Jan 2004
Posts: 557
Wurzen, Deutschland
|
When i run the level in the wed i get a error (E1513 crash in event) and when i run the .exe i get the a system error. But only when the var of the first while in the openx action is under -241.
A8 Com Version 8.40 Win 7 64 Bit
|
|
|
Re: Error after Published?
[Re: White_Wolf]
#228594
09/20/08 20:08
09/20/08 20:08
|
Joined: Aug 2008
Posts: 218 U.S.
GamerX
OP
Member
|
OP
Member
Joined: Aug 2008
Posts: 218
U.S.
|
yea, i only get a system error when the .exe is run. I gues i have to run through a few other ways of making the door open.
Ok thanks a lot though hard to get som1 to respond to my questions.
"You may never know what results come of your action, but if you do nothing there will be no result." -Mahatma Gandhi
|
|
|
Re: Error after Published?
[Re: GamerX]
#228597
09/20/08 20:57
09/20/08 20:57
|
Joined: Aug 2008
Posts: 218 U.S.
GamerX
OP
Member
|
OP
Member
Joined: Aug 2008
Posts: 218
U.S.
|
Ok fixed it by using a c_scan thanks for the help and thanks ill redo those textures
"You may never know what results come of your action, but if you do nothing there will be no result." -Mahatma Gandhi
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|