https://github.com/cyberboss/factorio-ghost-scanner-4
Adds a combinator reading ghost requests from the logistic network it's placed in.
https://github.com/cyberboss/factorio-ghost-scanner-4
factorio factorio-mod mod tstl typescript
Last synced: 8 days ago
JSON representation
Adds a combinator reading ghost requests from the logistic network it's placed in.
- Host: GitHub
- URL: https://github.com/cyberboss/factorio-ghost-scanner-4
- Owner: Cyberboss
- License: mit
- Created: 2024-12-10T23:01:20.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-04-10T16:51:17.000Z (12 days ago)
- Last Synced: 2025-04-11T21:15:27.570Z (11 days ago)
- Topics: factorio, factorio-mod, mod, tstl, typescript
- Language: TypeScript
- Homepage: https://mods.factorio.com/mod/GhostScanner4
- Size: 589 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# factorio-ghost-scanner-4
Originally based on https://github.com/Tiavor/GhostScanner2.
Ported to typescript for (my) ease of development.
Please open an issue if you have a problem.
## Development
You'll need a node 22+ environment setup. VSCode is the recommended IDE.
Run `corepack enable` to ensure you're using the correct yarn version.
Run `yarn` to install dependencies like the typescript-to-lua compiler and typed-factorio definitions.
Run `yarn build` to build the mod `.zip` in the `build/` directory.
Run `yarn install_mod` to build and copy the mod to `~/AppData/Roaming/Factorio/mods`.
### Performance
This is a rough 1-to-1 port of GhostScanner2. In writing it, I've come to realize that there's a big opportunity for performance improvements if, instead of scanning for ghosts/related entities, the control script was reworked to be purely event driven when ghosts are created/built/deleted and scan only when logistic areas are created/updated/deleted.