Eroare fisier citire/deschidere .txt
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5331
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
inlocuieste uibattlepass.py cu asta:
si pune in folderul lib acel fisier battle_pass.txt
si pune in folderul lib acel fisier battle_pass.txt
- lonelylup
-

- Mesaje: 171
- Membru din: 27 Mai 2018, 13:33
- Server: None
- Regat: Jinno
- Aprecieri: 215
- Mulţumiri: 1363
- Rezolvări prob.: 1
- Discord: Copiază ID
sysser dupa ce am inlocuit uibattlepass.py si am daugat fisierul in directorul lib
Cod: Selectaţi tot
1008 18:11:14102 :: Failed to load script file : UIScript/BattlePassWindow.py
1008 18:11:14104 ::
ui.py(line:3819) LoadScriptFile
system.py(line:192) execfile
system.py(line:163) Run
UIScript/BattlePassWindow.py(line:34) <module>
LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.AttributeError'>:'module' object has no attribute 'BATTLE_PASS'
1008 18:11:14104 :: ============================================================================================================
1008 18:11:14104 :: Abort!!!!
1008 18:11:14104 ::
uiBattlePass.py(line:468) LoadWindow
ui.py(line:3836) LoadScriptFile
exception.py(line:36) Abort
BattlePassWindow.LoadDialog.LoadScript - <type 'exceptions.SystemExit'>:
1008 18:11:14104 :: ============================================================================================================
1008 18:11:14104 :: Abort!!!!
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5331
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
pune inapoi uibattlepass.py al tau si inlocuieste doar def-ul tau cu asta:lonelylup scrie: ↑08 Oct 2021, 17:11 sysser dupa ce am inlocuit uibattlepass.py si am daugat fisierul in directorul libCod: Selectaţi tot
1008 18:11:14102 :: Failed to load script file : UIScript/BattlePassWindow.py 1008 18:11:14104 :: ui.py(line:3819) LoadScriptFile system.py(line:192) execfile system.py(line:163) Run UIScript/BattlePassWindow.py(line:34) <module> LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.AttributeError'>:'module' object has no attribute 'BATTLE_PASS' 1008 18:11:14104 :: ============================================================================================================ 1008 18:11:14104 :: Abort!!!! 1008 18:11:14104 :: uiBattlePass.py(line:468) LoadWindow ui.py(line:3836) LoadScriptFile exception.py(line:36) Abort BattlePassWindow.LoadDialog.LoadScript - <type 'exceptions.SystemExit'>: 1008 18:11:14104 :: ============================================================================================================ 1008 18:11:14104 :: Abort!!!!
Cod: Selectaţi tot
def LoadMissionList(self):
try:
#lines = open(app.GetLocalePath() + "/battle_pass.txt", "r").readlines()
lines = open("lib/battle_pass.txt", "r").readlines()#try
except:
import exception
exception.Abort("LoadMissionList Failed")
for line in lines:
tokens = line[:-1].split("\t")
if len(tokens) == 0 or not tokens[0]:
continue
if tokens[0] == "#":
continue
MISSION_INFO_DICT[int(tokens[0])] = [ tokens[1], tokens[2], tokens[3], tokens[4], tokens[5], tokens[6] ]
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 42 vizitatori
