How to fix CashShop?

Results 1 to 6 of 6
  1. #1
    Registered naynop is offline
    MemberRank
    Jun 2009 Join Date
    กรุงเLocation
    15Posts

    sad How to fix CashShop?

    08-09 16:45:07 > [CashShopService.CashShopService][CashShopService.CashShopService (864)][CashShopService] - Connecting to CashShop : 127.0.0.1:6500
    08-09 16:45:08 > [CashShopService.CashShopService][CashShopService.CashShopService (864)][CashShopService] - CashShop Connection Failed... No connection could be made because the target machine actively refused it 127.0.0.1:6500


  2. #2
    Member jojorne is offline
    MemberRank
    Aug 2018 Join Date
    32Posts

    Re: How to fix CashShop?

    Well, besides changing the port from 6500 to 42 and enabling CashShop on the DBs, it fails to "Query Inventory". Already checked the "ShopList.aspx" path... I'm stuck...

  3. #3
    Member jojorne is offline
    MemberRank
    Aug 2018 Join Date
    32Posts

    Re: How to fix CashShop?

    Quote Originally Posted by jojorne View Post
    Well, besides changing the port from 6500 to 42 and enabling CashShop on the DBs, it fails to "Query Inventory". Already checked the "ShopList.aspx" path... I'm stuck...
    So, I managed to open it! It was failing to parse the "ShopList.aspx" file.
    Click image for larger version. 

Name:	Shop.png 
Views:	42 
Size:	341.9 KB 
ID:	163662

  4. #4
    Member jojorne is offline
    MemberRank
    Aug 2018 Join Date
    32Posts

    Re: How to fix CashShop?

    Quote Originally Posted by jojorne View Post
    So, I managed to open it! It was failing to parse the "ShopList.aspx" file.
    Click image for larger version. 

Name:	Shop.png 
Views:	42 
Size:	341.9 KB 
ID:	163662
    And I think I've made the CashShop work!!!

    Need a proper table in "ShopList.aspx" with categories by "IngameCashShop_category.txt".
    Last you catch the request inside the "Purchase.aspx" and add the products inside the table
    and return an ErrorCode.

  5. #5
    Member floatingping is offline
    MemberRank
    Jun 2018 Join Date
    25Posts

    Re: How to fix CashShop?

    it is cool ! maybe it need other files to match each other.

    ingame_cashshop_shopListURL http://shop.heroes.nexon.com/shoplist.aspx?passport=%s
    ingame_cashshop_giftURL http://shop.heroes.nexon.com/Purchase.aspx?passport=%s&ServerCode=%d&productno=%d&quantity=%d&characterid=%I64d&giftcharacterid=%I64d&giftmessage=%s
    ingame_cashshop_purchaseURL http://shop.heroes.nexon.com/Purchase.aspx?passport=%s&ServerCode=%d&productno=%d&quantity=%d&characterid=%I64d&giftcharacterid=%d&giftmessage=%s
    ingame_cashshop_couponURL http://shop.heroes.nexon.com/Coupon.aspx?passport=%s&ServerCode=%d&characterid=%I64d&coupon=%s&pccafeonly=%d
    ingame_cashshop_historyURL http://shop.heroes.nexon.com/History.aspx?listType=%s&Passport=%s&Servercode=%d&characterid=%I64d

    data in client's heroes.db3: FeatureMatrix

    %d means a real number like 1,2,3
    %s sholud mean a strings. it needs some information in official server.
    %I64d ... what is this XD

  6. #6
    Member jojorne is offline
    MemberRank
    Aug 2018 Join Date
    32Posts

    Re: How to fix CashShop?

    Quote Originally Posted by floatingping View Post
    %I64d ... what is this XD
    It's a 64-bit signed integer which has a huge wide number range.

    Quote Originally Posted by jojorne View Post
    And I think I've made the CashShop work!!!

    Need a proper table in "ShopList.aspx" with categories by "IngameCashShop_category.txt".
    Last you catch the request inside the "Purchase.aspx" and add the products inside the table
    and return an ErrorCode.
    Here is a small incomplete guide:
    Spoiler:
    Make sure you have a working "ShopList.aspx" with categories by "IngameCashShop_category.txt"

    - Locate in the FeatureMatrix the feature "ingame_cashshop_shopListURL":
    Default EN-US-X-GM: http:/ /store.nexon.net/vindictus/cashshop/ShopList.aspx
    Note: I've changed mine to point it to my server's file.

    - You need to have a "ShopList.aspx" file in your server in that location.
    Note: ".aspx" is a "ASP.NET Web Server" script and since I'm working on "PHP" script I've changed mine to ".php".

    - You can download a working sample from Nexon's:
    http://store.nexon.net/vindictus/cashshop/ShopList.aspx
    Note: Do not open to copy, instead right click "Save as" or place the URI in a download software.

    - Search for your GameCode's table and edit the "category_no" to point to your client's categories.
    Note: You can find the categories inside the "scripts\IngameCashShop_category.txt" in one of the ".hfs" files.

    - Enable CashShop in FeatureMatrix:
    Code:
    UPDATE FeatureMatrix SET "EN-US-X-GM" = '1' WHERE Feature = 'CashShop';
    UPDATE FeatureMatrix SET "EN-US-X-GM" = NULL WHERE Feature = 'InGameCashShopDialog_V2';
    Catch the request inside the "Purchase.aspx", add the products inside the table and return an ErrorCode for the Client

    - OK, this last step is programing. You need to create an ASP.NET or PHP script to do that...
    Note: The Client will send a GET parameter based on "ingame_cashshop_purchaseURL" with all information about the user's purchase.

    PS: I've stopped my research here for now... With more time I'll see what table to place the items from the purchase. I've also noticed that the "CashShop Service" goes crazy after a purchase, I'm not sure if it is waiting for the items to arrive in the table or...
    I just got the server and I'm still configuring it. I've created a script to fix the "PvpInfo" table (I'm not even sure if PvP works lol I just saw that the table wasn't loading...) and I'm creating some other scripts to fix for instance the "Random Items". I'll try to release them here once I'm done.
    Last edited by jojorne; 17-09-18 at 04:39 AM.



Advertisement