Modded Achievement Enabler

Enhance your gameplay with these tools. This category is also the right place for tools useful for modders.
Mod databases, calculators, cheatsheets, multiplayer, scripts, libs and other useful stuff that is not strictly in-game mods.
Post Reply
lyvgbfh
Fast Inserter
Fast Inserter
Posts: 165
Joined: Fri Jul 10, 2020 6:48 pm
Contact:

Modded Achievement Enabler

Post by lyvgbfh »

This tool will enable achievements (in-game, and on Steam) for modded saves. This will not work for saves where cheats, console commands, or the map editor have been used. This also will not enable achievements for which you've failed the prerequisites (i.e. Getting on Track).

This will use your vanilla achievement progress, so you may see stats change when you first enable it, as progress made on modded saves without this tool are separate (achievements-modded.dat).

To install, place version.dll in the same folder as your Factorio.exe. By default this would be Factorio\bin\x64\ .

Steam users need an additional step:
In Steam, add

Code: Select all

cmd /c start "" %command%
as the launch options under the game properties.

Image

Requirements:
Windows, Factorio. Another author has made a GNU/Linux version here.

Troubleshooting:
If things aren't working as expected, run Factorio.exe from a command line with the following syntax: factorio.exe > %USERPROFILE%\Desktop\out.txt . The log file you get should detail if the patches were applied. If they weren't, please open an issue on Github or post here and I'll do my best to get things updated.

Acknowledgements:
Wube, for being awesome and providing the debug symbols with the game.
Last edited by lyvgbfh on Mon Mar 04, 2024 1:55 am, edited 2 times in total.

IconicBacon
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Jul 09, 2022 1:03 am
Contact:

Re: Modded Achievement Enabler

Post by IconicBacon »

I attempted to use this to enable achievements however it did not work. I couldn't find the command line you referred to for troubleshooting so I tried my computer's and Steams launch options but even though steam still launched as normal I couldn't find anything that would help me troubleshoot. Is there something I am doing wrong?
Edit: I found the text however it had nothing on it
Last edited by IconicBacon on Sat Jul 09, 2022 3:15 am, edited 1 time in total.

Nes_p
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Jul 20, 2022 1:10 pm
Contact:

Re: Modded Achievement Enabler

Post by Nes_p »

Thank you. This worked for me. Finally I will get "Mass production 3" :D

Gagabou
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Jul 30, 2022 12:32 am
Contact:

Re: Modded Achievement Enabler

Post by Gagabou »

Thanks a lot for the DLL, sadly it doesn't seem to be working as intended anymore.

I'd really love for it to be working since the only mod I'm currently using is "Change enemy color" in order to actually SEE the enemies on the map.

Being colorblind, I just get headaches trying to find the red boxes on the brown background and I beleive this color scheme change should just be part of the base game tbh.

The out.txt file generated on my desktop seems to indicate everything is patched correctly (here is the content of the file):

Fixing import for version.dll...
StartPatch called...
do_patch called...
szExePath: E:\SteamLibrary\steamapps\common\Factorio\bin\x64\factorio.exe
RuleSize: 12 ReplSize: 11
Search range[size: 31178740]: 00007ff6943f0000 ~ 00007ff6961abff4
Apply Patch at 00007ff69454d59a
Patched 1 of 6.
RuleSize: 32 ReplSize: 4
Search range[size: 31178720]: 00007ff6943f0000 ~ 00007ff6961abfe0
Apply Patch at 00007ff69453052b
Apply Patch at 00007ff6945305cb
Patched 2 of 6.
RuleSize: 9 ReplSize: 5
Search range[size: 31178743]: 00007ff6943f0000 ~ 00007ff6961abff7
Apply Patch at 00007ff69491679c
Patched 3 of 6.
RuleSize: 14 ReplSize: 8
Search range[size: 31178738]: 00007ff6943f0000 ~ 00007ff6961abff2
Apply Patch at 00007ff694f1807a
Patched 4 of 6.
RuleSize: 23 ReplSize: 11
Search range[size: 31178729]: 00007ff6943f0000 ~ 00007ff6961abfe9
Apply Patch at 00007ff694f165b0
Apply Patch at 00007ff694f1665d
Patched 5 of 6.
RuleSize: 14 ReplSize: 14
Search range[size: 31178738]: 00007ff6943f0000 ~ 00007ff6961abff2
Apply Patch at 00007ff694f167f0
Patched 6 of 6.
0.000 Initializing Steam API.
0.000 Steam requires game restart, restarting...
All done.
==============================================
I'll try to open an issue on Github, maybe it has something to do with the fact my SteamLibrary (E:\) isn't on the same drive as my base steam installation(D:\) or maybe that wouldn't make any sense.

Anyhow, I guess I'll just let the game sit for a while because I really like collecting the achievements and there is no way I can justify getting a headache only to be "allowed" to unlock achievements.

Cheers!

Gagabou
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Jul 30, 2022 12:32 am
Contact:

Re: Modded Achievement Enabler

Post by Gagabou »

Nevermind my last reply, the fix was mentionned in your last resolved issue on Github.

Steam was changing the search order for DLLs when launching directly from steam.

Your fix as explained by you:

Image

