Someone Already fix trade system ?
takaofps12 2月前

Alguém pode corrigir o sistema para postar e comprar na seção de comércio? 

 

最新回复 (8)
  • 匿名用户
    2月前 2
    1 引用

    Yes, here’s the link: https://www.suime.cn/?thread-41.htm

    translation:

    The cf_tradeServer won’t start if you add items that don’t belong to the current version’s trade system.

    This usually happens when you copy trade items directly from the Chinese server client’s ITEM table. Doing so also copies the value 1 in column 52 (_CALL_PROC_CODE).

    Normally, this column is either - or empty for regular items.
    A value of 1 marks a trade system item.

    If CF_ITEM_INFO in the database contains items that aren’t part of the current version’s trade system, the server will fail to start. If your server isn’t starting, check your client’s ITEM table for trade items copied from the Chinese server.

    Once you find the problematic item, change column 52 (_CALL_PROC_CODE) from 1 to -, and also update CALL_PROC_CODE in CF_ITEM_INFO. The server should start after this. If it still doesn’t, there may be other items that need the same fix.

    Additionally, when cf_tradeServer starts, it checks CF_INFO_TRADE_CATEGORY. If this table doesn’t have entries for the newly added trade items, the server won’t start. Adding the entries allows the server to start—but they still won’t appear in the trade system. Honestly, I didn’t look into it further since it’s basically useless.




  • 穿越的稀饭
    2月前 3
    0 引用
    匿名用户 Yes, here’s the link: https://www.suime.cn/?thread-41.htmtranslation: The cf_tradeServer ...

    我的交易所服务是能启动的,道具能上架但是无法购买,点击购买没有任何反应。我按照视频教程修复了数据库函数也没有效果。

    03:24:41.738 Search(0/0), Reg(0/0/0), Buy(8/0/1)

    0.0.0.0    TRADESERVER    2026-05-10 03:23:49,671    [EXEC_TRADE] Ret:2000 - USN:2, TradeSrl:106, ChargeNo:, Cash:0, Seller:1, SellerCash:0, Msg:Unexpected error occurred

  • takaofps12
    2月前 4
    0 引用
    This  is  the  problem. 
  • 匿名用户
    1月前 5
    0 引用

    确实是的,可以正常上架,但是购买时会显示已售出。我尝试修改了很多方法,均无效。

    本以为把价格修改成0后,可以绕过收费系统。但是还是失败了。

    C:\log\crossfire\cf_tradeserver\20260512\PAYLETTER_BIILING_20260512.log

    0.0.0.0    TRADESERVER    2026-05-12 17:59:02,128    [EXEC_TRADE] Ret:2001 - USN:2, TradeSrl:1, ChargeNo:, Cash:0, Seller:1, SellerCash:0, Msg:Necessary data is not posted.

    0.0.0.0    TRADESERVER    2026-05-12 18:00:43,224    [EXEC_TRADE] Ret:2000 - USN:2, TradeSrl:10140, ChargeNo:, Cash:0, Seller:1, SellerCash:0, Msg:Unexpected error occurred

    0.0.0.0    TRADESERVER    2026-05-12 18:10:08,243    [EXEC_TRADE] Ret:2001 - USN:1, TradeSrl:1, ChargeNo:, Cash:0, Seller:1, SellerCash:0, Msg:Necessary data is not posted.


    不过可以模拟交易所买东西,运行函数GSP_USER_TRADE_ITEM_BUY,但是不会产生记录。

    前提是CF_INFO_TRADE_CATEGORY和CF_INFO_TRADE_BOX表有相关的记录

    CF_TRADE_ITEM_LIST表:是所有上架列表

    CF_USER_TRADE_ITEM_INVEN表:是用户的交易道具

    CF_USER_TRADE_STATUS是:交易的状态,可以修改取消次数

    CF_INFO_TRADE_PARAM_VALUE表:是价格控制,挂卖数量。对应TRADESELLCOUNT.CFT

    函数GSP_USER_TRADE_ITEM_ADD增加用户物品

     










    结论:大概率是交易所系统问题,可惜没有源码,限制太多了,希望后来人可以修复吧!

     

     

     

     

     

     

     

  • takaofps12
    1月前 6
    0 引用
    https://www.bilibili.com/video/BV1hV5jzUEtR/
  • 穿越的稀饭
    1月前 7
    0 引用
    takaofps12 https://www.bilibili.com/video/BV1hV5jzUEtR/
    我就是按照这个视频修复了没有效果
  • takaofps12
    1月前 8
    0 引用
  • 好好学习
    7天前 9
    0 引用
返回