- Katılım
- 3 Eyl 2019
- Konular
- 32
- Mesajlar
- 89
- Çözüm
- 19
- Online süresi
- 15d 15h
- Reaksiyon Skoru
- 8
- Altın Konu
- 0
- TM Yaşı
- 6 Yıl 9 Ay 7 Gün
- Başarım Puanı
- 78
- MmoLira
- 2,882
- DevLira
- 0
ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ HEMEN TIKLA!
Hello,
Today I just removed background (curtain) in loading but everytime when I want to login it throws me in to empire select instead of character select.
[CODE title="syserr"]0727 23:37:17451 :: Traceback (most recent call last):
0727 23:37:17451 :: File "introselect.py", line 884, in OnUpdate
0727 23:37:17451 :: TypeError
0727 23:37:17451 :: :
0727 23:37:17451 :: an integer is required
0727 23:37:17451 :: [/CODE]
[CODE lang="python" title="introselect.py" highlight="33"] def OnUpdate(self):
chr.Update()
self.ToolTipProgress()
if self.SelectEmpire :
self.SelectEmpire = False
self.stream.SetReselectEmpirePhase()
self.Hide()
if self.MotionStart and app.GetTime() - self.MotionTime >= 2.0 :
self.MotionStart = False
##±âÁ¸ »ç¿ë ±×´ë·Î µé±¸¿È##
#print " Start Game "
chrSlot = self.stream.GetCharacterSlot()
#print "chrSlot = %s" % chrSlot
if musicinfo.selectMusic != "":
snd.FadeLimitOutMusic("BGM/"+musicinfo.selectMusic, systemSetting.GetMusicVolume()*0.05)
net.DirectEnter(chrSlot)
playTime = net.GetAccountCharacterSlotDataInteger(chrSlot, net.ACCOUNT_CHARACTER_SLOT_PLAYTIME)
import player
player.SetPlayTime(playTime)
import chat
chat.Clear()
if self.textBoard != None:
(xposEventSet, yposEventSet) = self.textBoard.GetGlobalPosition()
event.UpdateEventSet(self.descIndex, xposEventSet+7, -(yposEventSet+7))
self.descriptionBox.SetIndex(self.descIndex)
for i in xrange(self.LEN_STATPOINT):
self.GaugeList.SetPercentage(self.curGauge, 1.0)[/CODE]
There is what I edit to remove background in loading
Anyone know what can be wrong?
Today I just removed background (curtain) in loading but everytime when I want to login it throws me in to empire select instead of character select.
[CODE title="syserr"]0727 23:37:17451 :: Traceback (most recent call last):
0727 23:37:17451 :: File "introselect.py", line 884, in OnUpdate
0727 23:37:17451 :: TypeError
0727 23:37:17451 :: :
0727 23:37:17451 :: an integer is required
0727 23:37:17451 :: [/CODE]
[CODE lang="python" title="introselect.py" highlight="33"] def OnUpdate(self):
chr.Update()
self.ToolTipProgress()
if self.SelectEmpire :
self.SelectEmpire = False
self.stream.SetReselectEmpirePhase()
self.Hide()
if self.MotionStart and app.GetTime() - self.MotionTime >= 2.0 :
self.MotionStart = False
##±âÁ¸ »ç¿ë ±×´ë·Î µé±¸¿È##
#print " Start Game "
chrSlot = self.stream.GetCharacterSlot()
#print "chrSlot = %s" % chrSlot
if musicinfo.selectMusic != "":
snd.FadeLimitOutMusic("BGM/"+musicinfo.selectMusic, systemSetting.GetMusicVolume()*0.05)
net.DirectEnter(chrSlot)
playTime = net.GetAccountCharacterSlotDataInteger(chrSlot, net.ACCOUNT_CHARACTER_SLOT_PLAYTIME)
import player
player.SetPlayTime(playTime)
import chat
chat.Clear()
if self.textBoard != None:
(xposEventSet, yposEventSet) = self.textBoard.GetGlobalPosition()
event.UpdateEventSet(self.descIndex, xposEventSet+7, -(yposEventSet+7))
self.descriptionBox.SetIndex(self.descIndex)
for i in xrange(self.LEN_STATPOINT):
self.GaugeList.SetPercentage(self.curGauge, 1.0)[/CODE]
There is what I edit to remove background in loading
[CODE lang="python" title="networkmodule.py"]###################################################################################################
# Network
import app
import chr
import dbg
import net
import snd
import chr
import chrmgr
import background
import player
import playersettingmodule
import ui
import uiphasecurtain
import localeinfo as _localeinfo
localeinfo = _localeinfo.localeinfo()
class PopupDialog(ui.ScriptWindow):
def __init__(self):
print "NEW POPUP DIALOG ----------------------------------------------------------------------------"
ui.ScriptWindow.__init__(self)
self.CloseEvent = 0
def __del__(self):
print "---------------------------------------------------------------------------- DELETE POPUP DIALOG "
ui.ScriptWindow.__del__(self)
def LoadDialog(self):
PythonScriptLoader = ui.PythonScriptLoader()
PythonScriptLoader.LoadScriptFile(self, "uiscript/popupdialog.py")
def Open(self, Message, event = 0, ButtonName = localeinfo.UI_CANCEL, x = 0, y = 0):
if True == self.IsShow():
self.Close()
self.Lock()
self.SetTop()
self.CloseEvent = event
AcceptButton = self.GetChild("accept")
AcceptButton.SetText(ButtonName)
AcceptButton.SetEvent(ui.__mem_func__(self.Close))
self.GetChild("message").SetText(Message)
if x != 0 or y != 0:
self.SetPosition(x, y)
else:
self.SetCenterPosition()
self.Show()
def Close(self):
if False == self.IsShow():
self.CloseEvent = 0
return
self.Unlock()
self.Hide()
if 0 != self.CloseEvent:
self.CloseEvent()
self.CloseEvent = 0
def Destroy(self):
self.Close()
self.ClearDictionary()
def OnPressEscapeKey(self):
self.Close()
return True
def OnIMEReturn(self):
self.Close()
return True
##
## Main Stream
##
class MainStream(object):
isChrData=0
def __init__(self):
print "NEWMAIN STREAM ----------------------------------------------------------------------------"
net.SetHandler(self)
net.SetTCPRecvBufferSize(128*1024)
net.SetTCPSendBufferSize(4096)
net.SetUDPRecvBufferSize(4096)
self.id=""
self.pwd=""
self.addr=""
self.port=0
self.account_addr=0
self.account_port=0
self.slot=0
self.isAutoSelect=0
self.isAutoLogin=0
#self.curtain = 0
self.curPhaseWindow = 0
self.newPhaseWindow = 0
def __del__(self):
print "---------------------------------------------------------------------------- DELETE MAIN STREAM "
def Destroy(self):
if self.curPhaseWindow:
self.curPhaseWindow.Close()
self.curPhaseWindow = 0
if self.newPhaseWindow:
self.newPhaseWindow.Close()
self.newPhaseWindow = 0
self.popupWindow.Destroy()
self.popupWindow = 0
#self.curtain = 0
def Create(self):
self.CreatePopupDialog()
#self.curtain = uiphasecurtain.PhaseCurtain()
def SetPhaseWindow(self, newPhaseWindow):
#if self.newPhaseWindow:
#print "ÀÌ¹Ì »õ·Î¿î À©µµ¿ì·Î ¹Ù²Û»óÅ¿¡¼ ¶Ç ¹Ù²Þ", newPhaseWindow
# self.__ChangePhaseWindow()
self.newPhaseWindow=newPhaseWindow
self.__ChangePhaseWindow()
# if self.curPhaseWindow:
# #print "ÆäÀÌµå ¾Æ¿ôµÇ¸é ¹Ù²Þ"
# #self.curtain.FadeOut(self.__ChangePhaseWindow)
# self.__ChangePhaseWindow()
# else:
# #print "ÇöÀç À©µµ¿ì°¡ ¾ø´Â »óŶó ¹Ù·Î ¹Ù²Þ"
# self.__ChangePhaseWindow()
def __ChangePhaseWindow(self):
oldPhaseWindow=self.curPhaseWindow
newPhaseWindow=self.newPhaseWindow
self.curPhaseWindow=0
self.newPhaseWindow=0
if oldPhaseWindow:
oldPhaseWindow.Close()
if newPhaseWindow:
newPhaseWindow.Open()
self.curPhaseWindow=newPhaseWindow
#if self.curPhaseWindow:
# self.curtain.FadeIn()
if not self.curPhaseWindow:
app.Exit()
def CreatePopupDialog(self):
self.popupWindow = PopupDialog()
self.popupWindow.LoadDialog()
self.popupWindow.SetCenterPosition()
self.popupWindow.Hide()
## SelectPhase
##########################################################################################
def SetLogoPhase(self):
net.Disconnect()
import introLogo
self.SetPhaseWindow(introLogo.LogoWindow(self))
def Go(self):
pass
def SetLoginPhase(self):
net.Disconnect()
import intrologin
self.SetPhaseWindow(intrologin.LoginWindow(self))
def SetSelectEmpirePhase(self):
try:
import introempire
self.SetPhaseWindow(introempire.SelectEmpireWindow(self))
except:
import exception
exception.Abort("networkmodule.SetSelectEmpirePhase")
def SetReselectEmpirePhase(self):
try:
import introempire
self.SetPhaseWindow(introempire.ReselectEmpireWindow(self))
except:
import exception
exception.Abort("networkmodule.SetReselectEmpirePhase")
def SetSelectCharacterPhase(self):
try:
localeinfo.LoadLocaleData()
self.popupWindow.Close()
import introselect
self.SetPhaseWindow(introselect.SelectCharacterWindow(self))
except:
import exception
exception.Abort("networkmodule.SetSelectCharacterPhase")
def SetCreateCharacterPhase(self):
try:
import introcreate
self.SetPhaseWindow(introcreate.CreateCharacterWindow(self))
except:
import exception
exception.Abort("networkmodule.SetCreateCharacterPhase")
def SetTestGamePhase(self, x, y):
try:
import introloading
loadingPhaseWindow=introloading.LoadingWindow(self)
loadingPhaseWindow.LoadData(x, y)
self.SetPhaseWindow(loadingPhaseWindow)
except:
import exception
exception.Abort("networkmodule.SetLoadingPhase")
def SetLoadingPhase(self):
try:
import introloading
self.SetPhaseWindow(introloading.LoadingWindow(self))
except:
import exception
exception.Abort("networkmodule.SetLoadingPhase")
def SetGamePhase(self):
try:
import game
self.popupWindow.Close()
self.SetPhaseWindow(game.GameWindow(self))
except:
raise
import exception
exception.Abort("networkmodule.SetGamePhase")
################################
# Functions used in python
## Login
def Connect(self):
import constinfo
if constinfo.KEEP_ACCOUNT_CONNETION_ENABLE:
net.ConnectToAccountServer(self.addr, self.port, self.account_addr, self.account_port)
else:
net.ConnectTCP(self.addr, self.port)
#net.ConnectUDP(IP, Port)
def SetConnectInfo(self, addr, port, account_addr=0, account_port=0):
self.addr = addr
self.port = port
self.account_addr = account_addr
self.account_port = account_port
def GetConnectAddr(self):
return self.addr
def SetLoginInfo(self, id, pwd):
self.id = id
self.pwd = pwd
net.SetLoginInfo(id, pwd)
def CancelEnterGame(self):
pass
## Select
def SetCharacterSlot(self, slot):
self.slot=slot
def GetCharacterSlot(self):
return self.slot
## Empty
def EmptyFunction(self):
pass
[/CODE]
# Network
import app
import chr
import dbg
import net
import snd
import chr
import chrmgr
import background
import player
import playersettingmodule
import ui
import uiphasecurtain
import localeinfo as _localeinfo
localeinfo = _localeinfo.localeinfo()
class PopupDialog(ui.ScriptWindow):
def __init__(self):
print "NEW POPUP DIALOG ----------------------------------------------------------------------------"
ui.ScriptWindow.__init__(self)
self.CloseEvent = 0
def __del__(self):
print "---------------------------------------------------------------------------- DELETE POPUP DIALOG "
ui.ScriptWindow.__del__(self)
def LoadDialog(self):
PythonScriptLoader = ui.PythonScriptLoader()
PythonScriptLoader.LoadScriptFile(self, "uiscript/popupdialog.py")
def Open(self, Message, event = 0, ButtonName = localeinfo.UI_CANCEL, x = 0, y = 0):
if True == self.IsShow():
self.Close()
self.Lock()
self.SetTop()
self.CloseEvent = event
AcceptButton = self.GetChild("accept")
AcceptButton.SetText(ButtonName)
AcceptButton.SetEvent(ui.__mem_func__(self.Close))
self.GetChild("message").SetText(Message)
if x != 0 or y != 0:
self.SetPosition(x, y)
else:
self.SetCenterPosition()
self.Show()
def Close(self):
if False == self.IsShow():
self.CloseEvent = 0
return
self.Unlock()
self.Hide()
if 0 != self.CloseEvent:
self.CloseEvent()
self.CloseEvent = 0
def Destroy(self):
self.Close()
self.ClearDictionary()
def OnPressEscapeKey(self):
self.Close()
return True
def OnIMEReturn(self):
self.Close()
return True
##
## Main Stream
##
class MainStream(object):
isChrData=0
def __init__(self):
print "NEWMAIN STREAM ----------------------------------------------------------------------------"
net.SetHandler(self)
net.SetTCPRecvBufferSize(128*1024)
net.SetTCPSendBufferSize(4096)
net.SetUDPRecvBufferSize(4096)
self.id=""
self.pwd=""
self.addr=""
self.port=0
self.account_addr=0
self.account_port=0
self.slot=0
self.isAutoSelect=0
self.isAutoLogin=0
#self.curtain = 0
self.curPhaseWindow = 0
self.newPhaseWindow = 0
def __del__(self):
print "---------------------------------------------------------------------------- DELETE MAIN STREAM "
def Destroy(self):
if self.curPhaseWindow:
self.curPhaseWindow.Close()
self.curPhaseWindow = 0
if self.newPhaseWindow:
self.newPhaseWindow.Close()
self.newPhaseWindow = 0
self.popupWindow.Destroy()
self.popupWindow = 0
#self.curtain = 0
def Create(self):
self.CreatePopupDialog()
#self.curtain = uiphasecurtain.PhaseCurtain()
def SetPhaseWindow(self, newPhaseWindow):
#if self.newPhaseWindow:
#print "ÀÌ¹Ì »õ·Î¿î À©µµ¿ì·Î ¹Ù²Û»óÅ¿¡¼ ¶Ç ¹Ù²Þ", newPhaseWindow
# self.__ChangePhaseWindow()
self.newPhaseWindow=newPhaseWindow
self.__ChangePhaseWindow()
# if self.curPhaseWindow:
# #print "ÆäÀÌµå ¾Æ¿ôµÇ¸é ¹Ù²Þ"
# #self.curtain.FadeOut(self.__ChangePhaseWindow)
# self.__ChangePhaseWindow()
# else:
# #print "ÇöÀç À©µµ¿ì°¡ ¾ø´Â »óŶó ¹Ù·Î ¹Ù²Þ"
# self.__ChangePhaseWindow()
def __ChangePhaseWindow(self):
oldPhaseWindow=self.curPhaseWindow
newPhaseWindow=self.newPhaseWindow
self.curPhaseWindow=0
self.newPhaseWindow=0
if oldPhaseWindow:
oldPhaseWindow.Close()
if newPhaseWindow:
newPhaseWindow.Open()
self.curPhaseWindow=newPhaseWindow
#if self.curPhaseWindow:
# self.curtain.FadeIn()
if not self.curPhaseWindow:
app.Exit()
def CreatePopupDialog(self):
self.popupWindow = PopupDialog()
self.popupWindow.LoadDialog()
self.popupWindow.SetCenterPosition()
self.popupWindow.Hide()
## SelectPhase
##########################################################################################
def SetLogoPhase(self):
net.Disconnect()
import introLogo
self.SetPhaseWindow(introLogo.LogoWindow(self))
def Go(self):
pass
def SetLoginPhase(self):
net.Disconnect()
import intrologin
self.SetPhaseWindow(intrologin.LoginWindow(self))
def SetSelectEmpirePhase(self):
try:
import introempire
self.SetPhaseWindow(introempire.SelectEmpireWindow(self))
except:
import exception
exception.Abort("networkmodule.SetSelectEmpirePhase")
def SetReselectEmpirePhase(self):
try:
import introempire
self.SetPhaseWindow(introempire.ReselectEmpireWindow(self))
except:
import exception
exception.Abort("networkmodule.SetReselectEmpirePhase")
def SetSelectCharacterPhase(self):
try:
localeinfo.LoadLocaleData()
self.popupWindow.Close()
import introselect
self.SetPhaseWindow(introselect.SelectCharacterWindow(self))
except:
import exception
exception.Abort("networkmodule.SetSelectCharacterPhase")
def SetCreateCharacterPhase(self):
try:
import introcreate
self.SetPhaseWindow(introcreate.CreateCharacterWindow(self))
except:
import exception
exception.Abort("networkmodule.SetCreateCharacterPhase")
def SetTestGamePhase(self, x, y):
try:
import introloading
loadingPhaseWindow=introloading.LoadingWindow(self)
loadingPhaseWindow.LoadData(x, y)
self.SetPhaseWindow(loadingPhaseWindow)
except:
import exception
exception.Abort("networkmodule.SetLoadingPhase")
def SetLoadingPhase(self):
try:
import introloading
self.SetPhaseWindow(introloading.LoadingWindow(self))
except:
import exception
exception.Abort("networkmodule.SetLoadingPhase")
def SetGamePhase(self):
try:
import game
self.popupWindow.Close()
self.SetPhaseWindow(game.GameWindow(self))
except:
raise
import exception
exception.Abort("networkmodule.SetGamePhase")
################################
# Functions used in python
## Login
def Connect(self):
import constinfo
if constinfo.KEEP_ACCOUNT_CONNETION_ENABLE:
net.ConnectToAccountServer(self.addr, self.port, self.account_addr, self.account_port)
else:
net.ConnectTCP(self.addr, self.port)
#net.ConnectUDP(IP, Port)
def SetConnectInfo(self, addr, port, account_addr=0, account_port=0):
self.addr = addr
self.port = port
self.account_addr = account_addr
self.account_port = account_port
def GetConnectAddr(self):
return self.addr
def SetLoginInfo(self, id, pwd):
self.id = id
self.pwd = pwd
net.SetLoginInfo(id, pwd)
def CancelEnterGame(self):
pass
## Select
def SetCharacterSlot(self, slot):
self.slot=slot
def GetCharacterSlot(self):
return self.slot
## Empty
def EmptyFunction(self):
pass
[/CODE]
Anyone know what can be wrong?
Son düzenleme:

