Jump to content
  • 0
aabarreto

(null).bmp

Question

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:

 

image.png.47cf6b41218ae01dac7dc6524d5cdfb3.png

 

Where am I wrong?

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0
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:

 

image.png.47cf6b41218ae01dac7dc6524d5cdfb3.png

 

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
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
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:

 

image.png.47cf6b41218ae01dac7dc6524d5cdfb3.png

 

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
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 by aabarreto

Share this post


Link to post
Share on other sites
  • 0
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 by Daraen

Share this post


Link to post
Share on other sites
  • 0
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...
 

 

image.thumb.png.24034e94e7d0bf5935f18555819ea920.png

 

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...

image.png.3fda39bdea387c8d59358b34997d7287.png

 

I didn't find any other .grf...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.