[PYTHONCOMP] Specialist Stacker

Caesium said:
TheLopez, I attached my CvMainInterface.py

Maybe you could tell me, where I am wrong.

Could you post an image so I can see what you are seeing?
 
Okay, getting back to my original issue. I have cleared up the multiple files being loaded.

But my specialist including the 3 new folks, are in a single column on the right. And when I do a mouse-over on the top 3 new specialists in the city window, I get no text like I do on the other specialists.

How can that be fixed? What specific file addresses that?

Thanks.
 
OK, here's a screeny.
Look at the highlighted specialist. He isn't in the correct line.
 

Attachments

  • Zwischenablage01.jpg
    Zwischenablage01.jpg
    5.6 KB · Views: 207
Caesium said:
OK, here's a screeny.
Look at the highlighted specialist. He isn't in the correct line.


Well I just downloaded the specialist stacker without anything and I do not see anything wrong with it.

I also downloaded your CvMainInterface.py file and check it out... it seems to be missing a lot, and I mean a lot of missing chunks of the specialist stacker code. What version of the specialist stacker code did you start out with? Was it the Civ4 version or Warlords version? What mods are you trying to combine?
 
I checked and compared the whole code for the specialist stacker and imho all is taken over correctly. I tried to implement v0.7, the actual version.
The rest of the implemented code is commented.
 
Well I just checked the CvMainInterface.txt that you uploaded and updateCitizenButtons method is completely different than the one found in the one found in Specialist Stacker v0.7.
Yours starts out like this:
Code:
	def updateCitizenButtons( self ):
	
		global MAX_CITIZEN_BUTTONS
		
		bHandled = False
	
		screen = CyGInterfaceScreen( "MainInterface", CvScreenEnums.MAIN_INTERFACE )

		# Find out our resolution
		xResolution = screen.getXResolution()
		yResolution = screen.getYResolution()

		for i in range( MAX_CITIZEN_BUTTONS ):
			szName = "FreeSpecialist" + str(i)
			screen.hide( szName )
			szName = "AngryCitizen" + str(i)
			screen.hide( szName )

While v0.7 starts out like this:
Code:
	def updateCitizenButtons( self ):
	
		global MAX_CITIZEN_BUTTONS
		global MAX_SUPER_SPECIALIST_BUTTONS
		global MAX_ANGRY_CITIZEN_BUTTONS
		global g_iSuperSpecialistCount
		global g_iAngryCitizensCount
		
		bHandled = False
	
		screen = CyGInterfaceScreen( "MainInterface", CvScreenEnums.MAIN_INTERFACE )

		screen.hide( "SpecialistBackground" )
		screen.hide( "SpecialistLabel" )


		# Find out our resolution
		xResolution = screen.getXResolution()
		yResolution = screen.getYResolution()

		for i in range( g_iSuperSpecialistCount ):
			szName = "FreeSpecialist" + str(i)
			screen.hide( szName )
		for i in range( g_iAngryCitizensCount ):
			szName = "AngryCitizen" + str(i)
			screen.hide( szName )

This isn't the only inconsistency between the two versions. I suggest you copy the whole updateCitizenButtons method exactly and replace yours with it.
 
Could you see total additions from each type of specialist (like in warlords) and a total from all of the specialists together.
 
Zuul said:
Could you see total additions from each type of specialist (like in warlords) and a total from all of the specialists together.
Is this a feature request Zuul???
 
I thought I already did :p
 
Zuul said:
Could you see total additions from each type of specialist (like in warlords) and a total from all of the specialists together.
I second this. That was a handy feature in Warlords, and it was a shame to lose it when using your excellent Great Doctor mod. Not gamebreaking, but still a shame...

Just want to say thanks as well, your mods add several fantastic new features to the game which really enrich it for me...
 
Updated Warlords version to be compatible with the v2.0.8.0 patch.
 
I'm seeing a couple problems with the latest version (0.8.1w) in Warlords v2.08:

1. "Highlighting Forced Specialists" doesn't work. Nothing gets highlighted.

2. After setting "Stack Angry Citizens" to true, an angry citizen icon appears for each gross unhappy face (not net unhappy face as it should be). For example, if I have +7 happy and +7 unhappy evening out, I still see 7 angry citizen icons in the city.

I also noticed that the HOF 2.08 mod removed the Specialist Stacker, mentioning some compatibility problems. Maybe they're related.
 
So is there an updated version for BtS?
 
Anyone? Would the WL code work for BtS as well?
 
Top Bottom