Gerando seu próprio itemInfo.lua em português!

Niunzin

New member
Messages
33
Points
0
Age
27
Github
niunzin
Emulator
Gerando seu próprio itemInfo.lua em português!
sLVEeWV.png

Introdução

Com a chegada dos novos hexeds, o modo de leitura dos arquivos mudou, e para ser sincero ficou bem melhor. Os dados ficam armazenados em uma única tabela feita em .lua, o que facilita muito a vida de quem faz itens customizados. O que vou ensinar a fazer nesse tutorial, é converter aquela porrada de arquivos .txt para o único arquivo itemInfo.lua.

Sobre o programa

  • # = item na ordem de leitura
  • ID = identificação do item (id)
  • Name = nome do item
  • Description = descrição do item
  • uName = nome do item quando não identificado
  • uDescription = descrição do item quando não identificado
  • uResource = arquivo do item quando não identificado
  • Resource = arquivo do item
  • Slots = (precisa mesmo falar desse?)
  • NumClass = Algo como o tipo do item, não sei explicar, desculpa.

O programa pode vir a retornar uma série de erros quando terminado, o mais comum é falha ao obter o NumClass, isso significa que um item que foi encontrado na pasta data não foi encontrado no item_db.conf, então o programa deixa como padrão. (0)

+Extra: é possível alterar os valores na tabela do programa #fikdik.

Requisitos



Primeiro passo

Você deve criar sua própria pasta data pelo método tradicional, abrindo a grf do bRO e pegando alguns arquivos, para isso eu recomendo o GRF Editor, pois basta abrir a pasta data, digitar .txt no filtro e copiar todos os arquivos.

Os arquivos que o programa irá precisar obrigatoriamente pois ele irá ler são:

idnum2itemdisplaynametable.txtidnum2itemdesctable.txtidnum2itemresnametable.txtnum2itemdisplaynametable.txtnum2itemdesctable.txtnum2itemresnametable.txtitemslotcounttable.txtitem_db.conf

Segundo passo

Como você deve ter percebido, no final da lista há o item_db.conf. Esse arquivo é crucial, pois ele irá obter o NumClass dos itens, ele precisa estar no formato novo (pelo menos novo para mim, não sei para vocês haha) que é parecido com JSON: (o item_db.conf deverá estar junto com os outros arquivos na pasta data)

O programa irá ler a seguinte linha:

View: (alguma coisa)

Terceiro passo

O mais simples, abra o ItemSolution, selecione a sua pasta data e aguarde. Esse processo demorou cerca de 10 minutos comigo, é demorado pois faz uma busca por todos esses arquivos.

Quarto passo (opcional)

Escolha o método de orientação que irá ser gerado, você pode escolher por id, nome, descrição ou pela ordem do arquivo que ele leu, basta clicar no título como na imagem:

O método padrão é pela ordem dos arquivos que ele leu.

DjBik2T.png

Quinto passo

O mais fácil, clique em salvar e aguarde!

Sexto passo

Se você teve algum problema na hora de gerar o arquivo ou algo parecido, ou se você é simplesmente um preguiçoso de plantão (que vergonha rs) você pode baixar o arquivo itemInfo.lua em meu repositório: https://github.com/Niunzin/Diversos

Créditos

  • ItemSolution - Niunzin
  • data - LUG
  • Tutorial - Niunzin


Vídeo demonstrativo

Em breve!

 
Last edited by a moderator:
Nossa parece que isso ai é bom, mas eu tenho uma duvida, no 4º passo se eu escolher por id ele vai por na ordem mesmo dos ids?

e se eu já tiver um itemInfo.lua e quiser colocar os ids em ordem eu posso usar esse programa ai?

bota esse tutorial em inglês, pode ajudar muita gente no forum, e também divulga ele em outros foruns.

desde já parabéns

 
Last edited by a moderator:
Sim, ele ordena por id, nome ou descrição, vc escolhe.

