Tipologie server: Just4Metin
*Resursă folosită:Sistemul de aici
*ServerFiles utilizat:Just4Metin
*Syserr:Nu am erroare
Poză:
*Detalii suplimentare: Totul este bagat .. si in locale.cfg
*Detalii suplimentare: Totul este bagat .. si in locale.cfgIn syserr ce ai?sarma1995 scrie:*Problemă: Nu imi deschide sistemul cand apas pe buton.
Tipologie server: Just4Metin
*Resursă folosită:Sistemul de aici
*ServerFiles utilizat:Just4Metin
*Syserr:Nu am erroare
Poză:*Detalii suplimentare: Totul este bagat .. si in locale.cfg
Cod: Selectaţi tot
0829 20:05:16889 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010). Automatic conversion will be attempted.
0829 20:05:30776 :: Traceback (most recent call last):
0829 20:05:30776 :: File "ui.py", line 1016, in CallEvent
0829 20:05:30776 :: File "ui.py", line 87, in __call__
0829 20:05:30776 :: File "ui.py", line 69, in __call__
0829 20:05:30776 :: File "uiSystem.py", line 170, in LanguageButton
0829 20:05:30776 :: File "system.py", line 130, in __pack_import
0829 20:05:30776 :: File "system.py", line 110, in _process_result
0829 20:05:30777 :: File "multi.py", line 9, in ?
0829 20:05:30777 :: File "system.py", line 137, in __pack_import
0829 20:05:30777 :: ImportError
0829 20:05:30777 :: :
0829 20:05:30777 :: No module named locale
0829 20:05:30777 :: Intra in multi.py si inlocuieste peste tot unde ai locale cu localeInfosarma1995 scrie:Cod: Selectaţi tot
0829 20:05:16889 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010). Automatic conversion will be attempted. 0829 20:05:30776 :: Traceback (most recent call last): 0829 20:05:30776 :: File "ui.py", line 1016, in CallEvent 0829 20:05:30776 :: File "ui.py", line 87, in __call__ 0829 20:05:30776 :: File "ui.py", line 69, in __call__ 0829 20:05:30776 :: File "uiSystem.py", line 170, in LanguageButton 0829 20:05:30776 :: File "system.py", line 130, in __pack_import 0829 20:05:30776 :: File "system.py", line 110, in _process_result 0829 20:05:30777 :: File "multi.py", line 9, in ? 0829 20:05:30777 :: File "system.py", line 137, in __pack_import 0829 20:05:30777 :: ImportError 0829 20:05:30777 :: : 0829 20:05:30777 :: No module named locale 0829 20:05:30777 ::
Cod: Selectaţi tot
#####################################################
# #
# System By BaF !!!!!!!!!!!!!!!!!! #
# #
#####################################################
import net
import snd
import localeInfo
import ui
import uiTip
import dbg
import os
import app
class MultiLanguage(ui.BoardWithTitleBar):
def __init__(self):
ui.BoardWithTitleBar.__init__(self)
self.LoadMultiLanguage()
def __del__(self):
ui.BoardWithTitleBar.__del__(self)
def Destroy(self):
self.Hide()
return TRUE
def LoadMultiLanguage(self):
self.SetSize(127, 185)
self.Show()
self.AddFlag('movable')
self.AddFlag("float")
self.SetTitleName('Set-Language')
self.SetCenterPosition()
self.SetCloseEvent(self.Close)
self.LoadButtons()
def LoadButtons(self):
self.EnButton = ui.Button()
self.EnButton.SetParent(self)
self.EnButton.SetPosition(20, 50)
self.EnButton.SetUpVisual("d:/ymir work/ui/public/Large_Button_01.sub")
self.EnButton.SetOverVisual("d:/ymir work/ui/public/Large_Button_02.sub")
self.EnButton.SetDownVisual("d:/ymir work/ui/public/Large_Button_03.sub")
self.EnButton.SetText("Engleza")
self.EnButton.SetEvent(self.__Language_1)
self.EnButton.Show()
self.RoButton = ui.Button()
self.RoButton.SetParent(self)
self.RoButton.SetPosition(20, 80)
self.RoButton.SetUpVisual("d:/ymir work/ui/public/Large_Button_01.sub")
self.RoButton.SetOverVisual("d:/ymir work/ui/public/Large_Button_02.sub")
self.RoButton.SetDownVisual("d:/ymir work/ui/public/Large_Button_03.sub")
self.RoButton.SetText("Romana")
self.RoButton.SetEvent(self.__Language_2)
self.RoButton.Show()
def __Language_1(self):
file = open("locale.cfg", "w")
file.write("10000 1252 de")
file.close()
dbg.LogBox("Limba se v-a schimba in Engleza!")
dbg.LogBox("Clientu va reporni.")
os.system('start Metin2.exe')
app.Exit()
self.Close()
def __Language_2(self):
file = open("locale.cfg", "w")
file.write("10000 1252 ro")
file.close()
dbg.LogBox("Limba se v-a schimba in Romana!")
dbg.LogBox("Clientu va reporni.")
os.system('start Metin2.exe')
app.Exit()
def Close(self):
self.Hide()
def OnPressEscapeKey(self):
self.Close()
return TRUE
Utilizatori ce ce navighează pe acest forum: Bing [Bot] și 73 vizitatori