make
configure your config file,save as config.json,put it under same directory as where gameserver is.edit cmd_name_filter with the packet you wish to report.
{
"cmd_name_filter": [
"DoGachaRsp"
],
"api_server":"http://127.0.0.1:21000",
"api_path":"/packet_report"
}
#mkdir -p patch/lib
#echo 1162732_test.so > patch/installed
#cp <where_your_so_file_was_located>/1162732_test.so patch/lib/1162732_test.so
├── gameserver
└── patch
├── installed
└── lib
└── 1162732_test.so
::ffff:127.0.0.1 - - [07/Aug/2024 00:00:23] "POST /packet_report?region=dev_gio_32&uid=1000&cmd_name=DoGachaRsp HTTP/1.1" 200 -
{
"gachaTimesLimit": 4294967295,
"tenCostItemNum": 10,
"gachaTimes": 1,
"gachaScheduleId": 913004,
"leftGachaTimes": 4294967295,
"tenCostItemId": 223,
"costItemNum": 1,
"newGachaRandom": 195,
"gachaType": 202,
"costItemId": 223,
"gachaItemList": [
{
"gachaItem": {
"itemId": 1020,
"count": 1
},
"transferItems": [
{
"item": {
"itemId": 1120,
"count": 1
}
},
{
"item": {
"itemId": 221,
"count": 2
}
}
]
}
],
"curScheduleDailyGachaTimes": 32,
"dailyGachaTimes": 56
}
cpp-httplib: http library.
PFishHook: hook library.
zydis: disassembler library.
##Virus alike files lib/libxxx.a:
##those files was prebuilt libraries that project uses,if you dont trust this repo,compile them yourself.