边缘世界 RimWorld

边缘世界 RimWorld

32 个评价
[1.4]All Characters Enable to use in Name
   
奖励
收藏
已收藏
取消收藏
Mod, 1.1, 1.2, 1.3, 1.4
文件大小
发表于
更新日期
485.425 KB
2020 年 8 月 23 日 上午 6:05
2022 年 11 月 11 日 上午 7:03
6 项改动说明 ( 查看 )

订阅以下载
[1.4]All Characters Enable to use in Name

描述
All Characters, Symbols can use in name.

You can also make it bold or change the font color by manually typing the tag (eg <b> </b>).

Change Log
-11 Nov, 2022
Update for ver1.4.
Due to the specification of NameContext was changed , tags can now be used in titles. (ver1.4)
-26 Oct, 2021
To avoid an error, an escape function has been added when entering a title.
Entering "<" or ">" in the title will immediately convert it to "<" or ">".
11 条留言
Toilet 8 月 26 日 上午 5:35 
god this was a must use for me ngl
o7
FoolishJester 2024 年 1 月 8 日 下午 9:19 
sweet finally
Leafield 2022 年 7 月 19 日 上午 1:57 
Great to look back and see a mod author with this kind of activity in the comments. Not that I expect it from anyone, but I'll call it heartwarming.
jtgibson 2021 年 10 月 8 日 上午 4:41 
Very cool! Thanks for looking into this. I do love being able to type spaces and periods at the very least -- that was what made me find this mod in the first place, especially with some of the vanilla back stories having characters that can't be entered yourself. I was just worried that it might break if I ended up unknowingly sticking in an XML invalid character. (I had a lot of annoyances when porting Signs and Memorials, which would break XML loading... I ended up using a ridiculous Base64 conversion, heh.)
Kushiyaki  [作者] 2021 年 10 月 8 日 上午 12:05 
@NylonWorms
Thanks.

@jtgibson
I checked it in v1.3, but it seems that vanilla has an escape process in the save process (<> is converted to &lt;&gt;). Therefore, even if you put <> in the name, save data will not be corrupted.
However, in the case of a title, an error will occur immediately if you enter <>, so i'll add a process to forcibly convert it.
NylonWorms 2021 年 10 月 2 日 下午 1:21 
I just wanted to say thank you again for the examples, I love using this mod for my combat colonist.
Kushiyaki  [作者] 2021 年 10 月 2 日 上午 6:21 
@jtgibson
Thank you for contacting.
<> will be recognized as a tag, so the name will probably not be displayed properly.
If you include a tag (a string containing <~>), you will get an XML error if you do not close (a string containing </~>) the corresponding tag.
If you want to use <>, use another symbol as an alternative. (e.g. <>)
≪≫ is used in the preview image.
I don't know if it will be displayed in all language environments.

It ’s dangerous for people who do not know this, I will consider avoidance when saving function in a future fix.
Unfortunately, there is probably no way to properly display <> in-game. (Because there is no escape specification in Unity rich text)
jtgibson 2021 年 10 月 1 日 上午 2:34 
Does this save and load properly? RimWorld saved games are saved as XML files and XML files tend to explode if invalid characters appear in the document. For instance, an ampersand "&" might actually break the saved game, or using something like "<nick>" might actually save as "<first><nick></first><nick><nick></nIck><last>Lastname</Last>" and cause the entire saved game to fail to load because of several unclosed XML tags.
NylonWorms 2021 年 7 月 24 日 下午 4:33 
@Kushiyaki Thank you this helpedd a ton!
Kushiyaki  [作者] 2021 年 7 月 24 日 下午 3:28 
@ NylonWorms
What about?


If you want an example of a tag, it looks like this:

・ When you want to make it bold
<b>Name</b>

"Name" is displayed in bold

・ When making italics
<i>Name</i>

"Name" is displayed in italics

・ When nesting
<b><color=red>O</color>Name</b>
"Name" is displayed in bold and "O" is displayed in bold red.

* In machine translation, there may be a space after the "/", but there is no space.

For more information, check out Unity's Rich Text.


By the way, when I tried to use many tags, the number of characters was not enough, so I updated it.