RimWorld

RimWorld

32 arvostelua
[1.4]All Characters Enable to use in Name
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Mod, 1.1, 1.2, 1.3, 1.4
Tiedostokoko
Julkaistu
Päivitetty
485.425 KB
23.8.2020 klo 6.05
11.11.2022 klo 7.03
6 muutosilmoitusta ( näytä )

Tilaa ladataksesi
[1.4]All Characters Enable to use in Name

Kuvaus
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 kommenttia
Toilet 26.8. klo 5.35 
god this was a must use for me ngl
o7
FoolishJester 8.1.2024 klo 21.19 
sweet finally
Leafield 19.7.2022 klo 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 8.10.2021 klo 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  [tekijä] 8.10.2021 klo 0.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 2.10.2021 klo 13.21 
I just wanted to say thank you again for the examples, I love using this mod for my combat colonist.
Kushiyaki  [tekijä] 2.10.2021 klo 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 1.10.2021 klo 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 24.7.2021 klo 16.33 
@Kushiyaki Thank you this helpedd a ton!
Kushiyaki  [tekijä] 24.7.2021 klo 15.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.