Comments (4)
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.
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.
The SpawnSetup patch was missing a try/catch so I fixed it. This should do for now
from multiplayer.
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)
- Vanilla Multiplayer desync every few seconds to minutes HOT 3
- Linux vs Windows mod mismatch HOT 10
- Desync on caravan creation - survival meal stack size not handled properly
- Lost Tribe scenario please HOT 2
- Incorrect Needs in 3.9.4 HOT 7
- Attacking a work site does not provoke attack/Pawns stay neutral
- Drawing of selected objects by other players has a couple of issues
- List of API/Compat improvements and changes that could end up being useful HOT 2
- Certain interactions can not sync and cause an error due to packet size being too big or cause remote packet read error
- [Multi factions & Async time] Child's growth tier remains at zero HOT 1
- Timestamp fixer - potential issues and improvements HOT 6
- [BUG] Multifaction + Psy Ability HOT 12
- Does not work with unstable version 1.5. HOT 2
- RimWorld 1.5 HOT 6
- Shelves and bookshelves causing desync.
- Anomaly DLC HOT 5
- Desyncs when generating quests and sometimes Error quest descriptions.
- Bioferite harvesters cause desync HOT 7
- [1.5.4069]Creatures in the game often desynchronize during pathfinding
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multiplayer.