Gaurav
Prince
- Joined
- May 14, 2006
- Messages
- 404
I am using XP SP2.
Okay make myself a member of the admins group, and then?
If it works when you are an admin, but not otherwise, you have a permissions issue.
I am using XP SP2.
Okay make myself a member of the admins group, and then?
Worked Plots: 10
Trade Routes: 2
Buildings: 8
Total (+50% for Capital): 30
#sevo raw commerce start
# EF fixed label texts
if RuffMod.get_boolean('RawCommerce', 'Enabled', False):
szBuffer = "Worked Tiles:"
screen.setLabel( "MaintenanceTextb", "Background", szBuffer, CvUtil.FONT_LEFT_JUSTIFY, 15, 141, -0.3, FontTypes.SMALL_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.show( "MaintenanceTextb" )
szBuffer = "Trade Routes:"
screen.setLabel( "MaintenanceTextc", "Background", szBuffer, CvUtil.FONT_LEFT_JUSTIFY, 15, 161, -0.3, FontTypes.SMALL_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.show( "MaintenanceTextc" )
szBuffer = "Buildings and Specialists:"
screen.setLabel( "MaintenanceTextd", "Background", szBuffer, CvUtil.FONT_LEFT_JUSTIFY, 15, 181, -0.3, FontTypes.SMALL_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.show( "MaintenanceTextd" )
# EF added getYieldRateModifier() (e.g. 50% for capital)
iYieldRateModifier = pHeadSelectedCity.getBaseYieldRateModifier(YieldTypes.YIELD_COMMERCE, 0)
# Show Total Net Commerce
if (iYieldRateModifier != 100):
szBuffer = u"<color=205,180,55,255>Total (%+d%% for Capital):</color>" %(iYieldRateModifier - 100)
else:
szBuffer = "<color=205,180,55,255>Total:</color>"
screen.setLabel( "MaintenanceTexte", "Background", szBuffer, CvUtil.FONT_LEFT_JUSTIFY, 15, 201, -0.3, FontTypes.SMALL_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.show( "MaintenanceTexte" )
iBuildingYield = 0
# I'd like to get the net plot info, but CyPlot.getYield is all !@#$ up. It doesn't seem to work at all.
# Calculate the building & Specialist info instead.
for ii in range (gc.getNumBuildingInfos()):
if (pHeadSelectedCity.hasBuilding(ii)):
iBuildingYield += gc.getBuildingInfo(ii).getYieldChange(YieldTypes.YIELD_COMMERCE)
# EF fixed labels in show() and changed getYieldRate() to getBaseYieldRate()
# Show Plot Commerces
szBuffer = u"%d %c" %( pHeadSelectedCity.getBaseYieldRate(YieldTypes.YIELD_COMMERCE) - iBuildingYield - pHeadSelectedCity.getExtraSpecialistYield(YieldTypes.YIELD_COMMERCE) - iNetTradeAmount, gc.getYieldInfo(YieldTypes.YIELD_COMMERCE).getChar())
screen.setLabel( "MaintenanceTextf", "Background", szBuffer, CvUtil.FONT_RIGHT_JUSTIFY, 225, 141, -0.3, FontTypes.SMALL_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.show( "MaintenanceTextf" )
# Show trade route commerces
szBuffer = u"%d %c" %( iNetTradeAmount, gc.getYieldInfo(YieldTypes.YIELD_COMMERCE).getChar() )
screen.setLabel( "MaintenanceTextg", "Background", szBuffer, CvUtil.FONT_RIGHT_JUSTIFY, 225, 161, -0.3, FontTypes.SMALL_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.show( "MaintenanceTextg" )
# Show Modifiers
szBuffer = u"%d %c" %( iBuildingYield + pHeadSelectedCity.getExtraSpecialistYield(YieldTypes.YIELD_COMMERCE), gc.getYieldInfo(YieldTypes.YIELD_COMMERCE).getChar())
screen.setLabel( "MaintenanceTexth", "Background", szBuffer, CvUtil.FONT_RIGHT_JUSTIFY, 225, 181, -0.3, FontTypes.SMALL_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.show( "MaintenanceTexth" )
# Show Total Net Commerce
szBuffer = u"<color=205,180,55,255>%d</color> %c" %( pHeadSelectedCity.getYieldRate(YieldTypes.YIELD_COMMERCE), gc.getYieldInfo(YieldTypes.YIELD_COMMERCE).getChar() )
screen.setLabel( "MaintenanceTexti", "Background", szBuffer, CvUtil.FONT_RIGHT_JUSTIFY, 225, 201, -0.3, FontTypes.SMALL_FONT, WidgetTypes.WIDGET_GENERAL, -1, -1 )
screen.show( "MaintenanceTexti" )
#sevo raw commerce end
Yes. I will be returning to this mod (one day) to update it with fixes and improvements. Too busy actually playing at the moment.Do you want me to keep posting these?
; Set to 1 for no python exception popups
HidePythonExceptions = 0
; Enable the logging system
LoggingEnabled = 1
; Overwrite old network and message logs
OverwriteLogs = 1
; Enable message logging
MessageLog = 1
What do you mean by 'cannot trade'? Remember, that this screen is not allowed to show spoiler information (eg a tech that the AI has that the human doesn't know the AI has via the trading screen).
Won't Trade
-----------
W W W
C
Was that the CIV specific random names component? I've had other reports of problems with that code. As far as I know, the other random name options work. This issue is on my list of known bugs.i tried the naming feature but it does not work. My newly built unit are just named warrior, archer, etc (warlords 2.08)
yes, it was.Was that the CIV specific random names component? I've had other reports of problems with that code. As far as I know, the other random name options work. This issue is on my list of known bugs.
Sadly it didn't work out, I got a lot of assert errors. It was worth a try