Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 新天下FLASH游戏【12月15日更新】

[复制链接]
Eiffel 发表于 2006-8-16 15:26:48 | 显示全部楼层 |阅读模式
l373571新天下flash游戏 (支援discuz 4.0, 4.1, 5.0)

插件演示
http://www.new-kingdom.com/dz5/plugins.php?p=nkflash (utf8繁体版,discuz 5.0 正桨?
http://new-kingdom.no-ip.org/dz5-gbk/plugins.php?p=nkflash (GBK版,discuz 5.0 正式版)
http://new-kingdom.no-ip.org/dz4/plugins.php?p=nkflash (big5版,discuz 4.1)

特色:
1. 各小游戏皆加入会员成绩排行榜,引发会员之间的比拼心.
2. 游戏得分可与论坛奖金挂钩.
3. 游戏冠军自动获得勋章.
4. 某程度上,防止玩家作弊.
5. 小游戏的开发有技述支援-https://discuz.dismall.com/thread-381195-1-1.html].
6. 经常有新游戏.
7. 游戏都是比较好玩.
(本插件可取替flash游乐园)

另有 比较简单的 新手快速安装方法  https://discuz.dismall.com/thread-382102-1-1.html

请各位在安装之后,依2楼最底的方法修正.谢谢!



安装方法
↑↑↑↑ 己过时

↑↑↑↑ 己过时

↑↑↑↑ 最新版本


1. 解压主程式rar到相应目录
  1. ./plugins.php
  2. ./plugins/nkflash.php
  3. ./plugins/nkflash_admin.inc.php
  4. ./images/nkflash/....
  5. ./images/common/.....
  6. ./nkflash/所有游戏包档案,即*.swf和它的图档
复制代码



2. 导入数据库 nkflash.sql **
  1. ALTER TABLE cdb_sessions CHANGE action action SMALLINT UNSIGNED NOT NULL DEFAULT '0';
  2. CREATE TABLE cdb_nkflash (
  3.   game_id char(15) NOT NULL default '',
  4.   game_type tinyint(1) unsigned NOT NULL default '0',
  5.   lastplay_time int(10) unsigned NOT NULL default '0',
  6.   flash_url char(50) NOT NULL default '',
  7.   flash_width smallint(5) unsigned NOT NULL default '500',
  8.   flash_height smallint(5) unsigned NOT NULL default '500',
  9.   flash_bgcolor char(8) NOT NULL default 'white',
  10.   game_title char(20) NOT NULL default '',
  11.   play_fee tinyint(2) unsigned NOT NULL default '0',
  12.   bonus_rate float unsigned NOT NULL default '1',
  13.   rate_limit float unsigned NOT NULL default '1',
  14.   score_unit char(6) NOT NULL default '',
  15.   game_img char(50) NOT NULL default '',
  16.   game_details text NOT NULL,
  17.   played_times mediumint(8) unsigned NOT NULL default '0',
  18.   favorates char(1) NOT NULL default '0',
  19.   medal_id smallint(5) unsigned NOT NULL default '0',
  20.   uid_1 mediumint(8) unsigned NOT NULL default '0',
  21.   score_1 double unsigned NOT NULL default '0',
  22.   level_1 tinyint(3) unsigned NOT NULL default '0',
  23.   dateline_1 int(10) unsigned NOT NULL default '0',
  24.   others_1 char(50) NOT NULL default '',
  25.   uid_2 mediumint(8) unsigned NOT NULL default '0',
  26.   score_2 double unsigned NOT NULL default '0',
  27.   level_2 tinyint(3) unsigned NOT NULL default '0',
  28.   dateline_2 int(10) unsigned NOT NULL default '0',
  29.   others_2 char(50) NOT NULL default '',
  30.   uid_3 mediumint(8) unsigned  NOT NULL default '0',
  31.   score_3 double unsigned NOT NULL default '0',
  32.   level_3 tinyint(3) unsigned NOT NULL default '0',
  33.   dateline_3 int(10) unsigned NOT NULL default '0',
  34.   others_3 char(50) NOT NULL default '',
  35.   uid_4 mediumint(8) unsigned  NOT NULL default '0',
  36.   score_4 double unsigned NOT NULL default '0',
  37.   level_4 tinyint(3) unsigned NOT NULL default '0',
  38.   dateline_4 int(10) unsigned NOT NULL default '0',
  39.   others_4 char(50) NOT NULL default '',
  40.   uid_5 mediumint(8) unsigned  NOT NULL default '0',
  41.   score_5 double unsigned NOT NULL default '0',
  42.   level_5 tinyint(3) unsigned NOT NULL default '0',
  43.   dateline_5 int(10) unsigned NOT NULL default '0',
  44.   others_5 char(50) NOT NULL default '',
  45.   uid_6 mediumint(8) unsigned  NOT NULL default '0',
  46.   score_6 double unsigned NOT NULL default '0',
  47.   level_6 tinyint(3) unsigned NOT NULL default '0',
  48.   dateline_6 int(10) unsigned NOT NULL default '0',
  49.   others_6 char(50) NOT NULL default '',
  50.   uid_7 mediumint(8) unsigned  NOT NULL default '0',
  51.   score_7 double unsigned NOT NULL default '0',
  52.   level_7 tinyint(3) unsigned NOT NULL default '0',
  53.   dateline_7 int(10) unsigned NOT NULL default '0',
  54.   others_7 char(50) NOT NULL default '',
  55.   uid_8 mediumint(8) unsigned  NOT NULL default '0',
  56.   score_8 double unsigned NOT NULL default '0',
  57.   level_8 tinyint(3) unsigned NOT NULL default '0',
  58.   dateline_8 int(10) unsigned NOT NULL default '0',
  59.   others_8 char(50) NOT NULL default '',
  60.   uid_9 mediumint(8) unsigned  NOT NULL default '0',
  61.   score_9 double unsigned NOT NULL default '0',
  62.   level_9 tinyint(3) unsigned NOT NULL default '0',
  63.   dateline_9 int(10) unsigned NOT NULL default '0',
  64.   others_9 char(50) NOT NULL default '',
  65.   uid_10 mediumint(8) unsigned  NOT NULL default '0',
  66.   score_10 double unsigned NOT NULL default '0',
  67.   level_10 tinyint(3) unsigned NOT NULL default '0',
  68.   dateline_10 int(10) unsigned NOT NULL default '0',
  69.   others_10 char(50) NOT NULL default '',
  70.   PRIMARY KEY (game_id),
  71.   KEY played_times (played_times),
  72.   KEY medal_id (medal_id),
  73.   KEY lastplay_time (lastplay_time)
  74. ) TYPE=MyISAM;
