okay I copied all the information from the bosh.py and created a new one called mybosh.py
I yanked out all of the duplicated informations for the bash patch and created a new field Game Settings2
I cant get it to run but when i go and right click on the bash patch and click update my new menu i named game settings2 does not appear on the list.
It compiles right and bash loads with no problems but it does not show my changes or give a error report
I did a search for bosh and everywhere that there is a import function
CODE
Import bosh
I added
CODE
Import mybosh
Everywheres that I found
CODE
import bosh, basher
I added
CODE
import mybosh, basher
Everywheres that I found
CODE
import bosh, bush
from bosh import _, Path
I added
CODE
import mybosh, bush
from mybosh import _, Path
I am currently rewriting this so this is still unfinsihed but shoudl still be fully functional.
CODE
class GmstTweak(MultiTweakItem):
#--Patch Phase ------------------------------------------------------------
def buildPatch(self,patchFile,keep,log):
"""Build patch."""
eids = ((self.key,),self.key)[isinstance(self.key,tuple)]
for eid,value in zip(eids,self.choiceValues[self.chosen]):
gmst = MreGmst(('GMST',0,0,0,0))
gmst.eid,gmst.value,gmst.longFormids = eid,value,True
formid = gmst.formid = gmst.getOblivionFormid()
patchFile.GMST.setRecord(keep(formid),gmst)
if len(self.choiceLabels) > 1:
log('* %s: %s' % (self.label,self.choiceLabels[self.chosen]))
else:
log('* ' + self.label)
class GmstTweaker(MultiTweaker):
"""Tweaks miscellaneous gmsts in miscellaneous ways."""
group = _('Tweakers')
name = _('Game Settings2')
text = _("Modify miscellaneous game settings.")
tweaks = sorted([
GmstTweak(_('Arrow Litter Count'),
_("Maximum number of spent arrows allowed in cell."),
'iArrowMaxRefCount',
('50',50),
('100',100),
('500',500),
),
GmstTweak(_('Arrow Litter Time'),
_("Time before spent arrows fade away from cells and actors."),
'fArrowAgeMax',
(_('2 Minutes'),120),
(_('3 Minutes'),180),
(_('5 Minutes'),300),
(_('10 Minutes'),600),
(_('30 Minutes'),1800),
(_('1 Hour'),3600),
),
GmstTweak(_('Arrow Recovery from Actor'),
_("Chance that an arrow shot into an actor can be recovered."),
'iArrowInventoryChance',
('70%',70),
('80%',80),
('90%',90),
('100%',100),
),
GmstTweak(_('Arrow Speed'),
_("Speed of full power arrow."),
'fArrowSpeedMult',
(_('x 1.4'),1500*1.4),
(_('x 1.6'),1500*1.6),
(_('x 1.8'),1500*1.8),
(_('x 2.0'),1500*2.0),
(_('x 2.2'),1500*2.2),
(_('x 2.4'),1500*2.4),
(_('x 2.6'),1500*2.6),
(_('x 2.8'),1500*2.8),
(_('x 3.0'),1500*3.0),
),
GmstTweak(_('Chase Camera Tightness'),
_("Tightness of chase camera to player turning."),
('fChase3rdPersonVanityXYMult','fChase3rdPersonXYMult'),
(_('x 2.0'),8,8),
(_('x 3.0'),12,12),
(_('x 5.0'),20,20),
),
GmstTweak(_('Chase Camera Distance'),
_("Distance camera can be moved away from PC using mouse wheel."),
('fVanityModeWheelMax', 'fChase3rdPersonZUnitsPerSecond','fVanityModeWheelMult'),
(_('x 2'), 600*2, 300*2, 0.2),
(_('x 3'), 600*3, 300*3, 0.3),
(_('x 5'), 600*5, 1000, 0.3),
(_('x 10'), 600*10, 2000, 0.3),
),
GmstTweak(_('Compass: POI Recognition'),
_("Distance at which POI markers begin to show on compass."),
'iMapMarkerVisibleDistance',
(_('x 0.50'),6000),
(_('x 0.75'),9000),
),
GmstTweak(_('Essential NPC Unconsciousness'),
_("Time which essential NPCs stay unconscious."),
'fEssentialDeathTime',
(_('30 Seconds'),30),
(_('1 Minute'),60),
(_('5 Minutes'),300),
),
GmstTweak(_('Fatigue from Running/Encumbrance'),
_("Fatigue cost of running and encumbrance."),
('fFatigueRunBase','fFatigueRunMult'),
('x 3',24,12),
('x 4',32,16),
('x 5',40,20),
),
GmstTweak(_('Horse Turning Speed'),
_("Speed at which horses turn."),
'iHorseTurnDegreesPerSecond',
(_('x 2.0'),90),
),
GmstTweak(_('Jump Higher'),
_("Maximum height player can jump to."),
'fJumpHeightMax',
(_('x 1.2'),164*1.2),
(_('x 1.4'),164*1.4),
(_('x 1.6'),164*1.6),
),
GmstTweak(_('PC Death Camera'),
_("Time after player's death before reload menu appears."),
'fPlayerDeathReloadTime',
(_('30 Seconds'),30),
(_('1 Minute'),60),
(_('5 Minute'),300),
(_('Unlimited'),9999999),
),
GmstTweak(_('Cell Respawn Time'),
_("Time before unvisited cell respawns. But longer times increase save sizes."),
'iHoursToRespawnCell',
(_('3 Days'),24*3),
(_('5 Days'),24*5),
(_('10 Days'),24*10),
(_('20 Days'),24*20),
(_('1 Month'),24*30),
(_('6 Months'),24*182),
(_('1 Year'),24*365),
),
#--Magic Bolt Speed
GmstTweak(_('Magic Bolt Speed'),
_("Speed of magic bolt/projectile."),
'fMagicProjectileBaseSpeed',
(_('x 1.4'),1000*1.4),
(_('x 1.6'),1000*1.6),
(_('x 1.8'),1000*1.8),
(_('x 2.0'),1000*2.0),
(_('x 2.2'),1000*2.2),
(_('x 2.4'),1000*2.4),
(_('x 2.6'),1000*2.6),
(_('x 2.8'),1000*2.8),
(_('x 3.0'),1000*3.0),
),
#--Training Max
GmstTweak(_('Training Max'),
_("Maximum number of Training allowed by trainers."),
'iTrainingSkills',
('25',25),
),
GmstTweak(_('Training Max'),
_("Maximum number of Training allowed by trainers."),
'iTrainingSkills',
('50',50),
),
GmstTweak(_('Training Max'),
_("Maximum number of Training allowed by trainers."),
'iTrainingSkills',
('75',75),
),
GmstTweak(_('Training Max'),
_("Maximum number of Training allowed by trainers."),
'iTrainingSkills',
('100',100),
),
],key=lambda a: a.label.lower())
'
I riped this section out so I would not overwrite any changes that might be made.
CODE
class AlchemicalCatalogs(Patcher):
#------------------------------------------------------------------------------
class AliasesPatcher(Patcher):
#------------------------------------------------------------------------------
class BowPatcher(Patcher):
#------------------------------------------------------------------------------
class ClothesTweak(MultiTweakItem):
#------------------------------------------------------------------------------
class ClothesTweak_MaxWeight(ClothesTweak):
#------------------------------------------------------------------------------
class ClothesTweak_Unblock(ClothesTweak):
#------------------------------------------------------------------------------
class ClothesTweaker(MultiTweaker):
#------------------------------------------------------------------------------
class GmstTweak(MultiTweakItem):
#------------------------------------------------------------------------------
class GmstTweaker(MultiTweaker):
#------------------------------------------------------------------------------
class GraphicsPatcher(ListPatcher):
#------------------------------------------------------------------------------
class ListsMerger(ListPatcher):
#------------------------------------------------------------------------------
class NamesPatcher(ListPatcher):
#------------------------------------------------------------------------------
class NamesTweak_Body(MultiTweakItem):
#------------------------------------------------------------------------------
class NamesTweak_Potions(MultiTweakItem):
#------------------------------------------------------------------------------
class NamesTweak_Scrolls(MultiTweakItem):
#------------------------------------------------------------------------------
class NamesTweak_Spells(MultiTweakItem):
#------------------------------------------------------------------------------
class NamesTweak_Weapons(MultiTweakItem):
#------------------------------------------------------------------------------
class NamesTweaker(MultiTweaker):
#------------------------------------------------------------------------------
class NpcFacePatcher(ListPatcher):
#------------------------------------------------------------------------------
class PatchMerger(ListPatcher):
#------------------------------------------------------------------------------
class PowerExhaustion(Patcher):
#------------------------------------------------------------------------------
class RacePatcher(ListPatcher):
#------------------------------------------------------------------------------
class ReweighPotions(Patcher):