|
||||
|
![]() |
#1 |
Hall Of Famer
Join Date: Jun 2011
Posts: 3,693
|
Let's Talk About the Names.XML File
With the release of version 23, a profound change has occurred in the way that OOTP handles names. Gone are the csv (comma-separated values) text files that have been a part of the game for decades. In their place is the names.xml file. This file contains all of the names and nicknames that the game uses when it creates players and personnel.
Because the names.xml file is in a different format, all of the previous names.txt files are now obsolete. They cannot be used in version 23 or, presumably, any subsequent version of OOTP. Which also means that all of the mods in the csv format are likewise obsolete. I have posted a step-by-step tutorial for converting the csv files into the new xml format. You can find it here (scroll down to the fifth post). Even though the tutorial is in that thread, I'd like to keep conversations about the new format - and about the challenges it poses - in this thread (the thread with the names lists should be reserved for posts regarding the lists themselves). Also, if you have any questions about the tutorials, or if you have suggestions for making them better, please post those thoughts in this thread. So, what does everybody think about the big change? |
![]() |
![]() |
![]() |
#2 |
All Star Reserve
Join Date: Jul 2008
Posts: 854
|
Yes, let’s make things more difficult for the users of the game. Sometimes the devs common sense seems to be severely lacking. And it was never even brought up.
|
![]() |
![]() |
![]() |
#3 |
Minors (Single A)
Join Date: Jan 2010
Location: Naguabo, Puerto Rico, Formerly Miami, Florida
Posts: 63
|
How do we go about converting the namesets that are simply text files (not .CSVs) to the new format?
|
![]() |
![]() |
![]() |
#4 |
Hall Of Famer
Join Date: Jun 2011
Posts: 3,693
|
I'm not sure I know what you're referring to. Do you have an example?
|
![]() |
![]() |
![]() |
#5 |
Minors (Single A)
Join Date: Jan 2010
Location: Naguabo, Puerto Rico, Formerly Miami, Florida
Posts: 63
|
There are some namesets that used just a first, last and nicknames text file. I am unsure what the conversion process is for files that were in the previous format.
https://forums.ootpdevelopments.com/...d.php?t=328435 Last edited by SilentFox; 04-20-2022 at 10:06 AM. Reason: Adjusting the way I am coming across, I don't want to appear rude. |
![]() |
![]() |
![]() |
#6 |
Hall Of Famer
Join Date: Jun 2011
Posts: 3,693
|
Dogzilla created both names files and a world default xml file. The world file should be fine - that hasn't been changed in version 23. The names files, however, are csv files and so need to be converted to xml format in order to work in version 23. Take a look at this post to see how you can convert those csv files to the new xml format.
|
![]() |
![]() |
![]() |
#7 |
All Star Starter
Join Date: Mar 2003
Location: Where the Action is
Posts: 1,953
|
|
![]() |
![]() |
![]() |
#8 |
Minors (Single A)
Join Date: Jan 2010
Location: Naguabo, Puerto Rico, Formerly Miami, Florida
Posts: 63
|
Yeah I'm getting a legitimate headache, its not pasting, its just giving me a #REF error when I'm going through the steps, its been two hours now. Such fun!
I have to be doing something wrong, sure, but really wish it didn't have to be this way ![]() Not sure how copying the column as defined in the tutorial is returning me a #REF error. What's getting pasted over? I don't understand. Last edited by SilentFox; 04-20-2022 at 12:53 PM. |
![]() |
![]() |
![]() |
#9 |
All Star Reserve
Join Date: Dec 2001
Location: Düsseldorf, Germany
Posts: 650
|
Joe from Chicago, has any of Your Name mods become Part of the Vanilla name Files in 23?
|
![]() |
![]() |
![]() |
#10 | ||
Hall Of Famer
Join Date: May 2004
Posts: 10,607
|
Quote:
The true mark of the devs taking over is if they changed all these files to use JSON instead. ![]() One thing I would love is something to edit the english.xml file. I have half a mind of working on one myself...
__________________
Quote:
|
||
![]() |
![]() |
![]() |
#11 |
Hall Of Famer
Join Date: Jun 2011
Posts: 3,693
|
That's a good question. I have no idea. I'll have to check that out.
|
![]() |
![]() |
![]() |
#12 | |
Hall Of Famer
Join Date: Jun 2011
Posts: 3,693
|
Quote:
__________________
American-Ethnic (and Canadian) Namesets Historical Minor League Schedules 1870s City/Team Nickname Randomizers "It's Usually Sunny in Philadelphia" weather mod Negro League Schedules Last edited by joefromchicago; 04-20-2022 at 01:06 PM. |
|
![]() |
![]() |
![]() |
#13 |
All Star Reserve
Join Date: Jul 2008
Posts: 854
|
Joe from Chicago, do you know if creating a league in 22 with the old files then importing the league into 23 work-
|
![]() |
![]() |
![]() |
#14 | |
Minors (Single A)
Join Date: Jan 2010
Location: Naguabo, Puerto Rico, Formerly Miami, Florida
Posts: 63
|
![]() Quote:
![]() Even pasting the results of Cell J the way the tutorial states in a blank spreadsheet just to see what it does, it ends up giving me a #REF error. Doesn't matter what column, its just giving me that. Either one of these parameters are wrong or something else is. However, to answer your question, at first I put it just right under the very last name in what I could assume was the first names place, I just opened the names XML and tried to paste the output under the last entry ![]() Last edited by SilentFox; 04-20-2022 at 01:21 PM. |
|
![]() |
![]() |
![]() |
#15 |
Hall Of Famer
Join Date: Jun 2011
Posts: 3,693
|
I believe the league will import correctly, but that any names generated in 23 would come from the names.xml file. Can anyone confirm that?
|
![]() |
![]() |
![]() |
#16 | |
Hall Of Famer
Join Date: Jun 2011
Posts: 3,693
|
Quote:
That one I don't understand. What program are you using to open xml files? Is it Notepad or Notepad++? |
|
![]() |
![]() |
![]() |
#17 | ||
Hall Of Famer
Join Date: May 2004
Posts: 10,607
|
Quote:
Have you tried dropping that data into an XML editor, for instance this one that's available online? https://jsonformatter.org/xml-editor
__________________
Quote:
|
||
![]() |
![]() |
![]() |
#18 | |
Minors (Single A)
Join Date: Jan 2010
Location: Naguabo, Puerto Rico, Formerly Miami, Florida
Posts: 63
|
Quote:
I did copy and paste that into the Names.xml but it didn't work. Why I mentioned putting it in a blank sheet, was that I wanted to see if it happened everywhere, it didn't work in the xml file or the blank sheet where I tested it afterwards to see what was wrong. I'm using Excel Last edited by SilentFox; 04-20-2022 at 01:30 PM. |
|
![]() |
![]() |
![]() |
#19 |
Hall Of Famer
Join Date: Jun 2011
Posts: 3,693
|
You're using Excel to open xml files? I didn't know that was possible. Like Syd Thrift mentioned, you might want to download a dedicated xml editor. If you're on Windows, you should have Notepad++ already installed. Try opening the names.xml file using Notepad++ and see if that works.
|
![]() |
![]() |
![]() |
#20 |
Minors (Single A)
Join Date: Jan 2010
Location: Naguabo, Puerto Rico, Formerly Miami, Florida
Posts: 63
|
Thanks for all the help everyone, I'm so embarrassed, that worked. I never worked with...excel or XML before not going to lie to anyone.
![]() |
![]() |
![]() |
![]() |
Bookmarks |
|
|