复制代码



** 如果你的主机是 MYSQL 4.1 或以上, 或是你安装后,出现???般的乱码,请把最后一行改为:
  1. ) ENGINE=MyISAM DEFAULT CHARSET=gbk;
复制代码



或如果你是utf8版,请把最后一行改为:
  1. ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
复制代码



如果安装错了,要重新导入,导入之前要加
  1. DROP TABLE IF EXISTS `cdb_nkflash`;
复制代码




3. 使用后台导入插件 discuz_plugin_nkflash.txt内容  
    点击[允许导入不同版本 Discuz! 的插件(易产生错误!!)]

4. 安装游戏包. (依压缩档路径解压便可以)

5. 导入数据库,使用后台的数据库升级导入nkgame.sql的内容
   (只需导入想安装的游戏; 也可导入全部游戏后,再在管理区把不想要的游戏删除.)

6. 使用前台的[Flash游戏管理] 重置游戏勋章 及 重建游戏缓存.
   安装后出现 Warning: Invalid argument supplied for foreach() in xxxxxxx\include\cache.func.php on line 28 是正常情况,之后玩一局游戏,有人上榜便没事,详情请看第57帖.

7. 若有需要时,更改后台的[插件设置][插件参数设置]
   内有各种版面或程式内设置供调整.

8. 检查在'forumdata/cache/'内是否多了一个nkflash_actions.php,
    之后在templates\default\actions.lang.php在最尾的?>之上一行
    加
  1. @require_once DISCUZ_ROOT.'./forumdata/cache/nkflash_actions.php';
复制代码

(最后第8步,要非常小心,须先做好第4至6步,成功在'forumdata/cache/'产生出nkflash_actions.php才可.
否则主页可能会变成一遍空白,此部骤与actioncode有关,可以不做的.)




==================================================================
注意事项 1
本乃GBK码,
繁体big版 请到http://www.alan888.com/Discuz/viewthread.php?tid=74120
utf8版只可以去 新手快速安装的那个帖 https://discuz.dismall.com/thread-382102-1-1.html 下载UTF版本


如果玩家的windows系统是简体,必须便用gbk或utf简体版安装.
玩家的windows系统是繁体,必须便用big5或utf繁体版安装.
否则会乱码!


==================================================================
注意事项 2
跨网存放swf留意:
由于flash player 7起, swf有跨网限制, 为了能让swf与php分开存放,
你网站的root目录需要加入crossdomain.xml文件
文件内容为:

  1. <cross-domain-policy>
  2. <allow-access-from domain="Domain" />
  3. </cross-domain-policy>
复制代码

Domain 乃 你的域名. 详情请参考 http://www.luar.com.hk/flashbook/archives/000792.php

