If this is already implemented, please tell me what the option is called since I didn't find any information on something like this. Thanks!
TL:DR:
Add something similar to __PATH__executable__, but instead of linking to the directory where the game executable is linked, link to the folder the config.ini file is in.
What:
A variable for use in config.ini, which links to the directory the config.ini is currently in.
This could be called __PATH__config__, for example.
Example:
(This is on Linux; Mac OS and Windows should work similar)
Config file is in ~/Documents/factorio/modpack-01/
In Config file: write-data=__PATH__config__/data/
When I now launch the game with this config specified with -c CONFIG_FILE, it should then output the data to ~/Documents/factorio/modpack-01/data/
Why:
This allows for relative paths in config.ini.
I'm planning to write a modpack manager (haven't started jet due to lack of spare time), which is planned to also include a modpack export/import function. The issue is that with absolute paths, I would need to write something what manually changes the path specified in write-data because the installation folder of the modpack manager may be different on two systems. This would make it way easier, because the paths are already relative to the config, so that I only need to specify the config without changing it.
Which versions would be nice to have this function:
2.0 and 2.1 (some mods still are on 2.0, so this would be nice to have, if you make it 2.1 only, that's also fine though)
Thanks for considering!
EDIT: Typos
__PATH__config__ for config.ini
Post your ideas and suggestions how to improve the game.
Moderator: ickputzdirwech
-
Tomhero200
- Burner Inserter

- Posts: 8
- Joined: Sat Jul 27, 2024 5:37 pm
- Contact:
Return to “Ideas and Suggestions”
Jump to
- General
- ↳ Releases
- ↳ News
- ↳ General discussion
- ↳ Multiplayer
- ↳ Find Servers / Tools / Guides
- ↳ Show your Creations
- ↳ Videos
- ↳ Combinator Creations
- ↳ Mechanical Throughput Magic (circuit-free)
- ↳ Railway Setups
- ↳ Energy Production
- ↳ Medium/Big/Gigantic Sized Structures
- ↳ Fan Art
- ↳ Gameplay Help
- ↳ Spread the Word
- ↳ Off topic
- ↳ This Forum
- ↳ Celebration Party
- Support
- ↳ Gameplay Help
- ↳ Discover Factorio Wiki
- ↳ Discover Others Creations
- ↳ Discover Mods
- ↳ Discover Tools Around Factorio
- ↳ Technical Help
- ↳ Bug Reports
- ↳ Resolved for the next release
- ↳ Assigned
- ↳ Not a bug
- ↳ Pending
- ↳ 1 / 0 magic
- ↳ Duplicates
- ↳ Minor issues
- ↳ Desyncs with mods
- ↳ Won't fix.
- ↳ Resolved Problems and Bugs
- Factorio Direction
- ↳ Ideas and Suggestions
- ↳ Outdated/Not implemented
- ↳ Frequently Suggested / Link Collections
- ↳ Implemented Suggestions
- ↳ Development Proposals
- ↳ Balancing
- Contributions
- ↳ Mods
- ↳ Download mods
- ↳ Mod portal Discussion
- ↳ Mods
- ↳ Mod Packs / Libs / Special Interest
- ↳ 5dim's mod
- ↳ Angels Mods
- ↳ Atomic Power
- ↳ Bob's mods
- ↳ DyWorld
- ↳ F.A.R.L
- ↳ Fentus Challenge & Tool Mods
- ↳ Logistic Train Network
- ↳ MoMods
- ↳ Reika's Mods
- ↳ Resource Spawner Overhaul
- ↳ Yuoki Industries
- ↳ PyMods
- ↳ Questions, reviews and ratings
- ↳ Modding Discussions
- ↳ Modding discussion
- ↳ Modding help
- ↳ Ideas and Requests For Mods
- ↳ Modding interface requests
- ↳ Implemented mod requests
- ↳ Already exists
- ↳ Won't implement
- ↳ Documentation Improvement Requests
- ↳ Resolved Requests
- ↳ Development tools
- ↳ Tools
- ↳ Mod and installation managers
- ↳ Cheatsheets / Calculators / Viewers
- ↳ Development tools
- ↳ Special interest mods and libraries
- ↳ Modding Development
- ↳ Multiplayer / Dedicated Server
- ↳ Multiplayer Board
- ↳ Archive
- ↳ Maps and Scenarios
- ↳ Translations
- ↳ Texture Packs
- ↳ Fan Art
- ↳ Wiki Talk
- ↳ To be sorted
- ↳ Campaign / Scenario suggestions