Page 2 of 3
Re: various improvements for ease of empire management
Posted: Tue Apr 10, 2018 4:51 am
by grothmag
sven wrote:
I'm afraid this is another instance of the modding bug I was
discussing with harpy eagle earlier today. Long story short, to make the mod work inside the Mods\ subdir, you'll probably need to add the line
Code: Select all
reload_script [[GUI\~GalaxyMap\GalaxyMap.lua]]
To the bottom of the PlanetRow.lua file.
In a perfect world, this wouldn't be necessary; I will see if I can update the way mod loading works under-the-hood so that these kinds of strange reload hints aren't needed.
Ah, terrific! It works, thank you.
Re: various improvements for ease of empire management
Posted: Sun Apr 15, 2018 2:29 am
by siyoa
Code: Select all
small_shadowed_word_drawer(format("%d",2))(x,y)
thanks Sven, will look into that ... at some point ... I just need a bit of time off, just finished big control related project (lots and lots of time spent in various control algorithms and PLCs) and I don't feel like looking into any code for a few days ...
Code: Select all
reload_script [[GUI\~GalaxyMap\GalaxyMap.lua]]
thanks for this one as well, I usually don't use Mod folder, but I understand people want to use it rather than overwrite game files
Re: various improvements for ease of empire management
Posted: Mon Apr 16, 2018 3:05 am
by siyoa
ok, so here it is ... I want to clean it up (i.e. it may not work from Mod folder at the moment) at some point and maybe completely switch to SCOPE_call instead the way how it is done now ... fixed un-harmonized Tinkers also some scaling should be better now, it needs to be done per icon for instances where there is no chibi_icon as their size seems to vary ... also rounding is done using floor function, so the numbers don't add up always to total population
Re: various improvements for ease of empire management
Posted: Mon Apr 16, 2018 9:49 pm
by siyoa
moved all files to the first post, should work from Mod folder, please let me know if there are any issues
Re: various improvements for ease of empire management
Posted: Mon Apr 16, 2018 9:58 pm
by siyoa
zolobolo wrote:Also: would you be interested to do a pie-chart based on the sum of all pop types in the diplomacy menu - wherever it can be inserted?
This is nothing important game-play wise but it should look rely cool to see the empire composition. Think Stellaris had something like this, but due to the boring graph elements I don1t think anyone rely looked at it - should not be a problem with these pop icons though
rendering pie-chart may go beyond my abilities, so far I am only reusing what Sven and Arioch put into the game code already
I may look into that at some point
Re: various improvements for ease of empire management
Posted: Thu Apr 26, 2018 12:40 am
by siyoa
per popular
demand, added following
visibility toggle on/off by variable
Re: various improvements for ease of empire management
Posted: Thu Apr 26, 2018 3:40 am
by harpy eagle
Anyone know if it's possible to add a new UI_File from a mod folder?
I tried creating my out side pane, and was able to do so from Lua State, but had trouble moving it over to a mod folder.
The issue seems to be that you need to call FileName(_ENV) from inside GalaxyMap.lua. But when I create my own mod version of GalaxyMap.lua and put my call in there the game crashes
But... it does work, even if it currently requires modifying Lua state. The panel is accessible by clicking on the food icon, to right of wrench icon in the top bar.
(I modded your mod BTW
)
Just like the production list, you can click on planets in the list to transfer population around.
EDIT: Adjusted the spacings and added small population numbers, what do you think?
Re: various improvements for ease of empire management
Posted: Thu Apr 26, 2018 5:44 am
by siyoa
harpy eagle wrote:
(I modded your mod BTW
)
good, that's why it is here, for all of us to improve it
harpy eagle wrote:
EDIT: Adjusted the spacings and added small population numbers, what do you think?
I like it, can you share the code please, so I don't need to reinvent the wheel
Re: various improvements for ease of empire management
Posted: Thu Apr 26, 2018 5:46 am
by siyoa
harpy eagle wrote:
it seems there is more races that need rescaling for unhappy population icon, I keep adding them as I come across them
Re: various improvements for ease of empire management
Posted: Thu Apr 26, 2018 5:52 am
by harpy eagle
Here is the code. Unfortunately GalaxyMap.lua and @PlanetPopPane.lua have to go into Lua state\GUI\~GalaxyMap
@TopBarContents.lua seems like it works just fine from the mods folder
I also added a bunch of sort options specific for population.
Re: various improvements for ease of empire management
Posted: Fri Apr 27, 2018 3:42 am
by siyoa
thanks for the code, for the time being (
@PlanetPopPane.lua not working from
Mods folder), I am toying with some ideas
I made left pane wider, the problem is that at the moment the game has one setting for left pane size, regardless of what is being displayed there
Re: various improvements for ease of empire management
Posted: Fri Apr 27, 2018 5:42 pm
by zolobolo
Why do you need to make it wider?
In the above example, it seems you have plenty of space to display both pops and orbital structures
Re: various improvements for ease of empire management
Posted: Fri Apr 27, 2018 9:15 pm
by harpy eagle
I updated my population report code so that, instead of hijacking the food icon, there is a new population icon to access the population report from.
Also shown is the population icon tooltip, which appears just like how the wrench icon shows "Planetary Report" when you hover the mouse over it.
It also works from the mods folder.
Re: various improvements for ease of empire management
Posted: Sat May 05, 2018 5:17 pm
by siyoa
merged these together, showing population icons and orbital structures (in planet report) is disabled by default, but you can enable it as per OP
rearranged icons a bit, tanks are a bit separate
for some reason sorting is borked, never touched it (as far as I remember) ... my changes are not based on latest vanilla files, maybe that ?
Re: various improvements for ease of empire management
Posted: Sat May 05, 2018 6:10 pm
by zolobolo
Can you make all ground troop types (tanks, marauders and Assault Marines) be always sorted to the end of the planet pop MGMT screen?
It is a recurring bug that these unit types are dynamically sorted during embarking and disembarking troops and thus the player needs to "chase" the icon during this activity
Has been resolved a couple of times before but the behaviour always seem to crop up again