Moin Leute ich habe da mal ein kleines Problem, Ich habe mir 30.000 Rangpunkt eingestellt wie hier:
Bitte melden Sie sich an, um diesen Link zu sehen.
Geht so weit alles, Jedoch werden mir auf einem zweiten Fenster (Char) die Rangpunkte nach dem Teleportieren von dem jewals anderen nicht angezeigt, wisst ihr woran dass liegen kann?
Ich habe ein eigenes login,loading interface von poccix.. Kann es eventuell irgendwo daran liegen?
Python
- Hier meine loading
- import ui
- import uiScriptLocale
- import net
- import app
- import dbg
- import player
- import background
- import wndMgr
- import localeInfo
- import chrmgr
- import colorInfo
- import constInfo
- import playerSettingModule
- import stringCommander
- import emotion
- ####################################
- # 빠른 실행을 위한 모듈 로딩 분담
- ####################################
- import uiRefine
- import uiToolTip
- import uiAttachMetin
- import uiPickMoney
- import uiChat
- import uiMessenger
- import uiHelp
- import uiWhisper
- import uiPointReset
- import uiShop
- import uiExchange
- import uiSystem
- import uiOption
- import uiRestart
- ####################################
- class LoadingWindow(ui.ScriptWindow):
- def __init__(self, stream):
- print "NEW LOADING WINDOW -------------------------------------------------------------------------------"
- ui.Window.__init__(self)
- net.SetPhaseWindow(net.PHASE_WINDOW_LOAD, self)
- self.stream=stream
- self.loadingGage=0
- self.update=0
- self.playerX=0
- self.playerY=0
- self.loadStepList=[]
- def __del__(self):
- print "---------------------------------------------------------------------------- DELETE LOADING WINDOW"
- net.SetPhaseWindow(net.PHASE_WINDOW_LOAD, 0)
- ui.Window.__del__(self)
- def Open(self):
- print "OPEN LOADING WINDOW -------------------------------------------------------------------------------"
- #app.HideCursor()
- try:
- pyScrLoader = ui.PythonScriptLoader()
- pyScrLoader.LoadScriptFile(self, "ui_poccix_loading.py")
- except:
- import exception
- exception.Abort("LodingWindow.Open - LoadScriptFile Error")
- try:
- self.loadingGage=self.GetChild("gauge_full")
- self.text_loading = self.GetChild("text_percent")
- except:
- import exception
- exception.Abort("LodingWindow.Open - LoadScriptFile Error")
- self.loadingGage.SetPercentage(2, 100)
- self.Show()
- chrSlot=self.stream.GetCharacterSlot()
- net.SendSelectCharacterPacket(chrSlot)
- app.SetFrameSkip(0)
- def Close(self):
- print "---------------------------------------------------------------------------- CLOSE LOADING WINDOW"
- app.SetFrameSkip(1)
- self.loadStepList=[]
- self.text_loading = None
- self.loadingGage=0
- self.ClearDictionary()
- self.Hide()
- def OnPressEscapeKey(self):
- app.SetFrameSkip(1)
- self.stream.SetLoginPhase()
- return TRUE
- def __SetNext(self, next):
- if next:
- self.update=ui.__mem_func__(next)
- else:
- self.update=0
- def __SetProgress(self, p):
- if self.loadingGage:
- self.loadingGage.SetPercentage(100*p/100, 100)
- self.text_loading.SetText(str(100*p/100) + "%")
- def DEBUG_LoadData(self, playerX, playerY):
- self.playerX=playerX
- self.playerY=playerY
- self.__RegisterSkill() ## 로딩 중간에 실행 하면 문제 발생
- self.__RegisterTitleName()
- self.__RegisterColor()
- self.__InitData()
- self.__LoadMap()
- self.__LoadSound()
- self.__LoadEffect()
- self.__LoadWarrior()
- self.__LoadAssassin()
- self.__LoadSura()
- self.__LoadShaman()
- self.__LoadSkill()
- self.__LoadEnemy()
- self.__LoadNPC()
- self.__StartGame()
- def LoadData(self, playerX, playerY):
- self.playerX=playerX
- self.playerY=playerY
- self.__RegisterDungeonMapName()
- self.__RegisterSkill() ## 로딩 중간에 실행 하면 문제 발생
- self.__RegisterTitleName()
- self.__RegisterColor()
- self.__RegisterEmotionIcon()
- self.loadStepList=[
- (0, ui.__mem_func__(self.__InitData)),
- (10, ui.__mem_func__(self.__LoadMap)),
- (30, ui.__mem_func__(self.__LoadSound)),
- (40, ui.__mem_func__(self.__LoadEffect)),
- (50, ui.__mem_func__(self.__LoadWarrior)),
- (60, ui.__mem_func__(self.__LoadAssassin)),
- (70, ui.__mem_func__(self.__LoadSura)),
- (80, ui.__mem_func__(self.__LoadShaman)),
- (90, ui.__mem_func__(self.__LoadSkill)),
- (93, ui.__mem_func__(self.__LoadEnemy)),
- (97, ui.__mem_func__(self.__LoadNPC)),
- # GUILD_BUILDING
- (98, ui.__mem_func__(self.__LoadGuildBuilding)),
- # END_OF_GUILD_BUILDING
- (100, ui.__mem_func__(self.__StartGame)),
- ]
- self.__SetProgress(0)
- #self.__SetNext(self.__LoadMap)
- def OnUpdate(self):
- if len(self.loadStepList)>0:
- (progress, runFunc)=self.loadStepList[0]
- runFunc()
- self.loadStepList.pop(0)
- self.__SetProgress(progress)
- def __InitData(self):
- playerSettingModule.LoadGameData("INIT")
- def __RegisterDungeonMapName(self):
- background.RegisterDungeonMapName("metin2_map_spiderdungeon")
- background.RegisterDungeonMapName("metin2_map_monkeydungeon")
- background.RegisterDungeonMapName("metin2_map_monkeydungeon_02")
- background.RegisterDungeonMapName("metin2_map_monkeydungeon_03")
- background.RegisterDungeonMapName("metin2_map_deviltower1")
- def __RegisterSkill(self):
- race = net.GetMainActorRace()
- group = net.GetMainActorSkillGroup()
- empire = net.GetMainActorEmpire()
- playerSettingModule.RegisterSkill(race, group, empire)
- def __RegisterTitleName(self):
- for i in xrange(len(localeInfo.TITLE_NAME_LIST)):
- chrmgr.RegisterTitleName(i, localeInfo.TITLE_NAME_LIST[i])
- def __RegisterColor(self):
- ## Name
- NAME_COLOR_DICT = {
- chrmgr.NAMECOLOR_PC : colorInfo.CHR_NAME_RGB_PC,
- chrmgr.NAMECOLOR_NPC : colorInfo.CHR_NAME_RGB_NPC,
- chrmgr.NAMECOLOR_MOB : colorInfo.CHR_NAME_RGB_MOB,
- chrmgr.NAMECOLOR_PVP : colorInfo.CHR_NAME_RGB_PVP,
- chrmgr.NAMECOLOR_PK : colorInfo.CHR_NAME_RGB_PK,
- chrmgr.NAMECOLOR_PARTY : colorInfo.CHR_NAME_RGB_PARTY,
- chrmgr.NAMECOLOR_WARP : colorInfo.CHR_NAME_RGB_WARP,
- chrmgr.NAMECOLOR_WAYPOINT : colorInfo.CHR_NAME_RGB_WAYPOINT,
- chrmgr.NAMECOLOR_EMPIRE_MOB : colorInfo.CHR_NAME_RGB_EMPIRE_MOB,
- chrmgr.NAMECOLOR_EMPIRE_NPC : colorInfo.CHR_NAME_RGB_EMPIRE_NPC,
- chrmgr.NAMECOLOR_EMPIRE_PC+1 : colorInfo.CHR_NAME_RGB_EMPIRE_PC_A,
- chrmgr.NAMECOLOR_EMPIRE_PC+2 : colorInfo.CHR_NAME_RGB_EMPIRE_PC_B,
- chrmgr.NAMECOLOR_EMPIRE_PC+3 : colorInfo.CHR_NAME_RGB_EMPIRE_PC_C,
- }
- for name, rgb in NAME_COLOR_DICT.items():
- chrmgr.RegisterNameColor(name, rgb[0], rgb[1], rgb[2])
- ## Title
- TITLE_COLOR_DICT = ( colorInfo.TITLE_RGB_GOOD_6,
- colorInfo.TITLE_RGB_GOOD_5,
- colorInfo.TITLE_RGB_GOOD_4,
- colorInfo.TITLE_RGB_GOOD_3,
- colorInfo.TITLE_RGB_GOOD_2,
- colorInfo.TITLE_RGB_GOOD_1,
- colorInfo.TITLE_RGB_NORMAL,
- colorInfo.TITLE_RGB_EVIL_1,
- colorInfo.TITLE_RGB_EVIL_2,
- colorInfo.TITLE_RGB_EVIL_3,
- colorInfo.TITLE_RGB_EVIL_4,
- colorInfo.TITLE_RGB_EVIL_5,
- colorInfo.TITLE_RGB_EVIL_6, )
- count = 0
- for rgb in TITLE_COLOR_DICT:
- chrmgr.RegisterTitleColor(count, rgb[0], rgb[1], rgb[2])
- count += 1
- def __RegisterEmotionIcon(self):
- emotion.RegisterEmotionIcons()
- def __LoadMap(self):
- net.Warp(self.playerX, self.playerY)
- def __LoadSound(self):
- playerSettingModule.LoadGameData("SOUND")
- def __LoadEffect(self):
- playerSettingModule.LoadGameData("EFFECT")
- def __LoadWarrior(self):
- playerSettingModule.LoadGameData("WARRIOR")
- def __LoadAssassin(self):
- playerSettingModule.LoadGameData("ASSASSIN")
- def __LoadSura(self):
- playerSettingModule.LoadGameData("SURA")
- def __LoadShaman(self):
- playerSettingModule.LoadGameData("SHAMAN")
- def __LoadSkill(self):
- playerSettingModule.LoadGameData("SKILL")
- def __LoadEnemy(self):
- playerSettingModule.LoadGameData("ENEMY")
- def __LoadNPC(self):
- playerSettingModule.LoadGameData("NPC")
- # GUILD_BUILDING
- def __LoadGuildBuilding(self):
- playerSettingModule.LoadGuildBuildingList(localeInfo.GUILD_BUILDING_LIST_TXT)
- # END_OF_GUILD_BUILDING
- def __StartGame(self):
- self.__RegisterColor()
- background.SetViewDistanceSet(background.DISTANCE0, 25600)
- """
- background.SetViewDistanceSet(background.DISTANCE1, 19200)
- background.SetViewDistanceSet(background.DISTANCE2, 12800)
- background.SetViewDistanceSet(background.DISTANCE3, 9600)
- background.SetViewDistanceSet(background.DISTANCE4, 6400)
- """
- background.SelectViewDistanceNum(background.DISTANCE0)
- app.SetGlobalCenterPosition(self.playerX, self.playerY)
- net.StartGame()