RCON Large Command Buffer deprecated


A buffer to assemble and execute commands that are too large to send via RCON directly.

7 years ago
0.14
4
Owner:
justarandomgeek
Source:
https://github.com/justarandomgeek/cmdbuffer
Homepage:
N/A
License:
MIT
Created:
8 years ago
Latest Version:
0.0.2 (7 years ago)
Factorio version:
0.14
Downloaded by:
4 users

Assemble a command in a buffer:
remote.call('cmdbuffer','add','buffername','game.print(')
remote.call('cmdbuffer','add','buffername','"hello world"')
remote.call('cmdbuffer','add','buffername',')')

Execute and clear a buffer: (returns result of buffered command)
remote.call('cmdbuffer','exec','buffername')

Clear a buffer without executing it:
remote.call('cmdbuffer','clear','buffername')

Get contents of a buffer:
remote.call('cmdbuffer','getbuffer','buffername')