Giter Site home page Giter Site logo

Comments (4)

SokyranTheDragon avatar SokyranTheDragon commented on June 10, 2024

I think I may have an idea on how to handle this... I'll try to get something up soon. Hopefully my attempts will end better than 2 years ago when I tried and gave up with no idea on how to do it.

from multiplayer.

SokyranTheDragon avatar SokyranTheDragon commented on June 10, 2024

The solution I thought of won't work due to issues with Harmony and generics. The Harmony documentation made me believe it would work, which was not the case.

I suppose the simplest fix for startup errors would be to skip patching generics (and leaving an appropriate warning/error?)... Which for obvious reason is not a good solution, but would at least stop everything from breaking fully on startup.

At least unless Prepatcher is capable of handling generics better than Harmony, or Zetrith has some way to handle it which will work. I myself am out of ideas here.

from multiplayer.

Zetrith avatar Zetrith commented on June 10, 2024

The SpawnSetup patch was missing a try/catch so I fixed it. This should do for now

from multiplayer.

SokyranTheDragon avatar SokyranTheDragon commented on June 10, 2024

Still need to change 2 places to use try/catch, as they could technically cause the same issues. Not a big issue at the moment.
https://github.com/rwmt/Multiplayer/blob/7429f3a8870a8696e5829de31a831c8d0f16ce4b/Source/Client/Syncing/Game/SyncMethods.cs#L64-L82
https://github.com/rwmt/Multiplayer/blob/7429f3a8870a8696e5829de31a831c8d0f16ce4b/Source/Client/Syncing/Game/SyncActions.cs#L17-L21

Still, this doesn't really fix the issue, as it'll just display a big red X next to the Multiplayer button (with an irrelevant message). This could technically be worked around by the mod itself calling the MP prefix and postfix/finalizer, but again - we'll be left with errors and the X informing people that Multiplayer errored out. Sadly, for the time being - this basically means that some mods (like Project Rimfactory) will remain incompatible with MP and no easy fix...

from multiplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.