PDA

View Full Version : Problem creating a new League


OckHAM
03.05.2005, 08:15
I found the way to redifine the keys in the game (the PPJoy program) and now I'm finally enjoying this awesome game. I started working with the teams and league data to recreate in detail north and south america leagues starting from Mexico Liguilla, and after a long job on datas I found a problem that I hope Andreas can resolve:

I created 18 teams files for each of the mexican teams, with an high level of detail, one of these files, Atlante.txt, for example, is this:


! Name "Atlante"
! reputation 10
! 1 shirt lightblue
! 1 stripes red
! 1 shorts lightblue
! 2 shirt white
! 2 stripes red
! 2 shorts white
Cuevas, Rafael: GK
Martel, Fernando: D L
Palma, Adalberto: D R
Pacheco, Victor: C M
Lucas, Osvaldo: D C
Ramirez, Diego: D C
Velazquez, Claudio: D C
Gonzalez, Joseluis: D C
Gonzalez, Sebastian: F C
Hernandez, Mario Alberto: D C
Rey, Luis Gabriel: F C
Arredondo, Alejandro: GK
Bonilla, Omar: C M
Ramirez, Carlos: F C
Alcantar, Daniel: C M
Espinoza, Gerardo: C L
Villa, Abdiel: C M
Vilar, Federico: D L
Garay, Diego: C R

$ Cuevas, Rafael
nationality = Mexico
ability = 100
skin = black
hair = darkbrown
speed = -
shot power = -
jumping = -
offensiveness = -
tackling = -

$ Martel, Fernando
nationality = Mexico
ability = 150
skin = white
hair = darkbrown
speed = +
shot power = -
jumping = +
offensiveness = -
tackling = +

$ Palma, Adalberto
nationality = Mexico
ability = 150
skin = white
hair = darkbrown
speed = o
shot power = -
jumping = +
offensiveness = -
tackling = +

$ Pacheco, Victor
nationality = Colombia
ability = 150
skin = white
hair = darkbrown
speed = o
shot power = o
jumping = o
offensiveness = -
tackling = -

$ Lucas, Osvaldo
nationality = Mexico
ability = 140
skin = white
hair = darkbrown
speed = -
shot power = -
jumping = +
offensiveness = -
tackling = +

$ Ramirez, Diego
nationality = Mexico
ability = 140
skin = white
hair = darkbrown
speed = -
shot power = -
jumping = +
offensiveness = -
tackling = +

$ Velazquez, Claudio
nationality = Mexico
ability = 140
skin = white
hair = darkbrown
speed = -
shot power = -
jumping = +
offensiveness = -
tackling = +

$ Gonzalez, Joseluis
nationality = Mexico
ability = 140
skin = white
hair = darkbrown
speed = -
shot power = -
jumping = +
offensiveness = -
tackling = +

$ Gonzalez, Sebastian
nationality = Chile
ability = 140
skin = white
hair = darkbrown
speed = -
shot power = +
jumping = o
offensiveness = o
tackling = -

$ Hernandez, Mario Alberto
nationality = Mexico
ability = 140
skin = white
hair = darkbrown
speed = -
shot power = -
jumping = +
offensiveness = -
tackling = +

$ Rey, Luis Gabriel
nationality = Colombia
ability = 140
skin = white
hair = darkbrown
speed = -
shot power = +
jumping = o
offensiveness = o
tackling = -

$ Arredondo, Alejandro
nationality = Mexico
ability = 100
skin = white
hair = darkbrown
speed = -
shot power = -
jumping = -
offensiveness = -
tackling = -

$ Bonilla, Omar
nationality = Mexico
ability = 150
skin = white
hair = darkbrown
speed = o
shot power = o
jumping = o
offensiveness = -
tackling = -

$ Ramirez, Carlos
nationality = Mexico
ability = 140
skin = white
hair = darkbrown
speed = -
shot power = +
jumping = o
offensiveness = o
tackling = -

$ Alcantar, Daniel
nationality = Mexico
ability = 150
skin = white
hair = darkbrown
speed = o
shot power = o
jumping = o
offensiveness = -
tackling = -

$ Espinoza, Gerardo
nationality = Mexico
ability = 150
skin = black
hair = darkbrown
speed = +
shot power = -
jumping = +
offensiveness = +
tackling = -

$ Villa, Abdiel
nationality = Mexico
ability = 150
skin = white
hair = darkbrown
speed = o
shot power = o
jumping = o
offensiveness = -
tackling = -

