Commit graph

173 commits

Author SHA1 Message Date
Adam
f5855ba5bd try making performance better... 2022-01-25 00:13:37 +01:00
Adam
8645b4552d debug print to try to figure out why websocker player position isn't working 2022-01-25 00:12:05 +01:00
Adam
4fc55b706f only try to create topics if there are topics to be created 2022-01-25 00:11:38 +01:00
Adam
dbeb0e73dd try fixing queue size... 2022-01-23 22:59:47 +01:00
Adam
46ad618134 make 'chunks' command accept a 'radius' param (which makes current_chunk redundant) 2022-01-23 22:59:29 +01:00
Adam
494b9b4107 kind of slow, but working... 2022-01-23 22:57:11 +01:00
Adam
28f985bdca tweaking the kxs serde stuff 2022-01-23 14:00:51 +01:00
Adam
960782dc90 mv FactorioServerId to model.kt, delete empty file 2022-01-23 13:54:56 +01:00
Adam
13a86dc0d5 - use byte array special function for KxsBinary format
-
2022-01-23 13:54:32 +01:00
Adam
97d0de56e7 tidy up event-schema ksx json stuff, and make the "empty list <-> empty object" thing contextual 2022-01-23 13:52:54 +01:00
Adam
678cf5504e hack together some sort of queue to help stop the chunk updates overloading the server. It doesn't work too well I think... 2022-01-23 13:50:21 +01:00
Adam
f2ccbbd456 - factorio version bump
- mod: add a couple of commands for emitting chunks
- mod: decrease on_tick event rate
- mod: version bump typed-factorio, tstl
- kafka admin: decrease replication
- kafka admin: filter out existing-topics when creating
- events server: add more serdes, hopefully more performant than json
- events server: lots of work trying to improve performance...
- events server: increase tile size to 256
- events server: fix web-map-tile-image x/y location
- kafka: version bump
- kafka: increase default partition size
- kafka ui: version bump
-
2022-01-21 18:31:15 +01:00
Adam
8c107b7b84 delete extensions, they were moved to kotka 2022-01-21 07:57:07 +01:00
Adam
27776553ba increase partition size, try making performance better 2022-01-21 07:56:36 +01:00
Adam
560a5d4172 the performance increase wasn't that good actually - so split up the topology into separate files so it's easier to read, and simplifying the png tile process so it joins tiles and prototypes sooner, with less info 2022-01-21 07:55:36 +01:00
Adam
2c518e396b massive tile processing speed improvement 2022-01-20 13:58:46 +01:00
Adam
a557c437cc tiles are visible! the tileserver works! they're the right way up! they have colours! 2022-01-19 22:42:22 +01:00
Adam
6fe3132f23 more tiles stuff working... 2022-01-19 18:40:07 +01:00
Adam
a7a095ecbf map tiles are now saved! 2022-01-19 16:53:24 +01:00
Adam
8533be0af8 chunk pngs almost working...
- rm yarn lock, it should be in ./gradle/kotlin-js-store
 - move kafka extensions to another project, kotka-streams
 - move prototypes to their own package
 - create a Factorio command for emitting prototypes
 - add bounding box to chunk updates
 - bump typed-factorio version
 - fix MapEntityPosition -> MapChunkPosition x/y rounding
 - lots of work on the Kafka Streams topology
2022-01-16 23:16:09 +01:00
Adam
49ad3654a3 tiles from kafka -> image tiles... maybe??? 2022-01-13 00:00:59 +01:00
Adam
9acce508ea don't use Jansi 2022-01-09 19:09:40 +01:00
Adam
a8b13be110 remove extra field (is there a better way to prevent this?) 2022-01-09 19:07:51 +01:00
Adam
723c7ae6e8 test LuaTiles 2022-01-09 19:01:47 +01:00
Adam
1439e81628 maybe fix docker build for kafka pipe?? again???? 2022-01-09 18:48:32 +01:00
Adam
27c8088f41 maybe fix docker build for kafka pipe?? 2022-01-09 18:05:28 +01:00
Adam
d2aa961e1a add version header to kafka pipe messages 2022-01-09 17:46:17 +01:00
Adam
b5de2132a1 version bump 2022-01-09 17:40:38 +01:00
Adam
4d2926ebe2 try making map tiles better, listen to events for changed tiles 2022-01-09 17:40:28 +01:00
Adam
4e8a0c4f69 fix build error, and disable SNAPSHOT kvision checking 2022-01-09 17:39:24 +01:00
Adam
b9190b1948 make the json a little less verbose by having separate position types instead of a discriminator 2022-01-09 16:33:23 +01:00
Adam
f41def72e2 rm comment, only send chunks updates on chunk generation 2022-01-09 16:10:47 +01:00
Adam
05a693720d small refactor, make all event handlers have same parameter order 2022-01-09 15:41:58 +01:00
Adam
4d2f574827 fix typescript after updates 2022-01-09 15:15:52 +01:00
Adam
4d94e2f395 finish fixing the schema 2022-01-09 15:07:36 +01:00
Adam
524aa218fc pre-emptively fixing kxs generics on factorioPrototypes.kt 2022-01-09 14:08:41 +01:00
Adam
7486961fc2 cleaning up comments and old code 2022-01-09 14:07:19 +01:00
Adam
d28088be2d remove --build from docker-compose up (it builds every time - I only want it to build on changes) 2022-01-09 14:02:18 +01:00
Adam
beb73d1584 - make tests multi-platform
- fix polymorphism finally???
2022-01-09 14:01:48 +01:00
Adam
1be9841d8b try fixing docker build so it doesn't run every time 2022-01-09 12:37:41 +01:00
Adam
2208c91652 fix polymorphic serialization, and update the names of some schema objects 2022-01-09 12:37:26 +01:00
Adam
e5feabf7eb make jvm schema tests run 2022-01-09 11:06:15 +01:00
Adam
f16e7405f6 update json serde tests 2022-01-09 11:05:52 +01:00
Adam
5a406358d8 renaming events server, to match project and so Gradle task.run works 2022-01-09 11:05:30 +01:00
Adam
101e48c593 hook build kafka-pipe task into 'assemble' 2022-01-09 11:04:42 +01:00
Adam
e20f51f446 add project version to docker env 2022-01-09 11:04:15 +01:00
Adam
77429f35bf disable repo warning for buildSrc 2022-01-09 11:02:05 +01:00
Adam
11ffaedf14 version bump, and fix imports 2022-01-08 23:18:50 +01:00
Adam
3a7625c139 fix wrong objectName 2022-01-08 23:14:27 +01:00
Adam
4efd912f75 binser for lua encode? 2022-01-08 23:10:27 +01:00