Jump to content

blaxis

Active+ Member
  • Posts

    222
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by blaxis

  1. spacer.png

     

    Hi. I added the "Shop Sold Info" system. It was working fine at first, but I'm having this problem as a result of an edit I made later.

    The item looks fine before it is purchased. But after purchase, their bonus seems to be broken. (as image only)

    The purchased item appears properly in the inventory.

    I don't remember where I edited. I realized this problem much later. What could be the reason for this?

     

    CItemManager::SelectItemData - FIND ERROR [1229735494]
    0120 15:34:58006 :: SYSERR: Cannot find item by 1229735494
    0120 15:34:58007 ::  CItemManager::SelectItemData - FIND ERROR [1229735494]
    0120 15:34:58007 :: SYSERR: Cannot find item by 1229735494
    0120 15:34:58008 ::  CItemManager::SelectItemData - FIND ERROR [1229735494]
    0120 15:34:58009 :: SYSERR: Cannot find item by 1229735494
    0120 15:34:58010 ::  CItemManager::SelectItemData - FIND ERROR [1398752590]
    0120 15:34:58011 :: SYSERR: Cannot find item by 1398752590
    0120 15:34:58012 ::  CItemManager::SelectItemData - FIND ERROR [1398752590]
    0120 15:34:58012 :: SYSERR: Cannot find item by 1398752590
    0120 15:34:58013 ::  CItemManager::SelectItemData - FIND ERROR [1599098696]
    0120 15:34:58013 :: SYSERR: Cannot find item by 1599098696
    0120 15:34:58014 ::  CItemManager::SelectItemData - FIND ERROR [1599098696]
    0120 15:34:58014 :: SYSERR: Cannot find item by 1599098696

     

  2. Hi, I'm trying to add the overfall2 store to my own files. But every time I try I get an "UNKNOWN HEADER" error. As soon as the store screen appears, it sends it on the login screen. The files work in martysama source files but not mainline/novaline files and this is the problem.

    Can anyone help?
    I hope I can find someone who has had the same problem and solved it before.. I've been dealing with this for days...

     

    SYSERR: Jan  6 19:35:33 :: Process: UNKNOWN HEADER: 84, LAST HEADER: 57(2), REMAIN BYTES: 1, fd: 17

    -> HEADER_CG_OFFLINE_SHOP = 57,

  3. 10 hours ago, boaspessoal said:

    You could always just treat that specific NPC like a PC through ::SetRace in ActorInstanceData(register all the body parts) and add the part like it's attaching an actual weapon to the model.
    Here's how I did it:

      Hide contents
    case NRaceData::ATTACHING_DATA_TYPE_WEAPON:
    			{
    				CGraphicThing * m_pModelThing = (CGraphicThing *)CResourceManager::Instance().GetResourcePointer(c_pAttachingData->pWeaponData->strFileName.c_str());
    				
    				RegisterModelThing(CRaceData::PART_WEAPON, m_pModelThing);
    				SetModelInstance(CRaceData::PART_WEAPON, CRaceData::PART_WEAPON, 0);
    				AttachModelInstance(CRaceData::PART_MAIN, c_pAttachingData->strAttachingBoneName.c_str(), CRaceData::PART_WEAPON);
    				break;
    			}

     

     

    Thank you very much bro. Does it work like this?
    And where exactly do I need to add this?

  4. On 12/21/2021 at 6:25 PM, Mali said:

    How?

    Edit: No answer. It's an error that was your fault then.

    The description file you shared is incorrect. That's why I had this problem.
    The explanation below is incorrect. (shopex.cpp)

    //Find
    			switch (shop_tab.coinType)
    			{
    			case SHOP_COIN_TYPE_GOLD:
    				if (bOtherEmpire) // no empire price penalty for pc shop
    					pack_tab.items[i].price = shop_tab.items[i].price * 3;
    				else
    					pack_tab.items[i].price = shop_tab.items[i].price;
    				break;
    			case SHOP_COIN_TYPE_SECONDARY_COIN:
    				pack_tab.items[i].price = shop_tab.items[i].price;
    				break;
    			}
    			memset(pack_tab.items[i].aAttr, 0, sizeof(pack_tab.items[i].aAttr));
    			memset(pack_tab.items[i].alSockets, 0, sizeof(pack_tab.items[i].alSockets));
    			
    ///Change
    #if defined(ENABLE_RENEWAL_SHOPEX)
    			pack_tab.items[i].price_type = shop_tab.items[i].price_type;
    			pack_tab.items[i].price_vnum = shop_tab.items[i].price_vnum;
    			pack_tab.items[i].price = shop_tab.items[i].price;
    			if (bOtherEmpire && pack_tab.items[i].price_type == SHOPEX_GOLD)
    				pack_tab.items[i].price *= 3;
    			thecore_memcpy(pack_tab.items[i].aAttr, shop_tab.items[i].aAttr, sizeof(pack_tab.items[i].aAttr));
    			thecore_memcpy(pack_tab.items[i].alSockets, shop_tab.items[i].alSockets, sizeof(pack_tab.items[i].alSockets));
    #else
    			switch (shop_tab.coinType)
    			{
    			case SHOP_COIN_TYPE_GOLD:
    				if (bOtherEmpire) // no empire price penalty for pc shop
    					pack_tab.items[i].price = shop_tab.items[i].price * 3;
    				else
    					pack_tab.items[i].price = shop_tab.items[i].price;
    				break;
    			case SHOP_COIN_TYPE_SECONDARY_COIN:
    				pack_tab.items[i].price = shop_tab.items[i].price;
    				break;
    			}
    			memset(pack_tab.items[i].aAttr, 0, sizeof(pack_tab.items[i].aAttr));
    			memset(pack_tab.items[i].alSockets, 0, sizeof(pack_tab.items[i].alSockets));
    #endif

    Indeed, this is how it should be:

     

    //Find
    			memset(pack_tab.items[i].aAttr, 0, sizeof(pack_tab.items[i].aAttr));
    			memset(pack_tab.items[i].alSockets, 0, sizeof(pack_tab.items[i].alSockets));
    			
    ///Change
    #if defined(ENABLE_RENEWAL_SHOPEX)
    			pack_tab.items[i].price_type = shop_tab.items[i].price_type;
    			pack_tab.items[i].price_vnum = shop_tab.items[i].price_vnum;
    			pack_tab.items[i].price = shop_tab.items[i].price;
    			if (bOtherEmpire && pack_tab.items[i].price_type == SHOPEX_GOLD)
    				pack_tab.items[i].price *= 3;
    			thecore_memcpy(pack_tab.items[i].aAttr, shop_tab.items[i].aAttr, sizeof(pack_tab.items[i].aAttr));
    			thecore_memcpy(pack_tab.items[i].alSockets, shop_tab.items[i].alSockets, sizeof(pack_tab.items[i].alSockets));
    #else
    			memset(pack_tab.items[i].aAttr, 0, sizeof(pack_tab.items[i].aAttr));
    			memset(pack_tab.items[i].alSockets, 0, sizeof(pack_tab.items[i].alSockets));
    #endif

    And search:

    char temp[8096]; // ÃÖ´ë 1728 * 3

    Change:

    char temp[8096 * 3]; // ÃÖ´ë 1728 * 3

    This is how I solved the problem. Items and prices seem fine, but like I said, I can't buy. I am getting the error mentioned in my above post.

     

    • kekw 1
    • Not Good 1
    • Lmao 1
  5. On 8/4/2020 at 11:32 AM, V0lvox said:

    Have a other problem.

    He use to show items: 
    CShopEx::AddGuest()
    But when i buy something, he use:
    pkShop->Buy()

    This Buy is shop.cpp and not shopex.cpp

    So the Buy of shop.cpp does not know the items from shopex.

    So everytime m_itemVector.size() = 0

    And so i cant buy items on shopex

    Solve ?

    • Not Good 1
    • Think 1
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.