Problem launching Stronghold 2 - Call from 7BC2CEA0 to unimplemented function dragonfly.dll

Questions about Wine on Linux
Locked
MountainWatcher85
Newbie
Newbie
Posts: 2
Joined: Sun Aug 20, 2023 9:01 am

Problem launching Stronghold 2 - Call from 7BC2CEA0 to unimplemented function dragonfly.dll

Post by MountainWatcher85 »

Using wine I have managed to install Stronghold 2 Deluxe (from the DVD-ROM I own), but attempting to run the game results in an error. There is an issue with a .dll file called 'dragonfly.dll'
I have searched online and found very little about this file, except some sites where you can download it. It is found in the same folder as the Stronghold2.exe file. Unlike other problematic .dll files I have seen on other forums, dragonfly.dll does not appear to belong to a winetricks package, so I'm not sure if it's possible to override it using winecfg. I have tried doing this but dragonfly does not appear in the list of libraries to override.
I have also tried installing d2dx9_27.dll using winetricks, as this is listed on WineHQ as a problem with Stronghold 2, but this has made no difference for me. I do not believe that my media is faulty because the game installs and runs on my Windows 10 OS perfectly fine. The error dump specifies a function in the dragonfly.dll file and strings and chars, so perhaps the problem is to do with specific text and/or fonts not being installed? I have also seen some suggestions of copying over a newer version of the file, but as I'm new to wine I'm unsure of how to do this or if that would resolve the error.



My operating system is Linux Mint 21.1 Cinnamon, and wine version 6.0.3


The full error text and dump is as follows:

