Jump to content
  • 0
Aurelian-Cristian Rus

[AYUDA]Error al cambiar la interfaz del login!

Question

Saludos! Quiero cambiar la interfaz de login de mi cliente y siempre recibo un error que no la entiendo y no lo se como solucionarla! La interfaz es Riveria II.

 

Syserr: 

0505 17:33:02045 :: Traceback (most recent call last):

0505 17:33:02045 ::   File "uiPhaseCurtain.py", line 61, in OnUpdate

0505 17:33:02106 ::   File "networkModule.py", line 150, in __ChangePhaseWindow

0505 17:33:02106 ::   File "introLogin.py", line 233, in Open

0505 17:33:02106 :: AttributeError
0505 17:33:02106 :: : 
0505 17:33:02106 :: 'module' object has no attribute 'LOGIN_FAILURE_NOT_EXIST_ID'
0505 17:33:02106 :: 

introLogin.py: Desde a la linea 224 hasta a la 246;

	def Open(self):
		ServerStateChecker.Create(self)

		print "LOGIN WINDOW OPEN ----------------------------------------------------------------------------"

		self.loginFailureMsgDict={
			#"DEFAULT" : localeInfo.LOGIN_FAILURE_UNKNOWN,

			"ALREADY"	: localeInfo.LOGIN_FAILURE_ALREAY,
			"NOID"		: localeInfo.LOGIN_FAILURE_NOT_EXIST_ID,
			"WRONGPWD"	: localeInfo.LOGIN_FAILURE_WRONG_PASSWORD,
			"FULL"		: localeInfo.LOGIN_FAILURE_TOO_MANY_USER,
			"SHUTDOWN"	: localeInfo.LOGIN_FAILURE_SHUTDOWN,
			"REPAIR"	: localeInfo.LOGIN_FAILURE_REPAIR_ID,
			"BLOCK"		: localeInfo.LOGIN_FAILURE_BLOCK_ID,
			"WRONGMAT"	: localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER,
			"QUIT"		: localeInfo.LOGIN_FAILURE_WRONG_MATRIX_CARD_NUMBER_TRIPLE,
			"BESAMEKEY"	: localeInfo.LOGIN_FAILURE_BE_SAME_KEY,
			"NOTAVAIL"	: localeInfo.LOGIN_FAILURE_NOT_AVAIL,
			"NOBILL"	: localeInfo.LOGIN_FAILURE_NOBILL,
			"BLKLOGIN"	: localeInfo.LOGIN_FAILURE_BLOCK_LOGIN,
			"WEBBLK"	: localeInfo.LOGIN_FAILURE_WEB_BLOCK,
		}

 

Quien me puede ayudar, les agradezco mucho!

Gracias anticipado!

Share this post


Link to post
Share on other sites

19 answers to this question

Recommended Posts

  • 0

Estoy oxidado con esto, pero>

 

 

ah no mames wn, estoy bien mamon, ya ni veo

 

na mas cambia el 

"NOID"		: localeInfo.LOGIN_FAILURE_NOT_EXIST_ID,

POR

"NOID"		: "Introducir ID",

 

 

Espero haberte confundido, SALU3 me saludas a tu ruk

Edited by Zeler
BIEN MENSO ESTOY

Share this post


Link to post
Share on other sites
  • 0
10 hours ago, Zeler said:

Estoy oxidado con esto, pero>

 

 

ah no mames wn, estoy bien mamon, ya ni veo

 

na mas cambia el 

"NOID"		: localeInfo.LOGIN_FAILURE_NOT_EXIST_ID,

POR

"NOID"		: "Introducir ID",

 

 

Espero haberte confundido, SALU3 me saludas a tu ruk

Gracias amigo me funcciono tu ideea! Pero ahora tengo otra problema, exactamente recibo otro error:

Syserr:

0506 12:38:02172 :: Traceback (most recent call last):

0506 12:38:02172 ::   File "uiPhaseCurtain.py", line 61, in OnUpdate

0506 12:38:02173 ::   File "networkModule.py", line 150, in __ChangePhaseWindow

0506 12:38:02173 ::   File "introLogin.py", line 261, in Open

0506 12:38:02173 :: NameError
0506 12:38:02173 :: : 
0506 12:38:02173 :: global name 'uiScriptlocale' is not defined
0506 12:38:02174 :: 

introLogin.py: Desde a la linea 261 hasta a la 263;

		if not self.__LoadScript(uiScriptlocale.LOCALE_UISCRIPT_PATH + "LoginWindow.py"):
			dbg.TraceError("LoginWindow.Open - __LoadScript Error")
			return

