Platy's Peculiar Pleasant Posh Python

I made a small change to the PlatyPedia which others may find useful.

I needed a better way of grouping the resources (bonuses) and discovered that the title for the bonus was just made by doing some string manipulation on the the BONUS CLASS name. (see pic 1 - old platyp.jpg)

I changed it so that you can specify your own text and it supports languages (see pic 2 - new platy_p.jpg)

Foe each Bonus Class you will need to have a new TEXT entry for example
Code:
        <BonusClassInfo>
            <Type>BONUSCLASS_FOOD_H_AND_G</Type>
            <iUnique>7</iUnique>
        </BonusClassInfo>
needs a text entry
Code:
    <TEXT>
        <Tag>TXT_KEY_BONUSCLASS_FOOD_H_AND_G</Tag>
        <English>1. Food - Hunted or Gathered</English>
        <French/>
        <German/>
        <Italian/>
        <Spanish/>
    </TEXT>

The text key is just TXT_KEY_ appended before the Bonus Class Type value.

Only one file is changed PlatyPediaMain.Py
 

Attachments

  • old platyp.jpg
    old platyp.jpg
    236.4 KB · Views: 254
  • new platy_p.jpg
    new platy_p.jpg
    242.4 KB · Views: 266
  • PlatyPediaMain.7z
    PlatyPediaMain.7z
    13.5 KB · Views: 216
Glad you guys are having fun. Haven't been on for quite awhile, since nothing much needs my attention.
Since the civ specific background is already fixed by DH, i trust him :)
As for the tech screen, I will probably look into transferring the code and upload here for u to test (lazy to reinstall)
 
Another thing I noticed is with the tech upgrade tree. When the resolution is low, the tech tree in platypedia will reduce the vertical distance between the techs, however when in the ordinary (F6) techtree this doesnt happen.

Read through the codes, actually codes regarding BOX_Y_SPACING are identical. Though the original tech tree screen has some filter options (such as era and researched or not) which may have affected it. Attach some screenshots if possible.
 
Its really strange, because yesterday the F6 techtree looked somehow ok, removing space on the Y axis, and I just wanted to confirm it today, but alas...
4vX9qj0.png




whereas on in the Platypedia it looks perfectly ok (for a 720p with 10 rows of techs ;))

E2zsHxE.png
 

Attachments

What font are you using in those screenshots, @vincentz? I like it.
 
Does water units appear in ALL UNITS filter?
Also, show one water unit which actually upgrade in unit info page.

As for Buildings, just use Platypedia on its own and you should see how it looks like using BTS data.
 
Did you enable python exceptions? There is obviously some error with the water units. Which stop the rest from loading too in ALL
 
Reuploaded Ultrapack.

1) Fixed Victory Screen with DH's
2) Fixed duplicated improvements in Tech bars for Pedia and Tech Screen

As for the other issues, Upgrade Tree bug is not so straight forward. That screen is a chore to look into, not written by me.

Didn't bother to reupload Platypedia. Will bother only after all issues gone.
 
Back
Top Bottom