[译文]作弊器制作 (03 年的老文章)
How To Compil OGC *.dll
如何编译OGC *.dll
Tools needed:
需要工具:
Windows 95 or better windows95或以上
VC++ 6.0 or better VC++6.0或以上
OGC *.dll source compatable with VC++ 6.0 和VC++6.0兼容的OGC *.dll源代码
OGC loader source OGC启动程序的源代码
(use only the loader portion of this download, because the rest is only for VC++ .NET which is not covered here)
只使用下载文件里面的启动程序部分,因为其它部分只兼容VC++.NET,在这里并不适用。
Winzip to open the downloaded source *.zip 's
使用Winzip来打开下载的源代码*.zip文件
----------
Skills needed:
需要技能:
An IQ above 30 (you have to be able to read, but that is about it).
智商大于30(你必须能够读懂它,这就够了)
----------
Time needed:
需要时间:
IQ of 90- about 20 min.
智商在90以下的,20分钟左右。
IQ of 90+ about 5 to 10 min.
智商90以上的,大约5-10分钟
----------
Lets get going:
开始:
(We start with the *.dll that will be the main source of code for OGC.)
(我们先从OGC的主要源代码文件,也就是*.dll着手。)
Open VC++ and select File->New
打开VC++,点击文件-〉新建
Select the option titled- "Win32 Dynamic-Link Library"
在选项里选择Win32动态连接库
In the "Project Name" box, put any name you want. (something not to do with ogc would be best)
在工程名一项里随便输入你想要的名字。(最好叫和ogc无关的名字)
A new box will popup and say: "What kind of DLL would you like to create?"
一个新的选项会出现并显示:你要建立哪一类的DLL?
Choose- An empty DLL Project."
选择-空的DLL工程
Hit- "Finish"
点击finish
Damn Windows popups- a new one will popup and say something about "An empty DLL project will be created for you."
该死的Windows弹出来一个新的提示:一个空的DLL工程已经建立了
Hit ok to this new popup
在这个新的弹出框上点击确定。
----------
You are almost ready to begin the actual process of creating the *.dll:
你已经准备好开始一个建立*.dll的工程了
(If you have gotten lost so far, then you are a moron, and you should stop right here and now!)
(如果你到这就迷糊了,那你就是个弱智,还是快停吧!)
Lets start off by putting our files in the same places. I have mine in a folder on the desktop called "OGCtutorial" so you should create the same floder on your desktop.
把我们的文件都放在同一个地方然后开始。我把我的文件放到了桌面上一个叫OGCtutorial的文件夹里,所以你也应该这么做。
Right click the desktop.
右击桌面
Select "New"
点击新建
Select "Folder"
点击文件夹
Name the folder "OGCtutorial"
给文件夹起名为OGCtutorial
Now, inside of this folder put two new folders- "Loader" and "DLL"
着这个文件夹里在建立2个新文件夹:Loader和DLL
Right click the desktop.
右击桌面
Select "New"
点击新建
Select "Folder"
点击文件夹
Name the folder "Loader"
给文件夹起名为Loader
Right click the desktop again.
再一次右击桌面
Select "New"
点击新建
Select "Folder"
点击文件夹
Name the folder "DLL"
给文件夹起名为DLL
Next, put all of the DLL source files inside of the "DLL" folder.
下一步,把所有的DLL源文件都放到DLL文件夹里
(Note: There should be three folders with the rest of the source, they will mostly be header files. YOU MUST put these into the DLL folder exactly as they are. So, put the "misc" folder, the "engine" folder, and the "common" folder all in the "DLL" folder.)
(注意:源文件里有3个文件夹,都应该是头文件。你也必须把这些文件夹都放到DLL文件夹里它们该呆的位置,也就是把misc,engine,common文件夹都放到DLL文件夹里)
----------
Time to make the DLL:
制作DLL的时刻来了:
You should have the DLL still open, and ready to go. So, lets get this show on the road, shall we!
别关闭DLL
Go to: Project->Add To Project->Files...
A new "Insert Files into Project" box should popup.
弹出一个框:插入文件到工程
Follow this path of folders to find the first file to insert: OGCtutorial\DLL\
到这个目录OGCtutorial\DLL\下招第一个文件来插入
Once you get into your DLL folder, you should see many many files!
恐怕你看到了很多很多的文件
So, what are we going to do with these files?! Simple- add them! Lets get adding:
怎么办?简单,加入!
Double click "aimbot.cpp"
双击aimbot
Go to: Project->Add To Project->Files...
点击工程-加入到工程-文件
An "Insert Files into Project" box should popup.
弹出一个框:插入文件到工程
Follow this path of folders to find the next file to insert: OGCtutorial\DLL\
在这个目录下OGCtutorial\DLL\,继续插入(下同)
Good, you have added all of the necessary files. Now come the three hardest parts of the building of the *.dll:
好啦,你已经加了所有的必需的文件,下面开始创造*.dll的最关键3步
Ok, step one-
第一步,
Goto "Build->Configurations..."
点击创建-配置
A small popup will come up.
弹出个小提示框
Highlight "Win32 Debug" by clicking on it.
高亮度的win32 debug,点击它
Hit "Remove"
删除
Hit "Close"
关闭
On to step two-
第二步
Goto "Project->Settings..."
工程-设置
A popup will come up.
有弹出个框
You should see everal tabs in the popup (including "General", "Debug", "C/C++", "Link", etc...)
框里有很多字general,debug,c/c++,link
You want to click the "Link" tab.
点击link
A bunch of complex looking crap should come up, but have no fear, you won't be spending long here.
出来一对看起来复杂的东西,别怕,你非不了多少时间的
A little text box labeled "Object/library modules:" should be somewhere in the middle.
一个标着对象/库的框在中间
Go all the way to the end of that little box (somewhere after something like "odbccp32.lib")
After all of that, type this (without the quotes): "winmm.lib"
完事后,输入:winmm.lib
Be sure there is a space before "winmm.lib" and after it.
确定winmm.lib前后各有一个空格
Hit "OK" 确定
Damn, I think I'm going to cry. You have made it this far so you should be proud! This is the last step in making the *.dll-
最后一步
Save all your work, and restart your PC! This will save you the trouble of ugly and inconsiderate memory errors.
保存你所有的工作成果,重新启动机器。
When Windows comes back up, open your workspace up by looking in your folder for a file ending in .dsw
打开你的工作空间,在文件夹里面找一个以.dsw结尾的文件。
Make sure this is indeed your workspace, and then goto "Build->Build yournamehere.dll" (where yournamehere is the name of your *.dll).
请确定实在你的工作空间里面,然后创建-创建yournamehere.dll(名字和你的*.dll是一样的)
This may take some time, but you should come up with an error and warning free copy of the dll after it is built. Watch the progress in the bottom window of VC++.
----------
这要花点时间
Your *.dll should now be compiled and ready. Simply goto where ever you saved your project, and look for a new folder called "Release". This folder should have your finished *.dll:
你的*.dll已经编译完成了。在你保存工程的地方,找一个叫release的文件夹,包含了你刚完成的*.dll
Move this *.dll to your main OGCtutorial folder!
把这个*.dll移动到你的ogctutorial文件夹里。
*.dll finished!!! *.dll 完事了。
Congratulations on the first 90% of your project being complete.
完成90%了。
How To Compil OGC Loader (*.exe)
如何编译OGC启动程序loader(*.exe)
Time to do that fateful Loader *.exe/application:
该做最终的loader *.exe/应用了
This is far far easier then the *.dll and will take you much less time!
这个比做*.dll要简单的多,用更少的时间
Ok, open VC++ and click "File->New..."
打开vc++点击文件-新建
You want the one that says "Win32 Application"
点击win32应用
Click on that and give it the same name you gave the *.dll in the text box in the popup.
点击以后,弹出个框,在其中的文本栏里填上和你的*.dll一样的名字
Now Click "OK" 确定
(If an error like 'a previous workspace already exists in this ********' comes up, then simple go to the other box under where you put the name, and set it to another ********. Preferably- 'desktop\OGCtutorial\loader')
如果显示错误:一个旧的工作空间已经存在于某某目录下,那么在另外一个框,desktop\OGCtutorial\loader,存在这个目录下
Another popup comes up, just select "An empty project."
有弹出一个框,选择一个空的工程
Okay, I am ready to kill Microsoft, cause another popup comes up saying something like this: "An empty application will be created for you."
弹出一个框,显示建立了一个新的空白应用,
Hit "OK" again!
再次点击确定,
Now you have an empty workspace, and you are ready to make the loader *.exe/application
现在你有了一个空白的工作空间,准备建立启动程序*.exe/应用
----------
Well, lets get on with things then shall we:
继续
So, you have yourself a blank, open project workspace. Lets get started then shall we?
你有了一个空白的,打开的工程工作空间,开始
Go to "Project->Add To Project->Files..."
点击工程-添加到工程-文件
Now, go to whatever folder the loader source is in.
现在,到启动程序源文件所在的文件夹
(Add the following just as you added the files for the *.dll)
(添加以下这些东西,和在*.dll里面添加文件是一样的))
ForceLibrary.cpp
ogc-loader.cpp
TH32.cpp
(These files are added just the same way regardless of the fact that they are different file types.)
(无需考虑这些文件的不同类型,只要一样地添加就是了)
ForceLib.h
resource.h
TH32.h
Script2.rc
----------
On to the compiling of the *.exe/application:
在编译*.exe/应用时:
No fancy complex stuff this time, just compiling/building-
这次没有什么特别复杂的步骤,就是编译/创建
Save your workspace by doing this- "File->Save Workspace"
这样保存你的工作空间:file->save worksapce
Restart your PC, and re-open VC++ to avoid any ugly memory errors.
重新启动机器,打开VC++以避免糟糕的内存错误
Re-open your project by looking in the folder you saved your workspace to for a *.dsw file.
找到你的文件夹,重新打开你的工程,你已经把你的工作空间存储为一个*dsw文件
Once open, goto "Build-> Build yournamehere.exe" (Think of 'yournamehere' as whatever the name of your project is.)
打开它,点击Build-> Build yournamehere.exe(yournamehere应该是和你的工程的名字是相同的)
Check to make sure the *.exe is built by looking for it in the folder you saved your workspace to.
在你保存工作空间的文件夹里检查确定*.exe已经建立好了。
----------
You are 99% done:
你已经完成了99%了:
Go download the .NET ogc v9.01 compiled cheat at OGC-cheats.com-
去OGC-cheats.com下载和.net兼容的以编译好的ogc v9.01作弊器
Look in the folder that you download, and copy all the files other than the loader and *.dll
在你下载的文件夹里,除了*.dll和启动程序文件外,全部复制
Put these in a new folder on your desktop (lets call it OGCisgod for reference).
把这些文件都复制到桌面上的一个新的文件夹里(为了好记暂且叫做OGCisgod)
Now, take your loader and your *.dll and place them in this folder with the rest of that crap.
现在,把你的*.dll文件和启动程序文件还有其它的东西放到这个文件夹里
Run The loader.
运行启动程序loader
Point it to your hl.exe or cstrike.exe
指向你的hl.exe或者cstrike.exe文件
Go play!!!
开始玩吧。
----------
Thank you for participating in this tutorial:
感谢你分享了这个指南:
You should now have a fully working, newly named version of OGC!!!
你现在应该已经完成了全部工作,也有了一个新命名的OGC版本
====================================================
再次说明:
首次使用VC 可能会被它吓到, 其实没有什么, 按上边的说明完全可以做出自己的作弊器来, 本说明是03 年的老教材 ,现在一样用。 没有配合图片, 可以到网上找找以前911 作弊论坛发的一个 图片版的教程(和这个是一样的)
开始编译作弊器 的时候 最好是找个完整 无错的作弊器代码,请找准代码, 如果不明确 请向论坛的一些荣誉会员请教。 本论坛发的有个别作弊器代码有些小错误,或许会打击了大家的积极性。
还有就是区分作弊器 代码 是 CS1.5 还是 CS1.6 下使用的作弊器 。最好是先找个简单的 opengl 类型的作弊器代码 带工程文件的 进行修改学习。
看上去教程是很复杂的,不过如果实际操作起来很简单, 甚至以后熟练了,凭经验,有些步骤可以省略。 如果直接在 有工程 的完整无错作弊器代码上修改, 更简单,直接用VC 打开新工程 然后选择 编译 就可以了......
建议大家使用光盘安装 VC 这个工具。 虽然网上有下载 ,不过一般都很慢。 买个盗版的VC++6.0 中文版就可以。 安装比较简单,如果遇到什么困难 找朋友帮一下忙 。
费了好多口舌,这个帖子 我保存3年多了,发的地方也不少。 不详细说明 还会有不少朋友问。 主要是给需要学习制作及有热情的朋友看。 希望大家共同进步
如果再遇到什么问题,请发帖 求助。