Jump to content
  • 0

Problem adding sprite


superman1001

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/17/12
  • Last Seen:  

i want to add some sprite in my server, so i followed this guida: http://rathena.org/wiki/Custom_Items for adding a test item.

Server site there are no problems.

In client side i got this error:

20120530214808.png

i put the files in correct folders:

- data\sprite\¾ÆÀÌÅÛ\test_item.act

- data\sprite\¾ÆÀÌÅÛ\test_item.spr

- data\sprite\¾Ç¼¼»ç¸®\¿©\¿©_test_item.act

- data\sprite\¾Ç¼¼»ç¸®\¿©\¿©_test_item.spr

- data\sprite\¾Ç¼¼»ç¸®\³²\³²_test_item.act

- data\sprite\¾Ç¼¼»ç¸®\³²\³²_test_item.spr

- data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\collection\test_item.bmp

- data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\item\test_item.bmp

if i create the item, hold in inventory, drop on the groud, it is shown, when i wear it i got the error.

what's wrong? and why the client don't use the "test_item" act & spr but that incomprensible name?

thx

Link to comment
Share on other sites

12 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  53
  • Topics Per Day:  0.01
  • Content Count:  291
  • Reputation:   4
  • Joined:  04/24/12
  • Last Seen:  

idnum2itemresnametable.txt <- this also needed on creating a custom item

example

itemid#spritename#

also dont forget this one

idnum2itemdesctable.txt <- item description

idnum2itemdisplaynametable.txt <- name of the item in game.

Edited by v00m3r
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/17/12
  • Last Seen:  

itemslotcounttable.txt

25001#4#

idnum2itemdisplaynametable.txt

25001#test_item#

idnum2itemdesctable.txt

25001#
test item
Weight :^777777 1^000000
Applicable Job :^777777 Every Job^000000
#

idnum2itemresnametable.txt

25001#test_item#

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

Also if the item is dropped by monsters you must fill in the num2itemdisplaynametable, num2itemdesctable.txt, and num2itemresnametable.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/17/12
  • Last Seen:  

Also if the item is dropped by monsters you must fill in the num2itemdisplaynametable, num2itemdesctable.txt, and num2itemresnametable.txt

ok but the problem is when the item is wear...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

What did you put in your accname.lua, accessoryid.lua and item_db2?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/17/12
  • Last Seen:  

accname.lua, accessoryid.lua nothing

itemdb2:

25001, Test_Item, Test Item, 5, 100000, 10, 1000, , 10, , 4, 4294967295, 1, 2, 512, , 0, 0, 25001, , ,

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

how about your accname and accessoryid files

also another problem could be viewID set in weediff. WHen you diffed your client, did you enter 28000 for custom item limit

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/17/12
  • Last Seen:  

how about your accname and accessoryid files

how to use these files?

also another problem could be viewID set in weediff. WHen you diffed your client, did you enter 28000 for custom item limit

i will check and eventually re-diff as soon as possible

Edited by superman1001
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/17/12
  • Last Seen:  

there is a thing i don't understand in the "lua guide":

Now, Open accessoryid.lua in the datainfo folder with notepad or a text editor of your choice, go all the way down until the names stop. Add your custom gears before the } symbol. You should use a high number just like with your custom item's database ID, or use unused IDs to be sure you won't have to redo them all in the future, or at least for a while.
Now open accname.lua, do basically the same thing but just in a different way, and for the sprite. Add your item to the bottom, have it look like the ones above it, except have your items name and the item's sprite name.
Delete the accname.lub and accessoryid.lub. Now that you are done, make sure luac.exe is in your datainfo folder, right click the luac.exe, create a shortcut, right click the shortcut, and click properties, in the target area, add right after the quotes ...

so have i to edit the files, delete the modified files and recompile them? how is it possible? /hmm

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  383
  • Reputation:   109
  • Joined:  11/11/11
  • Last Seen:  

THe view id seems to be 25001, client can't support such a big value. Don't go upper 2000 and only if you patched your client with weegendiff programm.

25001, Test_Item, Test Item, 5, 100000, 10, 1000, , 10, , 4, 4294967295, 1, 2, 512, , 0, 0, 25001, , ,

Test in your server by replace 25001 view_id range by 0 ... Goggles should appears. (That will mean that your item works)

Then create a new view_id in 999 range in lua. Item and View_id don't need to have the same ID, it's two things differents.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  05/17/12
  • Last Seen:  

let me try...

i used ShinsDiffPatcher with weediffgenerator 1.0.2 to make custom ids up to 30.000 /gg

then i used luac5.1.4 to rebuild accname.lub and accessoryid.lub

(the wiki is wrog, the right params are: -o accessoryid.lub accessoryid.lua)

then i setted view_id to 0, restarted server.. and...

now when the client load it show this error:

Lua Files\DataInfo\accName

[string "buf"]:847 table index is nil

btw when i log on and

- if u use view_id 0, i can wear it, but nothing is shown

- if i use view_id 25001 i see this error: http://img152.images...00/44455045.png

wow, i solved it, for now...

there was an error in accessoryid.lua, and the spr must have a lower case name...

i try do add another one..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  383
  • Reputation:   109
  • Joined:  11/11/11
  • Last Seen:  

You right view_id 0 is for empty .. goggles is 1.

So if you can wear the item, the problem comes from the sprite / lua_files.

If I remeber the 30.000 custom item limits is for items_id not for view_id who are two distincts things. You can't bypass 999 without the diff (and after no more 2000)

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...