例如我的论坛是 http://www.abc.com/bbs/index.php
我的存放.swf和.gif的空间是 http://www.xyz.com/temp/nkflash
你的crossdomain.xml必须放在 http://www.abc.com/ 处.
(http://www.abc.com/bbs/nkflash目录可删除)
crossdomain.xml 的内容是
  1. <cross-domain-policy>
  2. <allow-access-from domain="www.xyz.com" />
  3. </cross-domain-policy>
复制代码


如果你存放的位置是经常改变,也可以这样写crossdomain.xml 的内容
  1. <cross-domain-policy>
  2. <allow-access-from domain="*" />
  3. </cross-domain-policy>
复制代码


注:部分游戏:例如街头霸王,CS射击练习,糖果诱惑,因为SWF内连结另外的FLASH,所以不能用跨网的方法.

==================================================================
注意事项 3
安装新游戏方法
1. 使用后台[升级数据库]在数据库加入游戏发布者提供游戏安装码.
2. 使用[Flash游戏管理], 检查勋章代码是否重覆, 并加以修改.
3. 使用[Flash游戏管理], 重置游戏勋章.
4. 使用[Flash游戏管理], 重建游戏缓存.

==================================================================
注意事项 4
如有兴趣自行开发或修改flash游戏,可参考这网址
https://discuz.dismall.com/thread-381195-1-1.html

另外: alan888坛内亦有不少人经常发布新游戏
可用论坛搜寻关键字 新天下


==================================================================

注意事项 5
游戏包下载地址
https://discuz.dismall.com/thread-373571-1-1.html

(其他新游戏已放到[url]http://www.discuz.ne

[ 本帖最后由 Eiffel 于 2006-12-31 12:19 编辑 ]

评分

1

查看全部评分

 楼主| Eiffel 发表于 2006-8-16 15:27:21 | 显示全部楼层
本插件的反安装方法:
  1. 1. 升级数据库.
  2. DROP TABLE IF EXISTS `cdb_nkflash`;
  3. ALTER TABLE cdb_sessions CHANGE action action TINYINT UNSIGNED NOT NULL DEFAULT '0';
  4. 便可还原数据库.

  5. 2. 到后台删除插件

  6. 3. 把template/default/action.lang.php尾后我加的一句删去.

  7. 4. 删除 nkflash目录. 删除 plugins.php文件. 删除plugins/nkflash.php和nkflash_admin.inc.php
  8.    删除 forumdata/cache/nkflash_*.*
复制代码



=================================================================


如果在8月17日16:00前已安装插件者,请升级数据表,内容如下:
  1. ALTER TABLE cdb_nkflash CHANGE game_id game_id CHAR(15) NOT NULL ;
  2. ALTER TABLE cdb_nkflash CHANGE game_type game_type TINYINT(1) UNSIGNED DEFAULT '0' NOT NULL ;
  3. ALTER TABLE cdb_nkflash CHANGE flash_url flash_url CHAR(50) NOT NULL ;
  4. ALTER TABLE cdb_nkflash CHANGE flash_bgcolor flash_bgcolor CHAR(8) DEFAULT 'white' NOT NULL ;
  5. ALTER TABLE cdb_nkflash CHANGE play_fee play_fee SMALLINT(5) UNSIGNED DEFAULT '0' NOT NULL ;
  6. ALTER TABLE cdb_nkflash CHANGE game_img game_img CHAR(50) NOT NULL ;
  7. ALTER TABLE cdb_nkflash CHANGE played_times played_times MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL ;
  8. ALTER TABLE cdb_nkflash CHANGE rate_limit rate_limit FLOAT UNSIGNED DEFAULT '1' NOT NULL ;
  9. ALTER TABLE cdb_nkflash CHANGE uid_1 uid_1 MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL ;
  10. ALTER TABLE cdb_nkflash CHANGE others_1 others_1 CHAR(50) NOT NULL ;
  11. ALTER TABLE cdb_nkflash CHANGE uid_2 uid_2 MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL ;
  12. ALTER TABLE cdb_nkflash CHANGE others_2 others_2 CHAR(50) NOT NULL ;
  13. ALTER TABLE cdb_nkflash CHANGE uid_3 uid_3 MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL ;
  14. ALTER TABLE cdb_nkflash CHANGE others_3 others_3 CHAR(50) NOT NULL ;
  15. ALTER TABLE cdb_nkflash CHANGE uid_4 uid_4 MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL ;
  16. ALTER TABLE cdb_nkflash CHANGE others_4 others_4 CHAR(50) NOT NULL ;
  17. ALTER TABLE cdb_nkflash CHANGE uid_5 uid_5 MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL ;
  18. ALTER TABLE cdb_nkflash CHANGE others_5 others_5 CHAR(50) NOT NULL ;
  19. ALTER TABLE cdb_nkflash CHANGE uid_6 uid_6 MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL ;
  20. ALTER TABLE cdb_nkflash CHANGE others_6 others_6 CHAR(50) NOT NULL ;
  21. ALTER TABLE cdb_nkflash CHANGE uid_7 uid_7 MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL ;
  22. ALTER TABLE cdb_nkflash CHANGE others_7 others_7 CHAR(50) NOT NULL ;
  23. ALTER TABLE cdb_nkflash CHANGE uid_8 uid_8 MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL ;
  24. ALTER TABLE cdb_nkflash CHANGE others_8 others_8 CHAR(50) NOT NULL ;
  25. ALTER TABLE cdb_nkflash CHANGE uid_9 uid_9 MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL ;
  26. ALTER TABLE cdb_nkflash CHANGE others_9 others_9 CHAR(50) NOT NULL ;
  27. ALTER TABLE cdb_nkflash CHANGE uid_10 uid_10 MEDIUMINT(8) UNSIGNED DEFAULT '0' NOT NULL ;
  28. ALTER TABLE cdb_nkflash CHANGE others_10 others_10 CHAR(50) NOT NULL ;
复制代码


=================================================================


060821版本主要升级内容
1. 加入全屏游戏 (部分游戏的长宽比不适宜全屏,必须自行改窄视窗才可)
2. 支援跨网存放游戏
3. cookie记录玩家列出游戏的次序.
4. 改掉 bugs 数处.

=================================================================


旧版本升级方法.

1.请升级数据表,内容如下:

  1. INSERT DELAYED IGNORE INTO cdb_pluginvars (pluginid, displayorder, title, description, variable, type, value, extra) SELECT pluginid, 23, '游戏swf档存放目录', '可用于跨网存放swf档(路径后接反斜线)\r\n留空表示本地存放游戏swf档', 'swf_dir', 'text', '', '' from cdb_plugins where identifier = 'nkflash';
  2. INSERT DELAYED IGNORE INTO cdb_pluginvars (pluginid, displayorder, title, description, variable, type, value, extra) SELECT pluginid, 24, '游戏图片档存放目录', '可用于跨网存放图片档(路径后接反斜线)\r\n留空表示本地存放游戏图片档', 'img_dir', 'text', '', '' from cdb_plugins where identifier = 'nkflash';
复制代码


2.进后台更新缓存.

3.解压最新版本的档案,并盖过原档案.

4. 前台管理,更新游戏勋章,重建游戏缓存.

=================================================================


现版本已知问题及修改方法.

8月24日 在nkflash_admin.inc.php中 要把cdb_medals 改为 {$tablepre}medals 共六处
8月27日 在nkflash_admin.inc.php中 要把 ENT_QUOTES,GBK)?> 改为 ENT_QUOTES,GB)?> 共3处
9月4日 在nkflash.php中 把 $stortstart 改为 $storestart
9月4日 (utf8版) 把$others = str_replace("'","’",str_replace('"',"”",str_replace("\'","’",str_replace('\"',"”",$others))));改為
     require_once './include/chinese.class.php';
     $chs = new Chinese('GBK', 'UTF8');
     $others = $chs->Convert(str_replace("'","’",str_replace('"',"”",str_replace("\'","’",str_replace('\"',"”",$others)))));

