Jump to content

Recommended Posts

Posted
5 hours ago, kushbymrgreen said:

-> Error starting 'WiredPlayers'
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Det går inte att hitta filen.
   at void WiredPlayers.database.Database.OnResourceStart()
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at GTANetworkInternals.ScriptingEngine.InvokeVoidMethod(String method, Object[] args)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at GTANetworkInternals.EventHandler.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at GTANetworkInternals.GameServer.StartResource(String resourceName, String parent)

 

 

What do i do to fix this issue?

Follow the steps and install the bridge before copying the gamemode.

Posted (edited)

I have the same error as Looky with my linux server.
looks like a platform problem. i even build the whole csproj directly on the linux machine to be sure. so it is directly build inside the server folder with msbuild ...
 

WiredPlayers: loading remote events.. found 8 remote event(s)
WiredPlayers: loading remote events.. found 2 remote event(s)
WiredPlayers: loading remote events.. found 2 remote event(s)
WiredPlayers: loaded 53 remote event(s)
-> Error starting 'WiredPlayers'
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format.
 (Exception from HRESULT: 0x8007000B)
   at List<BusinessModel> WiredPlayers.database.Database.LoadAllBusiness()
   at void WiredPlayers.business.Business.LoadDatabaseBusiness() in /var/rpserver/bridge/resources/WiredPlayers/business/Business.cs:line 19
   at void WiredPlayers.database.Database.OnResourceStart() in /var/rpserver/bridge/resources/WiredPlayers/database/Database.cs:line 40
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at GTANetworkInternals.ScriptingEngine.InvokeVoidMethod(String method, Object[] args)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at GTANetworkInternals.EventHandler.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at GTANetworkInternals.GameServer.StartResource(String resourceName, String parent)

Started! Waiting for connections..
[P] Plugin bridge.so loaded!
Started HTTP server at 22006 port.
Segmentation fault

 

EDIT:
updated files to last github version after recognising the changes made a few hours ago.
the problem is still the same, just other line numbers ...

 

WiredPlayers: loading remote events.. found 2 remote event(s)
WiredPlayers: loading remote events.. found 2 remote event(s)
WiredPlayers: loaded 53 remote event(s)
-> Error starting 'WiredPlayers'
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format.
 (Exception from HRESULT: 0x8007000B)
   at List<BusinessModel> WiredPlayers.database.Database.LoadAllBusiness()
   at void WiredPlayers.business.Business.LoadDatabaseBusiness() in /var/rpserver/bridge/resources/WiredPlayers/business/Business.cs:line 21
   at void WiredPlayers.database.Database.OnResourceStart() in /var/rpserver/bridge/resources/WiredPlayers/database/Database.cs:line 46
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at GTANetworkInternals.ScriptingEngine.InvokeVoidMethod(String method, Object[] args)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at GTANetworkInternals.EventHandler.ParseEx(Event _event, ScriptingEngine engine, Object[] arguments)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at GTANetworkInternals.GameServer.StartResource(String resourceName, String parent)

 

Edited by DJ_Synergy
Posted
30 minutes ago, Xabi said:

You may need .so assemblies like MySql.Data, I don't really know as I didn't try to upload to a Linux based server.

Can u make a "tutorial" for how to setup to a linux server?

Posted
9 hours ago, bendeguzbagi said:

Can u make a "tutorial" for how to setup to a linux server?

As said on the guide, didn't try it and I'm not good at Linux, so not the best for making the tutorial.

Posted (edited)
vor 14 Stunden schrieb Xabi:

You may need .so assemblies like MySql.Data, I don't really know as I didn't try to upload to a Linux based server.

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

Edited by DJ_Synergy
Posted
4 minutes 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.

That would be awesome 😁 hope get some progress 🤞

Posted

oh, i missed a warning at building the project. dont know why i havent read this the first time .....
"rage-sharp"-Assembly was not found.  That should be the problem, if it is used in the code.
@Xabi - do you know how to get it and where it has to be placed in the folder structure?
it is the rage-sharp.dll in dotnet ... i think it must be a rage-sharp.so in linux then but i'm sadly not that good in dot net, because im a linux fan boy :D
It's the first dotnet project for me ...

Posted
36 minutes ago, DJ_Synergy said:

oh, i missed a warning at building the project. dont know why i havent read this the first time .....
"rage-sharp"-Assembly was not found.  That should be the problem, if it is used in the code.
@Xabi - do you know how to get it and where it has to be placed in the folder structure?
it is the rage-sharp.dll in dotnet ... i think it must be a rage-sharp.so in linux then but i'm sadly not that good in dot net, because im a linux fan boy :D
It's the first dotnet project for me ...

Better to skip this part and stay on 0.3.6 version, as I'm currently developing the C# client-side scritps.

As it's said on the guide, remove cs_packages and statics folders from client_packages folder and it should work.

Posted (edited)

 

vor 2 Stunden schrieb Xabi:

Better to skip this part and stay on 0.3.6 version, as I'm currently developing the C# client-side scritps.

As it's said on the guide, remove cs_packages and statics folders from client_packages folder and it should work.

i now switched back to the older release of wiredplayers from ragemp website.
i started to build and it looks much better now ... no errors or warnings. dll build without problems

build.jpg

 

But i keep getting errors:
 

[N] Starting network... - OK: (IPv4-only) at 127.0.0.1:22005
(node:10740) ExperimentalWarning: The ESM module loader is experimental.
[M] Announcing into master server...
Loading packages
Initializing bridge (0.3.5.0)..
Failed to initialize CoreCLR, HRESULT: 0x8007001F
[P] Plugin bridge.so loaded!
Started HTTP server at 22006 port.
Segmentation fault

 

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

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