mogara / qsanguosha Goto Github PK
View Code? Open in Web Editor NEWAn open source online version of the famous board game Sanguosha
Home Page: http://www.qsanguosha.org/
License: GNU General Public License v3.0
An open source online version of the famous board game Sanguosha
Home Page: http://www.qsanguosha.org/
License: GNU General Public License v3.0
請將QSanguosha.pro中unix里
LIBS += -laudiere
修改為
LIBS += -laudiere -lircclient
添加 -lircclient
看起来似乎有些类型在 Linux 下没有:
src/server.cpp: 在成员函数‘void Server::daemonize()’中:
src/server.cpp:379:9: 错误:‘WORD’在此作用域中尚未声明
src/server.cpp:379:14: 错误:expected ‘;’ before ‘wVersionRequested’
src/server.cpp:380:9: 错误:‘WSADATA’在此作用域中尚未声明
src/server.cpp:380:17: 错误:expected ‘;’ before ‘wsaData’
src/server.cpp:382:21: 错误:‘wVersionRequested’在此作用域中尚未声明
src/server.cpp:382:41: 错误:‘wsaData’在此作用域中尚未声明
src/server.cpp:382:48: 错误:‘WSAStartup’在此作用域中尚未声明
make: *** [server.o] 错误 1
我13.3笔记本,gnome3,96dpi,1366x768 必须把字体设置为6号才能启动服务器或者单机版,能不能给加个滚动条。
自由选将界面也很大,超过了我的屏幕。下面的点不到。
我给startserver加了个滚动条,自己先凑合用着。
http://linux-android-files.googlecode.com/files/startserverbar.patch
根据当前代码版本
server.cpp:799 给客户端发送服务器设置,其中包含禁止的扩展包
socket->send("setup " + Sanguosha->getSetupString());
engine.cpp:382 getSetupString中 :406 获取禁止的扩展包
<< Sanguosha->getBanPackages().join("+")
:267 getBanPackages 是从 :268 ban_package 中获取数据
return ban_package.toList();
而 ban_package 是由 :263 Engine::addBanPackage 中的 :264 设置
ban_package.insert(package_name);
调用 addBanPackage 在 server.cpp:723 即启动服务器设置对话框保存设置时
Sanguosha->addBanPackage(package_name);
因为服务器未以 GUI 启动,所以 ban_package 无值
我暂时将 engine.cpp:268
return ban_package.toList();
改为
return Config.BanPackages;
解决该问题
返回一个 xml 页面,大意是 AccessDenied。其他文件能下载。
如题。
我用QtCreator无法链接那个静态库,想请教一下作者你的编程环境。我现在准备用MSVC编译Qt了,但就怕是不需要。。。
error message:
sanguosha.i:437: Error: 'Equip' is multiply defined in the generated module.
sanguosha.i:63: Error: Previous declaration of 'Equip'
sanguosha.i:590: Error: 'Skill' is multiply defined in the generated module.
sanguosha.i:434: Error: Previous declaration of 'Skill'
how can i fix it?
can not find: -lplibjs -lplibul 这都是什么库啊?需要安装哪些开发库啊?我上网找都找不到
为什么我打开swig,他就闪了一下命令提示符就没了。。。。。。。。。我的版本是2.0.4
请修改为
unix {
LIBS += -lm -llua -lIrrKlang -lplibjs -lplibul
}
ifndef QT_NO_DEBUG
default_host = "irc.freenode.net"
條件編譯else內容後面忘記";"了,
大概在62行
本人使用的系统是centos5.5,自带qt3,后来安装了qt4,
在qmake时,出现下列错误,请帮帮忙,谢谢!
uic: File generated with too old version of Qt Designer
uic: File generated with too old version of Qt Designer
uic: File generated with too old version of Qt Designer
uic: File generated with too old version of Qt Designer
uic: File generated with too old version of Qt Designer
Version: guixin-45-3819ae2
Description: according to the FAQ on qsanguosha.com, Zuoci can only change the skill of Huashen if he changes the general he chooses, and an example given there is about Huatuo. It says that according to this rule, Zuoci cannot choose Qingnang within his phase and Jijiu outside his phase to perfectly simulate Huatuo. Yet in the game it is possible. Hopefully it would be fixed soon. Thank you very much.
看了一下,原因是 Linux 下面没有 USERNAME 这个环境变量,需要用 USER 替代,而 Windows 下面又没有 USER ……
详见 src/setting.cpp 第 61 行。
ASSERT: "!pile_name.isEmpty()" in file src/room.cpp, line 2172
Merge AI code from Hypercross
在win下编译的时候出现不能连接static-libircclient.lib和irrKlang.lib的问题。
前面编译时还有找不到"resource/icon/sgs.ico",修改icon.rc里的路径过掉了。
问一下是不是我的qt配置有问题?
如题,有一些C++基础,谢谢。
QSanguosha 1025 版本,雌雄双股剑技能发动不正常,对方选择不弃牌,并不触发己方拿牌。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.