PDA

View Full Version : Tutorial: Townie & NPC Name Mod Creation


ijustneedsomeeyes
10th Jan 2014, 4:26 AM
Credits and Introduction:

This tutorial uses the original instructions (http://modthesims.info/download.php?p=911135#post911135) provided by jordi (http://modthesims.info/m/67940), along with his sanity-preserving Name2SimPE (http://members.chello.nl/b.kroonspecker/games/Name2Simpe.zip) tool, which you'll absolutely need to do last names without blowing a brain fuse.

Unfortunately, the Name2SimPE tool didn't have a readme/manual, following the unspoken rule of, "If they're smart, they'll figure it out". I had some trouble initially with the strange format of the text files, so I'll be your guide today to the exciting world of name modding!

Before you start this tutorial, I'd like to post some crucial quotes of jordi's, with my clarifications:

You can use as many lines (strings) as you want within any of the four text lists. I had a version with 2000 names per section (8000 in total) and TS2 accepted this fine.

If you use less than the default Maxis names [ ijustneedsomeeyes: Default = 150 ] will be used for the remainder.
Some info which may help in making your own version:

string 96 = male first names
string 97 = female first names
string 98 = male last names
string 00 = female last names [ ijustneedsomeeyes: The section for "string 00" is called "strCC" in Name2SimPE. ]

In my mod 98 and 00 are identical, but they can be different.
Tools:

Textfixer Alphabetical Order Tool (http://www.textfixer.com/tools/alphabetize-text-words.php) (Can also make line-broken lists & remove duplicate names.)
Name2SimPE (http://members.chello.nl/b.kroonspecker/games/Name2Simpe.zip)
Text Mechanic Number Each Line Tool (http://textmechanic.com/Number-Each-Line.html) (Can also format the list properly, saving you loads of time.)
The Live.package file from jordi's original name mod (http://modthesims.info/download.php?t=110889) as the base.
SimPE (http://sims.ambertation.de/realdownload.shtml)

Instructions:

Make three (or four, if you want different last names for males and females) .txt files named:
MaleFirstNames.txt, FemaleFirstNames.txt and either AllLastNames.txt or MaleLastNames.txt and FemaleLastNames.txt.
Save these 3 or 4 text files into a folder, like "C:\Users\PCNAME\Desktop\NewNameMod".
Find a list of names that you want to use for your mod. Remember that you need at least 150 male first names, female first names and last names. Or at least 150 male first & last names and 150 female first & last names, if you choose to give your males and females different last names. Then enter those names into the corresponding .txt files. An example of what your initial text file should look like:

Q'iixaal
Adam
Zane
James
Robin
Sora

After you've gone through the agonizing process of filling the .txt files with names, proceed to the fun and rewarding part of formatting them with Textfixer (http://www.textfixer.com/tools/alphabetize-text-words.php)...
http://thumbs2.modthesims2.com/img/8/0/0/7/5/1/4/MTS_ijustneedsomeeyes-1406720-textfixer.jpg
...and Textmechanic's Number Each Line (http://textmechanic.com/Number-Each-Line.html)!
http://thumbs2.modthesims2.com/img/8/0/0/7/5/1/4/MTS_ijustneedsomeeyes-1406719-textmechanic.jpg
Since that was a small sample from the MaleFirstNames section, we'll learn the proper format of str96.txt (male first names) of Name2SimPE:
http://thumbs2.modthesims2.com/img/8/0/0/7/5/1/4/MTS_ijustneedsomeeyes-1406725-format.jpg
So basically, it should look like this with our example names:
http://thumbs2.modthesims2.com/img/8/0/0/7/5/1/4/MTS_ijustneedsomeeyes-1406724-formatsample.jpg
After you've filled in the txt files with the new names (Male first names into str96.txt, female first names into str97.txt, male last names into str98.txt and female last names into strCC.txt), run name2str.exe to make the new importable .simpe files. Remember that if males & females get identical last names, all you have to do is copy the contents of str98.txt into strCC.txt. Now open up the Live.package file from jordi (http://modthesims.info/download.php?t=110889) with SimPE.
In the Resource Tree, click "Text Lists (STR#) (4)" to bring up the list of names in the Resource List. For our sample, we will click "Male first names" and look at the Plugin View.
In the white box to the right of Filename, highlight, right click and cut the text called "Male first names". Then go back to the Resource List, right-click "Male first names" and click "Replace". Browse in the Name2Simpe folder and double-click "str96.simpe" (ignore the .xml file), click "Yes".
Paste back the "Male first names" text back into that white box we just cut from, Commit file and then Save.
Repeat steps 7 through 9 for the "Female first names", "Male last names" and "Female last names" sections, making sure to use the appropriate categories in the Resource List.
After everything has been replaced (don't worry about the "Compressed Files List" disappearing after replacing the last section, your mod will still work), close SimPE, put Live.package into your Downloads folder and test the mod!


Testing the Mod:

It's best to test this mod using a completely empty (http://modthesims.info/showthread.php?p=4098127#post4098127) test neighborhood.


Make a test neighborhood. (Do NOT load up your playing neighborhood when testing new mods)
Move in a family into a residential lot or play an occupied residential lot.
Ctrl + Shift + C to bring up the cheat screen and type in:
boolprop testingcheatsenabled true
Shift + Left Click the mailbox and force create townies.
Wait a while, until it creates 30 townies.
A quick way to check the names in the game is if you have a spawner (such as Inge's Cat, Sim Blender's spawner or Sim Manipulator's Spawner), then you can go into the "spawn townie" options to see the list of names.
Another way to check the townies outside of the game is to save your game and exit, then open your neighborhood in SimPE and check your townies through there.


Your newly spawned townies should be there, using the names you made. If they come with Maxian names, that is because you used the sample names from this tutorial to make the mod!

Since we made an extremely short sample of male first names as an example only to save time, we learnt how to make the Live.package file, but as jordi said, this tutorial's package does not have enough names. Therefore, there is an extremely likely chance that your newly-spawned townies will use from the default Maxian names. So if you want to make a functional name mod, please have a list of at least 150 male first, female first and unisex/gendered last names. The total sum of last names should be at least 300 for gendered and 150 for unisex.

This mod will only name newly-spawned townies and will not rename existing premades, "born" sims and any sim you made with CAS.

The last step: Enjoy your new game! :D