Error: Segmentation fault (Linux) -
amirm3hdi - 21.01.2016
I programmed a server in windows and downloaded the 3 linux files and moved the whole project to a linux machine,
I started the server from linux but gamemode text is "Unknown" in SA-MP Server Browser (But it's something else when I run it from windows)...
What should I do to fix this?
What causes this problem?
---
LATEST UPDATE: Info in this thread
---
Read the posts before you "try to help"
Re: Gamemode text is "Unknown" in linux -
LifeRah - 21.01.2016
Linux need's .SO plugins so replace .DLL with .SO
Re: Gamemode text is "Unknown" in linux -
Danzou - 21.01.2016
Windows - plugins streamer.dll etc..
Linux - plugins streamer.so etc..
___________________________
Plugins are also in the " plugins folder " or post your server_log.txt
@Edit: sorry, did not realize that he had already answered.
Re: Gamemode text is "Unknown" in linux -
amirm3hdi - 21.01.2016
I'm not a noobie, I know.
I have both .so and .dll files in the plugins folder,
I can even join the game and everything's normal...
In server.cfg I didn't specify... for example I just wrote streamer, not streamer.so or streamer.dll
If that is the problem I'll change them to .so
Any other ideas?
UPDATES:
I've changed all plgs to .so and all loaded fine.
I checked server_log.txt and error:
Код:
Script[gamemodes/MY_GAMEMODE.amx]: Run time error 19: "File or function is not found"
Number of vehicle models: 0
The file EXISTS, but wth, should I recompile it? I can't do it on linux
Here's my server.cfg:
Код:
gamemode0 MY_GAMEMODE
Re: Gamemode text is "Unknown" in linux -
SsHady - 22.01.2016
Try recompiling the script with the latest includes..
Also try nativechecker.
NativeChecker
It will tell you which function are you missing.. Add "nativechecker.so" after all the plugins for example
Код:
plugins streamer.so sscanf.so nativechecker.so
Re: Gamemode text is "Unknown" in linux -
amirm3hdi - 22.01.2016
Quote:
Originally Posted by SsHady
Try recompiling the script with the latest includes..
Also try nativechecker.
NativeChecker
It will tell you which function are you missing.. Add "nativechecker.so" after all the plugins for example
Код:
plugins streamer.so sscanf.so nativechecker.so
|
Ok I'll try
Re: Gamemode text is "Unknown" in linux -
Crystallize - 22.01.2016
show us all #include <x> and so on
Re: Gamemode text is "Unknown" in linux -
amirm3hdi - 22.01.2016
Quote:
Originally Posted by Wizzard2H
show us all #include <x> and so on
|
I'm not gonna do that,
I created a blank gamemode, still nothing happens,
No vehicle model and no gamemode text...
Gamemode doesn't work at all...
Re: Gamemode text is "Unknown" in linux -
Vince - 22.01.2016
Download the server files directly to the server machine if possible (wget) or use
binary mode when uploading from a remote machine. Uploading in ASCII mode, which is the default, is fine for text files but it is not suitable for executables.
Re: Gamemode text is "Unknown" in linux -
amirm3hdi - 22.01.2016
Quote:
Originally Posted by Vince
Download the server files directly to the server machine if possible (wget) or use binary mode when uploading from a remote machine. Uploading in ASCII mode, which is the default, is fine for text files but it is not suitable for executables.
|
I did it before, the 0.3.7-R2, still the same,
When I pull (from git) error file or... not found..
I compiled it on linux with wine, the error is fixed but no gamemode...
It's like it doesn't even exists...