Commit graph

55 commits

Author SHA1 Message Date
Adam
da7b4b6ad1 version bumps 2022-10-16 13:07:43 +02:00
Adam
e6ffe4cba5 update bootstrap css (some sort of encoding change with a "-NBSP" 2022-10-16 12:47:45 +02:00
Adam
16dc72ae71 version bumps (minor bumps) 2022-09-18 13:59:43 +02:00
Adam
873983f9a3 big ol' refactor to split up the events-server and events-processors 2022-09-13 17:56:57 +02:00
Adam
80e8c95bc9 fix webpack dev server, redownload bootstrap.min.css 2022-09-10 10:07:46 +02:00
Adam
47c47690a7 refactor so files match contents 2022-09-09 17:33:48 +02:00
Adam
a84c4a2f76 refactor web-map to be SPA 2022-09-09 17:21:09 +02:00
Adam
de419aeae8 web-map tidy up, and add diagram to README 2022-09-03 11:15:43 +02:00
Adam
3976c3cc1b fix webmap after multi-server refactor, and add styling 2022-09-02 23:22:18 +02:00
Adam
8a6c49a74b initial hacky implementation of multi-server support in the frontend 2022-09-01 23:19:59 +02:00
Adam
4bc46f9753 progress towards multi-server handling
- bump some versions
- validate Factorio server ID & token
-
2022-08-28 19:37:49 +02:00
Adam
a8784db5b2 update player state booleans - they default to false now 2022-07-17 12:15:46 +02:00
Adam
b507081eac Render buildings and resources
- create LuaJsonList to handle empty Lua JSON lists being sent as empty objects
- fix exporting of resources and entities
- split up map tiles into different layer directories
- add 'chunk size' to MapChunkPosition
- move tests to correct packages
- bump tstl
- decrease tstl logging
- remove some defined, but unused, kafka topics
- syslog, rest, websocket servers & web-map: decrease logging
- webmap: add additional layers for buildings and resources
2022-07-16 23:11:40 +02:00
Adam
8f4823ae97 add MapChunkEntityUpdate to webmap 2022-07-06 16:22:50 +02:00
Adam
90dc520d22 massive refactor to export entities (buildings and resources)
- minor version bumps
- new Factorio version
- use both prototype name and type to identify a prototype
- kxs-ts-gen: use BrandTyping, but exclude some identifiers
- kxs-ts-gen: manually create zip dist, so it can run after the project compiles
- mod: use typed-factorio strict types
- mod: refactor event handlers to be a little more consistent and object-oriented
2022-07-05 23:44:23 +02:00
Adam
c0c82e7c9c finish migrating to ktor!
- remove http4k
- renamed 'schema' subproject to 'library', because it contains more than just data models
- tiles are now hosted per factorio-server
- changed api base to `kafkatorio/data`
- tidied up some Gradle conf
- remove 'events-processor' subproject - I don't want to set up loads of microservices right now
2022-07-02 08:45:21 +02:00
Adam
e9a4ee4c48 set up syslog docker parser (remove need for Kafka Pipe script) 2022-06-27 22:07:42 +02:00
Adam
f4744c7286 webmap - fix max zoom 2022-06-26 14:58:38 +02:00
Adam
e0f689c538 gradle docker config tidy up 2022-06-20 23:59:57 +02:00
Adam
f151027464 webmap
- tidy up player layer
 - no need for smaller web tiles, make the large ones render as pixelated
 - make tile server and websocket server URL not-hardcoded
 - tidy up dynamic tile refreshing
2022-06-19 10:16:37 +02:00
Adam
8c37a0cef9 trigger tile png reload in browser by sending 'saved tile' events over websocket
- create new EventServerPacket for websocket packet data
- move common models to events-schema
2022-05-25 12:50:34 +02:00
Adam
187fca8b8c webmap: refactor state + update handling code, to separate files 2022-05-24 18:08:32 +02:00
Adam
aa4de3fb14 webmap: begin refactoring state classes... 2022-05-24 18:07:13 +02:00
Adam
3416ae2758 webmap: try improving leaflet map, create separate layer for player icons, tidy up redux state store stuff 2022-05-24 17:39:46 +02:00
Adam
6edf5415d0 reduce logging in webmap console 2022-05-15 13:10:00 +02:00
Adam
f80722c187 try to 'garbage collect' after refreshing tile img src 2022-05-14 23:48:50 +02:00
Adam
c48d01b220 dynamically update tiles every 1 second 2022-05-14 12:27:32 +02:00
Adam
23d77ae26c try fixing white lines between web map tiles 2022-05-14 12:24:28 +02:00
Adam
29daff5abc web map: dark mode 2022-05-01 23:40:56 +02:00
Adam
f36e84ddf5 webmap: use Ints for player lat/lng 2022-04-24 18:55:47 +02:00
Adam
b0a6151c36 move from schema2 to schema 2022-04-20 17:18:09 +02:00
Adam
3fff57d46d biggest refactor ever...
- use kxs-ts-gen for TypeScript schemas
- update schema files, so they're tidier (no need for typescript-generator workarounds)
- version bumps (kotlin, gradle, tstl, factorio, kotest)
- improve kxs binary format (use okio)
- move schema files package ('events' wasn't needed)
- tidy up topic creation, naming. base it off classes, make util functions
2022-04-20 10:17:41 +02:00
Adam
303734daaa default zoom, reduce by one 2022-03-14 22:22:03 +01:00
Adam
8c22329b10 webmap: remove zoom offset (no longer required, changed the zoom offset in processing) 2022-03-13 23:58:14 +01:00
Adam
0cf2b344e3 webmap: temp-fix white line gap bug 2022-03-13 23:56:39 +01:00
Adam
52fcfbaa93 update web-map to include event-update changes 2022-02-28 20:34:56 +01:00
Adam
7481c8162a fixing 'when' statements, tidying up some code, 2022-02-20 22:30:56 +01:00
Adam
23d61335b6 map - make zooming more granular 2022-02-13 11:09:32 +01:00
Adam
11cbb89821 tweaking map scale/zoom 2022-02-09 10:45:44 +01:00
Adam
0f0d968a6a rm imperial map scale 2022-02-08 17:57:06 +01:00
Adam
1af5912477 even more working - generate zoomed tiles (but also it doesn't work - it stops making new tiles at some point). 2022-02-08 14:10:13 +01:00
Adam
ea0bfb350b - MapTile/LuaTile no longer a FactorioObjectData (it doesn't get sent as a packet)
- trying to optimise the topology so it's faster... almost there but the records are now too large
- map tile pngs, multiple zoom levels
- use coroutines for faster map tiles
2022-02-06 21:05:37 +01:00
Adam
f38143dee9 fixing deserialisation, and options 2022-02-05 12:20:51 +01:00
Adam
494b9b4107 kind of slow, but working... 2022-01-23 22:57:11 +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
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
4d94e2f395 finish fixing the schema 2022-01-09 15:07:36 +01:00