Platy's Peculiar Pleasant Posh Python

What was the bug ?

edit : btw, a small request, a "bug" report and a question for PlatyUI.

Request : It would be nice if the eye next to plus/minus to change view would set it to the default (iirc its 42) by clicking it. And shouldnt it be the other way around (+ zooms in and - zooms out)?

Bug : Sometimes when using mouse to end turn on the end turn button, nothing happens. Clicking a second or third time usually ends the turn.

Question : In city screen the buildings section is quite small compared to the space. I think the space is reserved for some of your other mods, which atm Im not using. Any idea where I can change it to be bigger?

Spoiler :
attachment.php
 
1) Bug was undefined variable in defense text

2) +/- actually refers to the FOV value, which unfortunately means the opposite of zoom in/out.

3) Fix Building table list to adjust with screen resolution.
 
1) Bug was undefined variable in defense text

2) +/- actually refers to the FOV value, which unfortunately means the opposite of zoom in/out.

3) Fix Building table list to adjust with screen resolution.

2) yup, but not everyone knows about field of view. I think it would be more natural/aesthetically to have + (zoom in/Narrow FOV) // Eye (Default FOV) // - (Zoom out/Widen FOV)?

attachment.php


Another thing I thought about (not considered thoroughly though ;)) was to have era+civ specific backgrounds for immersion. It would bloat the UI pack size for sure though, but I'd imagine same motive, but different effects. examples :

Ancient (Rock/Cave)
Classical (Marble)
Medieval (Papyrus/Parchment)=Current
Renaissance (Fabric Pattern)
Industrial (Red brickwall?)
Modern (Steel)
Future (Circuit board)

...(I'll come back with examples later today)
 
It is easy to have era OR civ specifc backgrounds.
But if you want era AND civ specific backgrounds.... you need 7 x 34 pics...

I definitely can't be bothered to find that many :D
Coding is easy though.
 
I wouldn't ask you to make them :nope:. I would do myself. I already have all the pictures in photoshop layered with the parchment. Just needed to find a picture to overlay instead of parchment.

something like this :
Ancient (Rock/Cave)
Classical (Marble)
Medieval (Papyrus/Parchment)=Current
Renaissance (Fabric Pattern)
Industrial (Rusty iron)
Modern (Steel)
Future (Circuit board)

alternative suggestions are VERY welcome ;)
 
such that certain promotions can be accessed only by specific civilizations.


Hey Ho, my problem is, the dummy Tech is also shown in the Pediascreen!
But have add the <bGraphicalOnly>1</bGraphicalOnly> Tag in the PromotionInfo (and updated my Unitschema) to the Dummy tech...

Question, i have add a tag to my DLL (and PromotionInfo) wich allows civs to get specific Promotions...<CivPrereq>CIVILIZATION_SWARM</CivPrereq>...

Is it possible that the your Python funktion, wich place the CivIcon to the PediaPromotionScreen for the Promotion, use this tag...???

If i understund the Python Code rigtht, your code do the same, but without sdk...and thats not necceserry

Code:
## Unique Promotions ##
		sCiv = gc.getCivilizationInfo(unit.getCivilizationType()).getType()
		iPromo = gc.getInfoTypeForString("PROMOTION_" + sCiv)
		if iPromo > -1:
			unit.setHasPromotion(iPromo, True)
## Unique Promotions ##

It should be anouth to delate this fuction in the Evenmanager right?!


I only need the graphic code of your function wich place the icon of the civ...

Hope im understandable...
 

Attachments

  • Bug.jpg
    Bug.jpg
    366.8 KB · Views: 92
Hooray I got it to work!! (more or less...)

I now need to go through and get rid of all the BUG bugs and attempt to 'harmonise' the situation!

I was wondering though, with the city screen would it be possible to add your 'eye zoom' function to the corner of the 'map display' in the city screen so that you can also zoom in and out to get enough of the map showing when in city screen so that you can adjust it to get your full fat cross or more or less?

Rather than having to leave the city screen, adjust then return to city screen.

Also I noticed with some of your buttons, there is no popup name box.

For exmple the ones along the top of the screen, the bts ones have the popup but yours don't, I am wondering did you program to have them (i.e. is it a bug on my end) or not?

Sorry me again... I am afraid you may be getting a lot of messages from me in the coming days!

Your religion screen is currently not compatible with my game, and I was wondering if you could help me figure out a solution.

So I think I see the problem:
sFounded = gc.getTechInfo(gc.getReligionInfo(i).getTechPrereq()).getDescription()

in order to get the religion info (if I am reading this right) it looks for the tech that founds the religion right?

In my game religions are founded from a building (a national wonder) called the Capital and it then founds the religion based on the Civ that built it.

