Commit graph

31 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
fcb870072a version bumps 2022-12-06 00:23:52 +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
ccd08c87c8 version 0.9.15 2022-10-22 23:37:15 +02:00
Adam
51f44f1fd2 version 0.9.14 2022-10-22 20:36:47 +02:00
Adam
14e204d197 version 0.9.13 2022-10-22 20:28:22 +02:00
Adam
bb5e98f740 version 0.9.12 2022-10-22 19:56:33 +02:00
Adam
de24a62635 version 0.9.11 2022-10-18 23:23:09 +02:00
Adam
b2b6da9c3c version 0.9.9 2022-10-17 00:18:33 +02:00
Adam
8be1fa5025 version 0.9.8 2022-10-16 13:08:04 +02:00
Adam
2032da903f version 0.9.7 2022-10-15 20:42:47 +02:00
Adam
f76eb9ccb3 update events-mod version 2022-10-08 17:06:23 +02:00
Adam
144cbba075 update package.json versions 2022-10-04 23:47:51 +02:00
Adam
dadbcdd8d6 version bumps (scrimage, kotlinJsWrappers, ktor, hoplite, tstl, typed-factorio, typescript) 2022-09-10 10:13:48 +02:00
Adam
02edffa2e9 version bump to 0.9.0 (just prepping for the next release) 2022-09-01 23:17:56 +02:00
Adam
3821996eeb bump some versions (use Kotest in Maven Local b/c plugin isn't available on Sonatype snapshot)
add tile width/height (added in new version of Factorio)
2022-08-28 13:39:34 +02:00
Adam
d9f5d6d46d UpdatePackageJson task is updated based on a json object, and move npm versions to libs.versions.toml 2022-08-13 11:59:30 +02:00
Adam
d006635e49 bump tstl, typed-factorio, ks-js-wrappers 2022-07-23 16:26:11 +02:00
Adam
10c54998c7 version bump to 0.8.0 2022-07-16 23:23:55 +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
ae0eb98f12 version bump 2022-07-08 21:48:19 +02:00
Adam
665327e010 bump project to 0.7.0 (and fix docker .env task for all docker .envs) 2022-07-06 17:43:50 +02:00
Adam
c29b66aada bump tstl 2022-07-06 17:15:42 +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
ae9ecc24f5 bump tstl and typed-factorio 2022-06-28 22:10:39 +02:00
Adam
4d0ec1a1a7 version bump 0.6.1 2022-06-26 14:58:19 +02:00
Adam
0398e2026d project version bump to 0.6.0, and bump kotest, tstl, typescript 2022-06-19 10:54:37 +02:00
Adam
e9f96fb0fc bump version 2022-05-18 20:44:03 +02:00
Adam
6d9f303226 mod: move npm root dir so node_modules isn't in the src dir, and fix the hack for the bug https://github.com/GlassBricks/typed-factorio/issues/13 2022-05-18 19:37:29 +02:00
Renamed from modules/events-mod/src/main/typescript/package-lock.json (Browse further)