Code Monkey home page Code Monkey logo

mcsr-serversiderng-1.16.1's Issues

Mod not working on Linux

Version Information

7.0.0

Expected Behavior

Getting a response about run submission after /seed etc. on linux

Actual Behavior

When I open the game or create a new world with the mod enabled, I get errors in the log such as "Failed to create new RNGSession". Also when doing /seed there's no message about the run submission. Log file with more details attached below.

Reproduction Steps

Opening the game, creating a new world.

System Information

  • Java Version: 19.0.2
  • CPU: Intel i5-12400F
  • GPU: AMD RX 6600
  • OS: Fedora Linux 37

Other Information

Log file:
log file.zip
List of mods:
Screenshot from 2023-02-28 00-41-41

Game insta crashes

My game just instantly crashes when trying to start it with this mod.

Concept exploitable?

Hello, I might have found a serious issue with the mod.
Full disclaimer: This is my opinion, I might have a faulty thought process.

In its current state, the server supplies a seed from which the client derives seeds for the random generators related to each implemented "random" in-game event.
Having a separate random generator for each random event does indeed make it easy for a mod to verify a run's integrity by simply checking if the runner's random generator behaves the same way as theirs.
In my opinion, this approach is fatally flawed.
By fetching the seed the server supplies at the beginning of a run, a runner can simply "calculate their future luck" by generating the stream of events a LRNG with the given seed should produce (similar to how people verifying runs would) prior to running, thus giving them crucial information to decide on whether to request a new seed from the server ("resetting").

tl;dr: With the correct skills, someone could make it so that their drop rates are significantly higher than they should by automatically skipping runs in which the seed isn't in their favor.

One might suggest leaving the game logic as-is; using one LRNG for all random events; But this approach also bears fatal problems for the mod which I will not explain here.

edit: removed a part since it might be misinterpretable

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.