This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] Random Character Names  (Read 590 times)

Scytheria23

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 49
    • View Profile
[QUESTION] Random Character Names
« on: March 30, 2016, 02:37:41 am »
Well this has me stumped.

I'm trying to change the random names generated at character creation.  The obvious place to do this is namegen.dbc, which I've altered to fit what I'm doing.  It's a simple enough dbc - ID, Name, Race, Gender.

The result, strangely, bears little resemblance to what I put in it.  Neither does it resemble the original, so it's not defaulting to that.  What seems to happen is that the names I list are randomly mashed together to produce new variants.  There seems to be some sort of logic behind the mashing - names generally stick to English syntax and rules - but there are odd exceptions.

This seems to be done in the client somewhere, probably the wow executable, as I can't find anything in the server code that does this job.

Will experiment and let you know what I find!

--

EDIT:  OK, done some playing.  This is really complicated.  What happens is that the client somehow takes parts of the names in the dbc and splices them together.  It seems to apply some rules to prevent the doubling of letters and silly combinations, but these rules are not totally robust.  They seem to work on a vowel-consonant boundary system.  Generally, the front part of a name is spliced with the back part of another (but not always).  For example, if my dbc contained:

Robert
Richard
Michael
Jake
Henry
Montgomery


Conceivable output would be:

Robard
Jakert
Henrael
Richy
Miche
Montry
Montgomard
Jakomery


- anything but the original names in the list (this makes sense, as the Blizzard dbc contains many names of NPCs)

And, if it goes wrong:

Roaely

My dbc contains about 2500 medieval names for both males and females.  Not surprisingly, some of the combinations this spits out are a bit stupid, but nine times out of ten they're ok.  I was really hoping it would just pick a name from the list and use it 'as is', but I can live with the occasional weirdo.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »