Vice City: Multiplayer

VC:MP Discussion => Support => Topic started by: abbasi on Jun 28, 2015, 05:49 PM

Title: Cant Load Server in Vps
Post by: abbasi on Jun 28, 2015, 05:49 PM
When i type screen ./mpsvrrel32, 2 to 3 plugins load and then disappear in centos.Tell me what to do???
Title: Re: Cant Load Server in Vps
Post by: Stormeus on Jun 28, 2015, 06:17 PM
You probably had an error that kept the server from loading but since you're using screen you can't read it. Get rid of the screen command and try again.
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 28, 2015, 06:56 PM
:/
Title: Re: Cant Load Server in Vps
Post by: Stormeus on Jun 28, 2015, 08:50 PM
To clarify, remove the screen command, check for an error from the server, then fix the issue and reuse the screen command.
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 28, 2015, 09:00 PM
thank u and only you told correct solution on this forum.
I am getting this error:
http://s14.postimg.org/baxbch2s1/Capture.png
Title: Re: Cant Load Server in Vps
Post by: . on Jun 28, 2015, 09:09 PM
Fro f*s sake people. Are you blind?

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fs8.postimg.org%2Fbwqtt2yph%2FCapture.png&hash=92ed81bdf94f7352ef86b9690fc652bd9c27083b)
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 28, 2015, 09:18 PM
Im not blind man >.<
http://s12.postimg.org/tpbvttp1p/Capture.png
Title: Re: Cant Load Server in Vps
Post by: . on Jun 28, 2015, 09:23 PM
Still no idea if it's in the correct sub-directory.
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 28, 2015, 09:26 PM
remaining are fine but y only this ???
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 28, 2015, 09:29 PM
can i dlt this??
Title: Re: Cant Load Server in Vps
Post by: Thijn on Jun 29, 2015, 05:38 AM
I believe you need the mysqlclient on linux.
Please post the output of the command ldd mysql04rel64.so
Execute that in the plugins folder, obviously.
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 29, 2015, 08:21 AM
I have installed mysqlclient but again that error
Title: Re: Cant Load Server in Vps
Post by: jayant on Jun 29, 2015, 09:57 AM
You really using mysql in your scripts ? I doubt this..If you are not using it, don't use it..Remove that plugin and also don't load it from server.cfg.After all this,try to run the server..
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 29, 2015, 10:21 AM
I removed it but now again cant load sqlite wtf???
http://s7.postimg.org/v64b3p94r/Capture.png
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 29, 2015, 10:57 AM
its not plugins problem see
http://s1.postimg.org/48s9e7bqn/Capture.png
Title: Re: Cant Load Server in Vps
Post by: maxorator on Jun 29, 2015, 12:12 PM
Make sure that your plugins line in server.cfg does not contain any unnecessary spaces.
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 29, 2015, 12:24 PM
u can check it
plugins xmlconf04rel32 squirrel04rel32 sqlite04rel32 sockets04rel32 hashing04rel32 ini04rel32
Title: Re: Cant Load Server in Vps
Post by: . on Jun 29, 2015, 01:34 PM
Aaah yes, I remember this crap. The encoding of the config file is a bit screwed up and causes it to load a plugin with an empty name. That's because the server doesn't know when the plugins line ends.

There's another topic which even had a fix for this. But I'm too lazy to look for it.
Title: Re: Cant Load Server in Vps
Post by: DizzasTeR on Jun 29, 2015, 01:52 PM
Quote from: S.L.C on Jun 29, 2015, 01:34 PMAaah yes, I remember this crap. The encoding of the config file is a bit screwed up and causes it to load a plugin with an empty name. That's because the server doesn't know when the plugins line ends.

Adding a space at the end of the plugin line fixes that, I noticed it when my announce plugin didn't load, all I did was add a space after the last character in plugins line.
Title: Re: Cant Load Server in Vps
Post by: Thijn on Jun 29, 2015, 03:42 PM
Converting the line endings to linux usually fixes this as well.
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 29, 2015, 03:48 PM
When i give no space its showing error of last plugin and when i give 2 spaces it shows blank li this
http://s30.postimg.org/4wg0ncg75/Capture.png
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 29, 2015, 03:51 PM
Give example Thijn
Title: Re: Cant Load Server in Vps
Post by: Thijn on Jun 29, 2015, 04:50 PM
Open the server.cfg file in Notepad++ and go to Edit -> EOL Conversion -> Unix
Save the file, and upload to your VPS.
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 29, 2015, 07:02 PM
That error is fixed tnank u thijn but again screen is terminating and this time no error :'(
http://s24.postimg.org/otoicaxfp/Capture.png
http://s2.postimg.org/548xwna2x/Capture1.png
Title: Re: Cant Load Server in Vps
Post by: . on Jun 29, 2015, 07:12 PM
I'm just speechless. You just proved to the world that what they know about stupidity is nothing compared to the one displayed by you.