Si me puedes ayudar y con eso, muchisimas gracias!

Share this post


Link to post
Share on other sites
  • 0
6 hours ago, NazoX said:

No está definido el uiscritp, tienes q ponerlo al prinpicio del archivo. 

import uiScriptlocale

Gracias amigo, problema resolvada!

Ahora recibo otro error, pero algo mas grande!

0506 21:35:02011 :: Failed to load script file : locale/ro/ui/LoginWindow.py
0506 21:35:02015 :: 
ui.py(line:2774) LoadScriptFile
system.py(line:192) execfile
system.py(line:163) Run
locale/ro/ui/LoginWindow.py(line:208) <module>

LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.AttributeError'>:'module' object has no attribute 'LOGIN_SELECT_TITLE'

0506 21:35:02015 :: ============================================================================================================
0506 21:35:02015 :: Abort!!!!


0506 21:35:02016 :: 
introLogin.py(line:521) __LoadScript
ui.py(line:2791) LoadScriptFile
exception.py(line:36) Abort

LoginWindow.__LoadScript.LoadObject - <type 'exceptions.SystemExit'>:

0506 21:35:02017 :: ============================================================================================================
0506 21:35:02017 :: Abort!!!!

Gracias!

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, NazoX said:

Postea aquí tu loginwindow.py y te lo miro 

import uiScriptLocale
	
ROOT = "d:/ymir work/ui/public/"
		
LOCALE_PATH = uiScriptLocale.LOGIN_PATH
SERVER_BOARD_HEIGHT = 220
SERVER_LIST_HEIGHT = 170

