Giter Club home page Giter Club logo

Comments (1)

bobbens avatar bobbens commented on September 21, 2024

I'm not necessarily sure this is a good idea: on one hand, encouraging scumming behaviours is not good, on another hand, potentially wasting the player's time is not good. XCOM uses a pseudo random number generator seed that is saved and loaded with an option to have true randomness (allowing scumming), although it is disabled by default.

For Naev, it would also make sense to implement this with a pseudo-random number generator that gets saved or something instead of all the missions/events, which would probably have more corner cases and be much harder to implement bug-free. The criteria on how it gets updated could be defined such that it only gets changed when a) the player completes a mission, or b) the player goes to a different planet. The game would save and load the pseudo random number generator seed, so it would give the same missions until it gets changed.

Implementation-wise, this would consist of:

  1. When generating landed missions, first set the PRNG seed(s).
  2. Then, then generating the missions, make it so all the random functions in the rnd module use the PRNG seed behaviour instead of true random behaviour. This behaviour would be reset after missions are generated.
  3. When saving/loading make sure to keep track of the PRNG seed(s).
  4. Use some criteria to determine if the seed should be updated, in which case it would be updated randomly.

It would probably make sense to also give some option to disable this behaviour, at least to add a plugin to disable this if players are so inclined.

from naev.

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.