$ Vilar, Federico
nationality = Italy
ability = 135
skin = white
hair = darkbrown
speed = -
shot power = -
jumping = ++
offensiveness = +
tackling = -

$ Garay, Diego
nationality = Argentina
ability = 150
skin = black
hair = darkbrown
speed = +
shot power = -
jumping = +
offensiveness = -
tackling = +


So every player has his own data, obtained from his performance and statistics. Having created in this way all the 18 teams of the mexican league (in the Team dir) I created the Mexico.txt file in League dir that is the following:


# Mexico
! Country "Argentina"
! Names "data/names/Mexico_1st.txt" "data/names/Mexico_2nd.txt"
: Liguilla Mexicana
+ division 1
+ promotions 0
+ relegations 2
+ reputation 12
America
Atlante
Atlas
Chivas Guadalajara
Cruz Azul
Dorados
Jaguares
Monarcas
Monterrey
Necaxa
Pachuca
Puebla
Pumas
Tecos
Tigres
Toluca
Santos
Veracruz
: Primera A Mexicana
+ division 2
+ promotions 2
+ relegations 0
+ reputation 8
Cruz Azul Oaxaca
San Luis
Pachuca JR
Colima
Leon
Celaya
Los Mochis
Atlante Neza
Queretaro
Coatzacoalcos
Durango
Ciudad Obregon
Cobras
Merida FC
Lobos BUAP
Atletico
Mexiquense
Estudiantes
Chivas La Piedad
Tabasco
Correcaminos


So the second division teams for the moment have just the name. Now I start the game, go on quick start, selecting just Mexico to test the league and I obtain three "Memory Access Violation" Windows problem.

What could be the problem? Where could be the error? Could be a problem if in some of the teams txt some lines end with two blank spaces instead of ending with the last letter? (i.e. "Palencia, Juan Paco " instead of "Palencia, Juan Paco").

I hope you can resolve this problem, in the meanwhile I started Brazilian and Argentinian databasases because I think this wonderful game deserves the best database available.

OckHAM

OckHAM
03.05.2005, 19:32
Ok, resolved: the problem is the presence of spaces in the txt files at the end of the lines ;) I will keep the work and then publicate concacaf and south america leagues. If I will have more problems I'll post here.

Anzi23
21.08.2005, 11:57
I'll borrow this thread, because I have also a problem creating a new league. I'm trying to create Finland's premier league (Veikkausliiga), and I've done the teams I wanted and the league file is also done. But when I create a test game to check out that my creations are working, the game makes three KuPS and VPS (these are teams) and some other teams are missing. What have I done wrong?

Andreas Osswald
21.08.2005, 12:41
It's difficult to say what goes wrong in your case. Probably there's a conflict with the "International teams and tournaments" file that you are using? For example that you named the country of your league different than the country in the international-file and then the teams already exist in a different country and are not used in your new league? At least you should check the "International teams and tournaments" file if there's a relation to the missing files of your league. But that's just a first idea.

Anzi23
21.08.2005, 13:48
Here's the league file that I've made:

# Finland
! Country "Finland"
! Names "data/names/Finland_1st.txt" "data/names/Finland_2nd.txt"
* Finland Cup
+ Country "Finland"
+ reputation 11
+ round 1 "Round 1" 1-32 7
+ add 32 from "Finland"
+ round 2 "Round 2" 1-16 11
+ round 3 "Quarter Final" 1-8 23
+ round 4 "Semi Final" 1-4 35
+ round 5 "Final" 1-2 47
: Veikkausliiga
+ division 1
+ promotions 0
+ relegations 0
+ reputation 10
MyPa
HJK
FC Haka
FC Inter Turku
Tampere United
AC Allianssi
FC KooTeePee
FC Lahti
IFK Mariehamn
KuPS
FF Jaro
TPS
RoPS
TP-47
FC Honka
VPS
I've added couple of lower division teams to increase the number of teams in the league a bit. Though this shouldn't affect in any way 'cause there isn't any Finnish league in the original game. Can you say anything with help of this?

Here's the "Finland part" from International file (I changed the HJK Helsinki to HJK when I tried this):
! AdditionalCountry "Finland"
! TempNames "data/names/Finland_1st.txt" "data/names/Finland_2nd.txt"
+ reputation 10
HJK Helsinki
FC Haka
Tampere United
MyPa
FC Lahti

Coach Rasta
22.08.2005, 12:03
the only idea i got from looking at the lines was:

the reputation of the finnish league is "11", and in the international-file it is "10". but no idea if that could cause the problem. : /