Window = {
	"name" : "LoginWindow",
	"style" : ("movable",),

	"x" : 0,
	"y" : 0,

	"width" : SCREEN_WIDTH,
	"height" : SCREEN_HEIGHT,

	"children" :
	(
		## Board
		{
			"name" : "bg1", "type" : "expanded_image", "x" : 0, "y" : 0,
			"x_scale" : float(SCREEN_WIDTH) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,
			"image" : "locale_ro/locale/ro/ui/login.sub",
		},
		{
			"name" : "bg2", "type" : "expanded_image", "x" : 0, "y" : 0,
			"x_scale" : float(SCREEN_WIDTH) / 1024.0, "y_scale" : float(SCREEN_HEIGHT) / 768.0,
			"image" : "locale_ro/locale/ro/ui/login.sub",
		},
		
		## mainboard
		
			{
			"name" : "mainboard",
			"type" : "image",

			"x" : (SCREEN_WIDTH - 1024) / 2,
			"y" : (SCREEN_HEIGHT - 768) / 2,

			"image" : "locale_ro/locale/ro/ui/pictures/mainboard.jpg",
			
			"children" :
			(
				{
				  ## LoginBoard
					"name" : "ID_EditLine",
					"type" : "editline",

					"x" : 490,
					"y" : 379,

					"width" : 120,
					"height" : 18,

					"input_limit" : 16,
					"enable_codepage" : 0,

					"r" : 1.0,
					"g" : 1.0,
					"b" : 1.0,
					"a" : 1.0,
				},
				{
					"name" : "Password_EditLine",
					"type" : "editline",

					"x" : 490,
					"y" : 426,

					"width" : 120,
					"height" : 18,

					"input_limit" : 16,
					"secret_flag" : 2,
					"enable_codepage" : 0,

					"r" : 1.0,
					"g" : 1.0,
					"b" : 1.0,
					"a" : 1.0,
				},
				{
					"name" : "LoginButton",
					"type" : "Button",

					"x" : 400,
					"y" : 473,

					"default_image" : "locale_ro/locale/ro/ui/pictures/buttons/login.tga",
					"over_image" : "locale_ro/locale/ro/ui/pictures/buttons/login_hover.tga",
					"down_image" : "locale_ro/locale/ro/ui/pictures/buttons/login_down.tga",
				},
				
				{
					"name" : "up",
					"type" : "Button",

					"x" : 550,
					"y" : 307,

					"default_image" : "locale_ro/locale/ro/ui/pictures/buttons/up.tga",
					"over_image" : "locale_ro/locale/ro/ui/pictures/buttons/up.tga",
					"down_image" : "locale_ro/locale/ro/ui/pictures/buttons/up.tga",
					},
					
				{
					"name" : "down",
					"type" : "Button",

					"x" : 550 + 15,
					"y" : 307,

					"default_image" : "locale_ro/locale/ro/ui/pictures/buttons/down.tga",
					"over_image" : "locale_ro/locale/ro/pictures/buttons/down.tga",
					"down_image" : "locale_ro/locale/ro/pictures/buttons/down.tga",
					},
					
					

					
		
		
		{
			"name" : "on1",
			"type" : "image",

			"x" : 455,
			"y" : 307,

			"image" : "locale_ro/locale/ro/ui/pictures/buttons/channel1_online.tga",
		},
		
		{
			"name" : "on2",
			"type" : "image",

			"x" : 455,
			"y" : 307,

			"image" : "locale_ro/locale/ro/ui/pictures/buttons/channel2_online.tga",
		},
		
				{
			"name" : "off1",
			"type" : "image",

			"x" : 455,
			"y" : 307,

			"image" : "locale_ro/locale/ro/ui/pictures/buttons/channel1_offline.tga",
		},
		
		{
			"name" : "off2",
			"type" : "image",

			"x" : 455,
			"y" : 307,

			"image" : "locale_ro/locale/ro/ui/pictures/buttons/channel2_offline.tga",
		},
	
		
			),
			
			},
			
		
		## LoginBoard

		{
			"name" : "LoginBoard",
			"type" : "image",

			"x" : 0,
			"y" : 0,

			"image" : "",
		},
		
		

		## ServerBoard
		{
			"name" : "ServerBoard",
			"type" : "thinboard",

			"x" : 0,
			"y" : SCREEN_HEIGHT - SERVER_BOARD_HEIGHT - 150,
			"width" : 375,
			"height" : SERVER_BOARD_HEIGHT,
			"horizontal_align" : "center",

			"children" :
			(

				## Title
				{
					"name" : "Title",
					"type" : "text",

					"x" : 0,
					"y" : 12,
					"horizontal_align" : "center",
					"text_horizontal_align" : "center",
					"text" : uiScriptLocale.LOGIN_SELECT_TITLE,
				},

				## Horizontal
				{
					"name" : "HorizontalLine1",
					"type" : "line",

					"x" : 10,
					"y" : 34,
					"width" : 354,
					"height" : 0,
					"color" : 0xff777777,
				},
				{
					"name" : "HorizontalLine2",
					"type" : "line",

					"x" : 10,
					"y" : 35,
					"width" : 355,
					"height" : 0,
					"color" : 0xff111111,
				},

				## Vertical
				{
					"name" : "VerticalLine1",
					"type" : "line",

					"x" : 246,
					"y" : 38,
					"width" : 0,
					"height" : SERVER_LIST_HEIGHT + 4,
					"color" : 0xff777777,
				},
				{
					"name" : "VerticalLine2",
					"type" : "line",

					"x" : 247,
					"y" : 38,
					"width" : 0,
					"height" : SERVER_LIST_HEIGHT + 4,
					"color" : 0xff111111,
				},

				## ListBox
				{
					"name" : "ServerList",
					"type" : "listbox2",

					"x" : 10,
					"y" : 40,
					"width" : 232,
					"height" : SERVER_LIST_HEIGHT,
					"row_count" : 18,
					"item_align" : 0,
				},
				{
					"name" : "ChannelList",
					"type" : "listbox",

					"x" : 255,
					"y" : 40,
					"width" : 109,
					"height" : SERVER_LIST_HEIGHT,

					"item_align" : 0,
				},
				{
					"name" : "ConnectName",
					"type" : "text",

					"x" : 82,
					"y" : 14,

				},

				## Buttons
				{
					"name" : "ServerSelectButton",
					"type" : "Button",

					"x" : 267,
					"y" : SERVER_LIST_HEIGHT,

					"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
					"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
					"down_image" : "d:/ymir work/ui/public/large_button_03.sub",

					"text" : uiScriptLocale.OK,
				},
				{
					"name" : "ServerExitButton",
					"type" : "Button",

					"x" : 267,
					"y" : SERVER_LIST_HEIGHT + 22,

					"default_image" : "d:/ymir work/ui/public/large_button_01.sub",
					"over_image" : "d:/ymir work/ui/public/large_button_02.sub",
					"down_image" : "d:/ymir work/ui/public/large_button_03.sub",

					"text" : uiScriptLocale.LOGIN_SELECT_EXIT,
				},
			),
		},
	),
}

Aqui esta, gracias!

Share this post


Link to post
Share on other sites
  • 0

Sería mas fácil si me dijeras que sistema quieres poner.

si no funciona prueba cambiando esta línea por esto:

"text" : "ingrese su texto ",  quedando así

 

 

