|
common.j导入地图改名成scripts\common.j,jNatives目录, japi.dll, war3loader.exe,
weloader.exe放到war3目录
common.j就是把war3patch.mpq里的解压出来,尾部增加fileio.j里的那几条函数
然后用weloader.exe启动we就可以使用这些函数
用war3loader.exe启动游戏就可以读用了这些函数的地图玩
记住jNatives目录要连目录放在war3游戏目录里
fileio.cpp是jNatives目录里的fileio.xjp的源代码
[align=justify]以上由Soar Chin大神提供
native FileOpen takes string filename returns integer
native FileCreate takes string filename returns integer
native FileClose takes integer fileid returns nothing
native FileReadInt takes integer fileid returns integer
native FileReadReal takes integer fileid returns real
native FileReadString takes integer fileid returns string
native FileWriteInt takes integer fileid, integer value returns integer
native FileWriteReal takes integer fileid, real value returns integer
native FileWriteString takes integer fileid, string value returns integer
native FileSeek takes integer fileid, integer offset, integer startpos returns integer
// startpos: 0 - from beginning 1 - from current position 2 - from end |
|