Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LF2 dlls for left-right facing issues.
#1
LF2 uses a graphics card function that flips images horizontally.
However, some modern graphics cards today (notably NVidia) don't have this function.

As a result, Marti made a fix in the v2.0a EXE that allows direct loading of _mirror.bmp sprites.
Unfortunately, many mods were made back then under v.19/1.9c.

While most mods can still run properly with v2.0a EXE, there are others that rely on certain tricks or have heavily modded EXEs that won't work with this method.
Also, some people may be too lazy to use A-Man's sprite mirrorer to make _mirror files for the 2.0a EXE to load.

Hence, here is a set of 3 DLLs that you can place inside LF2 folder directly, containing:
  1. ddraw.dll (587kb)
  2. libwine.dll (1769kb)
  3. wined3d.dll (1397kb)
Once placed, you can simply run the lf2.exe directly as per normal.


.zip   LF2_leftright_DLLs.zip (Size: 1.35 MB / Downloads: 35)
Mediafire Mirror: https://www.mediafire.com/file/e58c7jv2r...s.zip/file

What these DLLs do is allow you to run very old LF2 mods(generally running on 1.9/1.9c exe) without facing the left-facing sprite issue.
This is useful if those old mods use particularly many/large sprites that cannot be loaded properly on 2.0a EXE, or have heavily modified EXE.

Personally, I found that this very slightly blurs the game's image quality and it won't allow OBS to capture the game window directly(you have to use capture monitor instead), but its a minor tradeoff compared to actually fixing the left-right issue when playing on older LF2 versions.

Do exercise caution with DLL files and don't download them if you don't trust the source(including me).
[Image: uMSShyX.png]
~Spy_The_Man1993~
Steiner v3.00 (outdated), Challenge Stage v1.51
Luigi's Easier Data-Editor, A-Man's Sprite Mirrorer
Working on the LF2 Rebalance mod.
Avatar styled by: prince_freeza
Reply
Thanks given by: MangaD , Bamboori , Silverthorn
#2
Oh my where did you find this treasure?! Great job!
[Image: random.php?pic=random]
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
The meaning of life is to give life a meaning.
Stop existing. Start living.
Reply
Thanks given by:
#3
Great find, thanks for sharing! On a side-note, in particular in relation to your last remark:
(04-19-2020, 07:20 AM)STM1993 Wrote:  Do exercise caution with DLL files and don't download them if you don't trust the source(including me).

I'm considering to upload it to LFE but before that, I'll have to be sure that it's clean and whatnot, especially remembering when this happened. Do you have a reliable source that it only does the flipping stuff with no phoning back home etc.?
Silverthorn
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by:
#4
The ddraw.dll was provided by the user "InfiniteZero"(who made some EXE edits) on the ztage forums around mid-2018(July).
He did not write the dll himself, but rather took it from another site.
Quote:(From the Chinese LF2 Discord)
我沒那麼偉大能做出那些ddraw.dll, 其實基本都是些希望能在現代系統中玩到古董級遊戲的玩家們開發的, 坊間有很多種不同的ddraw.dll可以用
ddwrapper
DxWnd
DDrawCompat
WineD3D
dgVoodoo 2
DXGL
我知道的大致有以上這些, 不確定您用的是哪一種, 但畢竟我不是開發者, 只能請您試試其他作者的ddraw.dll, 如果問題仍然存在, 也只能透過關閉DDraw的硬體加速來解決鏡像圖問題, 但很可能就無法使用任意寬度的圖片

---
(Translated with DeepL)
I'm not that great at making those ddraw.dlls, they're basically developed by players who want to play vintage games in modern systems, there are a lot of different ddraw.dlls out there
ddwrapper
DxWnd
DDrawCompat
WineD3D
dgVoodoo 2
DXGL
I'm not sure which one you're using, but I'm not a developer, so I can only ask you to try the other author's ddraw.dll. If the problem persists, you can only solve the mirror image problem by turning off the hardware acceleration of ddraw, but you probably won't be able to use images of any width

Translated with www.DeepL.com/Translator (free version)
Unfortunately, ztage is down and the only backup of the ztage forums aren't that recent, plus InfiniteZero has since left the Discord server, so I can no longer pinpoint the exact source of the dll.
[Image: uMSShyX.png]
~Spy_The_Man1993~
Steiner v3.00 (outdated), Challenge Stage v1.51
Luigi's Easier Data-Editor, A-Man's Sprite Mirrorer
Working on the LF2 Rebalance mod.
Avatar styled by: prince_freeza
Reply
Thanks given by:
#5
I see, thanks for the clarification! I assume this is all play-tested already? Can't do so myself as I miraculously don't have the graphics bugs on this machine. If it is, I'll put it up on LFE Wobble
Silverthorn
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by:
#6
Yeah, it worked for me in the manner that I've described in 1st post, so its great for playing 1.9 or older era mods and old official versions.

I do hear that image quality may vary a bit between users, but the dll functions for mirroring on Windows.
No idea for Mac or Linux.
[Image: uMSShyX.png]
~Spy_The_Man1993~
Steiner v3.00 (outdated), Challenge Stage v1.51
Luigi's Easier Data-Editor, A-Man's Sprite Mirrorer
Working on the LF2 Rebalance mod.
Avatar styled by: prince_freeza
Reply
Thanks given by:
#7
Alright, published it: https://lf-empire.de/lf2-empire/introduc...ing-issues (edit: quality URL-parser shortening just right!)

Was pondering for a while where the article should go; ended up with putting it on a fairly global level. Let me know if you have a better idea Wobble
Silverthorn
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by: STM1993




Users browsing this thread: 1 Guest(s)