Once again you people show us that you don't even read those error messages. You just come here with print screens (in best case scenario) and expect to be explained something that you can't even understand.

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fs22.postimg.org%2F3ysd1zne9%2FCapture1.png&hash=8a09c6a1c23feba4983c17c02d3efa5fb8387156)

I'M STRUGGLING FROM THE BOTTOM OF MY HEART TO NOT BURST INTO RAGE RIGHT NOW BUT IT'S REALLY, REALLY, HARD.
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 29, 2015, 07:16 PM
You are speechless because you cant solve it and this is not stupidity its problem. :P
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 29, 2015, 07:20 PM
i tried that u r trying to explain in your lang >.< i tried that cmd :P
Title: Re: Cant Load Server in Vps
Post by: jayant on Jun 29, 2015, 07:28 PM
Its not a problem, Its just a simple thing..Runing the server as root has some security issues so you need to make a user in your vps and then normally run the server by screen ./mpsvrrel32.
To run as root, you will do like this - screen ./mpsvrrel32 -allow-server-runas-root To kill - get the process id of screen by pgrep screen and then use kill <id>
Title: Re: Cant Load Server in Vps
Post by: Thijn on Jun 30, 2015, 05:51 AM
Quote from: abbasi on Jun 29, 2015, 07:16 PMYou are speechless because you cant solve it and this is not stupidity its problem. :P
You have no idea how stupid this sounds. It's ridiculous.
The best thing to do right now is create a separate user to run the vcmp server with. Google has some excellent guides for that, specific for your distro.
1. Create a new user.
2. Copy your server files to the new user's home folder
3. Login to SSH with that new user
4. Run server.
5. Profit.

Quote from: jayant on Jun 29, 2015, 07:28 PMIts not a problem, Its just a simple thing..Runing the server as root has some security issues so you need to make a user in your vps and then normally run the server by screen ./mpsvrrel32.
To run as root, you will do like this - screen ./mpsvrrel32 -allow-server-runas-root To kill - get the process id of screen by pgrep screen and then use kill <id>
Killing a process running in a screen is much easier then that. You just type screen -r which will give you back your console. Then press CTRL+C and the process will be gracefully killed.
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jun 30, 2015, 10:44 AM
I made user and now giving error segmentation fault
http://s23.postimg.org/h04mqmgu3/Capture.png
Title: Re: Cant Load Server in Vps
Post by: MacTavish on Jun 30, 2015, 10:56 AM
If your server is in root then do

screen ./mpsvrrel32 -allow-server-runas-root
Title: Re: Cant Load Server in Vps
Post by: Murdock on Jun 30, 2015, 11:45 AM
Quote from: Beztone on Jun 30, 2015, 10:56 AMIf your server is in root then do

screen ./mpsvrrel32 -allow-server-runas-root

Because why bother reading the other replies?
Title: Re: Cant Load Server in Vps
Post by: Honey on Jun 30, 2015, 11:54 AM
Found this on google in less than 5 seconds :

Quote from: WikipediaA segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (for example, attempting to write to a read-only location, or to overwrite part of the operating system).
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jul 01, 2015, 10:24 AM
now i have changed the os of my vps to ubuntu and also made user but again showing that error
http://s10.postimg.org/5v06z7js9/Capture.png
I also tried -allow-mpsvrrel32-runas-root
I think its due to this error..
http://s23.postimg.org/ir1ayn10b/Capture1.png
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jul 01, 2015, 01:17 PM
i think nobody can solve this? :'(
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jul 01, 2015, 07:14 PM
Where are developers???????
Title: Re: Cant Load Server in Vps
Post by: jayant on Jul 01, 2015, 07:32 PM
If no one is responsing that means they already gave you the possible solutions...I am not sure about the error in the pic, but be sure that your script get correctly and fully loaded without error and for this you need to check the script properly if it contains any fault, fix it and then run it..
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jul 01, 2015, 07:54 PM
I already tried and i dont have spare time to make posts without reason
Title: Re: Cant Load Server in Vps
Post by: . on Jul 01, 2015, 08:36 PM
I got a SOLUTION. Get a new brain.
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jul 01, 2015, 08:37 PM
I m not joking here >.<
Title: Re: Cant Load Server in Vps
Post by: Stormeus on Jul 01, 2015, 10:30 PM
Remove the plugins line and load the server and see if that's what's segfaulting. If it's not, add plugins back one-by-one until you find what's causing the crash.

PS: Devs have lives too. VC:MP actually isn't my job as I have one in the real world now to deal with.
Title: Re: Cant Load Server in Vps
Post by: MatheuS on Jul 02, 2015, 01:29 AM
The plugins are not working on windows 64bit
Title: Re: Cant Load Server in Vps
Post by: abbasi on Jul 02, 2015, 09:56 AM
Now my prob is solved by a great guy which i found on linux forum.He told me 3-4 cmds and now prob solved :)