Ah, almost forgot. Don't change it unless you create a new system for it yourself.

This commit is contained in:
Loudrob 2015-03-03 17:14:57 -05:00
parent 02c7dc11e4
commit 08ca47f23d
5 changed files with 7 additions and 7 deletions

View file

@ -2,7 +2,7 @@
distribution dev
# Art assets:
model-path resources/
model-path ../resources/
# Server:
server-version ttu-dev

View file

@ -25,7 +25,7 @@ class TTWhiteList(WhiteList, DistributedObject.DistributedObject):
searchPath = DSearchPath()
searchPath.appendDirectory(Filename('/phase_4/etc'))
if __debug__:
searchPath.appendDirectory(Filename('resources/phase_4/etc'))
searchPath.appendDirectory(Filename('../resources/phase_4/etc'))
found = vfs.resolveFilename(filename, searchPath)
if not found:
self.notify.info("Couldn't find whitelist data file!")

View file

@ -21,14 +21,14 @@ class DNABulkLoader:
def loadDNABulk(dnaStorage, file):
dnaLoader = DNALoader.DNALoader()
file = 'resources/' + file
file = '../resources/' + file
dnaLoader.loadDNAFile(dnaStorage, file)
dnaLoader.destroy()
def loadDNAFile(dnaStorage, file):
print 'Reading DNA file...', file
dnaLoader = DNALoader.DNALoader()
file = 'resources/' + file
file = '../resources/' + file
node = dnaLoader.loadDNAFile(dnaStorage, file)
dnaLoader.destroy()
if node.node().getNumChildren() > 0:
@ -37,7 +37,7 @@ def loadDNAFile(dnaStorage, file):
def loadDNAFileAI(dnaStorage, file):
dnaLoader = DNALoader.DNALoader()
file = 'resources/' + file
file = '../resources/' + file
data = dnaLoader.loadDNAFileAI(dnaStorage, file)
dnaLoader.destroy()
return data

View file

@ -39,7 +39,7 @@ class NameGenerator:
self.nameDictionary = {}
searchPath = DSearchPath()
if __debug__:
searchPath.appendDirectory(Filename('resources/phase_3/etc'))
searchPath.appendDirectory(Filename('../resources/phase_3/etc'))
searchPath.appendDirectory(Filename('/phase_3/etc'))
filename = Filename(TTLocalizer.NameShopNameMaster)
found = vfs.resolveFilename(filename, searchPath)

View file

@ -1086,7 +1086,7 @@ class NPCMoviePlayer(DirectObject.DirectObject):
searchPath = DSearchPath()
if __debug__:
searchPath.appendDirectory(Filename('resources/phase_3/etc'))
searchPath.appendDirectory(Filename('../resources/phase_3/etc'))
searchPath.appendDirectory(Filename('/phase_3/etc'))
scriptFile = Filename('QuestScripts.txt')
found = vfs.resolveFilename(scriptFile, searchPath)