暗黑2在linux上运行,建立Diablo2(暗黑破坏神2)封闭式服务器详解

建立Diablo2(暗黑破坏神2)封闭式服务器详解

I. 需求

软件需求:

bnetd, d2cs, d2dbs和d2gs diablo2以及diablo2扩展版

系统需求:

bnetd, d2cs, d2dbs可以运行在*nix和win32系统下.

(推荐使用linux系统)

d2gs必须在win32系统下运行.

(推荐使用win2k或者winXP)

硬件需求:

具体依据服务器的在线用户量而定,

bnetd, d2cs and d2dbs对资源的需求很小.

说明:

*nix系统表示linux, unix, sun, BSD等系统

win32系统表示win9x/me/NT/2k/XP

II. 获取相关软件

bnetd, d2cs和d2dbs都属于bnetd项目,都是按照GPL许可以完整源代码的

形式进行发布,bnetd项目的主页为http://www.bnetd.org, 最新版本的

源代码可以在http://www.sourceforge.net/projects/bnetd找到.

目前,bnetd项目因为版权问题正受到blizzard的控告,所以在其主页和

sourceforge上的所有相关文件都已经去掉了下载连接,但网上仍然可以

找到很多相关的镜像进行下载(比如http://ugoth.net/bnetd/). 同时,

你仍然可以通过sourceforge的CVS服务获取当前最新的代码,

(CVS访问的详细资料请参看http://sourceforge.net/cvs/?group_id=6933)

d2gs属于d2close项目, 目前发布的都是已经编译好了的可

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Write java code: Copy the files, small_weapons.txt, and large_weapons.txt from the assignment folder on Blackboard and save them to your folder. For testing purposes, you should use the small file. Use the large file when you think the application works correctly. To see what is in the files use a text editor. Nilesh is currently enjoying the action RPG game Torchlight 2 which is an awesome game and totally blows Auction House Simulator 3, oh sorry, that should be Diablo 3, out of the water. He has got a file containing info on some of the unique weapons in the game. The transaction file contains the following information: Weapon Name (string) Weapon Type (string) Damage (int) Weapon Speed (double) … To tell if one weapon is better than another you need to know the Damage Per Second (DPS) the weapon does, since weapons have a different attack speed. DPS is calculated by taking the damage value and dividing it by the attack speed.a) You will write a program that will allow Nilesh to load the file and display the weapon info and DPS of every weapon in the input file. When the user chooses to open a weapon file, they are required to type in the filename. It will then read the 4 values about a particular weapon and then display the 4 values to the console window on one line neatly padded along with the DPS of the weapon. This is repeated until the end of the file. b) Modify your code from a) so that the weapon information written to the console window is also written to a text file. The user should be able to specify the name of the file. Add a header to the beginning of the file which has column headers for each column. At the end of the text file display the total number of weapons in the file. c) Document your code appropriately and add your name and id number as comments at the top of your code. Please also submit this text file you have created. Enter the file you want to search end with .txt: large_weapons.txt 1 Blackfang Bludgeon Great Hammer 489 1.44 339.58333333333337 2 Bones 2 Boneshredder Great Axe 256 0.84 304.76190476190476 3 Comet's Tail Great Sword 872 1.2 726.6666666666667 4 Decapitator Great Sword 188 1.08 174.07407407407408 5 Demolisher Great Hammer 887 1.32 671.9696969696969
最新发布
05-27

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值