1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Python Performance and Interface Overhaul (PPIO)

Discussion in 'C2C mod mods' started by Toffer90, Jul 7, 2017.

  1. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,221
    Location:
    Norway
    PPIO v0.6.4.6
    SVN rev. 10688
    • Should fix issues with placing certain forest related improvements.
    @KaTiON_PT: please report back to me on this, thanks. ^^
    In the middle of something, can't check it myself right away.
     
  2. KaTiON_PT

    KaTiON_PT Emperor

    Joined:
    Jan 2, 2010
    Messages:
    1,084
    Location:
    Portugal
    Thank you for the speedy update. :) Stumbled upon it as I was noting down improvements that shared the same model so I can later add an unique one.

    Another error, instead of line 1072 it's 1073 now.
    Code:
    Traceback (most recent call last):
      File "BugEventManager", line 308, in _handleDefaultEvent
      File "CvEventManager", line 1073, in onImprovementBuilt
    NameError: global name 'plot' is not defined
    
     
  3. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,221
    Location:
    Norway
    Heh, I had a feeling there would be more wrong in that code segment.. ^^

    PPIO v0.6.4.7
    SVN rev. 10688
    • Fixed another error that was hiding in the same code segment as I just fixed a different problem with.
     
  4. KaTiON_PT

    KaTiON_PT Emperor

    Joined:
    Jan 2, 2010
    Messages:
    1,084
    Location:
    Portugal
    That did it, thank you.
     
    Toffer90 likes this.
  5. Raven Destroyer

    Raven Destroyer Prince

    Joined:
    Aug 17, 2010
    Messages:
    587
    Just going to comment for the sake of commenting, Toffer Your work here on this ModMod is Excellent, Most of what you've managed to do here is Brilliant and Oh so needed for making C2C even more enjoyable and Playable, There has been many many changes to C2C over the years I've been playing it, and personally I'd put PPIO on a similar grade as the work done on multipaging that alleviated so many problems plaguing the game,
    and formal education or not, You've shown capable of putting forward very professional quality

    Making this part of the Core would indeed be very useful and would make things a lot more easy,
     
    SirJohnEh and Toffer90 like this.
  6. raxo2222

    raxo2222 Time Traveller

    Joined:
    Jun 10, 2011
    Messages:
    6,611
    Location:
    Poland
    Space improvements are often reusing graphics, same with features.
    So I guess you will be making graphics for those too :D?

    @Toffer90 is it possible to sort religions in religion screen by tech tree order? That is first by X grid, and then by Y grid for religions in same column.
     
  7. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,221
    Location:
    Norway
    Most likely, I'm guessing it currently use the xml order for the religions.
    I haven't looked at the rel. advisor screen code so can't say for sure.
     
  8. raxo2222

    raxo2222 Time Traveller

    Joined:
    Jun 10, 2011
    Messages:
    6,611
    Location:
    Poland
    Nope, I sorted religions in religioninfos and religions didn't change their location. I think they are sorted by TGA index though.
     
  9. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    26,600
    Gender:
    Male
    Location:
    Las Vegas
    I warn that there be serious dragons if you want to try to reorganize these. That index touches on a lot of places.
     
    raxo2222 likes this.
  10. raxo2222

    raxo2222 Time Traveller

    Joined:
    Jun 10, 2011
    Messages:
    6,611
    Location:
    Poland
    I mean for religion screen TGA index sorting could be ignored if its possible to do so in python.
     
  11. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,221
    Location:
    Norway
    PPIO v0.6.4.8
    SVN rev. 10696
    • Some minor adjustments to the gold display in upper left corner, its tooltip, and inside the finance advicor.
      • 1 099 999 will display as 1M 99999 (same as before)
      • 8 099 999 will display as 8M 99999 (same as before)
      • 1 100 000 will display as 1100K instead of 1M 100000
      • 8 743 217 will display as 8743K instead of 8M 743217
      • The treasury tooltip and finance advicor screen will always show the whole number without any M's or K's.
    I'm wondering if I should drop the M's alltogether and only use K's all the way above 99 999.
     
  12. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    26,600
    Gender:
    Male
    Location:
    Las Vegas
    I imagine it could be possible.
    Interesting... not sure what I think on that unless I were to see it in the game I guess.
     
    raxo2222 likes this.
  13. KaTiON_PT

    KaTiON_PT Emperor

    Joined:
    Jan 2, 2010
    Messages:
    1,084
    Location:
    Portugal
    Yes I will make graphics for each. I would like to know to add animations, for example how the mine spews fire sometimes. I'm aware you can do that in NifSkope but I'm still "fresh meat".

    For the moment my priority is the prehistoric + information tech tree rework however.
     
  14. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,221
    Location:
    Norway
    PPIO v0.6.4.9
    SVN rev. 10696
    • Worked a bit on the tech pedia pages. Brought parts of it up to the standard seen in unit pedia pages.
      • The tech icon for the tech that the page belongs to now have the new tooltip instead of no tooltip at all.
        • Adjusted the position of the icon and the underlying panel a bit too so it match the one in unit pages.
      • The tech requirement panel is now set up similary as such panels are in the unit pedia pages with the new tooltip in place.
      • Small optimizations in unit and tech pedia page code.
     
    TaylorItaly, raxo2222 and KaTiON_PT like this.
  15. KaTiON_PT

    KaTiON_PT Emperor

    Joined:
    Jan 2, 2010
    Messages:
    1,084
    Location:
    Portugal
    Sorry for hijacking this thread Toffer but I wanted to show Raxo how easy it is to model. @raxo2222 a sneak peek, a bit rough on the edges, but still... :)
     

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      227.1 KB
      Views:
      33
    • 2.jpg
      2.jpg
      File size:
      275 KB
      Views:
      33
    • 3.jpg
      3.jpg
      File size:
      231 KB
      Views:
      28
    raxo2222 likes this.
  16. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,221
    Location:
    Norway
    Not a problem, my thread is always open for you to post anything C2C related in. ^^

    I don't know how current space features look like so I wouldn't know what you changed with the star cluster or if you switched out the entire thing even.
     
  17. KaTiON_PT

    KaTiON_PT Emperor

    Joined:
    Jan 2, 2010
    Messages:
    1,084
    Location:
    Portugal
    The star cluster is the terrain itself that I happened to spawn it on, the feature is what is new, here's the default model:

    EDIT: Now it's uploaded. :p
     

    Attached Files:

  18. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,221
    Location:
    Norway
    You see, I don't know squat about the space content of C2C. :lol:
     
    KaTiON_PT likes this.
  19. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,221
    Location:
    Norway
    PPIO v0.6.5
    SVN rev. 10700
    • Fixed some annoying interface bugs related to scrolling the unit plot list.
    PPIO v0.6.5.1 ▬ C2C v39 edition
    SVN rev. 10703
    • A minor tweak to the unit plot list code, a little polish one could call it.
     
    Last edited: Jul 20, 2019
    Anq and TaylorItaly like this.
  20. TaylorItaly

    TaylorItaly Warlord

    Joined:
    Oct 24, 2016
    Messages:
    264
    Gender:
    Male
    Location:
    Germany
    Thanks for the fix !!
     

Share This Page