Coder Social home page Coder Social logo

Only one FakePlayer spawned? about fakeplayer HOT 3 OPEN

muqsit avatar muqsit commented on July 19, 2024
Only one FakePlayer spawned?

from fakeplayer.

Comments (3)

Muqsit avatar Muqsit commented on July 19, 2024 1

FakePlayer used to spawn in one, but now spawns two fake players by default. plugin_data/FakePlayer/players.json contains a list of players to spawn in, users can modify the list to spawn in more (or remove existing) fake players, or use Loader::addPlayer() to spawn a player during runtime.

from fakeplayer.

Muqsit avatar Muqsit commented on July 19, 2024 1

It's the latter, a player is spawned in with properties specified in players.json and (to a user) is indifferentiable from an actual player on the server.

The plugin does lack commands, I do intend to work on them. At the moment, the plugin is pretty useful in cases such as testing pvp mechanisms without needing another device or an emulator (like bluestacks).

It is sort of complicated to work on a /spawnplayer command because of how much data is associated with a player (see data associated with every entry in players.json).
F.e., the user would at minimum have to specify xuid, uuid and gamertag for each player they choose to spawn in, and using random values for xuid and/or uuid or making a typo may cause inconsistency in plugins that use these properties to index player data.
Though if an advanced user would still like to go overboard despite all of that, there's always an addPlayer() method to spawn fake players during runtime.
For the rest of us, I feel like fake players are better managed when player data is pre-configured in players.json (which is currently the case) so the room for such issues is reduced (though definitely possible). Perhaps users can have the option to spawn in a selected set of players from players.json rather than the plugin spawning in all entries within players.json.

from fakeplayer.

SOF3 avatar SOF3 commented on July 19, 2024

I am kind of confused about the orientation of this plugin. If it is supposed to be controlled from other code like puppeteer, it should not do something by itself. If it is supposed to be user-friendly without code, it should provide commands for spawning fake players.

from fakeplayer.

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.