Bom infelizmente ele não lê o itemInfo.lua apenas os arquivos externos...

Descobri um problema que algumas descrições bugam e tem que arrumar manualmente, demora uns 10 minutinhos pra arrumar td e ficar ok.. eu pensei que tinha arrumado ._.

Valeu cara!

 
NumClass  field  was not  working properly

  sorry, my native language  is Chinese and Here is my covert result:

  [1112] = {
   unidentifiedDisplayName = "擊刺長劍",
   unidentifiedResourceName = "溯檜橫",
   unidentifiedDescriptionName = {
     "有著細長刃的劍,專門做刺穿用。",
     "系列 : ^777777劍^000000  攻擊 : ^77777770^000000",
     "重量 : ^77777750^000000",
     "武器等級 : ^7777772^000000",
     "要求等級 : ^77777714^000000",
     "裝備 : ^777777初學者/劍士系列/商人系列/盜賊系列可以裝備 ^000000"
   },
   identifiedDisplayName = "擊刺長劍",
   identifiedResourceName = "溯檜橫",
   identifiedDescriptionName = {
     "有著細長刃的劍,專門做刺穿用。",
     "系列 : ^777777劍^000000  攻擊 : ^77777770^000000",
     "重量 : ^77777750^000000",
     "武器等級 : ^7777772^000000",
     "要求等級 : ^77777714^000000",
     "裝備 : ^777777初學者/劍士系列/商人系列/盜賊系列可以裝備 ^000000"
   },
   slotCount = 0,
   ClassNum = 0 ----> this value should be 2
 },

 
Last edited by a moderator:
NumClass  field  was not  working properly

  sorry, my native language  is Chinese and Here is my covert result:

  [1112] = {

   unidentifiedDisplayName = "擊刺長劍",

   unidentifiedResourceName = "溯檜橫",

   unidentifiedDescriptionName = {

     "有著細長刃的劍,專門做刺穿用。",

     "系列 : ^777777劍^000000  攻擊 : ^77777770^000000",

     "重量 : ^77777750^000000",

     "武器等級 : ^7777772^000000",

     "要求等級 : ^77777714^000000",

     "裝備 : ^777777初學者/劍士系列/商人系列/盜賊系列可以裝備 ^000000"

   },

   identifiedDisplayName = "擊刺長劍",

   identifiedResourceName = "溯檜橫",

   identifiedDescriptionName = {

     "有著細長刃的劍,專門做刺穿用。",

     "系列 : ^777777劍^000000  攻擊 : ^77777770^000000",

     "重量 : ^77777750^000000",

     "武器等級 : ^7777772^000000",

     "要求等級 : ^77777714^000000",

     "裝備 : ^777777初學者/劍士系列/商人系列/盜賊系列可以裝備 ^000000"

   },

   slotCount = 0,

   ClassNum = 0 ----> this value should be 2

 },
That item exists on your item_db?

 
NumClass  field  was not  working properly

  sorry, my native language  is Chinese and Here is my covert result:

  [1112] = {

   unidentifiedDisplayName = "擊刺長劍",

   unidentifiedResourceName = "溯檜橫",

   unidentifiedDescriptionName = {

     "有著細長刃的劍,專門做刺穿用。",

     "系列 : ^777777劍^000000  攻擊 : ^77777770^000000",

     "重量 : ^77777750^000000",

     "武器等級 : ^7777772^000000",

     "要求等級 : ^77777714^000000",

     "裝備 : ^777777初學者/劍士系列/商人系列/盜賊系列可以裝備 ^000000"

   },

   identifiedDisplayName = "擊刺長劍",

   identifiedResourceName = "溯檜橫",

   identifiedDescriptionName = {

     "有著細長刃的劍,專門做刺穿用。",

     "系列 : ^777777劍^000000  攻擊 : ^77777770^000000",

     "重量 : ^77777750^000000",

     "武器等級 : ^7777772^000000",

     "要求等級 : ^77777714^000000",

     "裝備 : ^777777初學者/劍士系列/商人系列/盜賊系列可以裝備 ^000000"

   },

   slotCount = 0,

   ClassNum = 0 ----> this value should be 2

 },
