'Unresolved import. AGS2Client SetAchievementAchieved^'

Started by Rivereyes, Tue 22/03/2022 15:06:57

Previous topic - Next topic

Rivereyes

Hi all,

Apologies for the 'civilian' post, but I'm looking to help out a friend.

They are trying to launch the GoG.com version of Guard Duty on Win10 and they keep getting the following error message on launch :

Loading game failed with error. Script link failed. Runtime error. Unresolved import. AGS2Client SetAchievementAchieved^

They've tried setting different compatibility modes for the executable to no avail. They also currently have another AGS game (Strangeland) installed. Is it possible that there's some registry conflict between the two?

Any help would be greatly appreciated!

Khris

Sounds like maybe their Antivirus removed a dll from the game folder?

eri0o

It's probably what Khris mentioned.

I am curious, in the message is there a number after the ^ symbol?

nikolaelf

Yes there is a number. Number "1'".

My antivirus is Windows Defender.

Khris

Check the "threat history" (or similar) for Defender quarantining a file from the game's folder. Also try reinstalling it.

nikolaelf

I have checked it. Nothing appears.

I also checked malwarebytes premium just in case. Nothing there, too.

I did a verify/repair action.

Do you think I have to reinstall it?

eri0o

This error means it's complaining of a library named AGS2Client.dll in the same directory of Guard Duty I think. Is this dll there?

nikolaelf

No. it's not!

There is an "agsgalaxy.dll" NOT a "AGS2Client".

How can I get it, please?

Khris

Did you try reinstalling it? It's the obvious first step and only takes a few minutes.

nikolaelf

No.

I did a verify/repair action.

I was watching the game folder at the same time but the particular dll didn’t appear when repairing.

I am afraid if I’ll reinstall the game, it might not install the dll again.

Maybe I’m wrong.

Crimson Wizard

#10
Quote from: nikolaelf on Tue 22/03/2022 18:08:59
AGS2Client SetAchievementAchieved^

Quote from: nikolaelf on Tue 22/03/2022 18:08:59
There is an "agsgalaxy.dll" NOT a "AGS2Client".

If i remember correctly, agsgalaxy.dll is a plugin specialized for GoG releases instead of steam plugin, and it is supposed to contain achievement functions.
If engine cannot find these, this could mean either that engine failed to load the agsgalaxy.dll for some reason, or agsgalaxy.dll is of some incorrect version, mismatching the game's script.

Is it possible to find out, which version of the engine was used when making this game? If game has "winsetup.exe", it should be written at the bottom of the setup dialog. Also, pressing Ctrl+Alt+V in game should print engine info.
Have you tried reporting this problem to the game author or publisher? is it confirmed that this particular release is working at least for some people?

Crimson Wizard

Quote from: nikolaelf on Tue 22/03/2022 20:41:11
I am afraid if I’ll reinstall the game, it might not install the dll again.

I don't think you should be afraid of that; but agsgalaxy.dll is also available for download separately iirc; it's not made by the game authors, but by a separate developer and used by game makers for GoG releases.

nikolaelf

I can tell you tomorrow which version is depicted because I’m not in front of the pc.

I have reported the problem to game author but no answer yet.

The game is working for some people.

As far as I can understand the issue is the missing of the AGS2Client.dll NOT the agsgalaxy.dll which already exists.

Crimson Wizard

Right, sorry, it should be AGS2Client.dll, which probably uses agsgalaxy.dll in turn (game -> ags2client.dll -> agsgalaxy.dll).

If reinstalling does not work, it should be possible to download it separately, but I failed to find actual download link right now; maybe someone else could post it.

nikolaelf

Me neither.

If someone could post a link I would be grateful.

Khris

Why would you have to look for an obscure dll after buying an installer for a game?
To me it sounds like the installer itself is the issue here; maybe it accidentally ended up with the wrong batch of files after an update or something.

Chicky was last active in the forums today, so he should react to a PM.

Chicky

Hey yeah, logged in to touch base about this issue but the user has contacted me via email so we're working through it there. I'm actually on holiday at the moment camping so internet access is hit and miss.

It's weird, the GOG version hasn't been updated in a couple of years now and this is the first report I've had of the issue. I'll update this post when we find the cause.

nikolaelf

#17
By the way, I reinstalled the game and I get the same error.

:sad:

(I installed the game while the antivirus was inactive).

@Crimson Wizard - Version Of The Engine3.4.1.14

eri0o

If you don't need the gog connection you can just run in the latest AGS stable engine and it should probably run alright - I think we added stubs for AGS2Client. But it's weird that the dll isn't there.

nikolaelf

#19
Maybe it’s not there because it’s not in the gog game file in the first place.

I can’t think of anything else.

I’m really depressed by all this, really.

SMF spam blocked by CleanTalk