Building a bot for a headless server

Find multiplayer games.
Tools/scripts to run a dedicated server.
noddybear
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Mar 28, 2022 2:09 pm
Contact:

Building a bot for a headless server

Post by noddybear »

Good afternoon,

I'm interested in building a bot that can run various actions when the users are logged off a headless server.

I have tried to create a new player using both the RCON interface and by modding it in lua - but it seems that the game.players table is read only.

Is there a known way to create non-human players in the headless server?

Thanks
Qon
Smart Inserter
Smart Inserter
Posts: 2164
Joined: Thu Mar 17, 2016 6:27 am
Contact:

Re: Building a bot for a headless server

Post by Qon »

Why do you need a player? A mod can do pretty much anything through the mod code already. A "player" would not add any capability. The only use I can come up with on the spot is to attribute building actions to the bot, as in the "last user" info slot.
My mods: Capsule Ammo | HandyHands - Automatic handcrafting | ChunkyChunks - Configurable Gridlines
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
Post Reply

Return to “Multiplayer / Dedicated Server”