That item exists on your item_db?
Hum, I can find it  in item_db.conf
{ Id: 1112 AegisName: "Lapier__" Name: "擊刺長劍" Type: 4 Buy: 10000 Weight: 500 Atk: 70 Range: 1 Job: 0x000654E3 Loc: 2 WeaponLv: 2 EquipLv: 14 View: 2},warnings when converting to iteminfo.luahttp://pastebin.com/raw.php?i=ZyFvsUh5

 
Last edited by a moderator:
NumClass  field  was not  working properly

  sorry, my native language  is Chinese and Here is my covert result:

  [1112] = {

   unidentifiedDisplayName = "擊刺長劍",

   unidentifiedResourceName = "溯檜橫",

   unidentifiedDescriptionName = {

     "有著細長刃的劍,專門做刺穿用。",

     "系列 : ^777777劍^000000  攻擊 : ^77777770^000000",

     "重量 : ^77777750^000000",

     "武器等級 : ^7777772^000000",

     "要求等級 : ^77777714^000000",

     "裝備 : ^777777初學者/劍士系列/商人系列/盜賊系列可以裝備 ^000000"

   },

   identifiedDisplayName = "擊刺長劍",

   identifiedResourceName = "溯檜橫",

   identifiedDescriptionName = {

     "有著細長刃的劍,專門做刺穿用。",

     "系列 : ^777777劍^000000  攻擊 : ^77777770^000000",

     "重量 : ^77777750^000000",

     "武器等級 : ^7777772^000000",

     "要求等級 : ^77777714^000000",

     "裝備 : ^777777初學者/劍士系列/商人系列/盜賊系列可以裝備 ^000000"

   },

   slotCount = 0,

   ClassNum = 0 ----> this value should be 2

 },
That item exists on your item_db?
Hum, I can find it  in item_db.conf
{ Id: 1112 AegisName: "Lapier__" Name: "擊刺長劍" Type: 4 Buy: 10000 Weight: 500 Atk: 70 Range: 1 Job: 0x000654E3 Loc: 2 WeaponLv: 2 EquipLv: 14 View: 2},warnings when converting to iteminfo.luahttp://pastebin.com/raw.php?i=ZyFvsUh5
omg, he didn't read any item?

 
NumClass  field  was not  working properly

  sorry, my native language  is Chinese and Here is my covert result:

  [1112] = {

   unidentifiedDisplayName = "擊刺長劍",

   unidentifiedResourceName = "溯檜橫",

   unidentifiedDescriptionName = {

     "有著細長刃的劍,專門做刺穿用。",

     "系列 : ^777777劍^000000  攻擊 : ^77777770^000000",

     "重量 : ^77777750^000000",

     "武器等級 : ^7777772^000000",

     "要求等級 : ^77777714^000000",

     "裝備 : ^777777初學者/劍士系列/商人系列/盜賊系列可以裝備 ^000000"

   },

   identifiedDisplayName = "擊刺長劍",

   identifiedResourceName = "溯檜橫",

   identifiedDescriptionName = {

     "有著細長刃的劍,專門做刺穿用。",

     "系列 : ^777777劍^000000  攻擊 : ^77777770^000000",

     "重量 : ^77777750^000000",

     "武器等級 : ^7777772^000000",

     "要求等級 : ^77777714^000000",

     "裝備 : ^777777初學者/劍士系列/商人系列/盜賊系列可以裝備 ^000000"

   },

   slotCount = 0,

   ClassNum = 0 ----> this value should be 2

 },
