It is currently Fri Jul 30, 2021 12:40 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Random Names
PostPosted: Sun May 09, 2010 9:50 am 
Offline
Soldier level 0
Soldier level 0

Joined: Mon May 03, 2010 1:10 pm
Posts: 14
I just want to ask, how the game random generate names for random characters :D I think that game is generating it from bio.txt, where are these names defined, but I don't know how. I would like to generate random names for arabians only from some group of names (for example cze :D) There has to be some mechanism, cause I noticed that when you set nation america, it will prepare name from names for us or uk or I think I saw a japan once, but never saw name similar to legion or russian or arabian.


Top
 Profile  
 
 Post subject: Re: Random Names
PostPosted: Sun May 09, 2010 12:25 pm 
Offline
OW Support Owner
OW Support Owner
User avatar

Joined: Wed Dec 28, 2005 11:13 pm
Posts: 5017
Location: UK, Scotland
Personaly i have never tested. I assume it uses bio.txt .

_________________
Image
Free Map Editor - Game Requirements - Stucuk.Net
-Stu


Top
 Profile  
 
 Post subject: Re: Random Names
PostPosted: Sun May 09, 2010 12:50 pm 
Offline
Soldier level 0
Soldier level 0

Joined: Mon May 03, 2010 1:10 pm
Posts: 14
I assume that too :D but I can't figure out how :D Because I can't figure out what means these numbers:
Code:
  BIOGRAPHIES
    NATIONALITY
      US 250 0 5 0
      AR 5 100 5 5
      RU 1 0 2 200
      SA 2 0 75 0
      UK 10 0 30 0
      BE 1 0 10 0
      FR 2 0 30 0
      GE 8 0 30 0
      NL 1 0 8 0
      IT 1 0 1 0
      SP 1 0 2 0
      PO 1 0 2 0
      SW 2 0 10 1
      NO 1 0 5 0
      SF 1 0 5 1
      DN 1 0 1 0
      IS 1 0 1 0
      CZ 1 0 1 2
      PL 2 0 1 2
      AU 4 0 15 0
      AL 0 2 20 1
      MU 0 2 20 1
      CH 0 2 5 0
      SY 0 2 1 0
      IZ 10 0 3 0
      JP 2 0 1 0
      RH 1 0 1 1
      OP 0 0 0 0
    END_OF_NATIONALITY
...

and these shortcuts next to name:
Code:
        "Ahonen"             SF3


maybe those shortcuts are some sort of galleries? but those numbers in nationality I don't have an idea... :D I am going to try some things :D


Top
 Profile  
 
 Post subject: Re: Random Names
PostPosted: Sun May 09, 2010 2:27 pm 
Offline
Soldier level 0
Soldier level 0

Joined: Mon May 03, 2010 1:10 pm
Posts: 14
okey I figured out something... in bio.txt it seems that numbers next to nation like:
Code:
    NATIONALITY
      US 250 0 0 0
      AR 5 100 0 5
      RU 1 0 0 200
      ...

are something like probability number for generate name of that nation for ow nation... I think first is for nation_american, second I don't know? third is for nation_arabian (for sure) and 4th is for russian... I'll run few more tests to verify it.

So for example for generate only names with CZ mark for nation_arabian, you have to set 3rd number of every nation in NATIONALITY block to 0 or close to 0 instead of CZ (where is good to set it to some large number for example 150).


Top
 Profile  
 
 Post subject: Re: Random Names
PostPosted: Mon May 10, 2010 9:00 am 
Offline
Soldier level 0
Soldier level 0

Joined: Mon May 03, 2010 1:10 pm
Posts: 14
the second number in nations is for desert warriors... I noticed that most of arabian soldiers has other names than arabian so I tried it...

next what I found is that you can't add new nation to bio.txt, but you can add your own names

At the end of the file there is this code:
Code:
    NAMES_PROB
      Freq_band 1  20
      Freq_band 2  60
      Freq_band 3  15
      Freq_band 4  5
    END_OF_NAMES_PROB


I think this is probability in % for names with marked numbers for example if there is name
Code:
        "Svetlana"           RU2

then this name is marked as russian name with mark 2 which means its probabity to generate from russian names is 60%, so the russian names marked with RU2 are generated the most, russian names with RU4 are generated only sometimes... but I think this is not really important. :D It is just for info :D


Top
 Profile  
 
 Post subject: Re: Random Names
PostPosted: Tue May 18, 2010 7:09 am 
Offline
Soldier level 0
Soldier level 0

Joined: Mon May 03, 2010 1:10 pm
Posts: 14
I figured out that when you are adding custom names to bio.txt you have to be avare that it has limited file size about 136000 bytes (I am not sure about exact size)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Original War is an RTS / RPG game by Altar Games
Original War Support is not part of Altar Games but is maintaining Original War for Altar Games

Privacy Policy