wine: Call from 7BC2CEA0 to unimplemented function dragonfly.dll.?toStr@TextConv@Dragonfly@@SAXAAV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@4@@Z, aborting
wine: Unimplemented function dragonfly.dll.?toStr@TextConv@Dragonfly@@SAXAAV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@4@@Z called at address 7BC2CEA0 (thread 0024), starting debugger...
Unhandled exception: unimplemented function dragonfly.dll.?toStr@TextConv@Dragonfly@@SAXAAV?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@4@@Z called in 32-bit co
de (0x7bc2cea0).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:006b GS:0063
EIP:7bc2cea0 ESP:02ccfdb4 EBP:02ccfe18 EFLAGS:00000202( - -- I - - - )
EAX:009edcc2 EBX:02ccfdc0 ECX:02ac10e1 EDX:009efb6e
ESI:00343530 EDI:041917c0
Stack dump:
0x02ccfdb4: 003a2c74 02ccfdd8 003302a3 80000100
0x02ccfdc4: 00000001 00000000 7bc2cea0 00000002
0x02ccfdd4: 009efb6e 009edcc2 00330487 02ccfe0c
0x02ccfde4: 02ccfe64 02ccfe20 02ccfe28 02ccfe28
0x02ccfdf4: 00366ccb ffffffff 002b0c30 02a89e4c
0x02ccfe04: 02a89e63 00000001 04869fd8 02ccfe28
Backtrace:
=>0 0x7bc2cea0 EntryPoint+0xffffffff() in ntdll (0x02ccfe18)
1 0x003b00f0 (0x002b0c30)
2 0x64002bba (0x8268ff6a)
0x7bc2cea0 EntryPoint+0xffffffff in ntdll: subl $4,%esp
Modules:
Module Address Debug info Name (47 modules)
PE 220000- 287000 Deferred lifestudioheadapi
PE 290000- 2db000 Deferred dragonfly
PE 2e0000- 2f2000 Deferred zlib1
PE 310000- 3ac000 Deferred stlport_vc7150
PE 400000- 2ac2000 Deferred stronghold2
PE 2cd0000- 3136000 Deferred ole32
PE 3140000- 32a6000 Deferred winmm
PE 32b0000- 34ff000 Deferred d3dx9_27
PE 3500000- 39a5000 Deferred comctl32
PE 5030000- 5039000 Deferred milessound
PE 5150000- 51cf000 Deferred dxrenderer
PE 10000000-1002f000 Deferred gdpfile
PE 21100000-21164000 Deferred mss32
PE 30000000-3006d000 Deferred binkw32
PE 4a800000-4a893000 Deferred icuuc30
PE 4ad00000-4b52d000 Deferred icudt30
PE 50000000-50090000 Deferred granny2
PE 61740000-61832000 Deferred advapi32
PE 62fc0000-631d3000 Deferred rpcrt4
PE 63480000-6349b000 Deferred version
PE 63bc0000-63c04000 Deferred shcore
PE 64a40000-64b29000 Deferred shlwapi
PE 669c0000-66a3b000 Deferred msvcp71
PE 66fc0000-67032000 Deferred freetype6
PE 67c80000-67ff9000 Deferred d3d9
PE 68500000-68640000 Deferred combase
PE 68700000-68788000 Deferred uxtheme
PE 69180000-691a6000 Deferred wsock32
PE 6a040000-6a0a2000 Deferred msacm32
PE 6a280000-6a2c4000 Deferred msvcrt
PE 6bc00000-6bc99000 Deferred sechost
PE 6bcc0000-6be60000 Deferred setupapi
PE 6c9c0000-6cf59000 Deferred gdi32
PE 6d300000-6d308000 Deferred shfolder
PE 6e800000-6e856000 Deferred msvcr71
PE 6ed00000-6f389000 Deferred user32
PE 70b40000-70df9000 Deferred ucrtbase
PE 71200000-71251000 Deferred imm32
PE 7a820000-7a824000 Deferred opengl32
PE 7b000000-7b348000 Deferred kernelbase
PE 7b600000-7b929000 Deferred kernel32
PE 7bc00000-7bea9000 Dwarf ntdll
PE 7ea70000-7ea74000 Deferred winex11
PE 7ed80000-7ed86000 Deferred ws2_32
PE 7edc0000-7edc4000 Deferred iphlpapi
PE 7edf0000-7edf4000 Deferred wined3d
PE 7f020000-7f8f2000 Deferred shell32
Threads:
process tid prio (all id:s are in hex)
00000020 (D) C:\Program Files\Firefly Studios\Stronghold 2\Stronghold2.exe
00000024 0 <==
00000100 0
00000038 services.exe
0000003c 0
00000040 0
0000004c 0
00000050 0
00000070 0
00000088 0
000000ac 0
000000d8 0
000000dc 0
00000044 winedevice.exe
00000048 0
00000054 0
00000058 0
0000005c 0
00000060 plugplay.exe
00000064 0
00000074 0
00000078 0
0000007c 0
00000098 0
0000009c 0
00000068 explorer.exe
0000006c 0
000000c0 0
000000c4 0
000000c8 0
00000080 winedevice.exe
00000084 0
0000008c 0
00000090 0
00000094 0
000000a0 0
000000a4 svchost.exe
000000a8 0
000000b0 0
000000b4 0
000000b8 conhost.exe
000000bc 0
000000d0 rpcss.exe
000000d4 0
000000e0 0
000000e4 0
000000e8 0
000000ec 0
000000f0 0
000000f4 0
System information:
Wine build: wine-6.0.3 (Ubuntu 6.0.3~repack-1)
Platform: i386
Version: Windows 7
Host system: Linux
Host version: 5.15.0-79-generic
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: Problem launching Stronghold 2 - Call from 7BC2CEA0 to unimplemented function dragonfly.dll

Post by jkfloris »

The dragonfly.dll file is part of the game. You can try to update the game to version 1.4.1. The patch also contains a new version of dragonfly.dll.

v1.4 Patch
Patch 1.4 to 1.4.1

If that doesn't work, update your Wine version to 8.x
MountainWatcher85
Newbie
Newbie
Posts: 2
Joined: Sun Aug 20, 2023 9:01 am

Re: Problem launching Stronghold 2 - Call from 7BC2CEA0 to unimplemented function dragonfly.dll

Post by MountainWatcher85 »

After downloading the patch and running the update executable, the game launches without issue. Your solution makes sense as an update could potentially correct problems with the game files, and in this case it did.

Thank you very much for your help. You have helped me run my first Windows game on Linux!
Locked