Commit graph

69 commits

Author SHA1 Message Date
Adam
a9782a4d90 version bumps, schema tweaks, code tweaks, 2022-03-04 23:54:45 +01:00
Adam
b055397d25 - wicked sick size optimisation of map-tiles update packet
- fix ts-generator recursive value class unwrapping
- move kafka state dir
- try fixing kafka streams for tile generation (simplifying it, and fixing some nullability problems)
2022-03-02 18:39:03 +01:00
Adam
c5d4ae8d63 fix factorio command 2022-02-28 20:35:15 +01:00
Adam
1ba4371b14 update packet, add 'eventCounts' 2022-02-26 22:23:08 +01:00
Adam
758fea4195 only log a message if there are event cache entries, and formatting 2022-02-25 21:44:34 +01:00
Adam
93e02e852a code tidy 2022-02-24 22:17:00 +01:00
Adam
066f68ff4d event debouncing / throttling basically working now 2022-02-24 21:17:51 +01:00
Adam
8e7208ba08 - update data model: simplify key/data (by removing data) 2022-02-24 00:07:28 +01:00
Adam
b82e3a1bbf rename files 2022-02-23 11:58:24 +01:00
Adam
5208d9affd - make each event update have a key/data interface
- separate .d.ts file for event updates
-  fix initialisation of global items
2022-02-23 11:51:28 +01:00
Adam
494913d3b9 fix init of global vars, make MapTile DTO more concise, and version bump 2022-02-21 15:36:12 +01:00
Adam
8dff124a71 fix tstl task 2022-02-20 23:38:44 +01:00
Adam
3a92149424 version bump 2022-02-20 22:31:13 +01:00
Adam
7481c8162a fixing 'when' statements, tidying up some code, 2022-02-20 22:30:56 +01:00
Adam
d14d0cd991 finish first implementation of incremental updates 2022-02-20 22:18:14 +01:00
Adam
dd45bece53 model updates, and fix tests 2022-02-20 22:16:21 +01:00
Adam
e0b9ef9788 update event-type checker, plus some refactoring/updating 2022-02-20 12:40:55 +01:00
Adam
16510488da create an event-cacher, for debouncing/throttling 2022-02-20 12:39:50 +01:00
Adam
cecafedd78 bump typed-factorio version, and add some more TS strictness 2022-02-20 12:31:06 +01:00
Adam
8f9ebdb1e1 update events schema
- unwrap value classes when generating TS
- add value classes for some data types
- add FactorioEventUpdates (for new incremental event updates)
- use static lists for enum values (better performance)
- add LuaControl for sharing Player/Entity fields
2022-02-20 12:29:34 +01:00
Adam
727836a031 create TypeScriptToLua Gradle task, and some Gradle cleanup / experiments 2022-02-20 12:23:29 +01:00
Adam
a518255027 dependency and project version bumps 2022-02-13 12:20:37 +01:00
Adam
d66de7d879 update logo (make grayscale) 2022-02-13 11:09:13 +01:00
Adam
d634ecc909 release mod to portal (create logo, fix thumbnail, add desc) 2022-02-13 10:44:13 +01:00
Adam
f59cc0beb9 fix queue size? only increase if the key is new 2022-02-09 21:53:44 +01:00
Adam
8040149e25 version bumnp, more gradle tidying, and fix the kotlin-js-store yarn lock file location 2022-02-09 13:16:57 +01:00
Adam
11cbb89821 tweaking map scale/zoom 2022-02-09 10:45:44 +01:00
Adam
bdb2d9577f so close to working performantly.... just the tiles are transparent???
- bump some versions
- MapTile no longer has objectName field
- fix nulls/optional fields in FactorioConfigurationUpdate
- use bytes to encode rgba colours - waaaayyyy smaller
- increase Kafka record size to ~10mb
2022-02-08 01:35:52 +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
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
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
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
a8b13be110 remove extra field (is there a better way to prevent this?) 2022-01-09 19:07:51 +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
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
2208c91652 fix polymorphic serialization, and update the names of some schema objects 2022-01-09 12:37:26 +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
042ca9fb98 fix mod version and factorio version global def 2022-01-08 23:10:04 +01:00
Adam
51e0aff823 improve event-schema polymorphism with enums 2022-01-08 23:09:27 +01:00
Adam
56fa2cbf00 fix bugs (mostly tstl limitations) and improve schema structure a bit 2022-01-08 14:02:30 +01:00
Adam
f97b0a6562 more mod restructuring 2022-01-08 13:23:32 +01:00