- Joined
- Aug 14, 2009
- Messages
- 2,304
- Reaction score
- 1,189
I downloaded the code from the other thread. exactly the same engine.. And file/folder structure. Have to check if anything else is different.
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!Yeah its the same file and structure but not the game Hero Charge. This what i am pointingI downloaded the code from the other thread. exactly the same engine.. And file/folder structure. Have to check if anything else is different.
-- Decompiled using luadec 2.2 rev: 895d923 for Lua 5.1 from https://github.com/viruscamp/luadec
-- Command line: Debug\dailylogin.luac
-- params : ...
-- function num : 0
local ed = ed
local class = {
mt = {}
}
-- DECOMPILER ERROR at PC5: Confused about usage of register: R2 in 'UnsetPending'
;
(class.mt).__index = class
-- DECOMPILER ERROR at PC7: Confused about usage of register: R2 in 'UnsetPending'
;
(ed.ui).dailylogin = class
local explain_text = T("\n每月累计签到天数,领取相应的签到奖励ぜ130\n\n在特定日子里,达到对应VIP等级及以上的玩家可以领取双朱28ΥŖ励!第二份奖励可以当日内升级VIP等级后补领䜱28\130\n\n注:每日签到奖励在每天的05:00计算隔天,当天未领取的奖励隔天不可以再补领䜱28\130\n\n")
local getDate = function()
-- function num : 0_0 , upvalues : ed
local time = (ed.getFitServerTime)()
local date = (ed.getYMDHMS)(time)
local d = tonumber(date.day)
local h = tonumber(date.hour)
local m = tonumber(date.minute)
local s = tonumber(date.second)
do
if d == 1 then
local boa = (ed.checkBOA)({h = h, m = m, s = s})
end
if boa ~= "after" or boa == "before" then
date = (ed.getYMDHMS)(time - 86400)
end
local y = tonumber(date.year)
local m = tonumber(date.month)
local d = tonumber(date.day)
return {y = y, m = m, d = d}
end
end
class.getDate = getDate
ed.getDate = getDate
local getRewardAt = function(i)
-- function num : 0_1 , upvalues : ed
local date = (ed.getDate)()
if not i then
local y, m, d = date.y, date.m, date.d
end
local row = ((((ed.getDataTable)("DailyLoginReward"))[y])[m])[d]
if not row then
return
end
local type = row["Reward Type"]
local id = row["Reward ID"]
local amount = row["Reward Amount"]
local vip = row["Double Reward VIP Level"] or 0
return {type = type, id = id, amount = amount, vip = vip}
end
Yeah I found it also its the same base source of their games UCool just changed UI and make it as Heroes Charge clear now.[/spoiler]
You must be registered to see links
If you search for "520006_397" you'll find it.
Did anybody try my "fixed" version? @WireShark @fameza123 Did it work for you? If not I suggest post an issue on github and I'll try and help you out. The game is actually fun, and I'd like to help people fixing & getting this working.
EDIT:
Before I forget it: The game I posted above is EXACTLY the same. Not the actual game but the download link the dude gave is the SAME SOURCE-CODE with SAME ASSETS. Nothing is different. This game here is also NOT Heroes charge. But who cares... There are about ~20 of these games released all exactly the same except for minor differences in UI and graphics. I guess one company developed the base & sold it, and others just changed the graphics. While researching I also found out that Lilith Games sued the company UCool which "developed" Heroes Charge because they "supposedly" "decompiled" and "stole" their code.. Yea right.. Decompiled a game which was made in C++ and replicated 1 to 1.. If it would be so easy
I cant see the image clearly using tapatalk app the emulator work but i cant run the webserver what is the dependencies of the webserver files i see php files may i ask if you can give a guide how does the webserver works do I need a linux based machine to run this as I see the default source webserver is running on yiiframework.The last 2 days I tried getting Protobuf2 to work with C#. It didn't work. So I guess I try to write a C++ library that parses the message with Protobuf c++ and call that from C#. While I was investigating the protocol the client/server uses I made a documentation for it:
You must be registered to see links
This is how far I got with my C# code (Left C#, right PHP):
I get as far as extracting the ProtoBuf message. But parsing it doesn't work.
{
"branch" : "MAIN",
"inStoreUpdate" : "http://www.baidu.com",
"localVerson" : "1.000.16",
"sever" : "http://[COLOR=#0000ff]127.0.0.1[/COLOR]/severs_dota_ios.php",
"severBackup" : "http://[COLOR=#0000ff]127.0.0.1[/COLOR]/severs_dota_ios.php",
"version" : 1
}
Did it work for you? If not I suggest post an issue on github and I'll try and help you out. The game is actually fun, and I'd like to help people fixing & getting this working.
Yes only the version_win32.cfg only need to edit I did test not the lua but again I get this I try AccountID 1 2 3 not workingPlease. Also post the *.log file.
EDIT:
You don't actually need to edit any *.lua files.