Commit graph

634 commits

Author SHA1 Message Date
e296a9aa90 Fix compile errors surfaced by actually building against Factorio 2.0.77
typed-factorio 2.0.0+ stopped declaring types as ambient globals - they
now live in virtual modules ("factorio:runtime", "factorio:common",
"factorio:settings") and must be explicitly imported. Adds those imports
throughout events-mod. Also:

- Bumps typescript-to-lua 1.11.1 -> 1.25.2 and typescript 4.9 -> 5.4.2,
  since tstl pins an exact peer TypeScript version and typed-factorio
  3.x needs a newer one than 4.9 supports (a real compiler bug in
  TS 4.9 against the generated defines.segmented_unit_ai_state enum).
- Bumps the pinned isolated Node (14.19.1 -> 24.21.0), since
  typescript-to-lua 1.25.2 requires Node >=16.10.0.
- Renames bare uint/int -> uint32/int32 (import aliases), since the
  unsized aliases no longer exist.
- Drops OnEntityDestroyedEvent from an unused documentation-only union
  type - that event no longer exists in the 2.0 API.
- LuaEntityPrototype.max_health is now get_max_health() (quality-aware).
- Fixes a branded-type mismatch between our generated schema's
  ForceIndex and typed-factorio's own ForceIndex.

Verified by actually running tstl end-to-end (clean compile, Lua
emitted) after installing a real JDK and Node toolchain.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-12 15:27:50 +02:00
072d1a2845 Port events-mod to Factorio 2.0.77, declare SE/Krastorio 2 compatibility
Bumps the Factorio engine pin and typed-factorio (1.11.0 -> 3.36.0,
targeting 2.0.75) and fixes the resulting breaking API changes:
global -> storage, game.*_prototypes -> prototypes.*, game.table_to_json/
encode_string -> helpers.*, OnBuiltEntityEvent.created_entity -> .entity,
removed TileRead/ColorTable/MapPositionTable-style write-form aliases,
new CollisionMask shape, restructured settings-stage type imports, and
new defines.entity_status values (added to the Status enum, generated
schema, and EntityStatusRecord mapping). Also declares optional mod
dependencies on space-exploration and Krastorio2.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-12 15:06:30 +02:00
Adam
8281821075 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	gradle/libs.versions.toml
2022-12-28 22:16:27 +01:00
Adam
76c47d9756 tidy up after refactoring Gradle Factorio plugin 2022-12-19 16:53:18 +01:00
Adam
a99ed5bb85 remove generated lua (it's stable - moved it to temp dir) 2022-12-19 16:52:49 +01:00
Adam
9f2b9cbd5c big ol' refactor of the Gradle Factorio Mod
- handle launching in multiple OSes
- specific tasks for specific mod operations
- extension object for settings
- ground work for multiple mods
2022-12-18 01:41:14 +01:00
Adam
2c9c442595 typo dequed -> dequeued 2022-12-06 00:24:17 +01:00
Adam
fcb870072a version bumps 2022-12-06 00:23:52 +01:00
Adam
c015e9c478 add 'skip worktree' example command 2022-12-05 23:21:29 +01:00
Adam
dd9c9500d3 lenient Docker Env properties 2022-12-05 23:20:54 +01:00
Adam
deefafe255 Gradle 7.6 2022-12-05 23:18:00 +01:00
Adam
2bbfd3cc57 bump kvision 2022-11-05 16:32:31 +01:00
Adam
65ae467733 add some nice shields 2022-10-30 20:32:21 +01:00
Adam
76d553a6bf version 0.10.1 2022-10-30 19:27:50 +01:00
Adam
ce4df2081a bump versions: factorio, typed-factorio 2022-10-30 19:26:43 +01:00
Adam
394acc5ca0 version 0.10.0 2022-10-30 19:22:38 +01:00
Adam
84931f10e8 improve exclusion of Gradle generated src dirs 2022-10-30 19:19:25 +01:00
Adam
30d5a67a2a update license to be gpl-3.0 2022-10-30 18:58:50 +01:00
Adam
c54481010a readme tweaks 2022-10-30 18:53:21 +01:00
Adam
76a661e444 move logo, add function to auto-init the project logo 2022-10-30 18:44:47 +01:00
Adam
f0b080a7fe optimise logo 2022-10-30 18:44:11 +01:00
Adam
5bb8cc789c add/update docs 2022-10-30 17:21:32 +01:00
Adam
b9ad7e2466 update yarn.lock 2022-10-30 17:13:12 +01:00
Adam
531b8e193e tidy up gradle plugins (mostly removing comments) 2022-10-30 17:13:03 +01:00
Adam
aaca52a3e1 update kvision, kotlinx-cli, kotlinJsWrappers, kotest 2022-10-23 22:24:30 +02:00
Adam
3f771f9838 fix bootstrap server, remove http:// 2022-10-23 21:54:38 +02:00
Adam
ccd08c87c8 version 0.9.15 2022-10-22 23:37:15 +02:00
Adam
5562e86f09 [docker-files] remove user config 2022-10-22 23:36:00 +02:00
Adam
e05557c97c [web-map] fix missing css/image in dockerfile 2022-10-22 20:54:40 +02:00
Adam
51f44f1fd2 version 0.9.14 2022-10-22 20:36:47 +02:00
Adam
82c681e320 [dockerfiles] remove volumes 2022-10-22 20:35:52 +02:00
Adam
14e204d197 version 0.9.13 2022-10-22 20:28:22 +02:00
Adam
45691a049b [dockerfiles] fix user name/id variables 2022-10-22 20:27:17 +02:00
Adam
c9d21fa25a try fixing user permissions in containers 2022-10-22 20:24:27 +02:00
Adam
bb5e98f740 version 0.9.12 2022-10-22 19:56:33 +02:00
Adam
9b331cc105 update dockerfiles
- define user uid/gid
- use new geedeecee files (hopefully means smaller images, faster building)
2022-10-22 19:55:02 +02:00
Adam
e370cb5ef9 [geedeecee] add fileChecksum util 2022-10-22 19:53:10 +02:00
Adam
ce0d4b7378 [events-processors] change where topo description is written 2022-10-22 19:52:02 +02:00
Adam
657d5712f6 [geedeecee] improve handling of build-context files, and build-avoidance, and remove old code 2022-10-22 19:51:18 +02:00
Adam
de24a62635 version 0.9.11 2022-10-18 23:23:09 +02:00
Adam
f99208b5b2 more fixing of Kafkatorio packets... 2022-10-18 23:22:26 +02:00
Adam
e0574ea8eb version 0.9.10 2022-10-18 21:42:45 +02:00
Adam
77d0dc27ca fix local mod deploy Gradle tasks 2022-10-18 21:36:22 +02:00
Adam
dda48bac78 refactor the KafkatorioPacket tag that the mod logs, and the syslog-server parses 2022-10-18 21:35:49 +02:00
Adam
ecf680d9ce [syslog-server] minor styling 2022-10-18 21:26:30 +02:00
Adam
557dc97635 [syslog-server] refactor logging and error handling (avoid runCatching) in producer 2022-10-18 21:25:18 +02:00
Adam
8342a923a8 kt2ts2.kt - minor style refactor 2022-10-18 21:22:06 +02:00
Adam
7cd6c4a47a revert kotlinx serialization to 1.4.0 https://github.com/Kotlin/kotlinx.serialization/issues/2065 2022-10-18 19:46:21 +02:00
Adam
554da25c3f rm commented out code from root build.gradle.kts 2022-10-17 22:01:22 +02:00
Adam
b2b6da9c3c version 0.9.9 2022-10-17 00:18:33 +02:00