Author Topic: i need HELP :C  (Read 3642 times)

Nexus

  • Newbie
  • *
  • Posts: 45
  • Karma: +3/-0
    • View Profile
i need HELP :C
« on: January 04, 2011, 07: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?



<X_94> messi suckz!!
<~Baldachyn> yes x94 finally some sane words from you

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: i need HELP :C
« Reply #1 on: January 05, 2011, 02: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 :)

Nexus

  • Newbie
  • *
  • Posts: 45
  • Karma: +3/-0
    • View Profile
Re: i need HELP :C
« Reply #2 on: January 06, 2011, 07:18:43 am »
i know that, i am using LoadModule( "lu_sqlite" );



<X_94> messi suckz!!
<~Baldachyn> yes x94 finally some sane words from you

VRocker

  • Liberty Unleashed Developer
  • Administrator
  • Full Member
  • ******
  • Posts: 342
  • Karma: +43/-15
    • View Profile
    • Madnight Software
Re: i need HELP :C
« Reply #3 on: January 06, 2011, 09: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.


Nexus

  • Newbie
  • *
  • Posts: 45
  • Karma: +3/-0
    • View Profile
Re: i need HELP :C
« Reply #4 on: January 07, 2011, 09: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
« Last Edit: January 07, 2011, 09:20:08 pm by X_94 »



<X_94> messi suckz!!
<~Baldachyn> yes x94 finally some sane words from you

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: i need HELP :C
« Reply #5 on: January 08, 2011, 12:27:39 am »
maybe FILE_PATH is not defined or misses an / at the end.

Nexus

  • Newbie
  • *
  • Posts: 45
  • Karma: +3/-0
    • View Profile
Re: i need HELP :C
« Reply #6 on: January 08, 2011, 06:04:10 am »
maybe FILE_PATH is not defined or misses an / at the end.

in windows my script works fine...



<X_94> messi suckz!!
<~Baldachyn> yes x94 finally some sane words from you

Stoku

  • lck.gudio.eu
  • Full Member
  • ***
  • Posts: 276
  • Karma: +26/-2
  • Liberty City Killers
    • View Profile
    • Liberty City Killers (GTA3/VC Clan)
Re: i need HELP :C
« Reply #7 on: January 08, 2011, 11:35:01 am »
Try to create "Server.db" first and set it's chmods.

Nexus

  • Newbie
  • *
  • Posts: 45
  • Karma: +3/-0
    • View Profile
Re: i need HELP :C
« Reply #8 on: January 08, 2011, 11:49:06 pm »
i tried it, i think is db connection problem, why the server works fine in windows and not in linux? :C



<X_94> messi suckz!!
<~Baldachyn> yes x94 finally some sane words from you

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: i need HELP :C
« Reply #9 on: January 09, 2011, 12:56:47 pm »
permissions?

Nexus

  • Newbie
  • *
  • Posts: 45
  • Karma: +3/-0
    • View Profile
Re: i need HELP :C
« Reply #10 on: January 09, 2011, 06: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" );
}
« Last Edit: January 09, 2011, 07:21:50 pm by X_94 »



<X_94> messi suckz!!
<~Baldachyn> yes x94 finally some sane words from you

Force

  • Developer
  • Full Member
  • *****
  • Posts: 204
  • Karma: +6/-2
    • View Profile
Re: i need HELP :C
« Reply #11 on: January 10, 2011, 01: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.

Quote
[Tue - 20:09:35] <&VRocker> CRAP!
[Tue - 20:09:43] <&VRocker> i think i just followed through...
Quote
[Sat - 22:11:56] <~Smapy> [R3V]breSt12 killed [R3V]Jack_Bauer. (Splat)

Nexus

  • Newbie
  • *
  • Posts: 45
  • Karma: +3/-0
    • View Profile
Re: i need HELP :C
« Reply #12 on: January 12, 2011, 01:32:41 am »
ram?



<X_94> messi suckz!!
<~Baldachyn> yes x94 finally some sane words from you

SugarD

  • Argonath RPG Dev/Manager
  • Tester
  • Sr. Member
  • ****
  • Posts: 820
  • Karma: +37/-75
  • STOP IN THE NAME OF THE COLESLAW!
    • View Profile
    • Clan Xperience
Re: i need HELP :C
« Reply #13 on: April 06, 2013, 10:25:30 pm »
ram?
Yes.



Did you ever resolve your situation? :)

 

© Liberty Unleashed Team.