游戏开发论坛

 找回密码
 立即注册
搜索
12
返回列表 发新帖
楼主: RenderBoy

我已经几乎成功编译了所有代码!,来写个说明。

[复制链接]

8

主题

41

帖子

61

积分

注册会员

Rank: 2

积分
61
QQ
发表于 2003-10-7 16:32:00 | 显示全部楼层

Re:我已经几乎成功编译了所有代码!,来写个说明。

到哪里下载资源阿?

8

主题

41

帖子

61

积分

注册会员

Rank: 2

积分
61
QQ
发表于 2003-10-7 17:53:00 | 显示全部楼层

Re:我已经几乎成功编译了所有代码!,来写个说明。

HOW TO COMPILE A WORKING HL2

Ok. I've seen that many of you desperatly want to compile your own HL2. Now you
can. Follow these instructions and you'll be on your way to having your very
own hl2.exe and other files.

Keep in mind that compiling takes A LONG TIME, so you should do this before
going to sleep at night.

Ok, here we go:

--> Note: You should already have Visual Studio 6 either on CD or on the comp.

---------------------------
Downloading the Right Stuff
---------------------------

1. Download the sources from somewhere. Theyre all over the internet.
2. Download mss32.dll, and hl2_tree.zip from somewhere as well. You'll notice
   that these files are a lot more popular.

These files are all hosted by people in channels like #halflife2 on efnet and
quakenet. They are easy to find.

3. Download Visual Studio 6 Service Pack 5 from:
   http://msdn.microsoft.com/vstudio/downloads/updates/sp/vs6/sp5/sp5_en.aspx
4. Download the Processor Pack from:
   http://msdn.microsoft.com/vstudio/downloads/tools/ppack/download.aspx

----------
Installing
----------

1. Unzip your Half-Life 2 source code to a folder in your C root. (ex. C:\HL2)
2. Unzip hl2_tree.zip to your desktop for now. (It'll be moved later)
3. Install Visual Studio 6 if you haven't already.
4. Install Visual Studio 5 Service Pack 5. Select no when asked to reboot.
5. Install the Processor Pack.
6. Manually reboot.

---------
Compiling
---------

1. Press the start button and select "Run...".
2. Type "cmd" on Windows NT/2000/XP/2K3 or "command" on Windows 95/98/98SE/ME.
3. Type "cd <path to your extracted HL2 sources>" for example "cd c:\HL2".
4. Type "cd src_main" to go into the main sources directory.
5. Now, type "build_hl2.bat".

This will take A REALLY LONG TIME... Best is to leave it running over night.
If you did it right, you should now have a bunch of new files and folders in
your main HL2 Directory. (Instead of just "src_main")

----------------
Preparing to Run
----------------

1. Move the mss32.dll to <Main HL2 Dir>/bin (ex. C:\HL2\bin)
2. Move all of the extracted folders from hl2_tree.zip into <Main HL2 Dir>/hl2
   (ex. C:\HL2\hl2)
       
--------
Starting
--------

1. Now comes the fun part. Double click on the "hl2.exe" in the main
   Half-Life 2 dir.
       
If you did everything correctly, you shouldn't crash... If you did crash
though, make sure that you did the &quotreparing to Run" step.. or try again

You should now be at a screen with a brick wall. How exciting...

2. Press the ~ key on your keyboard (on the left of the number "1" key)
3. Now type "map test"

Note: You will not be able to see what you type!! This is a known bug since
lots of the HL2 files are missing. There ARE fixes available for this! Look
around, you'll find em.

If you did it right, you should now be ingame. Move around with the mouse. You
cannot use your keyboard to move around because of more bugs. There are fixes
for this too. Look around!

4. Once you're bored of the brand new and revolutionary Source engine ......
   press the "~" key again, and type "quit"

The game will quit and now you can go make maps and start dling more hacks
which let you play multiplayer, etc.

HAVE FUN!

1

主题

2

帖子

28

积分

注册会员

Rank: 2

积分
28
发表于 2003-10-7 20:07:00 | 显示全部楼层

Re:我已经几乎成功编译了所有代码!,来写个说明。

为什么我已经按以上步骤做了,但一运行build_hl2.bat就出现:

‘msdev’不是内部或外部命令,也不是可运行程序或批处理文件
build error!

37

主题

378

帖子

388

积分

中级会员

Rank: 3Rank: 3

积分
388
QQ
发表于 2003-10-7 20:52:00 | 显示全部楼层

Re:我已经几乎成功编译了所有代码!,来写个说明。

嗯,不错,我的环境完全符合!

8

主题

60

帖子

60

积分

注册会员

Rank: 2

积分
60
 楼主| 发表于 2003-10-7 21:03:00 | 显示全部楼层

Re: Re:我已经几乎成功编译了所有代码!,来写个说明。

r0060460: Re:我已经几乎成功编译了所有代码!,来写个说明。

为什么我已经按以上步骤做了,但一运行build_hl2.bat就出现:

‘msdev’不是内部或外部命令,也不是可运行程序或批处理文件
build error!


如果想用批处理的话,就得用VC6,而且必须加入环境变量!

8

主题

41

帖子

61

积分

注册会员

Rank: 2

积分
61
QQ
发表于 2003-10-7 21:26:00 | 显示全部楼层

Re:我已经几乎成功编译了所有代码!,来写个说明。

成功编译之后。
放编译记录http://www.fosom.com/buildinfo.ini

0

主题

4

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2003-10-8 00:27:00 | 显示全部楼层

Re:我已经几乎成功编译了所有代码!,来写个说明。

搂主前辈。我对这些不太懂。
看了你们说的 我直接运行了build_hl2.bat
那个文件,就能编译了,我不知道你说的那些软件是什么。
因为我不懂,我也没有装。
我的机子只装了vc++6.0
直接用那个编译就编译完了。。。
为什么会这样呀?
只不过我运行游戏的时候
出现了http://www.gameres.com/bbs/showthread.asp?threadid=1370
这个帖子中的兄弟 出现的提示。
怎么解决。
谢谢搂主前辈 和 各位前辈。

4

主题

75

帖子

92

积分

注册会员

Rank: 2

积分
92
发表于 2003-10-8 01:30:00 | 显示全部楼层

Re:我已经几乎成功编译了所有代码!,来写个说明。

因该是那部分编译失败了吧

3

主题

55

帖子

55

积分

注册会员

Rank: 2

积分
55
发表于 2003-10-8 05:54:00 | 显示全部楼层

Re:我已经几乎成功编译了所有代码!,来写个说明。

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

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-5-11 04:11

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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