## Title
				{
					"name" : "Title",
					"type" : "text",

					"x" : 0,
					"y" : 12,
					"horizontal_align" : "center",
					"text_horizontal_align" : "center",
					"text" : "ingrese su texto",

Prueba con locale_ro descompilado--> locale_interface.txt y al final añades esto con su tab o lo que tenga como las demás líneas.

LOGIN_SELECT_TITLE

Share this post


Link to post
Share on other sites
  • 0
5 minutes ago, NazoX said:

Prueba con locale_ro descompilado--> locale_interface.txt y al final añades esto con su tab o lo que tenga como las demás líneas.

si no funciona prueba cambiando esta línea por esto:

 

LOGIN_SELECT_TITLE

El mismo error amigo!

Share this post


Link to post
Share on other sites
  • 0
8 minutes ago, NazoX said:

Que sistema tratas de poner?

Ya esta rezolvado con las errores anteriores. Ahora me da esto:

0507 01:26:02158 :: 
introLogin.py(line:521) __LoadScript
ui.py(line:2795) LoadScriptFile

LoginWindow.__LoadScript.LoadObject - <type 'exceptions.KeyError'>:'window'

0507 01:26:02158 :: ============================================================================================================
0507 01:26:02158 :: Abort!!!!

Gracias amigo!

Share this post


Link to post
Share on other sites
  • 0
hace 11 minutos, Aurelian-Cristian Rus dijo:

Es una interfaz del login, Riveria II.

 

hace 3 minutos, Aurelian-Cristian Rus dijo:

Ya esta rezolvado con las errores anteriores. Ahora me da esto:

0507 01:26:02158 :: 
introLogin.py(line:521) __LoadScript
ui.py(line:2795) LoadScriptFile

LoginWindow.__LoadScript.LoadObject - <type 'exceptions.KeyError'>:'window'

0507 01:26:02158 :: ============================================================================================================
0507 01:26:02158 :: Abort!!!!

Gracias amigo!

Quizás te falta algún lib o archivo, ese error, es porque en esa linea del ui.py tiene algo mal escrito, algún tab o alguna incompatibilidad, revisalo bien 🙂

Share this post


Link to post
Share on other sites
  • 0
2 minutes ago, NazoX said:

 

Quizás te falta algún lib o archivo, ese error, es porque en esa linea del ui.py tiene algo mal escrito, algún tab o alguna incompatibilidad, revisalo bien 🙂

Aqui tengo el def que pertenece de la linea con la problema;

	def LoadScriptFile(self, window, FileName):
		import exception
		import exceptions
		import os
		import errno
		self.Clear()

		print "===== Load Script File : %s" % (FileName)

		try:
			execfile(FileName, self.ScriptDictionary)
		except IOError, err:
			import sys
			import dbg			
			dbg.TraceError("Failed to load script file : %s" % (FileName))
			dbg.TraceError("error  : %s" % (err))
			exception.Abort("LoadScriptFile1")
		except RuntimeError,err:
			import sys
			import dbg			
			dbg.TraceError("Failed to load script file : %s" % (FileName))
			dbg.TraceError("error  : %s" % (err))
			exception.Abort("LoadScriptFile2")
		except:
			import sys
			import dbg			
			dbg.TraceError("Failed to load script file : %s" % (FileName))
			exception.Abort("LoadScriptFile!!!!!!!!!!!!!!")
		
		#####

		Body = self.ScriptDictionary["window"]
		self.CheckKeyList("window", Body, self.BODY_KEY_LIST)

		window.ClearDictionary()
		self.InsertFunction = window.InsertChild

		window.SetPosition(int(Body["x"]), int(Body["y"]))

		if localeInfo.IsARABIC(): 
			w = wndMgr.GetScreenWidth()
			h = wndMgr.GetScreenHeight()
			if Body.has_key("width"):
				w = int(Body["width"])
			if Body.has_key("height"):
				h = int(Body["height"])

			window.SetSize(w, h)
		else:
			window.SetSize(int(Body["width"]), int(Body["height"]))
			if TRUE == Body.has_key("style"):
				for StyleList in Body["style"]:
					window.AddFlag(StyleList)
		

		self.LoadChildren(window, Body)

 

Share this post


Link to post
Share on other sites
  • 0

esto es error simple mala instalación de la interfaz que deseas poner.
post los archivos que intentas instalar y se te ayuda porque lo que veo es un error de instalación.

Share this post


Link to post
Share on other sites
  • 0
7 hours ago, Meruem said:

esto es error simple mala instalación de la interfaz que deseas poner.
post los archivos que intentas instalar y se te ayuda porque lo que veo es un error de instalación.

Aqui hay toda la sistema que quiero instalarla;

https://mega.nz/#!ZaI3lLbD!aFTFbvdczmz1qFKCK4FT2DB9Ga3zqjGO8Md34ihzDmU

Gracias!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...