Skip to content

90135/COM3D2_Scripts_901

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | 简体中文

Github All Releases

English

COM3D2_Scripts_901

901's COM3D2 script collections

If not otherwise specified, it is applicable to COM3D2 by default and has not been tested on COM3D2.5.


Usage

  1. You need the doc (krypto5863) version of ScriptLoader.dll

    Unfortunately there is no easy way to tell if it is the doc version

    This version is included with CMI from March 1, 2024 onwards (CMI.2.5.21-RC3.zip)

    If your plugin was created before 2024, it is almost certainly not the doc version.

  2. Download the compressed package from Release and put the script.cs you want in the package into COM3D2\scripts

    If you really don't know, the Github download is usually in the Releases tab on the right side of the repository homepage. After clicking Releases, there is a download in the Assets tab;

    If you want to download the entire repository, click the green Code button on the repository homepage, and then click Download ZIP.

Script Description

maid_cafe_line_break_fix.cs

This is used to fix the bug that the bullet screen of Maid Cafe DLC sometimes stops scrolling after translation.

If you use COM3D2.JustAnotherTranslator.Plugin, then you don't need this patch

Version 1.0.5 is automatically compatible with JustAnotherTranslator

[Error  : Unity Log] ArgumentOutOfRangeException: startIndex + length > this.length
Parameter name: length
Stack trace:
string string.Substring(int startIndex, int length)
void MaidCafe.MaidCafeComment.LineBreakComment(string text)
void MaidCafe.MaidCafeComment.UpdateCommentSize(int commentNum)
void MaidCafe.MaidCafeStreamManager.Update()

maid_flag_null_reference_fix.cs

Used to fix a bug in the business switch (switching to CM3D2 mode in COM3D2) caused by a plugin.

The game works fine after disabling all plugins, so it should be caused by a plugin, but I can't find it, so I chose to patch the original game

(It is caused by WildParty, version v0.4.0 fixes this problem)

[Error  : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
void ScriptManager.TJSFuncGetMaidFlag(TJSVariantRef[] param, TJSVariantRef result)
void TJSScript.CallFunction(TJSParamAccess param_access, IntPtr result_ptr)
void TJSFunctionEvent.StaticFunction(IntPtr param_access_ptr, IntPtr result)
bool DLLKagScript.Exec(ref Data data)
bool BaseKagManager.Exec()
void BaseKagManager.Update()
void ScriptManager.Update()
void GameMain.Update()

Other Repositories

You can also check out my other repositories









简体中文

901 的 COM3D2 脚本收藏集

虽然叫收藏集,但是都是自制 “脚本”

如无特殊标注,默认适用于 COM3D2,未在 COM3D2.5 测试


用法

  1. 你需要 doc(krypto5863) 版本的 ScriptLoader.dll

    很不幸没有简单的办法判断是不是 doc 版本的

    2024 年 3 月 1 日 及之后的 CMI 内附带的都是此版本的(CMI.2.5.21-RC3.zip)

    如果你的插件的创建日期早于 2024 年之前,那么它几乎肯定不是 doc 版本的。

  2. 到 Release 下载压缩包,把包内你想要的 脚本.cs 放到 COM3D2\scripts

    如果你真的不知道,Github 下载一般在仓库主页右边的 Releases 标签中,点进去 Releases 后,在 Assets 标签中有下载;

    如果要下载整个仓库,点击仓库主页绿色的 Code 按钮,然后点击 Download ZIP。


脚本说明

maid_cafe_line_break_fix.cs

用于修复 女仆咖啡厅 DLC 翻译后弹幕有时候会停止滚动的错误。

如果你使用 COM3D2.JustAnotherTranslator.Plugin,那么你不需要这个补丁

Version 1.0.5 可以自动与 JustAnotherTranslator 兼容

[Error  : Unity Log] ArgumentOutOfRangeException: startIndex + length > this.length
Parameter name: length
Stack trace:
string string.Substring(int startIndex, int length)
void MaidCafe.MaidCafeComment.LineBreakComment(string text)
void MaidCafe.MaidCafeComment.UpdateCommentSize(int commentNum)
void MaidCafe.MaidCafeStreamManager.Update()

maid_flag_null_reference_fix.cs

用于修复经营切替(在 COM3D2 中切换到 CM3D2 模式)中由某个插件导致的错误。

禁用所有插件后游戏正常,所以它应当是某个插件引起的,但我找不到它,所以我选择对原始游戏打补丁

(它是由 WildParty 引起的,版本 v0.4.0 修复了这个问题)

[Error  : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
void ScriptManager.TJSFuncGetMaidFlag(TJSVariantRef[] param, TJSVariantRef result)
void TJSScript.CallFunction(TJSParamAccess param_access, IntPtr result_ptr)
void TJSFunctionEvent.StaticFunction(IntPtr param_access_ptr, IntPtr result)
bool DLLKagScript.Exec(ref Data data)
bool BaseKagManager.Exec()
void BaseKagManager.Update()
void ScriptManager.Update()
void GameMain.Update()

也可以看看我的其他仓库

About

901's COM3D2 script collections

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages