mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
dual resources compatibility and shard page update
This commit is contained in:
parent
ea592b148d
commit
b0ee41b558
5 changed files with 25 additions and 8 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,6 +1,9 @@
|
||||||
# Python artifacts:
|
# Python artifacts:
|
||||||
*.pyc
|
*.pyc
|
||||||
|
|
||||||
|
# Windows
|
||||||
|
cmd.exe
|
||||||
|
|
||||||
# Eclipse IDE:
|
# Eclipse IDE:
|
||||||
.project
|
.project
|
||||||
.pydevproject
|
.pydevproject
|
||||||
|
|
|
@ -21,15 +21,23 @@ class DNABulkLoader:
|
||||||
|
|
||||||
def loadDNABulk(dnaStorage, file):
|
def loadDNABulk(dnaStorage, file):
|
||||||
dnaLoader = DNALoader.DNALoader()
|
dnaLoader = DNALoader.DNALoader()
|
||||||
file = '../resources/' + file
|
fileu = '../resources/' + file
|
||||||
dnaLoader.loadDNAFile(dnaStorage, file)
|
fileo = 'resources/' + file
|
||||||
|
try:
|
||||||
|
dnaLoader.loadDNAFile(dnaStorage, fileu)
|
||||||
|
except:
|
||||||
|
dnaLoader.loadDNAFile(dnaStorage, fileo)
|
||||||
dnaLoader.destroy()
|
dnaLoader.destroy()
|
||||||
|
|
||||||
def loadDNAFile(dnaStorage, file):
|
def loadDNAFile(dnaStorage, file):
|
||||||
print 'Reading DNA file...', file
|
print 'Reading DNA file...', file
|
||||||
dnaLoader = DNALoader.DNALoader()
|
dnaLoader = DNALoader.DNALoader()
|
||||||
file = '../resources/' + file
|
fileu = '../resources/' + file
|
||||||
node = dnaLoader.loadDNAFile(dnaStorage, file)
|
fileo = 'resources/' + file
|
||||||
|
try:
|
||||||
|
node = dnaLoader.loadDNAFile(dnaStorage, fileu)
|
||||||
|
except:
|
||||||
|
node = dnaLoader.loadDNAFile(dnaStorage, fileo)
|
||||||
dnaLoader.destroy()
|
dnaLoader.destroy()
|
||||||
if node.node().getNumChildren() > 0:
|
if node.node().getNumChildren() > 0:
|
||||||
return node.node()
|
return node.node()
|
||||||
|
@ -37,8 +45,12 @@ def loadDNAFile(dnaStorage, file):
|
||||||
|
|
||||||
def loadDNAFileAI(dnaStorage, file):
|
def loadDNAFileAI(dnaStorage, file):
|
||||||
dnaLoader = DNALoader.DNALoader()
|
dnaLoader = DNALoader.DNALoader()
|
||||||
file = '../resources/' + file
|
fileu = '../resources/' + file
|
||||||
data = dnaLoader.loadDNAFileAI(dnaStorage, file)
|
fileo = 'resources/' + file
|
||||||
|
try:
|
||||||
|
data = dnaLoader.loadDNAFileAI(dnaStorage, fileu)
|
||||||
|
except:
|
||||||
|
data = dnaLoader.loadDNAFileAI(dnaStorage, fileo)
|
||||||
dnaLoader.destroy()
|
dnaLoader.destroy()
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ class NameGenerator:
|
||||||
searchPath = DSearchPath()
|
searchPath = DSearchPath()
|
||||||
if __debug__:
|
if __debug__:
|
||||||
searchPath.appendDirectory(Filename('../resources/phase_3/etc'))
|
searchPath.appendDirectory(Filename('../resources/phase_3/etc'))
|
||||||
|
searchPath.appendDirectory(Filename('resources/phase_3/etc'))
|
||||||
searchPath.appendDirectory(Filename('/phase_3/etc'))
|
searchPath.appendDirectory(Filename('/phase_3/etc'))
|
||||||
filename = Filename(TTLocalizer.NameShopNameMaster)
|
filename = Filename(TTLocalizer.NameShopNameMaster)
|
||||||
found = vfs.resolveFilename(filename, searchPath)
|
found = vfs.resolveFilename(filename, searchPath)
|
||||||
|
|
|
@ -1086,7 +1086,8 @@ class NPCMoviePlayer(DirectObject.DirectObject):
|
||||||
|
|
||||||
searchPath = DSearchPath()
|
searchPath = DSearchPath()
|
||||||
if __debug__:
|
if __debug__:
|
||||||
searchPath.appendDirectory(Filename('../resources/phase_3/etc'))
|
searchPath.appendDirectory(Filename('../resources/phase_3/etc'))
|
||||||
|
searchPath.appendDirectory(Filename('resources/phase_3/etc'))
|
||||||
searchPath.appendDirectory(Filename('/phase_3/etc'))
|
searchPath.appendDirectory(Filename('/phase_3/etc'))
|
||||||
scriptFile = Filename('QuestScripts.txt')
|
scriptFile = Filename('QuestScripts.txt')
|
||||||
found = vfs.resolveFilename(scriptFile, searchPath)
|
found = vfs.resolveFilename(scriptFile, searchPath)
|
||||||
|
|
|
@ -212,7 +212,7 @@ class ShardPage(ShtikerPage.ShtikerPage):
|
||||||
tText = 'Teleport to\n%s' % shardName
|
tText = 'Teleport to\n%s' % shardName
|
||||||
tImage = loader.loadModel('phase_4/models/gui/purchase_gui')
|
tImage = loader.loadModel('phase_4/models/gui/purchase_gui')
|
||||||
tImage.setSz(1.35)
|
tImage.setSz(1.35)
|
||||||
self.shardTeleportButton = DirectButton(parent=districtInfoNode, relief=None, pos=(0.4247, 0, -0.15), image=(tImage.find('**/PurchScrn_BTN_UP'), tImage.find('**/PurchScrn_BTN_DN'), tImage.find('**/PurchScrn_BTN_RLVR')), text=tText, text_scale=0.065, text_pos=(0.0, 0.015), text_fg=Vec4(0, 0, 0, 1), textMayChange=1, command=self.choseShard, extraArgs=[shardId])
|
self.shardTeleportButton = DirectButton(parent=districtInfoNode, relief=None, pos=(0.4247, 0, 0.2), image=(tImage.find('**/PurchScrn_BTN_UP'), tImage.find('**/PurchScrn_BTN_DN'), tImage.find('**/PurchScrn_BTN_RLVR')), text=tText, text_scale=0.065, text_pos=(0.0, 0.015), text_fg=Vec4(0, 0, 0, 1), textMayChange=1, command=self.choseShard, extraArgs=[shardId])
|
||||||
|
|
||||||
self.currentBTL = buttonTuple[1]
|
self.currentBTL = buttonTuple[1]
|
||||||
self.currentBTR = buttonTuple[2]
|
self.currentBTR = buttonTuple[2]
|
||||||
|
|
Loading…
Reference in a new issue