CLEO 4库 (4.3.15)






































-
depositfiles.com下载
CLEO 4.3.15于2014年2月25日发布。
建议以管理员权限进行安装(在Windows Vista及更高版本上)。
该库为GTA圣安地列斯游戏添加了功能。支持版本1.0、1.1和3.0(Steam版)。使用了超过100个操作码,支持*.fxt和*.gxt文件以在脚本中添加文本。可以使用Sanny Builder创建脚本。
脚本扩展名为*.cs。要安装脚本,请将*.cs及附带文件复制到../CLEO文件夹中。
CLEO库使用ASI加载器。
特别感谢 斯坦尼斯拉夫·戈洛文(listener) 对GTA的研究,mfisto的测试和开发建议,NTAuthority和LINK/2012对CLEO 3的额外支持。
英文变更日志(从版本4.3开始):
CLEO 4
--------------------
变更日志
-- 4.3.15 --
* 改进了操作码0AE1、0AE2和0AE3的不兼容修复,修正了错误的find_next使用方式
-- 4.3.14 --
* 修复了0AAA仅返回自定义脚本的问题
* 修复了许多使用'\'SCM Block\'或\'Mission Local Storage\'空间的内容
* 修复了通过0A94将参数传递到脚本本地存储而不是任务本地存储的问题
* 修复了通过脚本队列迭代可能出现的问题(可能导致罕见且难以追踪的错误)
-- 4.3.13 --
* 修复了在已安装CLEO脚本的情况下启动新游戏时崩溃的问题
* 可能修复了在已安装CLEO脚本的情况下启动游戏的其他问题
-- 4.3.12 --
* 修复了CLEO插件使用的'SkipOpcodeParams'中跳过字符串参数的问题
* 0AC8现在在分配失败时返回NULL值到输出变量(如同4.3a之前的行为)
* 0AC9现在在尝试释放内存之前检查内存是否由0AC8分配
* FXT引用现在不区分大小写(如同4.3a之前的行为)
* 文件操作现在检查输入句柄是否为null(如同4.3a之前的行为)
* '加载的任务'状态现在在新游戏/加载游戏时重置(如同4.3a之前的行为)
* 脚本不再提前加载(如同4.3a之前的行为)
* 解决了与其他菜单钩子(如'HUME')的冲突
* 其他小调整
-- 4.3.11 --
* 修复了在以'00'结尾的操作码开头的脚本中出现的0ADA崩溃问题
-- 4.3.10 --
* 改进了操作码0AE1、0AE2和0AE3 - 即使未正确使用'find_next'标志也能在池中循环
* 修复了0AD2未返回用鼠标瞄准的行人,而用手柄瞄准则正常的问题
-- 4.3.9 --
* 现在可以在最近完成标准任务后启动CLEO任务
* 当脚本无法打开时不再报错并终止,而是简单地记录错误
* 不再因警告而终止
* 不再在自动生成的脚本名称中包含路径(例如,cleodirdemo.cs现在命名为'demo.cs'而不是'dirdem')
* 改进了脚本加载错误的处理
-- 4.3.8 --
* 修复了在使用004E结束任务时可能发生的崩溃问题
-- 4.3.7 --
* 由CLEO脚本启动的自定义任务现在继承其兼容模式 - 可能修复了与使用自定义任务的MOD的不兼容问题
* 由0A99设置的当前目录现在依赖于脚本,仅影响运行的CLEO脚本(不影响整个游戏或main.scm)
* 文本和纹理/精灵绘制现在依赖于脚本(不影响main.scm脚本)
-- 4.3 --
* 替换了每次调用0AA5-0AA8时动态分配和释放脚本参数内存的代码,改为使用静态数组
* 移除了一个未用于任何重要内容的脚本执行循环替代,奇怪的是仅在1.0US中有效,导致与脚本记录插件的崩溃
* 添加了对gta_sa.exe的Steam(v3)版本的支持
* 防止在脚本处于CLEO 3兼容模式('.cs3'扩展名)时在SCM函数中初始化本地存储
* 更新了以下操作码的行为:
0A99 - CHANGE_DIRECTORY现在可以正确更改为程序目录
0A9A - OPEN_FILE现在在将整数作为模式参数传递时使用'legacy'模式,以兼容CLEO文件句柄和SA文件句柄
请注意,您真的不应该将CLEO文件句柄传递给游戏函数。然而,这种遗留模式现在确保句柄是兼容的。
其他文件函数也已更新,确保将游戏文件句柄传递给相关游戏函数。
建议不要依赖将文件传递给游戏函数,而是使用CLEO 4的内置文件函数。
0AD1 - CALL现在接受字符串输入,作为字符串指针传递,遵循字符串约定
0AD4 - SCAN_STRING现在返回条件结果
0AE6 - FIND_FIRST_FILE现在接受字符串数组输出
0AE3 - FIND_ALL_RANDOM_OBJECTS_IN_SPHERE现在确保不返回消失的对象,并在失败时返回-1而不是0
0AE2 - FIND_ALL_RANDOM_CARS_IN_SPHERE现在确保不返回脚本车辆或消失的车辆,并在失败时返回-1而不是0
0AE1 - FIND_ALL_RANDOM_CHARS_IN_SPHERE现在确保不返回脚本角色或消失的角色,并在失败时返回-1而不是0
0ADF - ADD_TEXT_LABEL现在会更新已存在的文本标签
0AD6 - IS_END_OF_FILE_REACHED现在在发生文件错误时返回true
0AD2 - GET_CHAR_PLAYER_IS_TARGETING现在在未找到目标时返回-1而不是0
0AB5 - STORE_CLOSEST_ENTITIES现在确保不返回脚本实体或消失的实体,并确保不返回玩家角色
CLEO 4.3.15 от 25 февраля 2014.
Установку рекомендуется производить с правами администратора (на Windows Vista и выше).
Данная библиотека добавляет возможности для игры GTA San Andreas. Поддерживаются версии 1.0, 1.1 и 3.0 (для Steam). Используются более 100 опкодов, поддерживаются *.fxt и *.gxt файлы для добавления текста в скрипты. Для создания скрипта можно использовать Sanny Builder.
Скрипт имеет расширение *.cs. Для установки скрипта скопируйте *.cs и прилагающиеся файлы в папку ../CLEO.
CLEO библиотека использует ASI Loader.
Большое спасибо Станиславу Головину (listener) за исследование GTA, mfisto за тестирование и советы по разработке, NTAuthority и LINK/2012 за дополнительную поддержку CLEO 3.
Change Log на английском (начиная с версии 4.3):
CLEO 4
--------------------
Change Log
-- 4.3.15 --
* Improvemed compatibility fix for opcodes 0AE1, 0AE2 and 0AE3 with incorrect find_next usage
-- 4.3.14 --
* Fixed 0AAA only returning custom scripts
* Fixed many things which use the \'SCM Block\' or \'Mission Local Storage\' space
* Fixed parameters being passed to script local storage instead of mission local storage through 0A94
* Fixed potential problems with iteration through the script queues (may cause rare and hard to trace bugs)
-- 4.3.13 --
* Fixed crashing when starting a new game after a game has already started with CLEO scripts installed
* Possibly fixed other issues with starting a game with CLEO scripts installed
-- 4.3.12 --
* Fixed string parameter skipping in \'SkipOpcodeParams\' used by CLEO plugins
* 0AC8 now returns a NULL value to the output var if allocation failed (as it did before 4.3a)
* 0AC9 now checks the memory was allocated by 0AC8 before attempting to free it
* FXT references are now case insensitive (as they were before 4.3a)
* File operations now check the input handle isn\'t null (as it seems was the way before 4.3a)
* \'Loaded mission\' status now reset on new/loaded game (as it was before 4.3a)
* Scripts no longer load prematurely (like before 4.3a)
* Resolved conflicts with other menu hooks such as \'HUME\'
* Other minor tweaks
-- 4.3.11 --
* Fixed crash with 0ADA in scripts beginning with an opcode ending in \'00\'
-- 4.3.10 --
* Improvements to opcodes 0AE1, 0AE2 and 0AE3 - now loops around the pool even when the \'find_next\' flag isn\'t used correctly
* Fixed 0AD2 not returning peds targetted with the mouse, while targetting with a pad worked
-- 4.3.9 --
* Will now be able to start a CLEO mission after recently finishing a standard mission
* Will no longer error & terminate when scripts fail to open and instead simply log the error
* Will no longer terminate on warnings
* No longer includes paths in automatically generated script names (e.g. cleodirdemo.cs is now named \'demo.cs\' and not \'dirdem\')
* Improved handling of script load errors
-- 4.3.8 --
* Fixed crash which would occur when missions were ended with 004E
-- 4.3.7 --
* Custom missions launched by CLEO scripts now inherit their compatibility mode - possibly fixing incompatibilities with mods using custom missions
* The current directory set by 0A99 is now script-dependant and only affects running CLEO scripts (not the entire game or the main.scm)
* Text and texture/sprite draws are now script-dependant (doesn\'t affect main.scm scripts)
-- 4.3 --
* Replaced code which dynamically allocated and deallocated memory for script parameters every time 0AA5-0AA8 were called with static arrays
* Removed a script execution loop replacement which wasn\'t used for anything important and weirdly only worked with 1.0US that caused crashes with script logging plugins
* Added support for Steam (v3) versions of gta_sa.exe
* Prevented the local storage from being initialized in SCM functions when the script is in CLEO 3 compatibility mode (\'.cs3\' extension)
* Updates to behaviour of following opcodes:
0A99 - CHANGE_DIRECTORY can now correctly change to the program directory
0A9A - OPEN_FILE now uses a \'legacy\' mode when passing an integer as the mode parameter for compatibility of CLEO file handles and SA file handles
Note that you should really not pass CLEO file handles to game functions. However, this legacy mode now ensures that the handles are compatible.
Other file functions have also been updated ensuring that game file handles are passed to relevant game functions.
It is recommended to not rely on passing files to game functions and instead use CLEO 4\'s in-built file functions in future.
0AD1 - CALL now accepts string input, which is passed as a string pointer following string convention
0AD4 - SCAN_STRING now returns a condition result
0AE6 - FIND_FIRST_FILE now accepts string array output
0AE3 - FIND_ALL_RANDOM_OBJECTS_IN_SPHERE now ensures no fading objects are returned and returns -1 instead of 0 on failure
0AE2 - FIND_ALL_RANDOM_CARS_IN_SPHERE now ensures no script vehicles or fading vehicle are returned and returns -1 instead of 0 on failure
0AE1 - FIND_ALL_RANDOM_CHARS_IN_SPHERE now ensures no script characters or fading characters are returned and returns -1 instead of 0 on failure
0ADF - ADD_TEXT_LABEL now updates existing text labels if they already exist
0AD6 - IS_END_OF_FILE_REACHED now returns true if a file error occured
0AD2 - GET_CHAR_PLAYER_IS_TARGETING now returns -1 instead of 0 when no target is found
0AB5 - STORE_CLOSEST_ENTITIES now ensures no script entities or fading entities are returned and ensures the player ped is not returned