Pink Petal Games
Game Editing And Additions => User Mods => Topic started by: Dagoth on May 30, 2010, 04:36:54 PM
-
I figured it would be nice to have a really huge number of available random girl names, so I hunted around a bit through Google to look for some. I found a website with a huge number of girl names available which I created this list from.
There are 5188 names here, some of them admittedly rather odd (they seem to be taken from most currently spoken languages in the world), and some of them variations of the same name. Still, variety is the spice of life, eh?
-
Speaking of 5188, the first name in the list is 5188. Sucks to be that girl :D .
-
Speaking of 5188, the first name in the list is 5188. Sucks to be that girl :D .
That's the name count for the file, used by the game to know how many lines to read. ;)
-
Eh? The list Lordshame and I used in the thread below didn't have this, and they seem to work fine. Are you sure it's actually required with the 1.30 engine?
-
I've checked in the code and you're halfway right. The count is no longer actually needed (though it exists in the default name pack), but it does skip over the first line of the file when reading it. So if the first line of your RandomGirlNames.txt is actually a name, that name will never show up in the game. My file above on the other hand should work exactly as intended.
-
Ah, I see. Not a big deal, but I guess I might as well put in a number in the first line of mine as well.
-
Well, as you discovered, the number isn't really needed... you should be able to put whatever you like there on the first line, such as "This random girl name list is by user x" or "THIS LINE IS RESERVED" or something like that. :)
-
so does the game reuse random girl names or after it runs out does it just stop making random girls?
-
It doesn't 'run out' AFIAK, it picks a random name every time even if it duplicates an existing one.
-
It randomly picks a name, then checks to see if the name is already used, and if so it picks another random name. It does this 5 times, and if it still doesn't have an unused name at that point it will just go with the last one it picked.