高级
返 回 发新帖 回复
查看: 39405 | 回复: 254

《历史的巧合,京城四少创造了数据的极限》

跳转到指定楼层
玲姐报道   当前离线
银币 25155
经验 9671

玲姐报道

2015-03-30 只看楼主
本帖最后由 玲姐报道 于 2015-03-30 16:02:03 编辑 ignore_js_opimg id="aimg_1042475"src="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042475f48341f47db95cb938b84035a93a5094.png"style="max-width: 750px;"zoomfile="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042475f48341f47db95cb938b84035a93a5094.png"file="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042475f48341f47db95cb938b84035a93a5094.png"class="zoom"onclick="zoom(this, this.src)"onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"alt=""//ignore_js_op ignore_js_opimg id="aimg_1042477"src="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042477ddf45db00df4872fedf17e2fd812328d.png"style="max-width: 750px;"zoomfile="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042477ddf45db00df4872fedf17e2fd812328d.png"file="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042477ddf45db00df4872fedf17e2fd812328d.png"class="zoom"onclick="zoom(this, this.src)"onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"alt=""//ignore_js_op ignore_js_opimg id="aimg_1042745"src="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042745c348e205b8a8ce55cfde2161dcbf2602.jpg"style="max-width: 750px;"zoomfile="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042745c348e205b8a8ce55cfde2161dcbf2602.jpg"file="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042745c348e205b8a8ce55cfde2161dcbf2602.jpg"class="zoom"onclick="zoom(this, this.src)"onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"alt=""//ignore_js_op 在这里科普一下,21亿这个数字,在游戏编程中是个上限。 就是,比如说,你最多只能拥有21亿金币,多冲也不显示了。 杀敌,什么的都是,一旦超过,极易出错。 变成负21亿的都有可能。 当年玲姐玩一个游戏,利用这个BUG, 几个人联合起来,弄到21亿后,直接数据紊乱, 声望什么的,都变成了21亿。 最后把那个游戏都搞崩溃了,最后都没法玩了。 现在过了几年,这个问题应该也解决掉了。 现在京城四少打出了21亿。 呵呵,怎么不出错呢? 俺们也跟着补偿一下。 ignore_js_opimg id="aimg_1042483"src="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042483b3678cf1c1739426d6b63207b59d8547.png"style="max-width: 750px;"zoomfile="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042483b3678cf1c1739426d6b63207b59d8547.png"file="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042483b3678cf1c1739426d6b63207b59d8547.png"class="zoom"onclick="zoom(this, this.src)"onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"alt=""//ignore_js_op 这是当年的截图,大家看一下,是不是跟四少的一样。 214748万,呵呵,历史时刻啊,大家看一下。 ignore_js_opimg id="aimg_1042489"src="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042489ffc1723ed3c416d8b914d3cbc133aac0.jpg"style="max-width: 750px;"zoomfile="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042489ffc1723ed3c416d8b914d3cbc133aac0.jpg"file="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/1042489ffc1723ed3c416d8b914d3cbc133aac0.jpg"class="zoom"onclick="zoom(this, this.src)"onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"alt=""//ignore_js_op ignore_js_opimg id="aimg_1042491"src="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/104249156b51725db538c717b1ae68cf10b5acc.jpg"style="max-width: 750px;"zoomfile="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/104249156b51725db538c717b1ae68cf10b5acc.jpg"file="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/104249156b51725db538c717b1ae68cf10b5acc.jpg"class="zoom"onclick="zoom(this, this.src)"onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"alt=""//ignore_js_op ignore_js_opimg id="aimg_1042493"src="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/104249329297f19253069be1a086d07a3864761.jpg"style="max-width: 750px;"zoomfile="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/104249329297f19253069be1a086d07a3864761.jpg"file="https://res-bbs.aoshitang.com/data/attachment/forum/201503/30/104249329297f19253069be1a086d07a3864761.jpg"class="zoom"onclick="zoom(this, this.src)"onmouseover="showMenu({'ctrlid':this.id,'pos':'12'})"alt=""//ignore_js_op 看到这里,玲姐是大名鼎鼎的谁,你猜到了么? 专业回复: 这个游戏里,肯定是将这个经验值设置为32位(四字节)的整数。原来32位非负数时最大可表示42亿(0至4294967296),你堂妹的,将它变成从-21亿至+21亿,脑残的开发。 像C语言里: long int -2147483648~2147483647 (长整型) unsigned long 0~4294967295 (无符号长整型) 你们的脑残开发,改一下变量类型就可以增加一倍经验上限了!再不够,改64位数吧!

查看全部评分

经验 用户名 时间 理由
总计:  0 
不能给自己评分
高级模式
B Color Image Link Quote Code Smilies


页游《攻城掠地》今日10点新服火爆开启
抱歉,你 没有登录。