Simple Python Things

Sadly both would require SDK, I think.
I'm sure I saw the first one in FfH2, but that graphical stacking of the promotions is somehow done with SDK parts involved.
And for everything, which affects the beginning of the combat, and not the outcome, also SDK is required.
So sorry, can't help you :(.
 
I just read what i wrote... I shouldnt be writing things when im sleepy... Tnx for response, but we might misunderstood each other for the 2nd part, but tnx for the 1st part.
Basically a single unit has 2 combat stats. One is iCombat (normal str) and iAirCombat which would be ranged str. What im asking for is something to affect only the display and not the combat itself.
So for example a normal display on the bottom left corner would be "Unit name, Unit str, Unit moves, Promotions...". What i would like to see is expanded unit str display for units having 2 combat types. So normal unit (iAirCombat) would have 8 str displayed in the stats. But if my unit has 8 iCombat and 6 iAirCombat it would still be displayed as 8 str. What i want is to show both str values as 8/6.
Now there is afight and my 8/6 unit survives wounded and str is reduced from 8 to 4. Normally the display of this would be 4/8. I would like to see this as 4/8/3/6. So its would only show people all combat str attributes of the unit and not only the iCombat stat.
 
I'm not sure if that text is accessible via Python, might be that it's generated in the .dll.
I'll try to check that at the weekend, unless I forget it (can't say I have too much time right now).

If it's in the DLL, couldn't you sort-of hack and put text there? It's in the Civiliopedia and therefore a Python screen. (I don't know much about Python, but still, can't you put text on a screen? :lol:)
 
The current implementation of your two promotions Barbar Hunter and Hunter has an interesting feature (or bug). You normally don't get GG points for combat with barbarians but once you get over the limit and have one or more of these promotions you will.

If you don't want GG points then the last bool in the changeExperience should be false.

If, as in C2C, you have an option for getting GG points from fighting barbarians ("Barbarian Generals" mod) then the last bool should be the value of the option.
 
Now there is afight and my 8/6 unit survives wounded and str is reduced from 8 to 4. Normally the display of this would be 4/8. I would like to see this as 4/8/3/6. So its would only show people all combat str attributes of the unit and not only the iCombat stat.

Found the code part, but there's a slight problem:
Spoiler :
attachment.php


There's not enough space in the width to add the info, neither is there enough space in the height to add another line.
The part of the interface, which determines width and height, is sadly in the .exe (at least that's what I assumed the last time when I dealt with that part).
And I can't seem to find the space, where the font size is set :/.

...so...any suggestions?
 

Attachments

  • Clipboard01.jpg
    Clipboard01.jpg
    169.5 KB · Views: 223
I prefer the one under the other, even though it makes a slider bar, it is a shame we can't change the spacing between lines, as it is such a tiny amount of space that is needed :D

I would use it even with the slider bar though, personally. cause it is only a bit of the level that you need to scroll down to see and having the range strength is of such great value to my mod that i would take the trade off!
 
Wow! This is great. Maybe the problem could be solved by not adding any of that, but by adding that info next to a unit name when u hoover over it, or that is controlled by something else.

So far im using <help/> tag :) tnx to Topsecret.
 
Well then i vote for the one below other option. I dont mind the slider. But if u can somehow find out how to reduce the spacing it would be even better :)
Tnx for spending time on this J!
 
Well then i vote for the one below other option. I dont mind the slider. But if u can somehow find out how to reduce the spacing it would be even better :)
Tnx for spending time on this J!

Okay, I'll finish it then tomorrow :).

While we are on the subject of python and display, do you have any ida where the 'glow' on the background of pop up screens is handled. Like the dawn of man and Top 10's?

I have absolutely totally no idea :dunno:.
 
I feel honoured :D.


So, now:
Spoiler :
attachment.php


One change in the CvMainInterface.py, search for combat-aircombat .
One text XML included, the unitInfos.xml is only there to directly have an example.
Let me know if you have any problems.
 

Attachments

Back
Top Bottom