填大坑游戏笔记


cd /home/tools/redis-3.0.5/
/home/tools/redis-3.0.5/src/redis-server /opt/-/redis_4501.conf
/home/tools/redis-3.0.5/src/redis-server /opt/-/redis_6379.conf

sleep 3
cd /opt/memcached/bin/
./memcached -d -p 11215 -u root -m 64 -c 1024 -P /var/run/memcached/memcached_11215.pid
./memcached -d -p 11201 -u root -m 64 -c 1024 -P /var/run/memcached/memcached_11201.pid
cd /opt/apache-tomcat-7.0.70/bin/
./startup.sh
sleep 3
. /home/allcan.sh startHall

sleep 3
. /home/allcan.sh startGame
////不确定有没有用
cd /opt/apache-tomcat-7.0.70_web/bin
sh startup.sh

//启动nginx,页面前端


===========================================================
需求:已经游戏中的托管,直接扣拍,也就是弃牌【抠牌是已有功能】,
增加时间配置:
根据日志定位函数 Scene:showConfigView(isFirst)
nowSelectGameConfig
bm.groupGameConfig .gameList .content 跟到reuuest中,发现request获取的数据不是最终展示的数据,说明1、使用了其他数据源 2、xxx
直接在group_create.lua中增加新的选项
不能点击时间问题,新增选项代码位置不对,调整到createScen即可
新增加计时器,用来判断是否应该托管:
gamesence中增加gameplane实例传递到table,gameplane中增加托管状态初始化和设置托管状态
增加位置:TablePlaneOperator:init,每一句调用一次
状态保存:GamePlaneOperator:init 没15局调用一次
PlayerPlaneOperator.lua
TablePlaneOperator.lua
GameMenu.lua


取消托管:
TDKgameScene:onTouchEvent

雷内函数调用失败:应该用:,其次是定义的时候要有class:funcion()


http://www.epwk.com/task/678478/
客户端涉及到下注的文件:首先客户端增加按钮,之后发送对应协议,后端进行解析



CGameTable::UserLogout
pUser->logout(); 清空socket,开启定时器,
pGameServer->UserQuit(this); {pTable->UserQuit(pUser);DeleteUser(pUser);}//定时回调
CGameTable::UserQuit(CGameUser *pUser){ UserStand(pUser); GetSendHandle()->BroadcastUserQuit(this, pUser->GetUserId());}
CGameTable::UserStand(CGameUser *pUser){ ProcUserCancelReady(pUser); 游戏中不能退出}



{"gameName":"填大坑","level":815,"diZhu":2,"chouMa":320,"gameConfig":[{"configShowName":"局数","configGroup":[{"config":"round","isCheckBox":0,"configOption":[{"optionName":"15局","optionValue":15,"cardCount":1,"isDefualt":1},{"optionName":"30局","optionValue":30,"cardCount":1,"isDefualt":0},{"optionName":"60局","optionValue":60,"cardCount":2,"isDefualt":0}]}]},{"configShowName":"模式","configGroup":[{"config":"gameType","isCheckBox":0,"oneLineItemCount":3,"configOption":[{"optionName":"全坑","optionValue":0,"isDefualt":1},{"optionName":"满5人9起","optionValue":2,"isDefualt":0},{"optionName":"满5人6起","optionValue":4,"isDefualt":0}]}]},{"configShowName":"喜分","configGroup":[{"config":"xifen","isCheckBox":0,"configOption":[{"optionName":"0","optionValue":0,"isDefualt":1},{"optionName":"5","optionValue":5,"isDefualt":0},{"optionName":"10","optionValue":10,"isDefualt":0}]}]},{"configShowName":"踢法","configGroup":[{"config":"ti","isCheckBox":0,"configOption":[{"optionName":"把踢","optionValue":0,"isDefualt":0},{"optionName":"末踢","optionValue":1,"isDefualt":1},{"optionName":"不踢","optionValue":2,"isDefualt":0}]}]},{"configShowName":"玩法","configGroup":[{"config":"wanfa","isCheckBox":1,"configOption":[{"optionName":"带王","optionValue":1,"isDefualt":1},{"optionName":"王中炮","optionValue":2,"isDefualt":1},{"optionName":"末脚踢服","optionValue":3,"isDefualt":1},{"optionName":"烂锅翻倍","optionValue":4,"isDefualt":1},{"optionName":"亮底","optionValue":5,"isDefualt":1},{"optionName":"抓A必炮","optionValue":6,"isDefualt":1}]}]}],"gameId":815}








更新版本号 和 下载地址
============================原始下载地址
https://tiandakeng.oss-cn-shenzhen.aliyuncs.com/tiandakeng.zip
http://134.175.40.12/tiandakeng.zip
"http://120.25.216.48/gameTest/168test_mani/hall/hall.manifest",
https://tiandakeng.oss-cn-shenzhen.aliyuncs.com/hall.zip
修改数据t_version
删除redis缓存



删除了一处逻辑~~!!!!! 很关键
// MOCK
Integer status = 0;

 

 

posted @ 2019-11-30 16:36  张扬86  阅读(292)  评论(0编辑  收藏  举报
baidu