plugins problem

Started by Banaqs, Dec 21, 2014, 01:16 PM

Previous topic - Next topic

Banaqs

Ok, i have a problem with a plugins.

When, i set server.cfg

plugins announce04rel32 squirrel04rel32

it "squirrel04rel32.so" has

Failed to load plugin: squirrel04rel32

but, i set

plugins squirrel04rel32 announce04rel32

it "announce04rel32.so" has

Failed to load plugin: announce04rel32

And plugins folder


Thijn

What does ldd squirrel04rel32.so and ldd announce04rel32.so return?

Also, make sure you placed those .so files into the plugins folder. (All lowercase)

Banaqs

Quote from: Thijn on Dec 21, 2014, 01:20 PMAlso, make sure you placed those .so files into the plugins folder. (All lowercase)


.

  • Check the file ownership
  • Check the file access rights
  • Check the plugins for the proper architecture (don't mix x32 with x64)
  • Just post the god damn message and be more specific about your issue (screenshot your console output)
.

Banaqs

"Check the plugins for the proper architecture (don't mix x32 with x64)"

this is joke?

-----------------------------

"Just post the god damn message and be more specific about your issue (screenshot your console output)"


.

Quote from: Banaqs on Dec 21, 2014, 01:29 PM"Check the plugins for the proper architecture (don't mix x32 with x64)"

this is joke?

No It's NOT! You people do that very often.



Don't you notice something off in that message? Do you notice how the .so extension is two lines bellow squirrel04rel32? Somehow somewhere your text editor either forgot to add a new line at the end or added more than necessary. Try the following:

Add a new line after:
plugins announce04rel32 squirrel04rel32
So it becomes:
plugins announce04rel32 squirrel04rel32

(Just press enter at the end to make a new empty line)

Or change your text editor To Notepad++ and go to - View > Show Symbol > Show All Characters - to show you if there are more new line characters than necessary or none at all. You'll see some black characters appearing at the end of the line if they are there or none at all.
.

Banaqs

Notepad ++ screen



and i test some other plugins...



all works, without last plugin in line

.


The black CR LF marked with pink is an extra new line character and must be removed (just remove that extra new line from there). The blue spot needs a new line character as visible in the image. Therefore add a new line there.

But I believe there's an issue here in how the server interprets the line endings.
.

Honey

I had a similar problem, This happens due to the wrong line endings.

If you're trying to run your script in Linux then Open Notepad++ ( install it if you don't have it ) then Open the server.cfg file.Open the EDIT tab and open the EOL Conversion Sub Direct. Over there click on UNIX/OSX Format.If that doesn't work then try this ( works only for 64 bit ):

Quote from: BLAKBERD(Use the x64 module this time)

Try executing this: ldconfig /usr/local/lib
Run your server.

In case this does not work, follow these steps:
1. Open the file /etc/ld.so.conf and remove everything and add the following
Code: [Select]

include /etc/ld.so.conf.d/*.conf

(If this file does not exist, create it.)
2. Open the file /etc/ld.so.conf.d/libc.conf and remove everything and add the following:
Code: [Select]

# libc default configuration
/usr/local/lib

(If this folder and this file don't exist add them.)
3. Now execute ldconfig using root.

In case none of the above works, try downloading this zip file, extract it, open the folder LDSO and copy all the files and folders inside of it to /etc/ (Replace files if asked)
Now execute ldconfig using root
Download: https://www.sendspace.com/file/ji6oib

If none of these work, then install the 32 bit OS, since I got no other idea.

Thijn

I would also like to note:
NEVER RUN YOUR SERVER AS ROOT.

Google how to add a linux user to your server (usually it's just useradd <username>), because this is just wrong.

Mariu22S

Use this config.cfg

mapname Vice City
gamemode DM
plugins squirrel04rel32 hashing04rel32 ini04rel32 sqlite04rel32
port 6666
announce 1
maxplayers 100
sqgamemode scripts/yourscript.nut

Sebastian

Quote from: Mariu22S on Apr 15, 2015, 05:45 PMmapname Vice City
announce 1

These two are invalid lines. The map name tab does not even exist in 0.4 browser, and also the only way to announce your server in masterlist is to load the plugin announce04.

rww

Quote from: Honey on Dec 21, 2014, 02:50 PMI had a similar problem, This happens due to the wrong line endings.

If you're trying to run your script in Linux then Open Notepad++ ( install it if you don't have it ) then Open the server.cfg file.Open the EDIT tab and open the EOL Conversion Sub Direct. Over there click on UNIX/OSX Format.If that doesn't work then try this ( works only for 64 bit ):

Quote from: BLAKBERD(Use the x64 module this time)

Try executing this: ldconfig /usr/local/lib
Run your server.

In case this does not work, follow these steps:
1. Open the file /etc/ld.so.conf and remove everything and add the following
Code: [Select]

include /etc/ld.so.conf.d/*.conf

(If this file does not exist, create it.)
2. Open the file /etc/ld.so.conf.d/libc.conf and remove everything and add the following:
Code: [Select]

# libc default configuration
/usr/local/lib

(If this folder and this file don't exist add them.)
3. Now execute ldconfig using root.

In case none of the above works, try downloading this zip file, extract it, open the folder LDSO and copy all the files and folders inside of it to /etc/ (Replace files if asked)
Now execute ldconfig using root
Download: https://www.sendspace.com/file/ji6oib

If none of these work, then install the 32 bit OS, since I got no other idea.

Here is the solution. At least helped me.
Join to Irrelevant Club Discord: https://discord.gg/MsPPZ5uV4X

Gudio

Did you guys notice the date of the last written post here?