About this mod
Tool for Mod developpers : A lua snippet for detecting the Player's net Situation.
- Permissions and credits
- Mirrors
- Changelogs
Are you are mod developper and having these issues ?
- You have an amazing gameplay mod but it is very disruptive to the multiplayer experience.
- Your users are asking you if you can have your mod auto disable itself in certain situations.
- The mod you are developing is either Unbalanced or considered Cheating, and you want to add safeguards to avoid potential bans.
This script addresses them by :
- Using the in-game function that keeps track of the player's net situation
(Online, In an Arena Quest, SoloOnline, in the Training Area, etc. link to all possible states as of now → seeeee moooore🏡🔥) - You decide whether a net situation is okay for your mod or not.
- You can then use this logic to automatically disable functions of your mod. :)
- [📖 More in-depth explanation here]

Implementation example
[📖 Guide also on GitHub]
Either download from here (👎) or get it from GitHub (👍)
Production Version
Compact and built for seamless integration into your mod!
1. Copy-Paste the code from the Production Version directly into the .lua of the mod that you are developping.
2. Customize to your liking (I've provided all the necessary details in the code already), And you're set! :)
Testing Version
Not intended for production use.
Prints the situation changes to the console.
Useful if you're wanting to see exactly when situations change,
and mapping the game's situations to more human readable ones.
1. Ensure that you have correctly placed the files. MultiDetect_Testing.lua should appear.
2. Spawn the debug console by pressing the Spawn Debug Console button.

3. Roam around the world and see the states printed out to the console when you enter different situations.

An example of what you'll see in the console logs
(if Possible Situations < Known Situations)
1. IF/When a new un-confirmed situation arises, the log will notify you and attempt to suggest possible candidates.
2. When you are pretty sure you can confirm the situation, add it in MD_Known_Situations.lua and save.
3. In REFramework, Click the Reset scripts button and continue finding unconfirmed situations.
4. Share your findings with everyone on the GitHub !
Credit is cool and all, but really I just wish for people to be able to mod safely.
Enjoy !
🌟