typed-factorio icon indicating copy to clipboard operation
typed-factorio copied to clipboard

What does this do over `factorio-type-kit`?

Open jfmmm opened this issue 3 years ago • 4 comments

Hi,

Just found out we could use typescript to do mods now and I'm trying to figure which of those two options I should start my mod with and since you're the most recent one I figure I would ask here.

Why should I use this over factorio-type-kit.. like what was the motivation behind doing your own solution rather than using the other existing one?

Thanks!

jfmmm avatar Nov 01 '21 21:11 jfmmm

Hi, thanks for inquiring!

factorio-type-kit itself says it has 70-80% complete types. Also, when working with it a while back, I found many bugs and incomplete definitions -- such as variant parameter groups not being handled properly. I ended up manually editing the definitions during the project.

I made this project to fix those issues, provide type definitions as complete as possible, and provide more intelligent types by utilizing typescript features. This type generator also takes advantage of the machine-readable json factorio api release a few months ago (factorio-type-kit used wiki scraping), and includes many manually defined additions/overrides to fill in where the json api is lacking.

Currently, types for the runtime stage are 100% complete, i.e. all runtime factorio types have a non-trivial definition. You can find details on most of the typescript features utilized on the Readme. Also, this project is currently getting updates as the factorio version moves or additional improvements to the types are found.

GlassBricks avatar Nov 02 '21 17:11 GlassBricks

ah man, i wish you would have filed an issue with me. would have loved to fix/refactor those problems. (:wave: factorio-type-kit guy)

cdaringe avatar Feb 23 '23 03:02 cdaringe

...this is much better :)

cdaringe avatar Feb 23 '23 03:02 cdaringe

Im going to mark my ftk as “dont use” and point here

cdaringe avatar Nov 04 '23 16:11 cdaringe