Python code for Religion Founding:
Spoiler :
Code:
   def onBuildingBuilt(argsList):
      pCity, iBuildingType = argsList
      iCapitol =gc.getInfoTypeForString("BUILDING_CAPITOL")
      if iBuildingType != iCapitol: return
      iPlay = pCity.getOwner()
      pPlay = gc.getPlayer(iPlay)
      # Perform string operation to get corresponding religion name, eg
      # "TXT_KEY_CIV_HOPEVLLE_DESC" => "RELIGION_HOPEVILLE"
      # For v11, fix bug found by Dresden, v10 feedback thread, post 5
      # Was: sCivdesc = pPlay.getCivilizationDescriptionKey()
      pCiv = gc.getCivilizationInfo(pPlay.getCivilizationType())
      sCivdesc = pCiv.getTextKey()
      sReldesc = sCivdesc.replace("TXT_KEY_CIV_", "RELIGION_")
      sReldesc = str(sReldesc.replace("_DESC", ""))
      iRel = gc.getInfoTypeForString(sReldesc)
      if iRel != -1:
         CyGame().setHolyCity(iRel, pCity, 1)
         pPlay.convert(iRel)
         furyLog(gc.getReligionInfo(iRel).getText() + " founded\n")
      else:
         furyLog("Unable to convert " + sCivdesc + " to religion\n")

Do you think you might be able to provide me with some code that code help me fix this issue?
To get it looking for the civ and built building to then get the religion info?
To get the religion advisor working again?
 
@Monaldino
If you mean the dummy tech itself is still displayed in the pedia tech section, it depends on what kind of pedia are you using. AFAIK, BTS pedia is problematic with graphical only techs.

As for the civ requirement for promotion, if you have added a new tag via dll, then why do you even need the dummy tech?

The event manager code is to place a dummy civ specific promotion, so if you edited dll, it is not necessary either.

As for the civ icon in promo pedia, it will be easy if you exposed the new tag to python.
 
@Lib
Whatever are the buttons at top of screen?

@Religion
Short Solution:
sFounded = ""
Long Solution:
Lazy to read atm
 
Well, they do.
If you can't see any hover text for any of the new buttons elsewhere including WB...
It means BUG is still haunting you disabling the getWidgetHelp usage in CvGameUtils.

And simply check Ultrapack standalone to compare and see if it is your end :D
 
Yeah I thought it was probably a BuG Haunting:D

But if I compare it myself then I don't get to pester you!! :shake::hammer:

What I really want is to be able to isolate the BuG 'Actual Effects' for buildings and commerce, and then just rip everything else out as that is the only bit I think I really want to keep :D
 
Something like this'ish ?

Or would it be better with OR
either civ specific OR era specific?

Ancient Rock
Spoiler :
LQgCOCw.jpg

Classical Marble
Spoiler :
HzPvP0N.jpg

Medieval Parchment
Spoiler :
DZxKRNc.jpg

Renaissance Silk
Spoiler :
QZ7QeHu.jpg

Industrial Rust
Spoiler :
0BCtqrl.jpg

Modern Steel
Spoiler :
o1JQ1Ck.jpg

Future Circuit
Spoiler :
Iq33GPS.jpg
 
@Vincent
Ah you meant the overlay pic, not the background itself :D

I thought you meant, for instance China
Ancient background would probably be Great Wall
Classical maybe Silk Road
Modern maybe Shanghai Tower
etc

That would be hard to find suitable pics :D
I am fine with your idea, but it will indeed still require 200+ pics :D
 
@Monaldino
If you mean the dummy tech itself is still displayed in the pedia tech section, it depends on what kind of pedia are you using. AFAIK, BTS pedia is problematic with graphical only techs.

As for the civ requirement for promotion, if you have added a new tag via dll, then why do you even need the dummy tech?

The event manager code is to place a dummy civ specific promotion, so if you edited dll, it is not necessary either.

As for the civ icon in promo pedia, it will be easy if you exposed the new tag to python.

Thanks again for the IDEA!!!
15min later...
 

Attachments

  • Civ4ScreenShot0657.JPG
    Civ4ScreenShot0657.JPG
    217.5 KB · Views: 190
@Vincent
Ah you meant the overlay pic, not the background itself :D

I thought you meant, for instance China
Ancient background would probably be Great Wall
Classical maybe Silk Road
Modern maybe Shanghai Tower
etc

That would be hard to find suitable pics :D
I am fine with your idea, but it will indeed still require 200+ pics :D

yeah, its a bit much with 200+ pics (not to make it, as it requires a small function in photoshop) but it will require a lot of space. Especially because the previous pics were low'ish resolution, and I wanted to up them a bit to 2048x1024 (1025KB/pic) instead of 1024x512 (257KB/pic). So I decided to make Era OR civ specific.

Ancient rock :
Spoiler :
Gdu00O8.jpg

Classical Marble
Spoiler :
QNPL1Ve.jpg

Medival Parchment

Renaissance Silk
Spoiler :
DW2VLzp.jpg

Industrial Bolted metal plate
Spoiler :
zaPZJkU.jpg

Modern Steel
Spoiler :
sogKkH5.jpg

Future Circuitboard
Spoiler :
WorEESg.jpg


Link to image gallery
 
the simplest thing to do if you want to go through with it is release it as an add on pack, that you can merge into the UI with all the right folder structure etc. Some people may enjoy it, and with the ridiculous size of hard drives these days and download speeds, the size may not be that big of a deal to a lot of people.
 
Era AND Civ specific in your style may be problematic for other users because they wouldn't be able to make similar ones for new civs in their mod on their own since they don't have access to the overlay pics.

Actually, Era OR Civ was in Ultrapack in old edition, where I simply use the era movie as the era specific background. Putting the codes back is pretty simple.
 
Back
Top Bottom