Server Talk > Scripting Releases

libdb (SQLite / MySQL / MariaDB / PostgreSQL / ODBC library)

<< < (7/8) > >>

jrgp:

--- Quote from: Nedi on May 06, 2015, 07:28:38 am ---Hello,
I have some problems with running soldatserver with this lib:


--- Code: ---             -= Soldat Dedicated Server 1.6.8 - 2.7.8 =-

----------------------------------------------------------------
         Soldat Dedicated Server initializing...
----------------------------------------------------------------

   Need help running your server?
   IRC: #soldat.devs @ irc.quakenet.org

   ---> http://forums.soldat.pl/

   Additional parameters:
   ./soldatserver -p PORT -l MAXPLAYERS -k PASSWORD
   Example: ./soldatserver -p 23073 -l 16 -k "my pass"


 Compiled with FreePascal (Indy 10)

 Hit CTRL+C to Exit
 Please command the server using the Soldat Admin program
Welcome to Soldat 1.6.8
 Server name: Soldat Server
 Server PID: 6217
 [*] Compiling stats -> libdb_linux.pas...
 [*] Compiling stats -> stats.pas...
 [*] stats -> Cannot Import dll:libdb-0.2.so
 [*] Disabling stats
----------------------------------------------------------------
Mapslist loaded mapslist
ctf_nothard
 Server IP: 0.0.0.0 Port: 23073
 Connection for file server started. Port: 23083
Registering server @ 67.23.118.179


--- End code ---

I have debian 7 64bit
libdb-0.2.so is placed in soldatserver root folder
also in:
/var/lib/libdb-0.2.so
/etc/lib/libdb-0.2.so
/lib64/libdb-0.2.so
/lib/libdb-0.2.so
/usr/local/lib/libdb-0.2.so
/usr/lib/libdb-0.2.so

Do you have any ideas why it doesn't work?

--- End quote ---

Can you paste the output of "ldd libdb-0.2.so" in your soldat's root folder?

SyavX:

--- Quote from: Nedi on May 06, 2015, 07:28:38 am ---Hello,
I have some problems with running soldatserver with this lib:

--- End quote ---

Seems like there is something wrong with server compiled with Indy 10, try to run soldatserver_legacy

Btw, I've updated notes section to make it more specific about dependencies.

Nedi:

--- Quote from: jrgp on May 06, 2015, 06:12:13 pm ---Can you paste the output of "ldd libdb-0.2.so" in your soldat's root folder?

--- End quote ---
There was:

--- Code: ---libodbc.so.1 => not found
--- End code ---


--- Quote from: SyavX on May 07, 2015, 05:36:20 am ---Btw, I've updated notes section to make it more specific about dependencies.

--- End quote ---
It works now

Thanks

Walls:
Yeah, I was going to make a note on that all deps must be 32bits, took quite a while for exhunter and me to get it working on our servers.
So it shall work on other distros as long as you get all odbc and deps on 32b.

SyavX:
Version 0.3 (27 Jan 2019):
+ Added MySQL support (see DB_Plugin_MySQL)
+ Added SQL bind variables (see DB_SetString(), DB_SetLong() etc.)
+ Added things which I can't recall...
% Modified library bindings and example code (rewritten with ScriptCore3 syntax)
% Modified some bindings and internal code which broke backward compatibility, see description below for more info

1. Most functions that were returning non zero on success and 0 otherwise are returning Boolean now (e.g. DB_NextRow(), DB_Query() etc.)
For example:

--- Code: (Pascal) ---if DB_NextRow(0) <> 0 then
// and
if DB_NextRow(0) = 0 then

--- End code ---

should be replaced with

--- Code: (Pascal) ---if DB_NextRow(0) then
// and
if not DB_NextRow(0) then

--- End code ---

2. You should now call one of DB_UseMySQL(), DB_UseODBC(), DB_UsePostgreSQL(), DB_UseSQLite() procedures before using any functions related to the corresponding database plugins.

3. Database plugins and column type constants are declared as enumerations now:

--- Code: (Pascal) ---{ Database plugins enumeration for the DB_Open() function }
type TDatabasePluginType = (DB_Plugin_Undefined, DB_Plugin_ODBC, DB_Plugin_SQLite, DB_Plugin_PostgreSQL, DB_Plugin_MySQL);

{ Database column types enumeration for the DB_ColumnType() function }
type TDatabaseColumnType = (DB_Type_Undefined, DB_Type_Long, DB_Type_String, DB_Type_Float, DB_Type_Double, DB_Type_Quad);

--- End code ---

See first post for the download link...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version