Need help merging

Sure, you can mess with the numbers in lines 531 to 538 ... my suggestions are in bold, but you can try changing the numbers:

Code:
                        extraUnits = [B]int( (3*(newPlayer.getCurrentEra()+1))/2 - 2*i )[/B]
                        if( len(closePlayers) == 0 ) : # Viking style, no horsies (but still allows elephants ... )
                            if( not iCounter == UnitTypes.NO_UNIT ) : pyNewPlayer.initUnit(iCounter,cityX,cityY,2+game.getSorenRandNum([B]2[/B]+extraUnits,'BarbarianCiv: give military infantry'))
                            if( not iAttack == UnitTypes.NO_UNIT ) : pyNewPlayer.initUnit(iAttack,cityX,cityY,2+game.getSorenRandNum([B]2[/B]+extraUnits,'BarbarianCiv: give military mobile'))
                        else :
                            if( not iCounter == UnitTypes.NO_UNIT ) : pyNewPlayer.initUnit(iCounter,cityX,cityY,1+game.getSorenRandNum([B]1[/B]+extraUnits,'BarbarianCiv: give military infantry'))
                            if( not iMobile == UnitTypes.NO_UNIT ) : pyNewPlayer.initUnit(iMobile,cityX,cityY,1+game.getSorenRandNum([B]1[/B]+extraUnits,'BarbarianCiv: give military mobile'))
                            if( not iAttack == UnitTypes.NO_UNIT ) : pyNewPlayer.initUnit(iAttack,cityX,cityY,1+game.getSorenRandNum([B]1[/B]+extraUnits,'BarbarianCiv: give military mobile'))

Explanation:

The first line is now set up to give more units for later eras, while keeping things constant for the first two eras. The constant factors on the subsequent lines were reduced so that there would be fewer units.

Thanks a whole lot:goodjob:
I really appreciate the help!;)


Now if someone could help on this one?

http://forums.civfanatics.com/showpost.php?p=8324986&postcount=95
 
OK i just had a different python error in a different mod?
Traceback (most recent call last):

File "CvScreensInterface", line 719, in forceScreenRedraw

Code:
# Main Interface Screen
	if ( argsList[0] == MAIN_INTERFACE ):
		mainInterface.redraw()

File "CvMainInterface", line 975, in redraw

Code:
# Citizen Buttons Dirty
			[B]self.updateCitizenButtons()[/B]
			CyInterface().setDirty(InterfaceDirtyBits.CitizenButtons_DIRTY_BIT, False)

File "CvMainInterface", line 2107, in updateCitizenButtons

Code:
szName = "FreeSpecialist" + str(iCount)
						[B]screen.setImageButton( szName, gc.getSpecialistInfo(i).getTexture(), (xResolution - 74  - (stackWidth * iCount)),[/B] yResolution - 203, 24, 24, WidgetTypes.WIDGET_FREE_CITIZEN, i, 1 )
						screen.show( szName )
						bHandled = true

RuntimeError: unidentifiable C++ exception
ERR: Python function forceScreenRedraw failed, module CvScreensInterface
 
OK i just had a different python error in a different mod? Since NO ONE wants to help me in the above posted error.

:nope: no one can help.
You can be sure, that most people, who look in this subforum, will also look into most of the threads, and give their comments.

The issue itself doesn't seem to be a python problem, it's more a problem with the drawing function, which sometimes fails, without a specific reason.
 
:nope: no one can help.
You can be sure, that most people, who look in this subforum, will also look into most of the threads, and give their comments.

The issue itself doesn't seem to be a python problem, it's more a problem with the drawing function, which sometimes fails, without a specific reason.

No No, post 101, second part of it, ok, sorry if it came across as rude or anything, wasnt intentional.
 
Top Bottom