[Help] Adding Draco pet to shops.

Results 1 to 18 of 18
  1. #1
    Member torstmn is offline
    MemberRank
    Apr 2012 Join Date
    70Posts

    [Help] Adding Draco pet to shops.

    Hey RaGEZONE,
    yesterday I tried to add the Draco pet (kind'a horse) to the hotan stable (or any other shop!). My problem: the gameserver crashes after the "Initialize DB successfull" message at the beginning. Well, tried alot of things and I realy don't know why that error occures (No error message).

    -> The item works ingame, so that's not the problem.
    --> The item has been added to refPackageItem, refPricePolicyOfItem, refScrapOfPackageItem.

    That works pretty fine.

    Here's the code for those tables:

    [_refPackageItem]
    1 15 86444 PACKAGE_ITEM_COS_C_DRACO 0 EXPAND_TERM_ALL SN_ITEM_COS_C_DRACO SN_ITEM_COS_C_DRACO_TT_DESC cos\cos_c_draco.ddj -1 xxx -1 xxx -1 xxx -1 xxx
    [_refScrapOfPackageItem]
    1 15 PACKAGE_ITEM_COS_C_DRACO ITEM_COS_C_DRACO 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1 xxx -1 xxx -1 xxx -1 xxx 88957
    [_refPricePolicyOfItem]
    1 15 PACKAGE_ITEM_COS_C_DRACO 1 0 70000 0 xxx 0 xxx 0 xxx 0 xxx


    Ok, there shouldn't be any misstake I guess, the server doesn't crash, everything is fine.

    But the last step is adding this item to its related shop so last code:



    [_refShopGoods]
    1 15 STORE_KT_STABLE_TAB1 PACKAGE_ITEM_COS_C_DRACO 4 -1 xxx -1 xxx -1 xxx -1 xxx


    That's the part where the server crashes.


    My first thought was that the slot might be wrong.. But that's not the problem..

    So guys, I hope you understood my question and help me out

    Thanks for reading


  2. #2
    In the Emperor name Caosfox is offline
    Grand MasterRank
    Jun 2011 Join Date
    Balcora GateLocation
    1,608Posts

    Re: [Help] Adding Draco pet to shops.

    if im not wrong, the dbid is wrong on refpackageitem and scrap, they must match

    on one is 86444 and on the other is 88957. try boths as 86444

  3. #3
    Sorcerer Supreme SnapPop is offline
    Member +Rank
    Feb 2012 Join Date
    EgyptLocation
    388Posts

    Re: [Help] Adding Draco pet to shops.

    Quote Originally Posted by Caosfox View Post
    if im not wrong, the dbid is wrong on refpackageitem and scrap, they must match

    on one is 86444 and on the other is 88957. try boths as 86444
    no you are wrong they not have to be the same

    anyway humm i guess you fucked up something with refshopgoods i always like to make my custom DB so onetime i truncate that table and rebuild it with new lines so that give me GS crashes so the question is did you truncate that table before !!

  4. #4
    Member torstmn is offline
    MemberRank
    Apr 2012 Join Date
    70Posts

    Re: [Help] Adding Draco pet to shops.

    I'm using the DB Statiic released, forgot the version number but what I actually wanna say is that I didn't modify it yet. (That's the only new line in it).

  5. #5
    Sorcerer Supreme SnapPop is offline
    Member +Rank
    Feb 2012 Join Date
    EgyptLocation
    388Posts

    Re: [Help] Adding Draco pet to shops.

    Quote Originally Posted by torstmn View Post
    I'm using the DB Statiic released, forgot the version number but what I actually wanna say is that I didn't modify it yet. (That's the only new line in it).
    humm can you exactly copy all the lines that belongs to STORE_KT_STABLE_TAB1 ? for example i have only those from vsro 1.193
    Code:
    1	15	STORE_KT_STABLE_TAB1	PACKAGE_ITEM_COS_C_DHORSE1	3	-1	xxx	-1	xxx	-1	xxx	-1	xxx
    0	15	STORE_KT_STABLE_TAB1	PACKAGE_ITEM_COS_C_DHORSE2	4	-1	xxx	-1	xxx	-1	xxx	-1	xxx
    0	15	STORE_KT_STABLE_TAB1	PACKAGE_ITEM_COS_C_DHORSE3	4	-1	xxx	-1	xxx	-1	xxx	-1	xxx
    1	15	STORE_KT_STABLE_TAB1	PACKAGE_ITEM_COS_C_HORSE1	0	-1	xxx	-1	xxx	-1	xxx	-1	xxx
    1	15	STORE_KT_STABLE_TAB1	PACKAGE_ITEM_COS_C_HORSE2	1	-1	xxx	-1	xxx	-1	xxx	-1	xxx
    1	15	STORE_KT_STABLE_TAB1	PACKAGE_ITEM_COS_C_HORSE3	2	-1	xxx	-1	xxx	-1	xxx	-1	xxx
    BTW slots must be in same ranking like:0,1,2,3,etc maybe there're hidden lines contain the same slot that you have added for that pet!! ok anyway post all the lines that contains "STORE_KT_STABLE_TAB1"

  6. #6
    In the Emperor name Caosfox is offline
    Grand MasterRank
    Jun 2011 Join Date
    Balcora GateLocation
    1,608Posts

    Re: [Help] Adding Draco pet to shops.

    Quote Originally Posted by SnapPop View Post
    no you are wrong they not have to be the same

    anyway humm i guess you fucked up something with refshopgoods i always like to make my custom DB so onetime i truncate that table and rebuild it with new lines so that give me GS crashes so the question is did you truncate that table before !!
    wel, i always use the same and everything is working on npcs (only uruchi boss is not wotking on npc, all the other bosses + adv elix + item mall items are working) so guess can be or not the same.

    i always use this guide http://forum.ragezone.com/f723/guide...3/#post6855228

  7. #7
    Member torstmn is offline
    MemberRank
    Apr 2012 Join Date
    70Posts

    Re: [Help] Adding Draco pet to shops.

    @Caosfox : Yeah, that's the one ive been using, too. I did it step bye step. Right now I added Magic Lucky Powder to one of the shops and it worked great. .. Any other idea? Something wrong with the other tables (refPrice**...)

  8. #8
    In the Emperor name Caosfox is offline
    Grand MasterRank
    Jun 2011 Join Date
    Balcora GateLocation
    1,608Posts

    Re: [Help] Adding Draco pet to shops.

    well, humor me and put the same id on both places, if still fail, try to add on another npc, like potion

  9. #9
    Sorcerer Supreme arabianfox is offline
    Member +Rank
    Nov 2011 Join Date
    292Posts

    Re: [Help] Adding Draco pet to shops.

    ok i just have one question

    is this Statiic DB ver 6.3 ?!!

  10. #10
    Member torstmn is offline
    MemberRank
    Apr 2012 Join Date
    70Posts

    Re: [Help] Adding Draco pet to shops.

    @arabianfox Yes, if 6.3 is the latest version of his databse it is.

    @Caosfox -> As I said before, I added Lucky Magic Powder to shop and that worked fine (Even with different index/id) so that can't be the problem.

  11. #11
    Sorcerer Supreme arabianfox is offline
    Member +Rank
    Nov 2011 Join Date
    292Posts

    Re: [Help] Adding Draco pet to shops.

    Then From where you get ID of Refpackageitem table which is 86444 ???

    and the same thing for INDEX at Refscrapofpackageitem ???

    you add them manually ?! or Automatic add

    thank you

  12. #12
    Member torstmn is offline
    MemberRank
    Apr 2012 Join Date
    70Posts

    Re: [Help] Adding Draco pet to shops.

    @arabianfox

    As you can read in my post, those tables don't crash the gameserver.
    If those indexes/IDs would be wrong the gameserver would say "!! faild to create reference data of [_refShop] table !!". It doesnt say anything.

  13. #13
    In the Emperor name Caosfox is offline
    Grand MasterRank
    Jun 2011 Join Date
    Balcora GateLocation
    1,608Posts

    Re: [Help] Adding Draco pet to shops.

    yup, not always they crash gameserver, in my case, uruchi summon scroll works perfect, can create it with gm command, can use it. but if i add to any npc.. insta client crash

  14. #14
    Member torstmn is offline
    MemberRank
    Apr 2012 Join Date
    70Posts

    Re: [Help] Adding Draco pet to shops.

    Yeah, I agree but the client doesn't crash.

    I mean, I did everything correct I think so what's the go*da** problem?.. Realy I don't get it.

  15. #15
    Sorcerer Supreme arabianfox is offline
    Member +Rank
    Nov 2011 Join Date
    292Posts

    Re: [Help] Adding Draco pet to shops.

    Quote Originally Posted by torstmn View Post
    @arabianfox

    As you can read in my post, those tables don't crash the gameserver.
    If those indexes/IDs would be wrong the gameserver would say "!! faild to create reference data of [_refShop] table !!". It doesnt say anything.
    If you just answer my question that will allows me to help you..

    anyway thanks ... i just wana help :)

  16. #16
    Member torstmn is offline
    MemberRank
    Apr 2012 Join Date
    70Posts

    Re: [Help] Adding Draco pet to shops.

    @arabianfox

    Sorry, guess I didn't read the question carefully.

    So, I allways copy & paste the whole table to notepad and search for an ID.
    If it can be found i can't use it, if it can't, I'm allowed. Statiic's table ended with the 86442 -> the 86443 was set, too but somewhere in the middle of the table. The next usable ID was the 86444. That one was free.

    Same princip for the index.

  17. #17
    Sorcerer Supreme arabianfox is offline
    Member +Rank
    Nov 2011 Join Date
    292Posts

    Re: [Help] Adding Draco pet to shops.

    From SQL main menu choose Tools >> Options and go to Designers and remove check from "Prevent saving changes that require table re-creation as shown here:



    Then go to table Refpackageitem table Right click and choose Design



    Then Right click on ID and choose "set primary key"



    Then scroll down at column properties you will find "Identity specification" property >> choose "is identity" and choose "yes" as you can see here



    This will make ID auto number and SQL will generate a unique number each time you try to add a new items to the table.

    Do the same to table Refscrapofpackageitem but don't set primary key >> just make [INDEX] column identity to YES

    now to add new item leave ID empty (NULL) and SQL will generate a new number (unique number) and this for [INDEX] at refscraofpackageitem too >> then copy this numbers to your media text files.

    Thank you

  18. #18
    Member torstmn is offline
    MemberRank
    Apr 2012 Join Date
    70Posts

    Re: [Help] Adding Draco pet to shops.

    Wow, thanks for you help. I'll try again.



Advertisement