superman1001 Posted May 31, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 05/17/12 Last Seen: September 18, 2012 Share Posted May 31, 2012 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: 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 Quote Link to comment Share on other sites More sharing options...
v00m3r Posted May 31, 2012 Group: Members Topic Count: 53 Topics Per Day: 0.01 Content Count: 291 Reputation: 4 Joined: 04/24/12 Last Seen: January 30, 2014 Share Posted May 31, 2012 (edited) 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 May 31, 2012 by v00m3r Quote Link to comment Share on other sites More sharing options...
superman1001 Posted May 31, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 05/17/12 Last Seen: September 18, 2012 Author Share Posted May 31, 2012 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# Quote Link to comment Share on other sites More sharing options...
Syouji Posted May 31, 2012 Group: Members Topic Count: 70 Topics Per Day: 0.01 Content Count: 1245 Reputation: 395 Joined: 11/19/11 Last Seen: January 15, 2020 Share Posted May 31, 2012 Also if the item is dropped by monsters you must fill in the num2itemdisplaynametable, num2itemdesctable.txt, and num2itemresnametable.txt Quote Link to comment Share on other sites More sharing options...
superman1001 Posted May 31, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 05/17/12 Last Seen: September 18, 2012 Author Share Posted May 31, 2012 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... Quote Link to comment Share on other sites More sharing options...
Syouji Posted May 31, 2012 Group: Members Topic Count: 70 Topics Per Day: 0.01 Content Count: 1245 Reputation: 395 Joined: 11/19/11 Last Seen: January 15, 2020 Share Posted May 31, 2012 What did you put in your accname.lua, accessoryid.lua and item_db2? Quote Link to comment Share on other sites More sharing options...
superman1001 Posted May 31, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 05/17/12 Last Seen: September 18, 2012 Author Share Posted May 31, 2012 accname.lua, accessoryid.lua nothing itemdb2: 25001, Test_Item, Test Item, 5, 100000, 10, 1000, , 10, , 4, 4294967295, 1, 2, 512, , 0, 0, 25001, , , Quote Link to comment Share on other sites More sharing options...
Judas Posted May 31, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 2244 Reputation: 182 Joined: 11/19/11 Last Seen: September 15, 2024 Share Posted May 31, 2012 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 Quote Link to comment Share on other sites More sharing options...
superman1001 Posted May 31, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 05/17/12 Last Seen: September 18, 2012 Author Share Posted May 31, 2012 (edited) 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 May 31, 2012 by superman1001 Quote Link to comment Share on other sites More sharing options...
superman1001 Posted June 1, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 05/17/12 Last Seen: September 18, 2012 Author Share Posted June 1, 2012 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? Quote Link to comment Share on other sites More sharing options...
Aerie Posted June 2, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 383 Reputation: 110 Joined: 11/11/11 Last Seen: August 2, 2017 Share Posted June 2, 2012 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. Quote Link to comment Share on other sites More sharing options...
superman1001 Posted June 2, 2012 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 05/17/12 Last Seen: September 18, 2012 Author Share Posted June 2, 2012 let me try... i used ShinsDiffPatcher with weediffgenerator 1.0.2 to make custom ids up to 30.000 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.. Quote Link to comment Share on other sites More sharing options...
Aerie Posted June 2, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 383 Reputation: 110 Joined: 11/11/11 Last Seen: August 2, 2017 Share Posted June 2, 2012 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) Quote Link to comment Share on other sites More sharing options...
Question
superman1001
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:
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.