[PROBLEM] Vegas location system

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
nexeus
Nou Venit

Nou Venit
Mesaje: 6
Membru din: 18 Dec 2015, 01:59
Regat: Shinsoo
Aprecieri: 20  
Mulţumiri: 0
Medalii

*Problemă: Vegas location system
Tipologie server:
*Resursă folosită:
*ServerFiles utilizat:
*Syserr:
0203 13:53:14846 :: Failed to load script file : uiscript/script_localization.py
0203 13:53:14846 ::
ui.py(line:2780) LoadScriptFile
system.py(line:192) execfile
system.py(line:163) Run
uiscript/script_localization.py(line:36) <module>

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

0203 13:53:14846 :: ============================================================================================================
0203 13:53:14846 :: Abort!!!!

Poză:
*Detalii suplimentare: I recently added the Vegas location system, I made all the steps, I compiled everything seamlessly, I made changes according to the instructions (Root / Locale / Uiscrip).

But when I enter with "Choose a character", the customer crashes

script_localization.py

###################################################################
# title_name : Localization System
# date_created : 2016.11.13
# filename : script_localization.py
# author : VegaS
#

import uiScriptLocale
import locale

LARGE_VALUE_FILE = "d:/ymir work/ui/public/Parameter_Slot_05.sub"

window = {
"name" : "Board",
"style" : ("movable", "float",),
"x" : 0,
"y" : 0,
"width" : 450,
"height" : 340,
"children" :
(
{
"name" : "board",
"type" : "board_with_titlebar",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 0,
"height" : 0,
"children" :
(
{
"name":"HorizontalBar1", "type":"horizontalbar", "x": 10, "y": 35, "width": 220,
"children" :
(
{ "name":"TextLine1", "type":"text", "x": 8, "y":2, "text": locale.LOCALIZATION_HORIZONTALBAR_1, },
),
},

{
"name":"HorizontalBar2", "type":"horizontalbar", "x": 235, "y": 35, "width": 206,
"children" :
(
{ "name":"TextLine2", "type":"text", "x": 8, "y": 2, "text": locale.LOCALIZATION_HORIZONTALBAR_2, },
),
},
),
},
),
}
In the locale_game added
LOCALIZATION_TITLE Localization System - Copyright from VegaS
LOCALIZATION_DESC_BTN_EDIT Edit location name
LOCALIZATION_SAVE Save
LOCALIZATION_TELEPORT Teleport
LOCALIZATION_EDIT Edit
LOCALIZATION_CANCEL Cancel
LOCALIZATION_CHANGE_NAME Save or edit name of localization
LOCALIZATION_CURRENT_LINE Curenntly name of localization:
LOCALIZATION_HORIZONTALBAR_1 Currently name of localizations:
LOCALIZATION_HORIZONTALBAR_2 Configurations from localizations:

[mod=RaffaeL]Topic modificat dupa Model. Respectati modelul de postare!![/mod]
Avatar utilizator
xASU
Nivel 1

Nivel 1
Mesaje: 64
Membru din: 16 Dec 2018, 18:12
Server: Kop2 / War OF Winner
Regat: Jinno
Aprecieri: 2  
Mulţumiri: 16  
 Contact:
Medalii

trebuie tab nu space
Avatar utilizator
nexeus
Nou Venit

Nou Venit
Mesaje: 6
Membru din: 18 Dec 2015, 01:59
Regat: Shinsoo
Aprecieri: 20  
Mulţumiri: 0
Medalii

xASU scrie:trebuie tab nu space
tabs are added correctly only the quotes on the forum delete them :p
Avatar utilizator
BRTSERGIU2
Utilizator interzis !

Utilizator interzis !
Mesaje: 600
Membru din: 25 Aug 2014, 21:28
Server: Metin2Ro
Regat: Chunjo
Aprecieri: 28  
Mulţumiri: 77  
Medalii

nexeus scrie:*Problemă: Vegas location system
Tipologie server:
*Resursă folosită:
*ServerFiles utilizat:
*Syserr:
0203 13:53:14846 :: Failed to load script file : uiscript/script_localization.py
0203 13:53:14846 ::
ui.py(line:2780) LoadScriptFile
system.py(line:192) execfile
system.py(line:163) Run
uiscript/script_localization.py(line:36) <module>

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

0203 13:53:14846 :: ============================================================================================================
0203 13:53:14846 :: Abort!!!!

Poză:
*Detalii suplimentare: I recently added the Vegas location system, I made all the steps, I compiled everything seamlessly, I made changes according to the instructions (Root / Locale / Uiscrip).

But when I enter with "Choose a character", the customer crashes

script_localization.py

###################################################################
# title_name : Localization System
# date_created : 2016.11.13
# filename : script_localization.py
# author : VegaS
#

import uiScriptLocale
import locale

LARGE_VALUE_FILE = "d:/ymir work/ui/public/Parameter_Slot_05.sub"

