Liberty Unleashed

Liberty Unleashed => Support => Topic started by: Nexus on January 04, 2011, 06:04:21 pm

Title: i need HELP :C
Post 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?
Title: Re: i need HELP :C
Post by: Thijn on January 05, 2011, 01:41:49 pm
Are you loading lu_sqlite.so or lu_sqlite?
Since using LoadModule you shouldn't specify the extension.
Else, I don't know :)
Title: Re: i need HELP :C
Post by: Nexus on January 06, 2011, 06:18:43 am
i know that, i am using LoadModule( "lu_sqlite" );
Title: Re: i need HELP :C
Post by: VRocker on January 06, 2011, 08:42:52 pm
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.
Title: Re: i need HELP :C
Post by: Nexus on January 07, 2011, 08:18:25 pm
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
Title: Re: i need HELP :C
Post by: Thijn on January 07, 2011, 11:27:39 pm
maybe FILE_PATH is not defined or misses an / at the end.
Title: Re: i need HELP :C
Post by: Nexus on January 08, 2011, 05:04:10 am
maybe FILE_PATH is not defined or misses an / at the end.

in windows my script works fine...
Title: Re: i need HELP :C
Post by: Stoku on January 08, 2011, 10:35:01 am
Try to create "Server.db" first and set it's chmods.
Title: Re: i need HELP :C
Post by: Nexus on January 08, 2011, 10:49:06 pm
i tried it, i think is db connection problem, why the server works fine in windows and not in linux? :C
Title: Re: i need HELP :C
Post by: Thijn on January 09, 2011, 11:56:47 am
permissions?
Title: Re: i need HELP :C
Post by: Nexus on January 09, 2011, 05:49:17 pm
Code: [Select]
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:
Code: [Select]
--------------------------------
-----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: 
Code: [Select]
const FILE_PATH = "Scripts/Script/";

function onScriptLoad()
{
    LoadModule( "lu_sqlite" );
    db <- sqlite_open( FILE_PATH + "moo.db" );
    print( "1" );
}
Title: Re: i need HELP :C
Post by: Force on January 10, 2011, 12:56:59 am
Quote
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.

Title: Re: i need HELP :C
Post by: Nexus on January 12, 2011, 12:32:41 am
ram?
Title: Re: i need HELP :C
Post by: SugarD on April 06, 2013, 09:25:30 pm
ram?
Yes.



Did you ever resolve your situation? :)