修改 Assembly-CSharp.dll 可以更改運輸艙載量嗎~~~~~
想問下用 dnspy軟件來修改 Assembly-CSharp.dll 可以增加 運輸艙載重量嗎?上次大神有教改肉的疊量,想問下是不是也能用來改 運輸艙載重量
另外運送的距離是否也能更改呢?
希望也有大神能教導下
直接改文本文件就可以了 更改运输仓载重
和燃料量 圣の光 发表于 2020-3-7 15:33
更改运输仓载重
和燃料量
請問要修改的文件跟編碼是哪一段?
top10001 发表于 2020-3-7 15:59
請問要修改的文件跟編碼是哪一段?
Core\Defs\ThingDefs_Buildings文件夹下面Buildings_Misc文件
搜索<fuelCapacity>150
结果里面
<li Class="CompProperties_Refuelable">
<fuelCapacity>150.0</fuelCapacity>
把150改成你想要的燃料量
载重仓的运输量好像是在DLL里面,搜索<massCapacity>这个字段
有个办法就是修改其他常用物品的重量,以达到目的
或者打个MOD叫MK2运输仓
希望能够帮到你
圣の光 发表于 2020-3-7 18:50
Core\Defs\ThingDefs_Buildings文件夹下面Buildings_Misc文件
搜索150
结果里面
謝謝大神回覆幫忙~~~
圣の光 发表于 2020-3-7 18:50
Core\Defs\ThingDefs_Buildings文件夹下面Buildings_Misc文件
搜索150
结果里面
那個MOD 沒更新到1.1
改油量 Buildings_Misc 文件成功
改載量 Assembly-CSharp.dll 也成功
謝謝大神
直接mk2运输舱就行了,够用的,https://mod.3dmgame.com/mod/71203 kissdus 发表于 2020-3-11 01:14
直接mk2运输舱就行了,够用的,https://mod.3dmgame.com/mod/71203
試過了,應該是不支援1.1,原作者也沒更新
用这个dnspy就能打开dll文件吗 top10001 发表于 2020-3-11 08:38
試過了,應該是不支援1.1,原作者也沒更新
就是报黄字,用可以用,我试过了,我装了一大堆mod都没事
直接mk2运输舱就行了,够用的,https://mod.3dmgame.com/mod/71203
donghaijie 发表于 2020-3-11 09:11
用这个dnspy就能打开dll文件吗
對的,再直接改
楼主用这个dnspy打开Assembly-CSharp.dll可以改font字体嘛?
想改下环世界字体 D:\GAME\RimWorld\111.jpg 怎么改呀,弄半天看不懂 我看了半天,只是发现有这段看起来像,可惜不知道怎么操作,求解。
在RimWorldWin64_Data\Managed\UnityEngine.TextRenderingModule.dll里面找到UnityEngine
// Font
// FontStyle
Font代码如下
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
using UnityEngine.Bindings;
using UnityEngine.Internal;
using UnityEngine.Scripting;
namespace UnityEngine
{
// Token: 0x02000010 RID: 16
public sealed class Font : Object
{
// Token: 0x06000081 RID: 129 RVA: 0x00002F5F File Offset: 0x0000115F
public Font()
{
Font.Internal_CreateFont(this, null);
}
// Token: 0x06000082 RID: 130 RVA: 0x00002F70 File Offset: 0x00001170
public Font(string name)
{
bool flag = Path.GetDirectoryName(name) == string.Empty;
if (flag)
{
Font.Internal_CreateFont(this, name);
}
else
{
Font.Internal_CreateFontFromPath(this, name);
}
}
// Token: 0x06000083 RID: 131 RVA: 0x00002FAE File Offset: 0x000011AE
private Font(string[] names, int size)
{
Font.Internal_CreateDynamicFont(this, names, size);
} using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
using UnityEngine.Bindings;
using UnityEngine.Internal;
using UnityEngine.Scripting;
namespace UnityEngine
{
// Token: 0x02000010 RID: 16
public sealed class Font : Object
{
// Token: 0x06000081 RID: 129 RVA: 0x00002F5F File Offset: 0x0000115F
public Font()
{
Font.Internal_CreateFont(this, null);
}
// Token: 0x06000082 RID: 130 RVA: 0x00002F70 File Offset: 0x00001170
public Font(string name)
{
bool flag = Path.GetDirectoryName(name) == string.Empty;
if (flag)
{
Font.Internal_CreateFont(this, name);
}
else
{
Font.Internal_CreateFontFromPath(this, name);
}
}
// Token: 0x06000083 RID: 131 RVA: 0x00002FAE File Offset: 0x000011AE
private Font(string[] names, int size)
{
Font.Internal_CreateDynamicFont(this, names, size);
}
// Token: 0x14000001 RID: 1
// (add) Token: 0x06000084 RID: 132 RVA: 0x00002FC0 File Offset: 0x000011C0
// (remove) Token: 0x06000085 RID: 133 RVA: 0x00002FF4 File Offset: 0x000011F4
public static event Action<Font> textureRebuilt;
// Token: 0x14000002 RID: 2
// (add) Token: 0x06000086 RID: 134 RVA: 0x00003028 File Offset: 0x00001228
// (remove) Token: 0x06000087 RID: 135 RVA: 0x00003060 File Offset: 0x00001260
private event Font.FontTextureRebuildCallback m_FontTextureRebuildCallback;
// Token: 0x17000032 RID: 50
// (get) Token: 0x06000088 RID: 136
// (set) Token: 0x06000089 RID: 137
public extern Material material { get; set; }
// Token: 0x17000033 RID: 51
// (get) Token: 0x0600008A RID: 138
// (set) Token: 0x0600008B RID: 139
public extern string[] fontNames { get; set; }
// Token: 0x17000034 RID: 52
// (get) Token: 0x0600008C RID: 140
public extern bool dynamic { get; }
// Token: 0x17000035 RID: 53
// (get) Token: 0x0600008D RID: 141
public extern int ascent { get; }
// Token: 0x17000036 RID: 54
// (get) Token: 0x0600008E RID: 142
public extern int fontSize { get; }
// Token: 0x17000037 RID: 55
// (get) Token: 0x0600008F RID: 143
// (set) Token: 0x06000090 RID: 144
public extern CharacterInfo[] characterInfo { get; set; }
// Token: 0x17000038 RID: 56
// (get) Token: 0x06000091 RID: 145
public extern int lineHeight { get; }
// Token: 0x17000039 RID: 57
// (get) Token: 0x06000092 RID: 146 RVA: 0x00003098 File Offset: 0x00001298
// (set) Token: 0x06000093 RID: 147 RVA: 0x000030B3 File Offset: 0x000012B3
public Font.FontTextureRebuildCallback textureRebuildCallback
{
get
{
return this.m_FontTextureRebuildCallback;
}
set
{
this.m_FontTextureRebuildCallback = value;
}
}
// Token: 0x06000094 RID: 148 RVA: 0x000030C0 File Offset: 0x000012C0
public static Font CreateDynamicFontFromOSFont(string fontname, int size)
{
return new Font(new string[]
{
fontname
}, size);
}
// Token: 0x06000095 RID: 149 RVA: 0x000030E8 File Offset: 0x000012E8
public static Font CreateDynamicFontFromOSFont(string[] fontnames, int size)
{
return new Font(fontnames, size);
}
// Token: 0x06000096 RID: 150 RVA: 0x00003104 File Offset: 0x00001304
internal static void InvokeTextureRebuilt_Internal(Font font)
{
if (Font.textureRebuilt != null)
{
Font.textureRebuilt(font);
}
Font.FontTextureRebuildCallback fontTextureRebuildCallback = font.m_FontTextureRebuildCallback;
if (fontTextureRebuildCallback != null)
{
fontTextureRebuildCallback();
}
}
// Token: 0x06000097 RID: 151 RVA: 0x00003134 File Offset: 0x00001334
public static int GetMaxVertsForString(string str)
{
return str.Length * 4 + 4;
}
// Token: 0x06000098 RID: 152
internal static extern Font GetDefault();
// Token: 0x06000099 RID: 153 RVA: 0x00003154 File Offset: 0x00001354
public bool HasCharacter(char c)
{
return this.HasCharacter((int)c);
}
// Token: 0x0600009A RID: 154
private extern bool HasCharacter(int c);
// Token: 0x0600009B RID: 155
public static extern string[] GetOSInstalledFontNames();
// Token: 0x0600009C RID: 156
public static extern string[] GetPathsToOSFonts();
// Token: 0x0600009D RID: 157
private static extern void Internal_CreateFont( Font self, string name);
// Token: 0x0600009E RID: 158
private static extern void Internal_CreateFontFromPath( Font self, string fontPath);
// Token: 0x0600009F RID: 159
private static extern void Internal_CreateDynamicFont( Font self, string[] _names, int size);
// Token: 0x060000A0 RID: 160
public extern bool GetCharacterInfo(char ch, out CharacterInfo info, int size, FontStyle style);
// Token: 0x060000A1 RID: 161 RVA: 0x00003170 File Offset: 0x00001370
public bool GetCharacterInfo(char ch, out CharacterInfo info, int size)
{
return this.GetCharacterInfo(ch, out info, size, FontStyle.Normal);
}
// Token: 0x060000A2 RID: 162 RVA: 0x00003190 File Offset: 0x00001390
public bool GetCharacterInfo(char ch, out CharacterInfo info)
{
return this.GetCharacterInfo(ch, out info, 0, FontStyle.Normal);
}
// Token: 0x060000A3 RID: 163
public extern void RequestCharactersInTexture(string characters, int size, FontStyle style);
// Token: 0x060000A4 RID: 164 RVA: 0x000031AF File Offset: 0x000013AF
public void RequestCharactersInTexture(string characters, int size)
{
this.RequestCharactersInTexture(characters, size, FontStyle.Normal);
}
// Token: 0x060000A5 RID: 165 RVA: 0x000031BB File Offset: 0x000013BB
public void RequestCharactersInTexture(string characters)
{
this.RequestCharactersInTexture(characters, 0, FontStyle.Normal);
}
// Token: 0x02000011 RID: 17
// (Invoke) Token: 0x060000A7 RID: 167
public delegate void FontTextureRebuildCallback();
}
}
页:
[1]