window = {
"name" : "Board",
"style" : ("movable", "float",),
"x" : 0,
"y" : 0,
"width" : 450,
"height" : 340,
"children" :
(
{
"name" : "board",
"type" : "board_with_titlebar",
"style" : ("attach",),
"x" : 0,
"y" : 0,
"width" : 0,
"height" : 0,
"children" :
(
{
"name":"HorizontalBar1", "type":"horizontalbar", "x": 10, "y": 35, "width": 220,
"children" :
(
{ "name":"TextLine1", "type":"text", "x": 8, "y":2, "text": locale.LOCALIZATION_HORIZONTALBAR_1, },
),
},

{
"name":"HorizontalBar2", "type":"horizontalbar", "x": 235, "y": 35, "width": 206,
"children" :
(
{ "name":"TextLine2", "type":"text", "x": 8, "y": 2, "text": locale.LOCALIZATION_HORIZONTALBAR_2, },
),
},
),
},
),
}
In the locale_game added
LOCALIZATION_TITLE Localization System - Copyright from VegaS
LOCALIZATION_DESC_BTN_EDIT Edit location name
LOCALIZATION_SAVE Save
LOCALIZATION_TELEPORT Teleport
LOCALIZATION_EDIT Edit
LOCALIZATION_CANCEL Cancel
LOCALIZATION_CHANGE_NAME Save or edit name of localization
LOCALIZATION_CURRENT_LINE Curenntly name of localization:
LOCALIZATION_HORIZONTALBAR_1 Currently name of localizations:
LOCALIZATION_HORIZONTALBAR_2 Configurations from localizations:

[mod=RaffaeL]Topic modificat dupa Model. Respectati modelul de postare!![/mod]
you can do it like this
{ "name":"TextLine1", "type":"text", "x": 8, "y":2, "text": "Currently name of localizations:", },
Avatar utilizator
nexeus
Nou Venit

Nou Venit
Mesaje: 6
Membru din: 18 Dec 2015, 01:59
Regat: Shinsoo
Aprecieri: 20  
Mulţumiri: 0
Medalii

you can do it like this
{ "name":"TextLine1", "type":"text", "x": 8, "y":2, "text": "Currently name of localizations:", },
if I do, the new sysser pops up
0203 14:34:14494 :: Traceback (most recent call last):

0203 14:34:14494 :: File "networkModule.py", line 247, in SetGamePhase

0203 14:34:14495 :: File "game.py", line 124, in __init__

0203 14:34:14495 :: File "uiLocalization.py", line 31, in __init__

0203 14:34:14495 :: File "uiLocalization.py", line 57, in LoadWindowLocalization

0203 14:34:14496 :: AttributeError
0203 14:34:14496 :: :
0203 14:34:14496 :: 'module' object has no attribute 'LOCALIZATION_TITLE'
0203 14:34:14496 ::
it looks like it does not load locale_game
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

nexeus scrie:
you can do it like this
{ "name":"TextLine1", "type":"text", "x": 8, "y":2, "text": "Currently name of localizations:", },
if I do, the new sysser pops up
0203 14:34:14494 :: Traceback (most recent call last):

0203 14:34:14494 :: File "networkModule.py", line 247, in SetGamePhase

0203 14:34:14495 :: File "game.py", line 124, in __init__

0203 14:34:14495 :: File "uiLocalization.py", line 31, in __init__

0203 14:34:14495 :: File "uiLocalization.py", line 57, in LoadWindowLocalization

0203 14:34:14496 :: AttributeError
0203 14:34:14496 :: :
0203 14:34:14496 :: 'module' object has no attribute 'LOCALIZATION_TITLE'
0203 14:34:14496 ::
it looks like it does not load locale_game
Do you copy-pasted that definitions into locale_game, or manually addet?
Make sure that you have [TAB]s there.
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
nexeus
Nou Venit

Nou Venit
Mesaje: 6
Membru din: 18 Dec 2015, 01:59
Regat: Shinsoo
Aprecieri: 20  
Mulţumiri: 0
Medalii

Do you copy-pasted that definitions into locale_game, or manually addet?
Make sure that you have [TAB]s there.
Tapes are added correctly

All system from Vegasa
mega .nz /#!lkxlSCQJ!0puwWiKIZpVhLDV1VLat6ERhoE58Gh95D144ogHCoIA
virustotal .com /#/file/bc72c4ba56eb1558a27a83c915f10587d48a1841c3c4a094bdc02e96a6858dd9/detection
Avatar utilizator
nexeus
Nou Venit

Nou Venit
Mesaje: 6
Membru din: 18 Dec 2015, 01:59
Regat: Shinsoo
Aprecieri: 20  
Mulţumiri: 0
Medalii

Done!
Change the file name to uilocalization and replace it with the localeinfo in the script_localization file
Avatar utilizator
FRANCIS
Administrator Adjunct

Administrator Adjunct
Mesaje: 7879
Membru din: 06 Noi 2015, 19:52
Regat: Chunjo
Aprecieri: 334  
Mulţumiri: 54529  
Discord: Copiază ID
Medalii

Rezolvat !
If you talk to a man in a language he understands, that goes to his head. If you talk to him in his own language, that goes to his heart.
Imagine
ENJOY
Imagine
Afișează semnătura
Închis
Răspunsuri
3
Vizualizări
595
Răspunsuri
13
Vizualizări
2232
Răspunsuri
21
Vizualizări
4168

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 31 vizitatori