-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Controlling multiple vehicles at once #174
Comments
It is possible to create multiple characters and control them to some extent (check out Admin.Character API), but the implementation is hard and buggy. Also the vehicle movement there doesn't work. However what we are doing and works well is actually having multiple instances of game each running plugin and then communicating to all of them at once since each plugin has separate IP and port (sometimes we run 2 plugins at single computer - one for game and one for dedicated server). That is our current focus. |
I'm not sure I follow: do I need to have more than one computer to have multiple instances of the game running? |
Yes, unless there's some way to run multiple games on a single computer (maybe using virtualization and running another instance inside VM). We haven't really looked into that and just used multiple computers to make things easier for us (we also need fast performance for our tests). |
I see. |
You can create new character using admin.character.create API. Then you can switch between characters using admin.character.switch. To show all characters use admin.observer.observeCharacters. Once you switch to a character, all character.x API commants are related to the selected character.
There is similar functionality built into the game for singleplayer only, which we may use later and connect it with this API, but that is definitely not the priority at the moment. Now we are heavily focused on adding new functionality related to controlling the character, blocks and multiplayer gameplay. |
To my understanding, the current API's Input replay functionalities emulate a virtual keyboard+mouse, essentially simulating a single user.
Is it possible to issue commands in parallel, as in a multiplayer game? It would be helpful to control multiple vehicles at once instead of one after the other.
@hovi is this feature implementable? Something like having multiple inputs applied to multiple (virtual) players?
Alternatively, do you know if it's possible to have multiple instances of Space Engineers open? If so, how does the API behave? Can it correctly deliver the JSON-RPC requests to the correct game instance?
The text was updated successfully, but these errors were encountered: