Page 1 of 1

National Teams ?

Posted: Tue Jan 25, 2005 7:09 pm
by MisterX
Why not put National Teams in it so we can play European Cup,World cup etc ?

Posted: Wed Jan 26, 2005 12:01 pm
by atd
That is a good idea. In that case Bygfoots football players needs nationalities.

Posted: Wed Jan 26, 2005 1:30 pm
by gyboth
hum.. i thought i'd already answered this post...

in principle it would be simple to make country files with names of countries instead of names of teams. there are two caveats, though: a) the concept of player transfers doesn't fit to national teams b) the current player names aren't sorted. we'd need separate files for different countries (and i'm not too inclined to do this work ;-)).
other than these, we could as well have national teams. especially in 1.9 it should be rather easy to make a world cup or such.

gyözö

World Cup

Posted: Sun May 29, 2005 7:48 am
by Oki
Well, i know the transfers will be the main problem to implement World Cups in bygfoot, but i'll try to offer a simple solution for the issue B. ;-)

I play ManagerZone, and they use a good rule for player names. The game have a field for first names and a field for last names, and when the rando routine is called, the routine just combine first and last names.

e.g:

XML File A(brazil_fname)
First_names
Celso
Ronaldo
Romário

XML File B(brazil_lname)
Last_names
Goya
da Silva
Sampaio

With 3 records in each file, we could randon 9 names. The only work we have to do will be to write common names by country. ;-)

I think, it's a good way to solve this problem, and it's my suggestion.

[]'s
Celso Goya

Re: World Cup

Posted: Tue May 31, 2005 5:17 pm
by gyboth
Oki wrote:I play ManagerZone, and they use a good rule for player names. The game have a field for first names and a field for last names, and when the rando routine is called, the routine just combine first and last names.
great idea. maybe i'll even implement it for 1.9.0, it captured my imagination ;-)

i'd introduce a names file tag for leagues, so that each league can have the player names loaded from different files.
also, the last and first names would be in the same file, like <first_name>Celso</first_name> and <last_name>Goya</last_name>.

gyözö

Posted: Wed Jun 01, 2005 7:04 pm
by gyboth
:arrow: i've added support for player names files, see this post:
http://bygfoot.sourceforge.net/forum/vi ... =1381#1381

gyözö