[ 本帖最后由 Eiffel 于 2006-9-4 22:22 编辑 ]
回复

使用道具 举报

雪撒罗拉 发表于 2006-8-16 15:29:49 | 显示全部楼层
乱7八糟的~
回复

使用道具 举报

 楼主| Eiffel 发表于 2006-8-16 15:43:04 | 显示全部楼层
原帖由 雪撒罗拉 于 2006-8-16 15:29 发表
乱7八糟的~


discuz的 所见即所得模式 好有问题,害我花了很了编辑时间...
回复

使用道具 举报

irain.com.cn 发表于 2006-8-16 15:48:45 | 显示全部楼层
留位置
回复

使用道具 举报

chunposoft 发表于 2006-8-16 15:57:52 | 显示全部楼层
没搞明白...
回复

使用道具 举报

shinbasara 发表于 2006-8-16 16:04:23 | 显示全部楼层
赞一下, 试一下, 如果好就放弃游乐园了:)
回复

使用道具 举报

8#
无效楼层,该帖已经被删除
david1105 发表于 2006-8-16 16:25:27 | 显示全部楼层
会不会很占资源啊?
回复

使用道具 举报

默契网管 发表于 2006-8-16 16:27:16 | 显示全部楼层
不错关注中
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-10-2 02:43 , Processed in 0.152311 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表