v21 bugs and crashes

For the sake of simplicity, just use "if iTeam != loopPlayer.getTeam()". Compare the integer team value for the player that is active to the integer team value of the players being looped over.

Thank you. I made that change and the Field seems to be working properly when I built it (tried it in a couple of games with WorldBuilder). Could someone let me know if there are any other errors that need fixing? This is the latest version of the .py file.
 
NPT
Spoiler :

Code:
def onNukeExplosion(argsList):
	'Nuke Explosion'
	pPlot, pNukeUnit = argsList

## NPT Start ##
	[COLOR="red"]if CyGame().getProjectCreatedCount(gc.getInfoTypeForString("PROJECT_NPT")) == 1:[/COLOR]
		iPlayer = pNukeUnit.getOwner()
		pPlayer = gc.getPlayer(iPlayer)
		[COLOR="Red"]if pPlayer.isNone() == false:[/COLOR]
			iTeam = pPlayer.getTeam()
			pTeam = gc.getTeam(iTeam)
			for iPlayerX in range(gc.getMAX_CIV_PLAYERS()):
				pPlayerX = gc.getPlayer(iPlayerX)
				if pPlayerX.isAlive() and iPlayerX != iPlayer:
					pPlayerX.AI_changeAttitudeExtra(iTeam, -1)
					if pPlayerX.AI_getAttitude(iPlayer) == gc.getInfoTypeForString("ATTITUDE_FURIOUS"):
						pTeamX = gc.getTeam(pPlayerX.getTeam())
						if pTeamX.canDeclareWar(iTeam):
							pTeamX.declareWar(iTeam, true, -1)
## NPT End ##

The reason it is causing trouble in C2C is because in BTS only Nuke units can be used to nuke, so pNukeUnit is valid and you can trace its owner, team etc.

This is the old version of NPT though, where war allies will still be angry and may even declare war on you while fighting the same enemy

It was mostly not working because I had not put the XML in.:blush:
 
The version of NPT codes you have is the old one where variables like iPlayer, pPlayer, iTeam and pTeam are defined before the check on whether NPT is built.

Thus, whether XML files of NPT are in, does not matter since those define variables statements will be called whether or not NPT exist
 
Some turns later it's fixed again. I don't have a save anymore from when it happened but it MIGHT be reproducible as I know one condition that was met: I had just set the Goat Herd in a newly set city and recalculated the assets that same turn. I'll check again next time I set a new city.

Cheers
 
Ground water well, Why can it Not be built on Barren, Barren Savanna, Desert, and Desert dunes? Also not able on Ice, permafrost, and polar outcroppings. Seems especially strange when there is a Fresh water resource on adjacent tile.

JosEPh

Edit: http://forums.civfanatics.com/showpost.php?p=11292134&postcount=5243 this is link to post on strange polar outcropping choices and on Settler/pioneer settle choice. Moved/linked per DH's request
 
The Barley Farm requires Wheat and Wine in city vicinity. You can't build it if you have Barley in the city vicinity... (Presumably a holdover from before there was a Barley resource on the map.)
 
@ DH:

Did something happen to the Free Gather upon completing Grain gathering? I dont see the pop-up(not a pop-up, but the other words doesnt come to mind for now) reading that any civ gets it anymore, and i know its still there in the python, i see it??
 
Here are some Bugs I saw during my last game:

When I reserched Athletics or Horesbackriding, I didn#t get a great prohphet, and I was definetly the first who reserched it.

When I told my Elephant Workers to automatic build a net to cities and resources, they stand still, but there where unconnectet ressources which I could use.

I'm not sure, if its a bug, but the AI build the Olympic Games VERY late in the Game.

And not really a bug I think, but very disturbing: I'm in an alliance with another nation and they give me alcohol every turn. I accept it, but they got 30 times the alcohol ressource and they give it 30 times to me -.- same with boulliton (the thing you get from Ironsmith and others smiths.

Sometimes the game says "We biuld a Fishing boat fleet" and I click the only option: "fine, we dont have to do it on our own!" but nothing happens...
 
@ DH:

Did something happen to the Free Gather upon completing Grain gathering? I dont see the pop-up(not a pop-up, but the other words doesnt come to mind for now) reading that any civ gets it anymore, and i know its still there in the python, i see it??

