Jump to content
  • 0

Need help for Custom Box


sakura125

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  05/11/16
  • Last Seen:  

Hi there. Good day and God Speed everyone. Im new to this community, so anyone mind helping me a bit?

 

I am adding a Custom Box for my server, but everytime I opened my box, the client crashes. There were no error on my server. I searched in the search engine for a fix, but all I found was a posts from 2012 or 2013. The new itemdb.h has this new code. MAX_ITEMGROUP_RAND which there's nothing says about in the Wiki. And I did not find anything that says MAX_ITEMGROUP or anything that has stated from a fix of a post from 2012 or 2013. I am thinking it is a client problem, there's no problem at clicking my custom box, dropping, view description. It'll just close the client after opening.

 

Anyone has an idea? Please, help me. It'll be appreciated if someone mind telling what should I do to fix it.

 

TIA <3

 

EDIT: Sorry if I posted in the wrong section, cause I'm not entirely sure whether it is a client or is it on my database problem. Since when the box has opened *boom* closed. Then after opening that client again. My Inventory has this X item which is I am sure that it is an unknown item.


anyone? please? </3

Edited by sakura125
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Give us the lines you wrote in the files you edited, we'll try it and tell you if something's wrong in our servers and try to solve the problems if we have some.

 

Also I don't really get what you mean by 'custom box', is it something like an old blue box or something?

 

Glad to get one more member, welcome  /no1

 

(Doesn't seem like a database problem at all unless you created some new sql data but that wouldn't make your client crash, to me it's most likely a client-side issue)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  05/11/16
  • Last Seen:  

what I meant to say about the custom box is initially the same as the one you have stated as "OBB".

 

what I did was.

 

Added the line in const.txt, item_group_db.txt, added a file named item_hatbox.txt, I even have tried the item_flag.txt (which is a worthless effort since it didn't change anything) and ofcourse item_db.txt

 

on const.txt

IG_HatBox 453

 

item_group_db

import: db/pre-re/item_hatbox.txt

 

item_hatbox.txt

IG_HatBox,20206,1

IG_HatBox,20000,1

IG_HatBox,20001,1

IG_HatBox,20004,1

.... and so on

 

item_db.txt

20279,Hat_Box,Hat Box,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{getrandgroupitem(IG_HatBox),1;}.{},{}

 

Thank you for replying Mr. Kurofly

 

EDIT: I tried to use the script method. it works like a charm. but I wanted this option rather than the script one.

Edited by sakura125
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  387
  • Reputation:   60
  • Joined:  10/08/13
  • Last Seen:  

Do you using custom box or just duplicate the existing box? If you are using custom box sprite, can you drag the box inside your inventory? If you geting the crash while drag, thats mean your custom box sprite missing some .bmp file or the .spr & .act file are corrupt. If you can drag it, your custom box is ok. Make sure all item in the list of IG_HatBox is exist in your database and at your client side, try @item all the item first.

Edited by Elsa Mist
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  05/11/16
  • Last Seen:  

Hi Elsa Mist! Thank you for replying and giving me ideas on what to do.

Unfortunately, the idea you gave isn't the one that gave me problems. I tried the instruction you gave by dragging out my Custom Box. It turns out A ok. But I also tried using the Old Purple Box sprite. Every time I opened my Custom Box, it'll close my client. And after that, as I have mentioned above our posts. The inventory gives this Unknown Item with a X like icon. Which is also causing my client forces to close every time the cursor pointed the item. But it is clear to say, I can see before closing the X item is named Unknown Item.

 

I also tried using an existing group as the holder of IG_Hatbox which has resulted on the same page.

 

I forgot to mention ------ I am using Pre-Renewal. (well I think you are all aware of that because of what directory I have imported my item_group_db.txt).

 

God Speed to Everyone who tries to help me :)

 

EDIT: Sorry if I have replied very late, since I'm trying my best to learn Ragnarok scripting and spriting. (Well not that i'm very talented to it). And btw, I like your profile picture.

 

EDIT2: I forgot to mention #2 ---- no problem at using @item <itemID>.

Edited by sakura125
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

1. To check if the box is working without any errors you can change all the ID into potion ID...

 example:

IG_HatBox,501,1
IG_HatBox,502,1
IG_HatBox,503,1
IG_HatBox,504,1
etc...

2. If you are receiving items with X on their icon check your unidentifiedResourceName and identifiedResourceName if you put the correct sprite name on that item.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  05/11/16
  • Last Seen:  

yeah. i tried putting that before i posted. but i kept getting errors. the next step might be that iteminfo? since unidentifiedResName and IdentifiedResname might be the problem. (I hope)

 

Thanks for replying Mr. Lelouch vi Britannia and giving me advice on what to do. God Speed.

Edited by sakura125
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

item_group_db

import: db/pre-re/item_hatbox.txt

 

Shouldn't that be 'import: db/re/item_hatbox.txt' instead ? Since the items starting from id 20k are all renewals I guess you placed your files in the renewal folder.

 

That might be why your client isn't finding the items you're looking for.

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

https://github.com/Stolao/Npc_Release/blob/master/Custom_Functions/F_ItemWeight_v1.01.txt

Here is a custom function I wrote to emulate item boxes without having to source in a new IG_

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  05/11/16
  • Last Seen:  

hey sorry for not responding for a long time. been busy with school since im part of the government at school. anyway, thanks to those who tried to help

 

@kurofly - i'll try that instead, maybe it'll give me a good result since I haven't tried that method. thanks for the advice and for your reply.

EDIT: Still not working, even if the entry was import: db/re/item_hatbox.txt

 

@lelouch - its not working </3, it still gives me error after putting the unidentifiedresname and identifiedresname, thanks for trying to help.

 

@stolao - I have the script method but I kinda wanted this method atm, since adding a new item and config seems a bit easier (maybe, since I'm a newbie, I don't know which is easier of the two).

Edited by sakura125
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   0
  • Joined:  05/11/16
  • Last Seen:  

bump. </3

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