• Civilization 7 has been announced. For more info please check the forum here .

Platy's Peculiar Pleasant Posh Python

Platypedia: I see no movies. No errors, just an empty screen.

Checked the Standalone: same.
 
@Love and Hate
All it does is adjust Attitude for certain Leaders or Civs at first meeting.
If it is custom game, doesn't sound fun.
If it is scenario, the WB does that.

true - but - the world builder wont save the attitude for the entire game right?

love and hate - will make the hating civ to "hate" the hated civ for the entire game duration - and its attitude, war planing to shift from hate - to hate less :)

or something like that :)
 
Because you disabled movies...

Ah ah! You're right, I'm not on my usual computer, I disabled them here. Forgot about it, I never play on this old laptop, just test stuff.

Now it works... :cool:
 
Not sure what you meant by permanent...
Anything adjusted by the WB is one time adjustment, just like adding units, give gold, activate golden age.

Of course, if you adjust the attitude from furious to pleased, it does not stay pleased permanently, as it is just a one time adjustment, which will then be subject to in game changes again.
 
Platypedia 2.0 Sneak Preview

A Pedia that fits every size





A Pedia that shows more info



 
well done platy, looks great.

say - this code from pesky:

## Select avaialble plots ##
lLuckyPlot = []
for x in xrange(pCity.getX() - self.iRadius, pCity.getX() + self.iRadius + 1):
for y in xrange(pCity.getY() - self.iRadius, pCity.getY() + self.iRadius + 1):
pLoopPlot = CyMap().plot(x, y)
if pLoopPlot.isNone(): continue
if pLoopPlot.isImpassable(): continue
if pLoopPlot.isCity(): continue
if pLoopPlot.isWater(): continue
if pLoopPlot.getTeam() != iTeam: continue
lLuckyPlot.append(pLoopPlot)

the "continue" means skip? not to spawn on this plot?
if i wat the spawn to occur on certain terrain- only desert per say?


ANOTHER from pesky -

## Based on Era, Ancient >>> Future ##
self.lUnits1 = ["UNITCLASS_BURROW0","UNITCLASS_BURROW1", "UNITCLASS_BURROW1", "UNITCLASS_BURROW3", "UNITCLASS_BURROW3", "UNITCLASS_BURROW4", "UNITCLASS_BURROW4"]
self.lUnits2 = ["NONE","NONE", "NONE", "NONE", "NONE", "NONE", "NONE"]
self.lUnits3 = ["NONE","NONE", "NONE", "NONE", "NONE", "NONE", "NONE"]
self.lUnits4 = ["NONE","NONE", "NONE", "NONE", "NONE", "NONE", "NONE"]

i did this - those units are only buildble by barbarian civ - al other civs have >none< on this unit class,

but - the units pesky bards are spawning are none of the one i listed -i picks one of the late game units and spawns it.

what have i done wrong? (i have 7 eras in game - like regular)
 
One final idea (this is more of a request than a meaningless idea this time)
Would it be possible to make a civics screen that only displays civics that can currently be adopted, or just a much-much-larger civics screen? I am trying to make a mod with unique civics, without using SDK, and this would be insanely helpful.
 
@Merkava
Ultrapack already comes with a civic screen
Big enough to display 2 billion Civics.
Should be enough for you.

@Keldath
Yeah, continue means hack care.
Add another if condition before the append statement.
If Terrain is Desert: Append the plot.

Because it reads UNIT not UNITCLASS
 
@Merkava
Ultrapack already comes with a civic screen
Big enough to display 2 billion Civics.
Should be enough for you.

Oh yes! Thank you very much. 2 billion should be enough. :crazyeye:
 
Updated Ultrapack with Pedia 2.0 Beta
The Pedia is already in optimal conditions, but there are some other things I want to implement later.
 
@Keldath
Yeah, continue means hack care.
Add another if condition before the append statement.
If Terrain is Desert: Append the plot.


if pLoopPlot.isNone(): continue - what does isnone mean?
if pLoopPlot.isImpassable(): continue
if pLoopPlot.isCity(): continue
if pLoopPlot.isWater(): continue - if i delete this - it will create pesky barbs on water plots?if pLoopPlot.getTeam() != iTeam: continue

can you show an example for not spawn in a certain terrain type?
ifploopplot.isdesert(): continiue
i guess theres another part needs to be written somewhere to define the terrain? self.desert of something? (i have no idea how to write) :)


Because it reads UNIT not UNITCLASS

wow im such an idiot, must have worked too late yesterday.
thanks my friend.

anyway, many thanks for all the help.
 
None checks if plot is valid, although there is a shorter way.
Those units do not swim, so exclude water plots.

if pLoopPlot.getTerrainType() == gc.getInfoTypeForString("TERRAIN_XYZ"):
 
ah nice,

ah nice, ill add this to the list.

so basically - if i duplicate yhe entire python files of pesky - and i call it - pesky2,
and i define water units - i can get 2 pesky barbs? 1 that will spawn units on water and one that will spawn land ones (your current code) ?
 
I can of course, alter the codes to accomodate Naval Units and allow them to spawn on Water Plots while all others spawn on Land Plots.

The reason why I ignore them is to make life simple so that all units can spawn on same plot, so that they will be stronger rather than spread all over the place and die like flies.
 
You talking about spawn, i want something similar like from FFH age of ice (official BTS mod comes with BTS installation), Feature spawn units! In FFH2 that done in SDK i think.

IMAGE:



this is FEATURE_HUT from picture (from FFH age of ice), i am found it in all (python files): CvGameUtils.py and CvModEvents.py and in xml (default).. How i can merge this (python), advice please? Or can you make some py. component like this which will spawn units from improvements or features, which we can modify how we want?

Platy --> :egypt:
 
Implementation is easy, making it efficient is not.
What it does is simply loop through every plot every turn, check for the hut and spawn units
 
Top Bottom