Giter Site home page Giter Site logo

csgowiki-pack's People

Contributors

hx-w avatar

Stargazers

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

Watchers

 avatar

Forkers

samyycx

csgowiki-pack's Issues

每日道具/推荐道具,道具的评论与评分,让!wiki更丰富一些

现在!wiki的道具菜单是按固定顺序排序的,有想法想每天推荐几个道具学习:

  • 哪片地区的道具用户练习的最多(需要数据库记录)
  • 新增的道具
  • 高评分的道具

等等

还有可以对选中的道具进行评分和评论,直接上传到网站,具体方式未定。

Memory Leak In "AllCollectionResponseCallback"

版本:1.01
截图:
1

建议解决方法:

  1. 扩大插件占有的动态内存#pragma dynamic xxx
  2. 使用临时变量直接赋值代替new,避免sourcemod内存释放不稳定的问题。

Limit request frequency

目前插件没有限制!wiki的请求频率
由于!wiki菜单不会主动消失,玩家快速请求网站道具数据的行为是有可能存在的。

从系统稳定性上来讲,sourcemod是全程异步的,玩家快频按菜单,会导致内存中短时间内生成大量http请求句柄,在对应句柄被删除前就导致内存泄漏(Memory Leak),从而被sourcemod检测到,将该插件在内存中卸载。卸载后需要手动sm plugin reload(没测试过),或换图刷新插件列表才可以重新加载该插件。

故需要限制玩家的请求频率,目前想法是限制玩家请求3秒/次

取消提交道具

建议能否添加一个功能:
有的时候不小心按到两下e,能不能给一个取消提交的方式,或者做个防误触?

In-game ADMIN menu support for this plugin

是否需要提供插件的管理员菜单,功能可以包括:

  1. 各个子功能的临时关闭与开启(换图后重置为cfg的设置)
  2. 限制某个/某些玩家的请求次数
  3. 禁止/允许某个玩家上传道具

可以有这两个方法:

  1. 直接拓展!admin指令的菜单,增加csgowiki相关管理指令。不过这种方式应该只有z权限的管理员才能使用
  2. 新增一个新的b权限管理员指令:!wikiop,用于处理相关事务。这种方式需要多记一个指令,看实际取舍

如果实现相关功能则需要数据库的支持:

  • 选用何种数据库sqlite/mysql/postgresql
  • 安装操作难度如何把握?
  • 是否应该做成可选?不安装数据库的话则不支持限制某些玩家行为的功能

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.