Yes, the bug does seem to be squashed, Alvek. I’ve been play-testing with a few factions that were affected by the image mismatch, and they’re all using their corresponding shipset family. Yay!
Expansion mod
Re: Expansion mod
Re: Expansion mod
I haven't looked in code, but gas giants rings are cliped by planet size, you can see that by selecting planet. Clipping occurring right at selection circle.salemonz wrote: Mon Jun 19, 2023 12:27 am Hey @Alvek! This probably isn't a BaconMod issue, but any idea where in the game it renders the rings on gas giants?
I've looked through all the files and can't seem to find it. There has been this ring 'clipping' issue where the ends get chopped off. Only happens on some planets. Been there for a long time. I've tried to figure it out but haven't had any luck.
gas giant clipping.PNG
Re: Expansion mod
1)New text was added in 1.07, now you get warning if current mining amount lower than current tech limit. Checking mining ships, bases and resupply ship. (Known issue: text is clipped for double digit limit)Retreat1970 wrote: Mon Jun 19, 2023 1:00 am This is new. I've never seen it. Also on startup sometimes it hangs and I have to task manager kill the game and restart. Happens maybe 10% of the time.
2)I got startup hanging few times, but thought it was due debugging. Some multitasking error in speed up improvements, I will try to find it, but such errors are one of the most hard to find

Re: Expansion mod
Ah that makes sense. I was overthinking it. Ha! Thank you!Alvek wrote: Mon Jun 19, 2023 6:45 am I haven't looked in code, but gas giants rings are cliped by planet size, you can see that by selecting planet. Clipping occurring right at selection circle.
- Retreat1970
- Posts: 1125
- Joined: Wed Nov 06, 2013 11:09 am
- Location: Wisconsin
Re: Expansion mod
While this is correct there is something incorrect still. If you take an un-ringed gas giant, even at max size (1000), and place a ring around it the selection circle encompasses everything correctly. An already ringed and clipped gas giant will always clip off the sides no matter how you edit the size of said planet.
Re: Expansion mod
You right, certain planet images got clipped rings. It easy can be checked in editor for gas giant that already have rings clipped, changing planet images changes selection range and rings get unclipped with new image.Retreat1970 wrote: Mon Jun 19, 2023 3:44 pm While this is correct there is something incorrect still. If you take an un-ringed gas giant, even at max size (1000), and place a ring around it the selection circle encompasses everything correctly. An already ringed and clipped gas giant will always clip off the sides no matter how you edit the size of said planet.
Re: Expansion mod
With DWUR mod I have every image with size 1000*1000 with clipped rings.
I already found ring generator code while optimized earlier versions so shouldn't be problem to fix.
Edit1: rings generated without errors, info panel shows correct image. Error should be somewhere in drawing code and that will took some time to find.
I already found ring generator code while optimized earlier versions so shouldn't be problem to fix.
Edit1: rings generated without errors, info panel shows correct image. Error should be somewhere in drawing code and that will took some time to find.
Re: Expansion mod
Thanks for looking into it.Alvek wrote: Mon Jun 19, 2023 4:12 pm With DWUR mod I have every image with size 1000*1000 with clipped rings.
I already found ring generator code while optimized earlier versions so shouldn't be problem to fix.
Edit1: rings generated without errors, info panel shows correct image. Error should be somewhere in drawing code and that will took some time to find.
DWUR didn't mess with gas giants. I used RetreatUE as my base.
If we find planets should be a certain resolution, let me know and I'll be happy to do some re-sizing.
Re: Expansion mod
Gas giant image combined with scaled rings image limited at 2000 pixels. Unscaled images created programmatically in some variations and then rescaled for planet image size during drawing view.
Scaling algorithm for gas giant rings image:
Ring images sizes: 1184,1031,1129,1038,1124,1016,1100,1236,991.
So maximum image size for this diameter to avoid clipping should be about ~850.
Later I will try to figure out what code needs change to remove the limit and what consequence may be.
Scaling algorithm for gas giant rings image:
Code: Select all
double factor1 = planetImage.Width / planetDiameter;
double factor2 = planetDiameter / 500;
int rescaledWidth = (int)(ringImage.Width * factor1 * factor2);
int rescaledHeight = (int)(ringImage.Height * factor1 * factor2);
Same with numbers for my test gas giant:
double factor1 = 1000 / 651;
double factor2 = 651/ 500;
int rescaledWidth = (int)(1161 * factor1 * factor2); thats 2321
int rescaledHeight = (int)(269 * factor1 * factor2); thats 413
So maximum image size for this diameter to avoid clipping should be about ~850.
Later I will try to figure out what code needs change to remove the limit and what consequence may be.
Re: Expansion mod
Thanks for checking that out.Alvek wrote: Tue Jun 20, 2023 9:05 pm
Ring images sizes: 1184,1031,1129,1038,1124,1016,1100,1236,991.
So maximum image size for this diameter to avoid clipping should be about ~850.
Later I will try to figure out what code needs change to remove the limit and what consequence may be.
I'm working on some ship engine/lights cleanup for DWUR...very tedious :p I'll resize all 1000x1000 gas giants down to 800. I'll release that as the next Beta version. Probably will need until end-of-week. Engine/light cleanup taking forever.
Re: Expansion mod
@salemonz any plans on sound effects volume?
Re: Expansion mod
ah yes, thanks for the reminder. Added a sound pass to my to-do list.
Re: Expansion mod
DWUR 0.9.5 is out. Did the sound effect audio normalizing and gas giant image size fix. FYI