Thanks 1000%, I can finally go back to playing this beautiful game without having to chose in-between having a headache or not being able to get achievements!

:D

Mr-Bandit
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Aug 12, 2022 11:16 am
Contact:

Re: Modded Achievement Enabler

Post by Mr-Bandit »

is there a way to get this working without using a cmd box everytime?

- or could i set up the cmd to run factorio.exe automatically, then all i would see is the box opening and factorio starting. i guess that would be next best thing.

Gagabou
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Jul 30, 2022 12:32 am
Contact:

Re: Modded Achievement Enabler

Post by Gagabou »

Maybe I'm missreading your question, but if you are talking about having to open a cmd window (manually) and entering the above commands everytime; then I think you're giving yourself a bit too much trouble.

I'd point you to re-reading the instructions in the image posted above; if you're running it from steam, these are instructions to SET the launch-options that will enable the .dll to work correctly when starting Factorio through steam or using the icon on your desktop.

If this is not the situation you're trying to describe (Trying to make it so you can just use steam to start the game normally and the .dll will be loaded/work)
Then I don't really know what you're asking, could you elaborate?

Burrotieso
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Sep 05, 2022 6:51 pm
Contact:

Re: Modded Achievement Enabler

Post by Burrotieso »

Hi.
I'm having some issues with this mod. When I copy the .dll to directory and set the launch options on steam all I get is this:
Image
The game doesn't run or anything, all I get is that screen.

MrJake222
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Sep 10, 2022 12:35 pm
Contact:

Re: Modded Achievement Enabler

Post by MrJake222 »

Is there a Linux version?

lyvgbfh
Fast Inserter
Fast Inserter
Posts: 165
Joined: Fri Jul 10, 2020 6:48 pm
Contact:

Re: Modded Achievement Enabler

Post by lyvgbfh »

Burrotieso wrote:
Mon Sep 05, 2022 6:57 pm
Hi.
I'm having some issues with this mod. When I copy the .dll to directory and set the launch options on steam all I get is this:
The game doesn't run or anything, all I get is that screen.
Hi sorry for the delay, I hadn't received forum notifications. You can resolve it by setting the launch options to the following

Code: Select all

cmd /c start "" %command%

UnlegitSenpaii
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Dec 30, 2022 6:07 pm
Contact:

Re: Modded Achievement Enabler

Post by UnlegitSenpaii »

MrJake222 wrote:
Sat Sep 10, 2022 12:36 pm
Is there a Linux version?
Yes! I made one, because no one else did:
https://github.com/UnlegitSenpaii/FAE_Linux

User avatar
alecika
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Jan 09, 2023 8:32 pm
Contact:

Re: Modded Achievement Enabler

Post by alecika »

lyvgbfh wrote:
Wed Sep 14, 2022 2:31 am
Burrotieso wrote:
Mon Sep 05, 2022 6:57 pm
Hi.
I'm having some issues with this mod. When I copy the .dll to directory and set the launch options on steam all I get is this:
The game doesn't run or anything, all I get is that screen.
Hi sorry for the delay, I hadn't received forum notifications. You can resolve it by setting the launch options to the following

Code: Select all

cmd /c start "" %command%
Life saver! Still works as of 1.1.74

lyvgbfh
Fast Inserter
Fast Inserter
Posts: 165
Joined: Fri Jul 10, 2020 6:48 pm
Contact:

Re: Modded Achievement Enabler

Post by lyvgbfh »

If you're on any recent experimental build of Factorio, please update to the latest release to resolve a common crash caused by a patch landing where it shouldn't.

Release is here.

zin
Manual Inserter
Manual Inserter
Posts: 3
Joined: Wed Jun 14, 2023 1:52 pm
Contact:

Re: Modded Achievement Enabler

Post by zin »

Still works! Thank you so much :)

Tested in the latest game version as of writing this, 1.1.82. Using

Code: Select all

cmd /c start "" %command%
in the Steam launch options.

fflaguna
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Mar 06, 2016 4:50 pm
Contact:

Re: Modded Achievement Enabler

Post by fflaguna »

It still works as of 2023-11-01, thank you! Make sure you go to https://github.com/oorzkws/FactorioAchi ... r/releases to grab the most recent one (published January 2023). As soon as I loaded my ongoing Space Exploration game, I got a ton of achievements at once. Some of them won't complete, such as "Research Oil Processing", because I have already researched them. That's fine.

Thanks for the hard work!

Extricated
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Jul 05, 2024 1:05 am
Contact:

Re: Modded Achievement Enabler

Post by Extricated »

Is anyone else unable to get this to load? Running the output command gives me a file that is 0kb, and my achievements.dat file doesn't seem to update - only my achievements-modded.dat.

_sunrider
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Jul 21, 2024 12:11 am
Contact:

Re: Modded Achievement Enabler

Post by _sunrider »

Hi there

I'm hoping a kind soul can help me out. I'm on a Mac and can't get the linux version to work. I ran the editor to poke around the map and thought that was on a different save strand, but evidently not -- only noticed 20 hours later.

I hope Mac saves can be opened on Windows, so I hope someone here could grab this save and re-enable the achievements?

Thank you!
_sunrider

https://drive.google.com/file/d/15RceUt ... share_link

Post Reply

Return to “Tools”