Jump to content

Xabi

Moderators
  • Posts

    1444
  • Joined

  • Last visited

  • Days Won

    83

Posts posted by Xabi

  1. 5 minutes ago, andregamma 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.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. O sistema não pode encontrar o arquivo especificado.
       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)

    How I fix this? I compiled the solution and the WiredPlayers

    If you made it in the same order as the guide says, you'd have the correct version for that .dll library. You need the one on Github, not the one comming with the bridge.

  2. 1 hour ago, RiddiK said:

    thats in the 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>false</acl_enabled>
      <log_console>true</log_console>
      <log_chat>true</log_chat>
      <resource src="WiredPlayers" />
    </config>

    Try using the conf.json comming on the resource, because it seems to be trying to load Node packages instead of Bridge resources.

  3. 3 minutes ago, RiddiK said:

    Starting RAGE Multiplayer server...

    [=========================================================]

            MaxPlayers:             102
            Sync rate:              40
            Name:                   [GER][TEST SERVER]
            Gamemode:               WP-RP v1.1.0
            Streaming distance:     500
            Announcement:           enabled
            Voice chat:             enabled
            Address:                
            Connection limits:      disabled
            Encryption:             disabled
            NodeJS:                 enabled
            C#:                     enabled

    [=========================================================]


    [N] Starting network... - OK: (IPv4-only) at 185.249.199.95:22148
    (node:12967) ExperimentalWarning: The ESM module loader is experimental.
    [M] Announcing into master server...
    Loading packages
    Started HTTP server at 22149 port.
    [M] Connected to master list.
    [M] Masterlist: connection lost...
    [M] Connected to master list.

    Do you have anything inside settings.xml?

  4. 6 hours ago, junior_xarp said:
    
    I did what you asked and gave me this error.
    
    =========================================================
     
     
     
    ==================[02/12/2018 01:45:59]================== System.IO.FileNotFoundException: Could not load the specified file. File name: 'WiredPlayers.resources' at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName) =========================================================

    It's a common error, it doesn't affect to the server at all.

  5. 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.

  6. 4 minutes ago, Rafikus said:

    I thought i did replace it. I did now. Rebuilded my gamemode and now it works.

    Thank you very much.

    Is that written somewhere in wiki? If no, how do you know that you need to do this?

    It's the solution George gave on Discord, seems that there were some issues with 0.3.6 Nuget package.

    • Like 3
  7. 6 minutes ago, Rafikus said:

    By runtimes you mean RAGEMP\server-files\bridge\runtime\runtimes or RAGEMP\server-files\bridge\runtime ?
    The only Bootstrapper i have is located at RAGEMP\server-files\bridge\runtime, and it's weight is the same as in Nuget package.

    I replaced it and nothing changed.

    Yes, that's the one i mean. You replaced the one located on the Nuget package's path, right? And after doing that, did you compile your gamemode?

    • Like 3
  8. 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.

  9. 20 minutes ago, Antiskill said:

    Still the Problem. When anybody Joins the server is crashing. No Error log. Eben in cmd.

    @Xabi

     

    Screen:

    eFYW1Vr.png

     

    And when it crashes, it doesn't show any error on the console? I mean, you opened first the console window and launched the server.exe by command, right?

  10. 43 minutes ago, Stefan Todorovski said:

    I've followed the instructions and i have connected the MySQL Database with the server without any problems, but there is one issue which i can't solve.

    Here is my server window and it looks fine (No errors):
    http://prntscr.com/lm0idn

    The problem is when i log in. The register window never shows up, i can't move and whenever i type something it says "You can't use the chat in the lobby.":
    https://imgur.com/ycCCTVo

    I've seen the code and I found out that when i connect to the server it should start the event showRegisterWindow, but it never does. I added NAPI.ConsoleOutputs also, but they don't show up, too.
    http://prntscr.com/lm0ktk

    Some information about what i've done:

    • Installed WAMP, so that i can use phpMyAdmin with the MySQL server. 
    • Created and imported the provided database
    • Changed the settings in the meta file
    • Compiled the script with netcore 2.0 (I tried it with 2.1 but the problem is still present)
    • I banged my head in the wall 20 times

    I can't figure out what am i missing 😞

    Did you upgrade the Nuget to 0.3.6? If so, you should copy the Bootstrapper located under "runtimes" folder to the path where the GTAN Nuget is located.

  11. 1 minute ago, OVER said:

    Okay @Xabi, found the coordinates, edited the doors.js and it's not working.

     

    Here's what I've changed:

     

    
    let sheriffBlaineDoors = undefined;
    
    mp.events.add('guiReady', () => {
      	//Sheriff Blaine
    	sheriffBlaineDoorsDoors = mp.colshapes.newSphere(1855.685, 3683.93, 34.5928, 5.0);
    });
    
    mp.events.add('playerEnterColshape', (shape) => {
      	switch(shape.id) {
      		case sheriffBlaineDoorsDoors.id:
    			mp.game.object.setStateOfClosestDoorOfType(mp.game.joaat('v_ilev_shrfdoor'), 1855.685, 3683.93, 34.5928, true, 0, false);
    			break;
    	}
    });

     

    The true stands for "locked" state, so you're closing it.

  12. 3 minutes ago, Soranno said:

    Even using the unmodified Database.cs file, I still get the MySQL error. I created the database and I also changed the credentials in meta.xml
     

     <!-- Database connection settings -->
      <settings>
        <setting name="host" value="localhost"/>
        <setting name="username" value="root"/>
        <setting name="password" value=""/>
        <setting name="database" value="gtav"/>
      </settings>

    Then if you can't access the database without changing anything, the problem comes with credentials.

  13. Just now, Soranno said:

    Database.cs I modified it by entering the database credentials, but even if I did not modify it, it gave me the same error
    Now I would like to know if I'm wrong to connect it to xampp with phpmyadmin, to connect to the database use localhost/phpmyadmmin
     

    Again... You DON'T have to modify anything on Database.cs, can you please read to the previous messages and follow the guide? Don't do anything that isn't there.

    About the credentials, you created the database, you should know which ones you used, they are the same.

  14. 2 minutes ago, Soranno said:

    Nope, always. But I wanted to ask you, can not it be a database problem? I connect the database to phpmyadmin using xampp.
     

    I mean, you didn't edit Database.cs right? If you can connect to that database and the credentials are correct, the gamemode should be able to connect also.

×
×
  • Create New...