|
HOW TO USE:
-----------
Run sider.exe, it will open a small window, which you can minimize if you want, but do not close it.
运行sider.exe,程序将打开一个小窗口,你可以把它最小化,但是不要关闭。
Run the game.Sider should automatically attach to the game process.
运行游戏,sider 将自动载入到游戏进程
If you don't see the effects of Sider in the game, check the sider.log file (in the same folder where sider.exe is) - it should
contain some helpful information on what went wrong.
如果你没有在游戏中看到sider的效果,检查sider.log(和sider.exe在同一个文件夹),里面包含程序可能问题的有用信息。
SETTINGS (SIDER.INI)
--------------------
There are several settings you can set in sider.ini:
你可以在sider.ini中设置各种设定
exe.name = "\PES2020.exe"
- this sets the pattern(s) that the Sider program will use to identify which of the running processes is the game.You can have multiple "exe.name" lines in your sider.ini,which is useful, for example, if you have several exe files with slightly different names that you use for
online/offline play.
sider的模式设定用于定义哪一个进程是游戏程序,你可以设置多个有用的“exe.name”行,比如你有几个不同名字分别用于线上和线下的exe文件。
free.side.select = 1
- enables free movement of controllers. Normally, it is only possible in Exhibition modes, but with this setting set to 1, you will be able to move the controllers in the competition modes too.
开启控制器自由移动,一般来说,这个功能只适用于友谊赛模式,当设置为1时,也能在竞赛模式使用。
The 1st controller can also be moved into the middle,disabling it effectively. Use this carefully in the matches: if you move 1st controller into the middle, make sure that yo have at least one other controller on the left or on the right. Otherwise, you will lose the control of the match. (default is: 0 - free movement disabled)
首选控制器也可以移到中间位置使其失去作用。不过在比赛中要谨慎使用:如果将首选控制器移到中间,务必保证你有至少另外一个控制器在左边或者右边。否则你将失去对比赛的控制(默认设置为0-关闭自由移动)
livecpk.enabled = 1
- Turns on the LiveCPK functionality of Sider. See below for a more detailed explanation in cpk.root option section.
打开sider的liveCPK功能。往下看有更详细的cpk.root选项功能解释。
debug = 0
- Setting this to values > 0 will make Sider output some additional information into the log file (sider.log). This is useful primarily for troubleshooting. Extra logging may slow the game down, so normally you would want to keep this setting set to 0. (Defaults to 0: some info, but no extra output)
设置值>0将使sider向log文件(sider.log)输出一些附加信息。这个功能主要用于查找问题。多余的日志将会降低游戏速度,所以一般你希望设置为0(默认设置为0,有用的信息但是没有多余的输出)
close.on.exit = 0
- If this setting is set to 1, then Sider will close itself, when the game exits. This can be handy, if you use a batch file to start sider automatically right before the game is launched.(Defaults to 0: do not close)
如果设置为1,sider将在游戏退出时关闭。这个功能可以根据情况设置,如果你用了在游戏启动前可以自动启动sider的大补文件
start.minimized = 0
- If you set this to 1, then Sider will start with a minimized window.Again, like the previous option, this setting can be helpful, if you use a batch file to auto-start sider, just before the game launches.(Defaults to 0: normal window)
如果设置值为1,Sider将会以最小化窗口启动。再次,就像上个选项,如果你用了大补文件,这个功能会很有用。
cpk.root = "c:\cpk-roots\balls-root"
cpk.root = "c:\cpk-roots\kits-root"
cpk.root = ".\another-root\stadiums"
- Specifies root folder (or folders), where the game files are stored that will be used for content replacing at run-time. It works like this:For example, the game wants to load a file that is stored in some CPK, with the relative path of "common/render/thumbnail/ball/ball_001.dds". Sider will intercept that action and check if one of the root folders have this
file. If so, Sider will make the game read the content from that file instead of using game's original content. If multiple roots are specified, then they are checked in order that they are listed in sider.ini. As soon as there is a filename match, the lookup stops. (So, higher root will win, if both of them have the same file). You can use either absolute paths or relative.
Relative paths will be calculated relative to the folder where sider.exe is located.
游戏运行时用来替换游戏内容的CPK文件或文件夹的位置。具体原理:比如游戏程序想要读取一个CPK文件,路径为
"common/render/thumbnail/ball/ball_001.dds",Sider将打断这个进程并检查是否替换文件中有相同的文件,如果有,Sider将用此文件中的内容替代游戏的原文件内容。如果发现有多个替换文件的文件夹,将按照sider.ini定义的顺序逐一进行检查,直到有一个文件名匹配则进程终止。(在有相同文件的时候,高优先级文件将优先进行替换)你能使用绝对路径或者相对路径,
lua.enabled = 1
- This turns on/off the scripting support. Extension modules can be written in Lua 5.1 (LuaJIT), using a subset of standard libraries and also objects and events provides by sider. See "scripting.txt" file for a programmer's guide to writing lua modules for sider.
打开关闭脚本支持。扩展模组是用Lua5.1编写的,使用标准库子集,同时支持对象和事件。具体详情参考“scripting.txt”文件,有关于如何用lua为sider编写项目的具体指导。
lua.module = "camera.lua"
lua.module = "kitrewrite.lua"
- Specifies the order in which the extension modules are loaded. These modules must be in "modules" folder inside the sider root directory.
指定读取哪一个扩展模组。这些模组必须放置在sider文件源文件夹下的“modules”文件夹里面
jit.enabled = 1
- Allows to enable/disable JIT (Just-In-Time compiler) for Lua.By default, JIT is enabled - to provide performance boost for Lua modules.To turn it off, set to 0.
开启关闭Lua的JIT功能。默认JIT功能启用,以提供lua模组加速。设置为0可以关闭。
lua.gc.opt = "step"
- This option allows to tweak Lua garbage collector (GC) behaviour.Two supported values are: "step" - for incremental collection, and "collect" - for full collection. Default is "step", and typically, you do not need to modify this, unless you see Lua memory errors in the log. In which case, try "collect".
这个功能用来调整Lua回收站的动作。两个取值为“step”和“collect”。“collect”为全量回收,默认为“step”,除非你在日志中发现Lua内存错误,可以设置为“collect”,一般这个参数不用设置。
overlay.enabled = 1
- This option enables an interactive overlay. The overlay can display text that is provided by Lua modules, with one module having control of the overlay at any given time. By pressing a hotkey (set by overlay.vkey.next-module option) the control of the overlay can be switched to the next module, and so on. The overlay is toggled on/off with another hotkey, set by overlay.vkey.toggle option. When the overlay is on, the key presses are passed on to the module that is currently in control of the overlay. The module can handle those key events in whatever way it needs to, or ignore them altogether. For more information, see
scripting.txt
这个选项可能开启内嵌式菜单,菜单可以显示Lua模组的具体信息。指定时间内只有一个模组能在菜单内设置。通过热键(overlay.vkey.next-module选项可以设置)可以切换至下一个模组。菜单开启关闭使用overlay.vkey.toggle选项设置的热键,当呼出菜单时,按键控制权转移给控制菜单的模组。如果需要,模组可以任意操控关键事件,或者选择忽视他们。具体详情可以参考scripting.txt文件。
overlay.on-from-start = 1
- If set to 1, the overlay will appear as soon as possible, after the start of the game.
(default is 0, meaning that overlay starts hidden, until toggled on)
overlay.location = "bottom"
- two possible locations: "top" and "bottom" of the screen
两个选项:"top"屏幕顶端;"bottom"屏幕底端
overlay.font-size = 0
overlay.font = "Consolas"
- these two options control the font of overlay. Size 0 means that the font-size will be calculated automatically, based on height of the screen in pixels. Any TTF font installed on the system can be used, but monospaced fonts are recommended for easier formatting.
这两个选项提供菜单字体控制功能,设置为0意味着字体将自动按照屏幕分辨率进行自动调整。所有安装在系统中的TTF字体都可以使用,但是单间隔的字体必须使用早期格式。
overlay.vkey.toggle = 0x20
overlay.vkey.next-module = 0x31
- hot keys for toggling overlay on/off, and for switching control of the overlay among the modules. Values must be specified in
hexadecimal format. The default ones are:
0x20 [Space] - for toggle
0x31 [1] - for next-module
Full list of codes for all keys can be found here:
https://docs.microsoft.com/en-us ... v/virtual-key-codes
菜单开启关闭热键,在不同的模组间进行切换,键值必须指定为16进制格式,默认设置为:
0x20 空格键 -开启
0x31 1键 -下一个模组
所有按键的代码目录可以参考网址https://docs.microsoft.com/en-us ... v/virtual-key-codes |
|