Liberty Unleashed
Liberty Unleashed => Support => Topic started by: Nexus on January 04, 2011, 06:04:21 pm
-
why lu_sqlite.so don't runs in my vps with debian lenny 5.0, when i tried to execute the server.bin it works but when the script loads the module the server crashes, is a compatibility problem or what?
-
Are you loading lu_sqlite.so or lu_sqlite?
Since using LoadModule you shouldn't specify the extension.
Else, I don't know :)
-
i know that, i am using LoadModule( "lu_sqlite" );
-
Are you 100% sure its the sqlite module? Have you tried a blank script that does nothing apart from load it?
The modules are compiled on debian etch and as far as i know they work fine on a few different distros.
If it still crashes with a blank script which does nothing but load it, we'll have to look into trying it on lenny to find the problem.
-
Are you 100% sure its the sqlite module? Have you tried a blank script that does nothing apart from load it?
The modules are compiled on debian etch and as far as i know they work fine on a few different distros.
If it still crashes with a blank script which does nothing but load it, we'll have to look into trying it on lenny to find the problem.
I found the error, ( "db <- sqlite_open( FILE_PATH + "Server.db" );"), and now why it doesn't load the database
-
maybe FILE_PATH is not defined or misses an / at the end.
-
maybe FILE_PATH is not defined or misses an / at the end.
in windows my script works fine...
-
Try to create "Server.db" first and set it's chmods.
-
i tried it, i think is db connection problem, why the server works fine in windows and not in linux? :C
-
permissions?
-
SCRIPT: Xtreme Gangwars Script - started
Segmentation fault
Are you 100% sure its the sqlite module? Have you tried a blank script that does nothing apart from load it?
The modules are compiled on debian etch and as far as i know they work fine on a few different distros.
If it still crashes with a blank script which does nothing but load it, we'll have to look into trying it on lenny to find the problem.
i tried that and the server returns me the following: --------------------------------
-----Liberty Unleashed 0.1------
--------------------------------
Server Name: moo
Server Port: 7474
Max Players: 128
Passworded: False
Owner: X_94
Website: mooo
-
Sync Radius: 500m
Stream Radius: 250m
Minimal Sync Interval: 100ms
Full Sync Interval: 10ms
Auto Updater: True
-
Custom Colours: 11
SCRIPT: 1
Scripts: 2
WARNING: No Spawnscreens have been detected. Adding a default spawnscreen
Classes: 8
Spawnscreens: 1
Vehicles: 236
Objects: 0
Pickups: 42
WeaponInfo: 0
HandlingData: 0
-
Server Logging: False
Script Logging: False
Console Output: True
Game: GTA:III
-
IP address: 127.0.0.1
IP address: 127.0.0.1
IP address: 74.63.244.83
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted
and this is the test script:
const FILE_PATH = "Scripts/Script/";
function onScriptLoad()
{
LoadModule( "lu_sqlite" );
db <- sqlite_open( FILE_PATH + "moo.db" );
print( "1" );
}
-
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted
That part means that the server is running out of memory.
-
ram?
-
ram?
Yes.
Did you ever resolve your situation? :)