aabarreto 0 Posted February 1, 2021 So I added a custom item... The script works fine, but everything in the game became an apple and I never saw the actual sprite working. Those are my lines in ItemInfo.lua: [77001] = { unidentifiedDisplayName = "Pegasus", unidentifiedResourceName = "Pegasus", unidentifiedDescriptionName = { "Pegasus" }, identifiedDisplayName = "Pegasus", identifiedResourceName = "pegasus", identifiedDescriptionName = {"Pegasus"}, slotCount = 4, ClassNum = 20000 }, I also tried these: identifiedResourceName = pegasus, identifiedResourceName = "Pegasus", identifiedResourceName = "PEGASUS", Those are the files on data.grf: Where am I wrong? Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted February 1, 2021 1 hour ago, aabarreto said: So I added a custom item... The script works fine, but everything in the game became an apple and I never saw the actual sprite working. Those are my lines in ItemInfo.lua: [77001] = { unidentifiedDisplayName = "Pegasus", unidentifiedResourceName = "Pegasus", unidentifiedDescriptionName = { "Pegasus" }, identifiedDisplayName = "Pegasus", identifiedResourceName = "pegasus", identifiedDescriptionName = {"Pegasus"}, slotCount = 4, ClassNum = 20000 }, I also tried these: identifiedResourceName = pegasus, identifiedResourceName = "Pegasus", identifiedResourceName = "PEGASUS", Those are the files on data.grf: Where am I wrong? Change all names into pegasus something like this collection : pegasus.bmp item : pegasus.bmp change pegasus_drop.act and pegasus_drop.spr into pegasus.act and pegasus.spr Share this post Link to post Share on other sites
0 aabarreto 0 Posted February 1, 2021 12 hours ago, Kuya Jeo said: Change all names into pegasus something like this collection : pegasus.bmp item : pegasus.bmp change pegasus_drop.act and pegasus_drop.spr into pegasus.act and pegasus.spr I also tried that... didn't work Share this post Link to post Share on other sites
0 Daraen 8 Posted February 2, 2021 On 2/1/2021 at 8:16 AM, aabarreto said: So I added a custom item... The script works fine, but everything in the game became an apple and I never saw the actual sprite working. Those are my lines in ItemInfo.lua: [77001] = { unidentifiedDisplayName = "Pegasus", unidentifiedResourceName = "Pegasus", unidentifiedDescriptionName = { "Pegasus" }, identifiedDisplayName = "Pegasus", identifiedResourceName = "pegasus", identifiedDescriptionName = {"Pegasus"}, slotCount = 4, ClassNum = 20000 }, I also tried these: identifiedResourceName = pegasus, identifiedResourceName = "Pegasus", identifiedResourceName = "PEGASUS", Those are the files on data.grf: Where am I wrong? Never put custom objects in your data.grf! Always put them in the grf read first by your client! Do you have the luafiles514 / lua files / datainfo folders in your <mygrf> .grf? Do you have the accessoryid.lub and accname.lub files in your <mygrf> .grf ?? Did you enter ACCESSORY_Pegasus = 20000 and [ACCESSORY_IDs.ACCESSORY_Pegasus] = "_Pegasus"? Share this post Link to post Share on other sites
0 aabarreto 0 Posted February 2, 2021 (edited) 3 hours ago, Daraen said: Never put custom objects in your data.grf! Always put them in the grf read first by your client! Do you have the luafiles514 / lua files / datainfo folders in your <mygrf> .grf? Do you have the accessoryid.lub and accname.lub files in your <mygrf> .grf ?? Did you enter ACCESSORY_Pegasus = 20000 and [ACCESSORY_IDs.ACCESSORY_Pegasus] = "_Pegasus"? And which grf is that? How do I know it? Nope... I have luafiles514/lua files, but not the datainfo folders... No accessoryid.lub; yes accname.lub Nope... It should be on those files? I saw that in the new clients I would only need to edit iteminfo... Edited February 2, 2021 by aabarreto Share this post Link to post Share on other sites
0 Daraen 8 Posted February 2, 2021 (edited) 2 minutes ago, aabarreto said: And which grf is that? How do I know it? Nope... I have luafiles514/lua files, but now the datainfo folders... No accessoryid.lub; yes accname.lub Nope... It should be on those files? I saw that in the new clients I would only need to edit iteminfo... In my memories, you use the anacondaq pack. To add custom elements, go to your data.grf extract accessoryid.lub and accname.lub from luafiles514 / lua files / datainfo. Add ACCESSORY_Pegasus = 20000 in accessory id at the end of your file and [ACCESSORY_IDs.ACCESSORY_Pegasus] = "_Pegasus" in accname.lub save add now files in the grf which is read first by your client, save. Don't forget to add the object in item_db.conf do @reloaditemdb and it should work. Yes you also have to add that in iteminfo. Edited February 2, 2021 by Daraen Share this post Link to post Share on other sites
0 aabarreto 0 Posted February 2, 2021 2 minutes ago, Daraen said: In my memories, you use the anacondaq pack. To add custom elements, go to your data.grf extract accessoryid.lub and accname.lub from luafiles514 / lua files / datainfo. Add ACCESSORY_Pegasus = 20000 in accessory id at the end of your file and [ACCESSORY_IDs.ACCESSORY_Pegasus] = "_Pegasus" in accname.lub save add now files in the grf which is read first by your client, save. Don't forget to add the object in item_db.conf do @reloaditemdb and it should work. Yes you also have to add that in iteminfo. Ok, something's wrong then, because I can't see/extract /datainfo from inside my data.grf, also I don't seem to have accessoryid.lub... But I do have accname.lub. When I search for "accname.lub", it shows up as in /datainfo, but the folder doesn't appears in the folders list... Which .grf is read first by my client? I don't know how to know that... Maybe I should get the original data.grf again and start all the customs over? Just tell me in what .grf I should put the files, please... I didn't find any other .grf... Share this post Link to post Share on other sites
0 botka4aet 5 Posted February 5, 2021 https://ro.industrial-illusions.net/files/ You can get data.grf from full kro Share this post Link to post Share on other sites
So I added a custom item... The script works fine, but everything in the game became an apple and I never saw the actual sprite working.
Those are my lines in ItemInfo.lua:
[77001] = {
unidentifiedDisplayName = "Pegasus",
unidentifiedResourceName = "Pegasus",
unidentifiedDescriptionName = { "Pegasus" },
identifiedDisplayName = "Pegasus",
identifiedResourceName = "pegasus",
identifiedDescriptionName = {"Pegasus"},
slotCount = 4,
ClassNum = 20000
},
I also tried these:
identifiedResourceName = pegasus,
identifiedResourceName = "Pegasus",
identifiedResourceName = "PEGASUS",
Those are the files on data.grf:
Where am I wrong?
Share this post
Link to post
Share on other sites