RimWorld

RimWorld

32 betyg
[1.4]All Characters Enable to use in Name
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Mod, 1.1, 1.2, 1.3, 1.4
Filstorlek
Lades upp
Uppdaterades
485.425 KB
23 aug, 2020 @ 6:05
11 nov, 2022 @ 7:03
6 ändringsnotiser ( visa )

Abonnera för att ladda ner
[1.4]All Characters Enable to use in Name

Beskrivning
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 kommentarer
Toilet 26 aug @ 5:35 
god this was a must use for me ngl
o7
FoolishJester 8 jan, 2024 @ 21:19 
sweet finally
Leafield 19 jul, 2022 @ 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 okt, 2021 @ 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  [skapare] 8 okt, 2021 @ 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 okt, 2021 @ 13:21 
I just wanted to say thank you again for the examples, I love using this mod for my combat colonist.
Kushiyaki  [skapare] 2 okt, 2021 @ 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 okt, 2021 @ 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 jul, 2021 @ 16:33 
@Kushiyaki Thank you this helpedd a ton!
Kushiyaki  [skapare] 24 jul, 2021 @ 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.