Jump to content

Recommended Posts

Posted

Hello,

I have created my first server, but I get an error in the server log when I want to start it.

-> Error starting 'BoredMP'
System.NullReferenceException: Object reference not set to an instance of an object.
   at bool GTANetworkInternals.GameServer.StartResource(string resourceName, string parent)

settings.xml: 

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <acl_enabled>true</acl_enabled>
  <log_console>true</log_console>
  <log_chat>true</log_chat>
  <resource src="BoredMP"/>
</config>

meta.xml:

<meta>
    <info name="BoredMP" description="test" />
    <script script="BoredMP.dll" />
</meta>
Posted

Is your dll in the correct location?

Example: server-files\dotnet\resources\BoredMP

Can you share your initializing code?

It would be easier to get support by joining the discord server as we have dedicated channels for csharp queries.

Posted

I can join to discord server, but later. I'll text you

[INFO] Starting RAGE Multiplayer server...

[============================================================]
||
||      MaxPlayers              100
||      Sync rate               40ms
||      Name                    RAGE:MP Unofficial server
||      Gamemode                freeroam
||      Streaming distance      500
||      Announcement            disabled
||      Voice chat              disabled
||      Address                 127.0.0.1:22005
||      Connection limits       disabled
||      Encryption              enabled
||      NodeJS                  enabled
||      C#                      enabled
||
[============================================================]


[INFO] Loading NodeJS packages...
[INFO] Starting packages...
[DONE] Server packages have been started.
Initializing Bootstrapper.dll (1.1.0.0)..
-> SERVER STARTED AT 28.03.2023 11:58:39
Unable to load acl.xml
ACLEnabled: False
Loaded 667 entries from vehicleData.json
Loading resources..
-> Starting BoredMP resource..
BoredMP: loading scripts.. found 1 script(s)
Object reference not set to an instance of an object.
-> Error starting 'BoredMP'
System.NullReferenceException: Object reference not set to an instance of an object.
   at bool GTANetworkInternals.GameServer.StartResource(string resourceName, string parent)

Started! Waiting for connections..
[DONE] Started resource transfer server at 22006 port.
[DONE] Client-side packages weight: 0.000000 MB (uncompressed: 0.000000 MB).
[INFO] Initializing networking...
[DONE] Networking has been started: (IPv4-only) at 127.0.0.1:22005
[DONE] The server is ready to accept connections.

spacer.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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