PDA

View Full Version : Problem with server


Lander
03-29-2009, 07:38 PM
Hello everyone

I'm new on the forum, but not in the game.

Congratulations guys for build this client to play online one of my favourites games of all time. I know, I also play VC:MP and MTA, but this client is more flexible with the LUA script, this allow to make possible the impossible. And now, let's go to the problem.

I have the client and server, but when I host the server, this close without reason. In the server_log.txt doesn't say what's the error. This happend several times, when i put a command, when i shoot a player, etc.... I have the game in spanish language without mod (such ENBSeries, car mods, etc......)

I hope that you guys can fix this problem.

Thanks.

ReGeX
03-29-2009, 09:38 PM
Perhaps you could post your entire script?

Lander
03-29-2009, 09:42 PM
Script???? I'm using the script that come with the server, without modifications. The Main.lua and the Extension_Vehicles.lua was hosted without modifications by me.

ReGeX
03-29-2009, 09:44 PM
There is no reason why your server would crash. Perhaps it's behind a firewall and still blocked?

Lander
03-29-2009, 09:58 PM
I have opened the port 4800 UDP to play with a friend, and the server closed. Also I desactivated the windows firewall, and nothing.

I have the game in spanish language, my PC in the Spanish language too, with net frameworks required to play VCO

Mantis
03-30-2009, 11:42 AM
I think I know what your problem is. I was experiencing it when I first hosted my test server. It seems like there is a bug in the script. I've done extensive tests on it, and I've been looking at car placements, I'm not too sure the cause 100% but I'm thinking it's got something to do with vehicles or a function/callback. I'll post with a fix when I manage to solve it.

[LCK]G0LdzEr0
03-30-2009, 01:25 PM
I have this same problem with server...

Toiletduck
03-30-2009, 01:41 PM
I solved this by removing all cars from my extension file.
I will write a new one soon but for now, it is working nicely.

[LCK]G0LdzEr0
03-31-2009, 10:42 AM
outputConsole("Creating vehicles and loading the extension...")
loadExtension("Extensions\\Extension_Vehicles.lua")
Bug is in this line (file: Main.lua). "\\" must be replaced by "/" and it will works fine :)

Lander
03-31-2009, 04:56 PM
G0LdzEr0;1969236']outputConsole("Creating vehicles and loading the extension...")
loadExtension("Extensions\\Extension_Vehicles.lua")
Bug is in this line (file: Main.lua). "\\" must be replaced by "/" and it will works fine :)

I've changed that, but the problem persist. Maybe the problem is the extension_vehicles.lua

Raekwon
03-31-2009, 07:53 PM
Hes having the same problem as me and I havnt gotten any replies, only difference is when it crashes on Linux it shows you why.

I think its obvious VC-O has serious memory allocation errors or needs to be compiled on other Linux distrobutions.


Edit: Fixed all of these issues with random crashing and memory allocation (glibc) errors on linux by only using loadExtension once.
everytime you use loadExtension() it gives every file the same ID and crashes the server at a random time.

Problem solved by switching to dofile() instead.

Mantis
03-31-2009, 08:38 PM
There is an issue with the default main.lua file that I've found, it's more of a code error, but still can cause server shutdown.
Using /stats works on yourself, but when you try to use /stats [id] it closes down the server.
I'm not saying this is the main cause, but that is a problem that can cause your error.