PrincesOfDarknessMod / POD-for-CK2

Princes of Darkness Crusader Kings II (CK2) Modification
https://steamcommunity.com/sharedfiles/filedetails/?id=1333219891
The Unlicense
26 stars 20 forks source link

Weird looking map #12

Open okhin opened 4 years ago

okhin commented 4 years ago

I just installed the mod via steam, and I have no other active mod.

Upon startup, the map looks weird (the color are replaced by RGB stripes on the first area displayed, and are just gone elsewhere, and it stays like that no matter what). The game is otherwise functional, and I do not have the issue on the vanilla game.

It seems to be related to the relief layer, since other map mode overlays are kind of ok (there's still stripes on part of it, as the terrain should be).

I play on Linux, but I usually do not have any issues on Paradox games and mods (for CK2, I've tried the Games of Thrones one and After the end), and I'm using an Intel GPU (UHD Graphics 620 - Whiskey Lake) with a core i7 8th gen.

There's a screenshot here : https://covid19.framadrop.org/r/a9vuw09vFk#EwM5hw+1GAVk2M/YVAU3ZYLc0LPvO7VQI0k419hdKgg=

flintsparc commented 4 years ago

For linux, unzip the mod file. Remove the files in this directory: /map/terrain/

Good luck!

okhin commented 4 years ago

ok, fixed it by removing the .dds files from the map/terrain/ file from the archive with the following command line :

    zip -d princesofdarkness.zip map/terrain/*.dds

However, it seems that I'm having other issues with some graphics. The background of secret societies, see screenshot, for instance seems like it's shrinked to 1/4 of the size it's supposed to be.

Is it possible there's a weird encoding somewhere in some dds files that makes them not working on Linux ? Or is it another distinct issue ?

flintsparc commented 4 years ago

Weird. Yes, I think Linux is not liking a compression we are using on .dds to save space. Is it all societies or just some societies?

We compressed almost all of them down from 1,276 KB to 321 KB. You can check if it is the compression if the Dominicans look alright and all the vampire societies are reduced, then that is the issue.

We haven't had someone coordinating with us to test Linux plays. Join our discord :)

okhin commented 4 years ago

So, it's all modded background. If the society use a non modded one, the background works. If not, it's shrinked (plus artifacts).

I'll try to find the time to join discord.

flintsparc commented 4 years ago

okhin,

You can try replacing the compressed .dds with the older uncompressed versions from here: https://github.com/peregrine-collegia/POD/tree/9ae314bb7d76ab266f73bc5577950f21f0ba7b62/Current/princesofdarkness/gfx/interface/societies

okhin commented 4 years ago

Ok, I'll give it a try. And I'll try to recompress them in a way that makes them OK for Linux (I think they should be compressed in DTX1, is it what you're using ?)

flintsparc commented 4 years ago

It was almost a year ago and I was in a hurry to get the .zip file down in size so I could get the mod uploaded to steam, so I do not remember the compression used.

If you find a compression that works for Linux, I will try it and add it to the next build.

okhin commented 4 years ago

So, it works with uncompressed files. I did recompress them using imagemagick, in DXT1 without mipmaps, and it still work. Each file is now weighting 321k (except the symbol_ ones, they're down to 5.3k).

There's also a loading screen (the Heritage one?) which needs similar compression.

The command line I used (from the gfx/interface/societies folder is this one:

for FILE in $(ls -1); do convert $FILE -define dd:mipmaps=0 -define dd:compression=dtx1 DDS:$FILE; done

I can fork, git clone and do a pull request if it's easier for you to manage.

Thanks for the good work anyway :)

flintsparc commented 4 years ago

Could you just submit your compressed image files to the main branch?

okhin commented 4 years ago

It's done in PR #13 (I can't push straight into master since I have no write perms).

However it fixes the societies BG and loading screen, but not the terrain (removing the dds from the mod works fine0. I did not want to remove files that might be important, so I've left the terrain maps as is in the PR.

Autismono commented 3 years ago

I'm having the same issues the OP has stated, plus a different one. For some reason there are Giant versions of the buildings on the far corner of the map just above Africa and they get in the way of the view depending on where they are.