kbengine 使用常見問題

[編譯相關]:

◇ VS 2010 - error LNK1123: failure during conversion to COFF: file invalid or corrupt:

請安裝vs2010 SP1補丁。



https://social.msdn.microsoft.com/Forums/vstudio/en-US/eb4a7699-0f3c-4701-9790-199787f1b359/vs-2010-error-lnk1123-failure-during-conversion-to-coff-file-invalid-or-corrupt?forum=vcgeneral

http://stackoverflow.com/questions/10888391/error-link-fatal-error-lnk1123-failure-during-conversion-to-coff-file-inval

http://msdn.microsoft.com/en-us/library/7dz62kfh.aspx

◇ kbengine\kbe\src\lib\dependencies\apr\encoding\apr_escape.c(109): error C2065: 「test_char_table」: undeclared identifier

* 一般是360等殺毒軟件殺掉了apr用於產生頭文件的exe(kbengine\kbe\src\lib\dependencies\apr\LibD\gen_test_char.exe),請恢復KBE項目文件並關掉360從新編譯試試。
* 或者去360中調整策略忽略檢查這個exe。


◇ clientapp.cs(30,94): error CS1729: The type KBEngine.KBEngineApp* does not contain a constructor that takes 3* arguments

* 更新kbengine插件庫(https://github.com/kbengine/kbengine_unity3d_plugins):
	* 使用git命令行,進入到kbengine_unity3d_warring目錄執行:
		git submodule update --init

	* 或者使用 TortoiseGit(選擇菜單): TortoiseGit -> Submodule Update:

* 也能夠手動更新kbengine插件
	git clone https://github.com/kbengine/kbengine_unity3d_plugins.git
	插件源碼請放置在: Assets/plugins/kbengine/kbengine_unity3d_plugins

◇ if_Entity_error_use____git_submodule_updatekbengine_plugins____open_this_file_and_I_will_tell_you.cs(9,128): error CS0246: The type or namespace name Entity* could not be found. Are you missing a using directive or an assembly reference?

* 更新kbengine插件庫(https://github.com/kbengine/kbengine_unity3d_plugins):
	* 使用git命令行,進入到kbengine_unity3d_warring目錄執行:
		git submodule update --init

	* 或者使用 TortoiseGit(選擇菜單): TortoiseGit -> Submodule Update:

* 也能夠手動更新kbengine插件
	git clone https://github.com/kbengine/kbengine_unity3d_plugins.git
	插件源碼請放置在: Assets/plugins/kbengine/kbengine_unity3d_plugins


[運行時相關]:

◇ ERROR loginapp [2014-11-04 11:40:08,780] - BundleBroadcast::receive: is failed(please check {firewall rule => broadcastaddr not is LAN ?})!

請檢查防火牆是否致使內網UDP廣播不能正確接收,可嘗試先關閉防火牆從新啓動一次服務端,若是關閉防火牆後可以正確運行起來講明就是防火牆問題。
若是不是防火牆問題請檢查是否存在多塊網卡,若是存在多塊網卡的狀況須要對使用的網卡進行配置。其餘任何狀況檢查網絡是否通順等等。
參考:http://www.kbengine.org/cn/docs/installation.html

◇ WARN loginapp [2014-11-05 09:22:47,199] - PacketReader::processMessages: invalide msgID=25702, msglen=1, from 127.0.0.1:5631/0/0/0.

ERROR loginapp [2014-11-05 09:22:47,199] - Channel::condemn[0x4aa81d8]: channel(127.0.0.1:5631/0/1/0).

登陸時loginapp日誌出現相似的錯誤,這種狀況頗有多是服務端和客戶端的版本不匹配而形成的,請確保服務端與客戶端版本一致。
服務端與demo客戶端都可以在此下載到源碼:https://github.com/kbengine/
相關文章
相關標籤/搜索