It is still happening, usually someone else gets it 5 turns before I would have.

Here are some Bugs I saw during my last game:

When I reserched Athletics or Horesbackriding, I didn#t get a great prohphet, and I was definetly the first who reserched it.

The XML for Tengri has the code for the horseback riding to give a Prophet in it. Did you remove or turn off that religion? The standard RoM religions are handles differently.

Sometimes the game says "We biuld a Fishing boat fleet" and I click the only option: "fine, we dont have to do it on our own!" but nothing happens...

This has been occurring for ages we need to have Ori look at it.
 
Hi all,

I think that there is a little annoying bug with the automatic hunt : in my games (since v21) Terrestrial units (player and AI) are staying near the coast. I suppose they are trying to hunt the fishes or sea-crocodiles nearby. So i send my hunters to the middle of the continent but if i put them again in automation, a few turns later some are back to the coast.

I also wanted to thanks all the moders for this incredible work. I'm an old civ player starting in the early 90's on amiga, since then i play all versions but C2C is really the game i was expected !:worship:

Hope you'll excuse me for any syntax error in my poor english
 
When you discover Archery you can no longer build Canoes, which are replaced by War Canoes. However War Canoes have a national limit of 5, but Canoes are unlimited. So your fleet size is limited until you discover Naval Warfare and unlock the unlimited War Galley.

In practice I suspect the impact of limiting the War Canoe fleet size is minor for most/all players, so I would rate this as a very minor bug.
 
When you discover Archery you can no longer build Canoes, which are replaced by War Canoes. However War Canoes have a national limit of 5, but Canoes are unlimited. So your fleet size is limited until you discover Naval Warfare and unlock the unlimited War Galley.

In practice I suspect the impact of limiting the War Canoe fleet size is minor for most/all players, so I would rate this as a very minor bug.

Canoes should also have a limit of 5. You can also have 5 war canoes and 5 canoes since when you have all the war canoes you can build canoes again.
 
Hi all,

I think that there is a little annoying bug with the automatic hunt : in my games (since v21) Terrestrial units (player and AI) are staying near the coast. I suppose they are trying to hunt the fishes or sea-crocodiles nearby. So i send my hunters to the middle of the continent but if i put them again in automation, a few turns later some are back to the coast.

I also wanted to thanks all the moders for this incredible work. I'm an old civ player starting in the early 90's on amiga, since then i play all versions but C2C is really the game i was expected !:worship:

Hope you'll excuse me for any syntax error in my poor english

Welcome to C2C and Civfanatics! :D

JosEPh :)
 
There are two different "Attila - King of the Huns" Hero units.
On requires the Huns culture resource, the other only requires Native Culture (European).
One is strength 11, the other is 10.
One claims to be female.
And various other differences.
 
There are two different "Attila - King of the Huns" Hero units.
On requires the Huns culture resource, the other only requires Native Culture (European).
One is strength 11, the other is 10.
One claims to be female.
And various other differences.

ahaaha, yeah i know, one is my testing unit, and the other is the actual Hero, i keep forgetting about them all the time, i must have been reminded now ten times, my bad.:blush::blush:
 
:wallbash:It is so painfully slow and hangs are so often and so long that I do give up on this game. There is something seriously wrong with automation of units. I have often situation when i get switched after the turn to one of my active units to do some action and than suddenly I am switched to the movie of some of my automated units fighting with sea creature. Shouldn't it be done already before i take control?

I hope someone will look into savegame and tell me if my game got too big or what....My rig has lowest windows score of 7.8 ;) plenty of memory everywhere powered by 980X

I have autosave set to 1turn so maybe that is it.... is my system ssd not adequate?

It is such a nice game..... going so well...

See SVN thread. I believe I have fixed this (and generated some speed ups generally, though they are only really pronounced in certain problem maps, of which yours was one).
 
attachment.php


I am encountering invisible boats in the water. You can see the ripples of where they should be but not the boat themselves. Note this is for normal "temperate" coast. Note I have not changed any graphics setting in months. I suspect its related to the new ocean types, since that the only thing new.
 
Rev 1917:

When having units on automate and no units moved manually that turn the turn does not end because all automated units are in a state where they are waiting for orders.
 
Back
Top Bottom