13号避难所

 找回密码
 立即注册
搜索
查看: 8606|回复: 4
打印 上一主题 下一主题

Watcom C++ 编译器

[复制链接]
跳转到指定楼层
楼主
发表于 2006-8-20 22:09:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
这是用于编译辐射脚本的编译器 Watcom C++ 编译器
安装 Fo2 Mapper 后
将 WCC386.EXE 和 WCCD386.DLL 解压到 X:\Fallout2\Fallout 2 Mapper\scripts 目录中

然后修改 scripts 目录中的 P.BAT文件 为以下内容
  1. @echo off
  2. @if not exist %1.ssl goto DONE
  3. @copy %1.ssl temp.c
  4. @rem Watcom 11 users uncomment the following line:
  5. @..\wcc386 temp.c /pc /fo=temp.i /w4
  6. @rem Microsoft Visual Studio 6 users uncomment the following line:
  7. @rem cl /P temp.c
  8. @copy temp.i temp.ssl
  9. @..\dos4gw ..\compile temp.ssl
  10. @if %errorlevel% neq 0 goto ERROR
  11. @rem The path in the following two lines should point to the Fallout 2 folder:
  12. @copy temp.int ..\..\..\data\scripts\%1.int
  13. @del temp.c
  14. @del temp.i
  15. @del temp.ssl
  16. @del temp.int
  17. @goto DONE
  18. :ERROR
  19. @echo ERROR: %_CWDS%%1.ssl >> ..\err.log
  20. :DONE
复制代码


之后直接执行BuildAll.bat就可以编译辐射2脚本了
假设你的编辑器目录为X:\Fallout2\Fallout 2 Mapper
处理文件默认将编译后的脚本复制到目录 X:\Fallout2\Data\Scripts
点击下载


另:
没有编程基础的就不要研究了
如果你有兴趣
欢迎研究
我的QQ是:289771897
有问题问我
我晚上7:30以后才会在线
因为要培训
事情很多啊
最近我都没时间碰游戏了
再加上硬盘出问题
我昨天才把系统和软件全装好
还有啊,恋爱方面也出问题了
我发觉我这个月特别霉...
...................
........
不说了!
沙发
发表于 2006-8-23 21:49:26 | 只看该作者
沙发...........支持你啊...........加油啊...........
板凳
发表于 2007-8-13 23:59:01 | 只看该作者
我的scripts 目录中的P为MS-DOS~不是BAT文件啊
地板
发表于 2007-8-21 02:38:14 | 只看该作者
我粗懂C语言和VB,可以学会么... [s:8]
5#
 楼主| 发表于 2007-8-22 19:43:59 | 只看该作者
VB有点困难
有 C 的基础可以很快学会

难点是记忆和使用超大量宏定义
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|13号避难所

GMT+8, 2024-4-20 08:45 , Processed in 0.059711 second(s), 13 queries .

快速评论 返回顶部 返回列表