打印

人物界面出现错误提示“网络忙线中,请稍候再试”

人物界面出现错误提示“网络忙线中,请稍候再试”

服务端使用自动注册,账号注册提示成功,但是在人物界面出现“网络忙线中,请稍候再试”的错误提示,请问下是哪里没有设置好?

TOP

服務端LUA檢查一下

有個freelogincheck這個function

會在登入過程做檢查

如果沒有其他設定,就強制回傳1 應該就正常了

TOP

回復 2# 的帖子

谢谢指导,一看就知道是高手啊,回去测试一下!!!!

TOP

複製內容到剪貼板
代碼:
--登录过程读取和验证
function FreeLoginCheck(fd)
        local mun = 0
        local maxnum = 0
        local maxplayer = config.getFdnum() - 1
        local mac = net.getMac(fd)
        local ip = net.getIP(fd)

        if mac == "" then
                lssproto.CharList(fd, "由于你使用非本服的认可的程序进入游戏,所以禁止你的登陆!")
                return 0
        end
        if string.len(mac) < 32 then
                lssproto.CharList(fd, "由于你使用非本服的认可的程序进入游戏,所以禁止你的登陆!")
                return 0
        end
        local key = other.getString(mac, "-", 1)
        if key ~= "ver100" then
                lssproto.CharList(fd, "由于你的版本过旧,请更新后再进入游戏!")
                return 0
        end

        local mainmac = other.getString(mac, "-", 2)

        maxnum = 2
        for i = 5, maxplayer do
                if net.getUse(i) == 1 then
                        if mac == net.getMac(i) then
                                mun = mun + 1
                                if mun > maxnum then
                                        lssproto.CharList(fd, "你的游戏账号登陆已以达" .. mun - 1 .. "个,请不要过量进入游戏!")
                                        return 0
                                end
                        end
                end
        end

        token = "SELECT count(*) FROM `CSAlogin` "
                                        .. " WHERE `MAC` = '" .. mac .. "' and `Online` > 0"
        ret = sasql.query(token)
        local totalnum = 1
        if ret == 1 then
                sasql.free_result()
                sasql.store_result()
                num = sasql.num_rows()
                if num > 0 then
                        sasql.fetch_row(0)
                        onlinenum = other.atoi(sasql.data(1))
                        if onlinenum > totalnum then
                                lssproto.CharList(fd, "您的游戏登录账号数量已达上限,请不要过量进入游戏。")
                                return 0
                        end
                end
        end

        return 1
end

function CheckNologin(mac)
        for j=1,table.getn(nologin) do
                if mac==nologin[j] then
                        return 1
                end
        end
        return 0
end

function data()


end

function main()
        data()
end
看了下,这是一个mac检测代码,用于本机客户端版本号,应该是这里的问题,只是没有测试无法准确回复。

TOP

全部註解掉

只要把這中間全部註解掉
強制return 1

應該就可以順利登入了

然後你可能會接著遇到道具的圖案與文字錯位的問題

TOP

回復 5# 的帖子

确实碰到了,所有道具都无法正常显示了,请问如何解决?

TOP

後面請自求多福

能夠編譯完,還得確認所有封包是不是都正常傳送
確認完封包還有加密問題
加密問題解決還有分離補丁的問題

再來就是要反推ABLUA所有功能有沒有完善

要能夠真的走到開服,還有很長一段路

我能夠提供的協助僅能到此,還請你加油

另外歡迎參考我酪梨石器的內容

TOP

回復 7# 的帖子

酪梨石器,网址多少?我去参考一下和学习一下!!

TOP

TOP

论坛很不错,学习中,很多借鉴的地方,但是没有源代码交流

TOP