######################################## AUDIO OPTIONS ########################################
def handleVolumeSlidersInput ( argsList ):
"Handles Volume slider input"
iValue, szName = argsList
iVolumeType = int(szName[szName.find("_")+1:])
iMax = UserProfile.getVolumeStops()
if (iVolumeType == 0): # Master Volume
UserProfile.setMasterVolume(iMax - iValue)
elif (iVolumeType == 1): # Music Volume
UserProfile.setMusicVolume(iMax - iValue)
elif (iVolumeType == 2): # Sound Effects Volume
UserProfile.setSoundEffectsVolume(iMax - iValue)
elif (iVolumeType == 3): # Speech Volume
UserProfile.setSpeechVolume(iMax - iValue)
elif (iVolumeType == 4): # Ambience Volume
UserProfile.setAmbienceVolume(iMax - iValue)
elif (iVolumeType == 5): # Interface Volume
UserProfile.setInterfaceVolume(iMax - iValue)
return 1
def handleVolumeCheckboxesInput ( argsList ):
"Handles checkbox clicked input"
bValue, szName = argsList
iVolumeType = int(szName[szName.find("_")+1:])
if (iVolumeType == 0): # Master Volume
UserProfile.setMasterNoSound(bValue)
elif (iVolumeType == 1): # Music Volume
UserProfile.setMusicNoSound(bValue)
elif (iVolumeType == 2): # Sound Effects Volume
UserProfile.setSoundEffectsNoSound(bValue)
elif (iVolumeType == 3): # Speech Volume
UserProfile.setSpeechNoSound(bValue)
elif (iVolumeType == 4): # Ambience Volume
UserProfile.setAmbienceNoSound(bValue)
elif (iVolumeType == 5): # Interface Volume
UserProfile.setInterfaceNoSound(bValue)
return 1
You need to read the BUG documentation, it explains how to merge/split code so you can use the BUG modular Python.@platyping, how exactly do you merge in True Prophets with the BUG Python?
Hello keldath, i didn't add anything anywhere. I installed it, without any change, as an independent mod for testing it before merging it with my own mod.its probably an missing xml tag in what ever you added, maybe a unit, maybe a leader/civ.
look for >< tags of, >none< where you cant put >none<
Assert Failed
File: CvGlobals.cpp
Line: 3499
Expression: strcmp(szType, "NONE")==0 || strcmp(szType, "")==0
Message: info type GRAPHICOPTION_SPECIFIC_BACKGROUND not found, Current XML file is: xml\GameInfo/CIV4EspionageMissionInfo.xml
Assert Failed
File: CvGlobals.cpp
Line: 3499
Expression: strcmp(szType, "NONE")==0 || strcmp(szType, "")==0
Message: info type GRAPHICOPTION_TRANSPARENT_PANEL not found, Current XML file is: xml\GameInfo/CIV4EspionageMissionInfo.xml
----------------------------------------------------------
## Unique Background ##
sBackGround = CyArtFileMgr().getInterfaceArtInfo("MAINMENU_SLIDESHOW_LOAD").getPath()
pPlayer = gc.getPlayer(CyGame().getActivePlayer())
sType = gc.getEraInfo(pPlayer.getCurrentEra()).getType()
if CyUserProfile().getGraphicOption(gc.getInfoTypeForString("GRAPHICOPTION_SPECIFIC_BACKGROUND")):
sType = gc.getCivilizationInfo(pPlayer.getCivilizationType()).getType()
sNewArt = CyArtFileMgr().getInterfaceArtInfo("ART_DEF_BACKGROUND_" + sType)
if sNewArt:
sBackGround = sNewArt.getPath()
screen.addDDSGFC("ScreenBackground", sBackGround, 0, 0, screen.getXResolution(), screen.getYResolution(), WidgetTypes.WIDGET_GENERAL, -1, -1 )
## Unique Background ##
## Unique Background ##
screen.addDDSGFC("ScreenBackground", PlatyOptions.getBackGround(), 0, 0, screen.getXResolution(), screen.getYResolution(), WidgetTypes.WIDGET_GENERAL, -1, -1 )
## Unique Background ##
I believe this is by design. It tries to fit all the techs vertically on the screen if possible. It makes it easier for the player to navigate if there is only one scroll direction.Another thing I noticed is with the tech upgrade tree. When the resolution is low, the tech tree in platypedia will reduce the vertical distance between the techs, however when in the ordinary (F6) techtree this doesnt happen.
Thanks, will try thatTry putting import PlatyOptions at the top of that module of code
Yup, I know, ROM had it, but Platy didnt in the beginning so I suggested it a long time agoI believe this is by design. It tries to fit all the techs vertically on the screen if possible. It makes it easier for the player to navigate if there is only one scroll direction.