|
2 registered members (TipmyPip, 3run),
4,674
guests, and 16
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: error list
[Re: jcl]
#281527
07/27/09 16:09
07/27/09 16:09
|
Joined: Jan 2007
Posts: 1,619 Germany
Scorpion
Serious User
|
Serious User
Joined: Jan 2007
Posts: 1,619
Germany
|
here a mini testscript. run a server and a client on the same machine and move the then player on the server. After about a second you get a general error. I got RDENT and invalid filename. It's not hard to avoid these errors by just not using the player pointer, but I would be glad if you could tell me what was the cause of the problem.
#include <acknex.h>
#include <default.c>
void createCharacter(){
player = ent_create(SPHERE_MDL, vector(200-random(400), 200-random(400), 200-random(400)), NULL);
}
void startServer(){
session_open("testname");
level_load(NULL);
}
void startClient(){
session_connect("testname","127.0.0.1");
level_load(NULL);
}
void serverEvent(void* address, long clientID){
switch(event_type){
case EVENT_JOIN:
{
//instead of wait: create character, when client affirms level load
wait(-0.5);
createCharacter();
break;
}
}
}
void main(){
on_server = serverEvent;
on_s = startServer;
on_c = startClient;
}
|
|
|
|