|
||||
|
![]() |
#41 | ||
Hall Of Famer
Join Date: Jun 2011
Posts: 3,695
|
Quote:
Quote:
Now, with a single entry belonging to possibly multiple namesets, how can I determine how many names are in a nameset? I can't just transfer the xml entries into a spreadsheet, because that will, at best, only show me which names are unique to a nameset. For instance, the first_names.txt file had 265 first names for the Australian (28) nameset. If I go into the names.xml file and sort them by language ID, however, I get only 10 Australian first names. But those are just the names that are unique to the Australian nameset. There are lots of other names that belong to that nameset, but how do I know how many there are? That may seem like a pretty pointless exercise. I mean, who cares how many names are in a nameset, right? But for a modder like me, it's actually fairly important. I want to know how many names are in a nameset because: (1) I want to know which namesets are small so that it makes sense to enlarge them; and (2) I want to know what difference I've made by improving a nameset. Take a look at this post to see what I'm talking about. That's just one point where I don't think "reducing redundancy" actually improved the names files. It's not the biggest point, but it at least might give you some insight into the modding process. |
||
![]() |
![]() |
![]() |
#42 | |
OOTP Developments
Join Date: Sep 2021
Location: Berlin, Germany
Posts: 107
|
Quote:
Open the names.xml in some text editor, highlight all of the last names (CTRL + G can be used to go to a specific line) and replace every </EN> you find with '</EN> Thanks for bringing this exact example up, because you will now also need to worry about escaping certain characters. Those are the characters and their replacements to not break the xml structure: " " ' ' < < > > & & |
|
![]() |
![]() |
![]() |
#43 |
OOTP Developments
Join Date: Sep 2021
Location: Berlin, Germany
Posts: 107
|
joefromchicago indeed in the names.xml itself it's hard to get those stats. Let me give you a small workaround: take the names.ods I uploaded and filter by language id = 28 there you have all of the names in the australian nameset.
|
![]() |
![]() |
![]() |
#44 |
Global Moderator
Join Date: Nov 2002
Location: Vancouver, Canada
Posts: 11,695
|
Can you not just run a find all in document (in notepad++) of the nameset ID For example, I just searched for lid="27", pressed the find all button, and it told me there 3193 hits. Or am I misunderstanding the question?
__________________
|
![]() |
![]() |
![]() |
#45 |
Hall Of Famer
Join Date: Jun 2011
Posts: 3,695
|
That's first and last names, isn't it?
|
![]() |
![]() |
![]() |
#46 |
Hall Of Famer
Join Date: Jun 2011
Posts: 3,695
|
Thanks. I'll have time to do that tonight.
|
![]() |
![]() |
![]() |
#47 |
Global Moderator
Join Date: Nov 2002
Location: Vancouver, Canada
Posts: 11,695
|
You're right. Well, it looks like the last names start at line 31879 and the nicknames at 252902. You could just split it up into smaller files when working on it and then put it back together. I would as the problem I see with the file is it's just too big and so it constantly crashes my notepad++ and my laptop is only a year old.
__________________
|
![]() |
![]() |
![]() |
#48 |
Hall Of Famer
Join Date: Jun 2003
Posts: 8,659
|
It does work, yes. Can confirm I've been doing this and it keeps the imported names. This is only for new leagues that won't be able to use old files.
|
![]() |
![]() |
![]() |
#49 |
All Star Reserve
Join Date: Jul 2008
Posts: 854
|
|
![]() |
![]() |
![]() |
#50 |
Hall Of Famer
Join Date: Jun 2003
Posts: 8,659
|
I was saying that if you import a file from OOTP22, the game will continue to use the names data that you imported from the old file, it does not use the new in-game names.xml file, it's only on a fresh OOTP23 save that'll use that information.
So if someone is importing a file using expanded name sets, those name sets are preserved in imported save from OOTP22 into 23. |
![]() |
![]() |
![]() |
#51 | |
Hall Of Famer
Join Date: Feb 2003
Location: BC
Posts: 4,506
|
Quote:
__________________
"The ice is getting even more thinner, my friend!" ![]() |
|
![]() |
![]() |
![]() |
#52 | |
Hall Of Famer
Join Date: Jun 2003
Posts: 8,659
|
Quote:
I've tried downloading this and my Mac keeps saying the zip file is empty. Not sure if it's just my machine or a real problem.
__________________
------ My Mods Managerial Strategy Pack Competitive Balance Tax Calculator Major League Women's Baseball (OOTP24) quickstart Indian Premier League | 300+ years of baseball quickstart | Expatriate League quickstart | Off-Field Injuries Update | Women's Name File for OOTP | ---- Dynasty classics: Centurion comes to OOTP5 | DC Moneyball Dynasty (2004) |
|
![]() |
![]() |
![]() |
#53 |
OOTP Developments
Join Date: Sep 2021
Location: Berlin, Germany
Posts: 107
|
You're right seems like the file is still to big. I will have a look tomorrow.
|
![]() |
![]() |
![]() |
#54 |
All Star Starter
Join Date: Mar 2003
Location: Where the Action is
Posts: 1,953
|
|
![]() |
![]() |
![]() |
#55 |
OOTP Developments
Join Date: Sep 2021
Location: Berlin, Germany
Posts: 107
|
I changed the attachment to a google drive link.
|
![]() |
![]() |
![]() |
#56 | |
All Star Reserve
Join Date: Jul 2008
Posts: 854
|
Quote:
|
|
![]() |
![]() |
![]() |
#57 |
Hall Of Famer
Join Date: Jun 2003
Posts: 8,659
|
I know how to replace the names and do this the slow way, but if someone has a faster way to migrate the names from the older .txt files into this format with the code, let me know. I do not want to do it manually, but using spreadsheet software it ends up being too many lines.
|
![]() |
![]() |
![]() |
#58 | |
All Star Reserve
Join Date: Mar 2003
Location: Michigan
Posts: 571
|
Quote:
(I want to know if fictional players are "slipping" into the game) Won't be able to easily do this with a XML file and a text editor.
__________________
Good pitching will always stop good hitting and vice-versa - Casey Stengel Last edited by plannine; 04-28-2022 at 07:21 AM. |
|
![]() |
![]() |
![]() |
#59 | |
All Star Reserve
Join Date: Mar 2003
Location: Michigan
Posts: 571
|
Quote:
__________________
Good pitching will always stop good hitting and vice-versa - Casey Stengel Last edited by plannine; 04-25-2022 at 12:22 PM. |
|
![]() |
![]() |
![]() |
#60 |
All Star Reserve
Join Date: Jan 2012
Posts: 576
|
I'm having all kinds of difficulties with this. Google sheets keeps telling me, "This action would increase the number of cells in the workbook above the limit of 10000000 cells." when I try to add rows so I can fit all the names. I haven't even gotten to how to actually do all of it.
__________________
A man doesn't make mistakes, mistakes make the man @MisterG90 |
![]() |
![]() |
![]() |
Bookmarks |
|
|