That item exists on your item_db?
Hum, I can find it  in item_db.conf
{ Id: 1112 AegisName: "Lapier__" Name: "擊刺長劍" Type: 4 Buy: 10000 Weight: 500 Atk: 70 Range: 1 Job: 0x000654E3 Loc: 2 WeaponLv: 2 EquipLv: 14 View: 2},warnings when converting to iteminfo.luahttp://pastebin.com/raw.php?i=ZyFvsUh5
omg, he didn't read any item?
 
Hum..Hum.., Am I the only one experiencing this issues?

 
Last edited by a moderator:
carinha eu consegui gerar os item sem praticamente erro algum apenas editando algumas linhas dos arquivos antes de mandar ele analizar, porem ele nao salva o arquivo, quando eu clico em convert and save, ele abre a tela para salvar porem quando clico em salvar ele nao salva e como se nao estivesse fazendo nada

 
Last edited by a moderator:
NumClass  field  was not  working properly

  sorry, my native language  is Chinese and Here is my covert result:

  [1112] = {

   unidentifiedDisplayName = "擊刺長劍",

   unidentifiedResourceName = "溯檜橫",

   unidentifiedDescriptionName = {

     "有著細長刃的劍,專門做刺穿用。",

     "系列 : ^777777劍^000000  攻擊 : ^77777770^000000",

     "重量 : ^77777750^000000",

     "武器等級 : ^7777772^000000",

     "要求等級 : ^77777714^000000",

     "裝備 : ^777777初學者/劍士系列/商人系列/盜賊系列可以裝備 ^000000"

   },

   identifiedDisplayName = "擊刺長劍",

   identifiedResourceName = "溯檜橫",

   identifiedDescriptionName = {

     "有著細長刃的劍,專門做刺穿用。",

     "系列 : ^777777劍^000000  攻擊 : ^77777770^000000",

     "重量 : ^77777750^000000",

     "武器等級 : ^7777772^000000",

     "要求等級 : ^77777714^000000",

     "裝備 : ^777777初學者/劍士系列/商人系列/盜賊系列可以裝備 ^000000"

   },

   slotCount = 0,

   ClassNum = 0 ----> this value should be 2

 },
That item exists on your item_db?
Hum, I can find it  in item_db.conf
{ Id: 1112 AegisName: "Lapier__" Name: "擊刺長劍" Type: 4 Buy: 10000 Weight: 500 Atk: 70 Range: 1 Job: 0x000654E3 Loc: 2 WeaponLv: 2 EquipLv: 14 View: 2},warnings when converting to iteminfo.luahttp://pastebin.com/raw.php?i=ZyFvsUh5
omg, he didn't read any item?
 
Hum..Hum.., Am I the only one experiencing this issues?
Did you solve your issue?

I know what the problem is.

The program is comparing the item name rather than the item ID (AegisName) to determine the NumClass.

So in your case since your data files are in Chinese, and the item_db.conf is in English, the program won't find any match and set all NumClass to 0.

It was happening to me, I had to translate my item_db.conf to the language I wanted the itemInfo.lua to be.

 
eu reparei que esta dando erro por que quando cria o iteninfo.lua ele cria com os codigos em vez de criar no formato corerano

isso esta gerando erro nas sprites.

era para ser assim
擊刺長劍
esta gerando assim

º¸¹°»óÀÚ
 

tem como resolver isso?

Jlk8nFQ.png


 
Last edited by a moderator:
cara, nao encontrei esse arquivo item_db.conf na dara.grf

digitei  *.conf  e nao tem nenhum arquivo .conf na data.grf

@edit

achei.

desculpe pois buguei meu celebro kkk

sempre é bom pesquisar antes de postar.

em um outro topico é explicado melhor:

http://herc.ws/board/topic/6609-iteminfolua-em-pt-br/?hl=itemsolution#entry40868

Após feito o download do ItemSolution, coloque o item_db.conf na pasta data que você extraiu da GRF do BRO
Bugou mesmo, pois o certo é CÉREBRO.

 
Back
Top