Commit graph

34 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
Adam
76c47d9756 tidy up after refactoring Gradle Factorio plugin 2022-12-19 16:53:18 +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
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
84931f10e8 improve exclusion of Gradle generated src dirs 2022-10-30 19:19:25 +01:00
Adam
76a661e444 move logo, add function to auto-init the project logo 2022-10-30 18:44:47 +01:00
Adam
531b8e193e tidy up gradle plugins (mostly removing comments) 2022-10-30 17:13:03 +01:00
Adam
e370cb5ef9 [geedeecee] add fileChecksum util 2022-10-22 19:53:10 +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
4ba673f378 kdoc for DockerEnvUpdateTask 2022-10-15 20:41:03 +02:00
Adam
c1408187be make zips reproducible, ignore .env files 2022-10-15 20:40:44 +02:00
Adam
467227d965 fix kotlinx-coroutines/kotlinx-serialization dependencies version clash in gradle-plugins 2022-10-08 17:06:04 +02:00
Adam
f2e67364b8 gdc plugin - use rootProject.name for COMPOSE_PROJECT_NAME 2022-10-08 16:05:26 +02:00
Adam
989b95e3a0 adjust geedeecee config, so images can be built 2022-10-05 00:06:46 +02:00
Adam
3f49a6504b fix geedeecee config 2022-10-04 23:47:30 +02:00
Adam
579c9d1c1a versions bump 2022-10-04 23:00:09 +02:00
Adam
002aa9b5fb tidy up dockerActive property & check 2022-10-04 22:32:05 +02:00
Adam
0044f0cb98 create and use APP_NAME, APP_GROUP in docker compose files 2022-10-04 22:27:43 +02:00
Adam
ae4b122cd4 geedeecee: add push task, add KAFKATORIO_VERSION, fix composeProjectVersion, set BUILDKIT_PROGRESS=plain 2022-10-02 14:50:20 +02:00
Adam
675b0827d6 add group to attributes usage 2022-10-02 14:48:38 +02:00
Adam
6b38cfcea2 update Kotlin jvmToolchain usage 2022-10-02 14:10:29 +02:00
Adam
f3cab683fc builder plugin: rename typescript module to typescript-to-lua 2022-10-02 14:10:11 +02:00
Adam
c81564ad6c update FactorioModPlugin 2022-10-02 13:59:41 +02:00
Adam
71422218aa move artifactDistributions.kt 2022-10-02 13:59:08 +02:00
Adam
b171f88435 geedeecee: fix DockerEnvUpdateTask 2022-10-02 13:57:15 +02:00
Adam
f804c39a3b migrate docker-compose convention plugin out of buildSrc 2022-10-02 12:11:06 +02:00
Adam
fd3b39a839 fix factorio-gradle project name 2022-09-18 23:53:56 +02:00
Adam
81261512f1 rename 'convention' package to 'conventions' 2022-09-18 23:32:39 +02:00
Adam
42dab20210 start setting up Factorio Gradle mod 2022-09-18 23:32:15 +02:00
Adam
f12a505d22 migrate buildSrc plugins to includedBuild plugins 2022-09-18 20:49:32 +02:00
Adam
805d4c8170 pottering about with making a docker-compose plugin 2022-09-18 17:39:58 +02:00
Adam
cc6e559843 more prep for included-build Gradle plugins 2022-09-18 13:56:14 +02:00
Adam
d82f25c6ee prep migrating buildSrc plugins to includeBuild plugins 2022-09-12 21:38:01 +02:00