Re: Expansion mod
x64 definitely working, due to memory leak bug game bloated to 11GB 

- Retreat1970
- Posts: 1125
- Joined: Wed Nov 06, 2013 11:09 am
- Location: Wisconsin
Re: Expansion mod
The family-1 error has reappeared and I think I may know why. It does have to do with pirates as speculated, but specifically Ketarov pirates. The Ketarov pirates are using the minor shipset just like the previous shipset problem with the Ketarov player race that you fixed.
Re: Expansion mod
Have you checked that your race file have "CanBePirate ;Y" and "DesignsPictureFamilyIndexPirates;48" (any number above -1).
Maybe I missed something or misunderstood, but -1 error possible only in case where CanBePirate set to "Y" while DesignsPictureFamilyIndexPirates set to "-1". Also old games don't get fixed as this info saved in save file.
Maybe I missed something or misunderstood, but -1 error possible only in case where CanBePirate set to "Y" while DesignsPictureFamilyIndexPirates set to "-1". Also old games don't get fixed as this info saved in save file.
Re: Expansion mod
If I haven't missed something there is no consequence in increasing ring image limit above 2000, but if everyone already re-scaled images there is no point of doing it.
If someone still want bigger images let me know.
If someone still want bigger images let me know.
Re: Expansion mod
I'm cool with the regular sizes.Alvek wrote: Mon Jun 26, 2023 7:35 pm If I haven't missed something there is no consequence in increasing ring image limit above 2000, but if everyone already re-scaled images there is no point of doing it.
If someone still want bigger images let me know.
Good to know the upper resolution limit. The loss in image quality on the 1K gas giant images isn't noticeable. And if the lower image sizes help with overall memory usage...well that's a win as well.
Re: Expansion mod
This mod is absolutely excellent, but since I'm just learning this game I'd like to disable anything that affects gameplay. How could I do so? I saw the settings in BaconSettings.txt, but is that all that's changed in terms of gameplay? Also, does this mod disable steam achievements for the game?
Re: Expansion mod
1)BaconMod part couldn't be disabled completely, only some settings in BaconSettings.txt could be changed.kalindros wrote: Mon Jul 03, 2023 3:24 pm This mod is absolutely excellent, but since I'm just learning this game I'd like to disable anything that affects gameplay. How could I do so? I saw the settings in BaconSettings.txt, but is that all that's changed in terms of gameplay? Also, does this mod disable steam achievements for the game?
2)EM for now added only QoL features so there is no reason to disable them and there is no way to disable them too.
3)Steam achievements should work, I only tested them via code and didn't check with normal gameplay.