Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird looking map #12

Open
okhin opened this issue Apr 6, 2020 · 11 comments
Open

Weird looking map #12

okhin opened this issue Apr 6, 2020 · 11 comments

Comments

@okhin
Copy link
Contributor

okhin commented Apr 6, 2020

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
Copy link
Contributor

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

Good luck!

@okhin
Copy link
Contributor Author

okhin commented Apr 8, 2020

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
Copy link
Contributor

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
Copy link
Contributor Author

okhin commented Apr 8, 2020

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
Copy link
Contributor

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
Copy link
Contributor Author

okhin commented Apr 9, 2020

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
Copy link
Contributor

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
Copy link
Contributor Author

okhin commented Apr 9, 2020

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
Copy link
Contributor

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

@okhin
Copy link
Contributor Author

okhin commented Apr 9, 2020

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants