GithubHelp home page GithubHelp logo

wheatbox / wheatcloudsleep Goto Github PK

View Code? Open in Web Editor NEW
361.0 361.0 41.0 27.53 MB

小麦云睡觉软件,很无意义的那种

License: MIT License

Yacc 27.68% Game Maker Language 48.00% C++ 23.39% CMake 0.48% GLSL 0.45%

wheatcloudsleep's People

Contributors

wheatbox avatar ymx-mshk avatar zhhhhhhhh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wheatcloudsleep's Issues

云睡眠制作场景包后续问题

关于画包本身,为什么在可移动范围足够的情况下还是会出现小人无法移动的区域呢?
#0002343
比如这里,在本地测试时小人下方就无法前进,把墙壁移开倒是可以移动了,但是为什么落日旅馆里墙壁不会这样遮挡路径呢?
https://wwrb.lanzouw.com/ivi5H0j1495e
这是那个实验包
求大佬解答QAQ

编译到room.cpp报错

提示:Source/Server/CloudSleepServer/room.cpp:161:30: error: unused parameter 'src_id' [-Werror=unused-parameter]
编译不下去了,我这边需要改点啥。。Linux系统的。
系统环境:CentOS 7.9
编译环境:gcc version 12.2.0

连不上诶

支持海外用户么~我在国外连不上哇

一些问题

1.这个游戏仅为44MB,也就是说有一些人会无限启动客户端来刷号占用服务器空间

2.可以无限放大,缩小

3.同名ID存在不会出错

可否建一个吹水群(

最近几天登不上去来看看怎么回事,原来是喝茶了
也方便我们提建议反馈bug什么的
tg或者discord都行,能找到这来的人应该都知道怎么翻出去)

挂机一会就操作不了了

进登录进去的时候还一切正常,挂着去忙了一会其他的再过来看就操作不了了。。只能移动画布,聊天信息也发不动

反馈

反馈信息

1: 同一ip可在短时间内重复进出服务器,其发表言论无法被举报或将ip封禁
2: 相同ip来源的用户会多次计票(例如:某个ip开了10个客户端 去举报1个路人 那么这个人就会被投10票而不是1票)(那么在官服里这人多半得被投出去,而他什么也没做)
3: 增加踢出时的提示,而不是客户端直接不动了

建议

按ip进行计票
拒绝没有名字的连接

关于使用云睡眠编辑器制作场景包的疑问

几乎是纯外行,擅长场景包素材制作,但是不会编程。。
所以该如何运行?直接复制到云睡觉场景包文件夹里吗?
服务器地址怎么写?自备服务器支持其运行?还是写CloudSleep.top:(端口数字)呢?
暂且遇到这些问题,实验场景包完成了但是却挂不上去太难受了QAQ我还想做更精细的场景呢

嗯我又研究了一下,下载了release并且照文章配置了文件,但是这就是需要服务器才能运行吧...?
另外,我在笔记本上运行了run.bat,现在给它删了。。有什么影响吗QAQ

[已解决]打扰,关于ubuntu上按照教程后提示permission denied

./CloudSleepServer -c config.json
2023-05-15 22:47:25:638 [info] config.cpp:247 add violation rule, type:ip, id:, rule:conn=5,pps=100,bps=81920
2023-05-15 22:47:25:638 [info] config.cpp:247 add violation rule, type:ip, id:127.0.0.1, rule:conn=1000,pps=100000,bps=819200000
2023-05-15 22:47:25:639 [info] config.cpp:156 ContentFilter SuperMode Enabled
2023-05-15 22:47:25:639 [fatal] main.cpp:236 bind: Permission denied

Memory safty problem in WheatTCPServer.cpp

location:

WheatTCPServer.cpp:81-82

problem:

  1. line 81:

不要用 = {0} 这样的方式初始化内存,在一些版本的msvc编译器中,这样的代码并不会完整初始化整个内存块,应当使用memset或者stl中的std::fill or std::fill_n类似的函数去初始化内存块。

  1. line 82:

buf是一个null-terminated string,所以你在使用recv的时候应该留一个字节的null。要不然buf有可能超过WHEATTCP_BUFFERSIZE的大小,如果客户端发送等于WHEATTCP_BUFFERSIZE的数据。

[Enhancement] 请考虑使用第三方库,以及性能改进

问题描述

  1. 使用了原始的Winsock2,代码比较混乱.
  2. 不够安全,且信息中记录了用户IP,属于隐私内容,建议进行加密
  3. WheatBedManager::FindSleeperId方法中使用遍历加std::vector

解决方法

  1. 请不要重复造轮子,使用例如asio,来进行TCP管理
  2. 使用cryptopp进行加密
  3. 使用std::map

能否维护一份接口文档呢

在此先感谢官方的开源
有一份明确的接口文档能够方便第三方客户端的开发,例如WEB端,app端等
而且对于前端开发者而言,看c语言的后端属实有点吃力

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.