antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
AlphaMaster

[Erro] Item_Proto.txt

Question

Ola pessoal estou com um erro quando vou converter txt com o comando sh item_proto.txt.sh

 

me da o seguinte erro >>

TypeError: cannot concatenate 'str' and 'NoneType' objects

alguém sabe como resolvo ?  :+1:

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Um valor nulo no item proto, presumo que seja como o exemplo abaixo.
Exemplo: TABTAB

Poupa-se trabalho aos dois e tenta este conversor:

DL: https://mega.nz/#!Q5BmWZYa!yFx7LqN2L6dYBBOedV5xyu7WCCgRzu2J4yPXe_h7bzc
VT: https://www.virustotal.com/pt/file/520a66e214772d07ffcd3137c323cd094aec33dc366b9e2661faab79725214d3/analysis/1458269019/
Cumprimentos.

Share this post


Link to post
Share on other sites
antiblock
Elveron
  • 0

Oks muito obg vou testar ele 

Share this post


Link to post
Share on other sites
  • 0

nao da mano ja tentamos usar porem e do sql do  navicat queriamos converte dentro do game em txt 

 

 

root@:/usr/game # cd /usr/game && sh itemtxt.sh
Conectando a Database
Conectado
Convertendo item_proto...
Traceback (most recent call last):
  File "item_txt.py", line 792, in <module>
    item_proto_line = "%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s" % (row[0], "\"" + row[1] + "\"", "\""  + get_item_type(row[3], row[0]) + "\"" , "\""  + get_item_subtype(row[3], row[4], row[0]) + "\"", row[6] , get_antiflag(row[7], row[0]), get_flag(row[8], row[0]), get_wearflag(row[9], row[0]), get_immuneflag(row[10]), row[11], row[12], row[13], row[14], row[16], get_limittype(row[17]), row[18], get_limittype(row[19]), row[20], get_apply(row[21]), row[22], get_apply(row[23]), row[24], get_apply(row[25]), row[26], row[27], row[28], row[29], row[30], row[31], row[32], row[39], row[40], row[41])
TypeError: cannot concatenate 'str' and 'NoneType' objects
 
 
 
agora parece esse error

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this