2022-02-20 12:30:45 +01:00
|
|
|
# Kafkatorio
|
|
|
|
|
|
2021-10-20 00:51:35 +02:00
|
|
|
1. output events from Factorio into Kafka.
|
2022-02-20 12:30:45 +01:00
|
|
|
1. Factorio mod listens to events https://mods.factorio.com/mod/kafkatorio-events
|
|
|
|
|
2. For each event, it emits a log message
|
|
|
|
|
3. A tool (e.g. Kafkatorio Kafka Pipe) reads the logs, and sends the messages to a Kafka cluster
|
|
|
|
|
2. Kafkatorio Events Server reads the messages from Kafka
|
|
|
|
|
1. create images of the map
|
2021-10-20 00:51:35 +02:00
|
|
|
2. hosts a web map
|
|
|
|
|
|
2021-12-06 22:15:26 +01:00
|
|
|
## License
|
|
|
|
|
|
|
|
|
|
While this project is under development, [no license](https://choosealicense.com/no-permission/)
|
|
|
|
|
is provided.
|
|
|
|
|
|
2022-01-19 22:42:22 +01:00
|
|
|
## cmds
|
|
|
|
|
|
|
|
|
|
`./bin/kafka-streams-application-reset.sh --application-id kafkatorio-events-processor --input-topics factorio-server-log`
|
|
|
|
|
|
2022-02-09 10:45:23 +01:00
|
|
|
`:screen-fps=60.000000 :live-caching=300 :screen-width=1920 :screen-height=1080 :screen-top=100 :screen-left:20`
|
2022-02-08 17:56:49 +01:00
|
|
|
`:screen-fps=60.000000 :live-caching=300 --screen-width=1920 --screen-height=1080 :sout=#transcode{vcodec=h264,vb=0,scale=0,acodec=mpga,ab=128,channels=2,samplerate=44100}:file{dst=D:\\savedir.mp4} :sout-keep`
|
2022-01-19 22:42:22 +01:00
|
|
|
|
2021-11-26 14:30:06 +01:00
|
|
|
## todo
|
2021-10-20 00:51:35 +02:00
|
|
|
|
|
|
|
|
* add settings
|
2021-12-03 09:04:18 +01:00
|
|
|
* is active - whether files are exported or not
|
|
|
|
|
* delete files - clean up all files
|
2022-01-08 23:10:27 +01:00
|
|
|
* tick-rate - how often reports are generated
|
2021-12-06 22:15:26 +01:00
|
|
|
* requires on some sort of in-mod cache of map<entity-id, event>
|
2021-12-03 09:04:18 +01:00
|
|
|
* also divide by game-speed? to keep ratio the same
|
2021-10-20 00:51:35 +02:00
|
|
|
|
2021-11-26 14:30:06 +01:00
|
|
|
### to investigate:
|
2021-10-20 00:51:35 +02:00
|
|
|
|
|
|
|
|
* https://github.com/starwing/lua-protobuf
|
|
|
|
|
* https://github.com/grafi-tt/lunajson
|
2021-10-25 23:23:05 +02:00
|
|
|
* http://lua-users.org/wiki/CompressionAndArchiving
|
|
|
|
|
* https://luapower.com/zlib
|
2021-12-03 09:04:18 +01:00
|
|
|
* https://github.com/appgurueu/modlib#bluon
|
|
|
|
|
* https://github.com/dingyi222666/lua-table-serialize
|
|
|
|
|
* https://github.com/uriid1/lua-serialize
|
|
|
|
|
* https://github.com/rxi/lume#lumeserializex
|
|
|
|
|
* https://github.com/SwadicalRag/bON
|
2021-10-20 00:51:35 +02:00
|
|
|
|
2021-10-25 23:23:05 +02:00
|
|
|
* https://square.github.io/okio/#communicate-on-a-socket-javakotlin
|
|
|
|
|
|
|
|
|
|
* https://github.com/cloudhut/kowl
|
|
|
|
|
* https://opensource.expediagroup.com/graphql-kotlin/docs/server/spring-server/spring-subscriptions
|
|
|
|
|
* https://github.com/YousefED/typescript-json-schema
|
2021-10-30 18:35:39 +02:00
|
|
|
|
2021-11-26 14:30:06 +01:00
|
|
|
* https://jbrandhorst.com/post/go-protobuf-tips/
|
|
|
|
|
|
2022-01-08 23:10:27 +01:00
|
|
|
* https://github.com/bakpakin/binser
|
2022-01-04 15:09:50 +01:00
|
|
|
|
|
|
|
|
##### wasm
|
|
|
|
|
|
2022-01-08 23:10:27 +01:00
|
|
|
kt -> wasm -> lua? kt-flatbuffers -> wasm -> lua?
|
2022-01-04 15:09:50 +01:00
|
|
|
|
|
|
|
|
https://www.npmjs.com/package/wasm2lua?activeTab=readme
|
|
|
|
|
|
2022-01-06 09:16:44 +01:00
|
|
|
##### Encodings
|
2021-12-03 09:04:18 +01:00
|
|
|
|
2022-01-06 09:16:44 +01:00
|
|
|
* flatbuffers https://github.com/dvidelabs/flatcc
|
|
|
|
|
* z85 encoding
|
2022-01-08 23:10:27 +01:00
|
|
|
* Kotlin https://gist.github.com/ischumacher/b4929f26341ebef62cbce35c65543eda
|
|
|
|
|
* Lua https://web-eworks.github.io/lZ85/
|
2022-01-06 09:16:44 +01:00
|
|
|
* https://github.com/SafeteeWoW/LibDeflate
|
2022-01-08 23:10:27 +01:00
|
|
|
* CBOR
|
|
|
|
|
* https://www.zash.se/lua-cbor.html
|
|
|
|
|
* https://code.zash.se/lua-cbor/archive/68b3a36d0816.tar.gz
|
2022-01-13 00:00:59 +01:00
|
|
|
|
2022-02-20 12:30:45 +01:00
|
|
|
* BSON
|
|
|
|
|
* https://github.com/mpaland/bsonfy
|
|
|
|
|
* https://github.com/tcoram/bson-lua
|
2022-02-08 17:56:49 +01:00
|
|
|
|
2022-02-20 12:30:45 +01:00
|
|
|
* bebop
|
|
|
|
|
https://rainway.com/blog/2020/12/09/bebop-an-efficient-schema-based-binary-serialization-format/
|