2 ms·
Throw in a redis client or similar and you could have multiple players battling it out. (Assuming you don't want to put stuff into the actual folder on a per-pl
by adamius 5y ago
Throw in a redis client or similar and you could have multiple players battling it out. (Assuming you don't want to put stuff into the actual folder on a per-player basis)
- facundo_olano 5y agoI was thinking about using ssh somehow to turn it into multiplayer. A local, cheaper alternative is to just have different player profiles (with different data files) and make them battle when they both happen to be on the same directory.
- adamius 5y agoI'd assume ssh to get onto the server but you still need a way for the rpgcli instances to talk to each other. Like I already wrote, you could dump files into the folder each player is in, but I'm thinking something like redis or similar would give you messaging/events. This would avoid the need for temporary files recording where each player is in the folder structure; as well as having to clean them up. This would allow an event to be generated when players are in the same folder; allow them to be aware of each other; allow interaction, eg they could draw swords; or interact with the creatures therein. Objects dropped could be seen by both and once picked up are taken by one player etc. Monsters could wander around as well. I'm not referring to messaging / events for just chat purposes even though you could naturally enough do that as well.