- Mesaj
- 39
- Çözümler
- 1
- Beğeni
- 8
- Puan
- 69
- Ticaret Puanı
- 0
Merhaba, oyuna girmeye çalışırken şöyle bir hata alıyorum fakat locale_interface içerisinde "TELEPORT_MAP_MAP_1" mevcut. Filestan teleport sistemini kapattım bu sefer locale_interface içerisindeki ilk satırdaki şey hata vermeye başladı. Bu yüzden locale_interface.txt'nin yüklenmediğini düşünüyorum. Nerede yanlış yapıyorum?
(PopupDialog.py'dan import satırını kaldırmama rağmen hala hata veriyor acaba burada mı bir sorun var bilmiyorum başlıkta yazdığım çözülürse bu hata gider diye düşündüm)
locale_interface.txt lokasyonu: locale\locale\ro\locale_interface.txt
syserr:
0728 16:53:00726 :: UISCRIPT_LOAD_ERROR: Could not import uiScriptLocale [filename UIScript/PopupDialog.py]
0728 16:53:03199 :: CInstanceBase::RegisterEffect(eEftType=55, c_szEftAttachBone=Bip01, c_szEftName=d:/ymir work/effect/hit/hwayeom_loop_1.mse, isCache=1) - Error
0728 16:53:05376 ::
system.py(line:342) RunMainScript
system.py(line:303) execfile
prototype.py(line:62) <module>
prototype.py(line:51) RunApp
networkModule.py(line:223) SetLogoPhase
networkModule.py(line:144) SetPhaseWindow
networkModule.py(line:154) __ChangePhaseWindow
system.py(line:252) __hybrid_import
system.py(line:217) _process_result
game.py(line:51) <module>
system.py(line:252) __hybrid_import
system.py(line:217) _process_result
interfaceModule.py(line:68) <module>
system.py(line:252) __hybrid_import
system.py(line:217) _process_result
uiTeleportPanel.py(line:35) <module>
Run - <type 'exceptions.AttributeError'>:'module' object has no attribute 'TELEPORT_MAP_MAP_1'
0728 16:53:05376 :: ============================================================================================================
0728 16:53:05376 :: Abort!!!!
(PopupDialog.py'dan import satırını kaldırmama rağmen hala hata veriyor acaba burada mı bir sorun var bilmiyorum başlıkta yazdığım çözülürse bu hata gider diye düşündüm)
uiTeleportPanel.py:
"map_img" : "empires_map1", "desc_text" : uiScriptLocale.TELEPORT_MAP_MAP_1,
uiscriptlocale.py:
import app
AUTOBAN_QUIZ_ANSWER = "ANSWER"
AUTOBAN_QUIZ_REFRESH = "REFRESH"
AUTOBAN_QUIZ_REST_TIME = "REST_TIME"
OPTION_SHADOW = "SHADOW"
CODEPAGE = str(app.GetDefaultCodePage())
#CUBE_TITLE = "Cube Window"
def LoadLocaleFile(srcFileName, localeDict):
localeDict["CUBE_INFO_TITLE"] = "Recipe"
localeDict["CUBE_REQUIRE_MATERIAL"] = "Requirements"
localeDict["CUBE_REQUIRE_MATERIAL_OR"] = "or"
try:
lines = open(srcFileName, "r").readlines()
except IOError:
import dbg
dbg.LogBox("LoadUIScriptLocaleError(%(srcFileName)s)" % locals())
app.Abort()
for line in lines:
tokens = line[:-1].split("\t")
if len(tokens) >= 2:
localeDict[tokens[0]] = tokens[1]
else:
print len(tokens), lines.index(line), line
if "locale/ymir" == app.GetLocalePath():
LOCALE_UISCRIPT_PATH = "locale/ymir_ui/"
WINDOWS_PATH = "d:/ymir work/ui/game/949_windows/"
SELECT_PATH = "d:/ymir work/ui/intro/949_select/"
GUILD_PATH = "d:/ymir work/ui/game/949_guild/"
EMPIRE_PATH = "d:/ymir work/ui/intro/949_empire/"
LOGIN_PATH = "d:/ymir work/ui/intro/949_login/"
LOCALE_INTERFACE_FILE_NAME = "locale/ymir/locale_interface.txt"
else:
if "HONGKONG" == app.GetLocaleServiceName():
name = "locale/hongkong"
elif "JAPAN" == app.GetLocaleServiceName():
name = "locale/japan"
elif "TAIWAN" == app.GetLocaleServiceName():
name = "locale/taiwan"
elif "NEWCIBN" == app.GetLocaleServiceName():
name = "locale/newcibn"
elif "EUROPE" == app.GetLocaleServiceName():
name = app.GetLocalePath()
else:
name = "locale/ymir"
LOCALE_UISCRIPT_PATH = "%s/ui/" % (name)
LOGIN_PATH = "%s/ui/login/" % (name)
EMPIRE_PATH = "%s/ui/empire/" % (name)
GUILD_PATH = "%s/ui/guild/" % (name)
SELECT_PATH = "%s/ui/select/" % (name)
WINDOWS_PATH = "%s/ui/windows/" % (name)
MAPNAME_PATH = "%s/ui/mapname/" % (name)
CARDS_DESC = "%s/mini_game_okey_desc.txt" % (name)
if app.ENABLE_FISH_EVENT:
FISH_EVENT_DESC_FILE_NAME = "%s/fish_event_desc.txt" % (name)
LOCALE_INTERFACE_FILE_NAME = "%s/locale_interface.txt" % (name)
LoadLocaleFile(LOCALE_INTERFACE_FILE_NAME, locals())
locale_interface.txt lokasyonu: locale\locale\ro\locale_interface.txt