Jump to content

Recommended Posts

Posted
3 hours ago, DJ_Synergy said:

Will try to get it to work with a little help from you maybe.

If i can run this project on linux i can write a tutorial for that and we will be able to run it on both platforms.

Because linux is the most important server platform.


Here is what i have done so far:
i downloaded the server files and the bridge package and installed it to /var/ragemp on my server.
i downloaded wiredplayers and installed it to /var/ragemp too.
i then created a system.d script to get the server as a "service" under linux so it will autostart is controllable with "systemctl start rpserver" or "systemctl stop rpserver".
i created the database "gtav" on my mysql server with user "gta" and a password. i imported the sql file to that database and edited meta.xml with the new password.

to compile the project (WiredPlayers.dll) on Linux:
i installed mono-devel package (on ubuntu, may be named mono something on other distros). that is a dot net runtime and developer package for linux.
with mono comes the program "msbuild" which can build microsoft visual studio projects.
so i moved to /var/rpserver/bridge/resources/WiredPlayers/ and run "msbuild /restore ./WiredPlayers.csproj". The /restore is essential and will rebuild the whole project and get all dependencies / NuGet (like gtanetwork, etc.).
This will build your WiredPlayers.dll. It is then in the correct folder and will be found by the server.

So far the server starts booting, is loading WiredPlayers and will then quit with the errors i posted before.

Next step is to debugg these errors and if we can fix everything we will be able to run it on linux as a nice happy autostarting background service.


BTW:
i even made a nice little admin panel for controlling the server via the webpage

adminpanel.jpg

This looks pretty nice, can you tell me how you made it? I mean does it stop and start a server on windows?

Posted
vor 29 Minuten schrieb Atesh:

This looks pretty nice, can you tell me how you made it? I mean does it stop and start a server on windows?

no, it's written in PHP and HTML and uses shell_exec() php function to call "systemctl start rpserver" or "systemctl stop rpserver" or get the online status with "systemctl is-active rpserver" ...
this is only possible this way for linux, because linux uses simple little scripts to use programs as "services" or daemons ... these scripts will then autostart and give you the ability to controll them with terminal commands.
i'm sure someone COULD code the same thing for windows by using powershell commands to start, stop and get status from the server but im not planning to do this because this was intended to be only for my server.

maybe, if there i enough interest in this i might code such a thin for linux AND windows in a github repo and make it public, but its not on my todo list right now :)

Posted
vor 36 Minuten schrieb bendeguzbagi:

Thats okay but i read about this errors and a little bit scared i got same error.

which one? on windows this package should work without bigger problems if installed correctly.

 

Posted
28 minutes ago, bendeguzbagi said:

I successfully installed the mod but when i connect this happens and i cant do anything.

https://imgur.com/1QQvSEQ

What happens? How have you connected? You should connect directly on Direct Connect and then connect to ip 127.0.0.1

Posted
Just now, Atesh said:

What happens? How have you connected? You should connect directly on Direct Connect and then connect to ip 127.0.0.1

Yep directly connected with 127.0.0.1. When i connect the server downloading the files then give me message : Download Complete! and i cant do anything and nothing happens.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...