Making the mongol Empire-Help please?

Discuss Millénaire in English
Post Reply
fortytwo
Posts: 13
Joined: Wed Dec 18, 2013 11:58 pm

Making the mongol Empire-Help please?

Post by fortytwo » Thu Dec 19, 2013 12:03 am

I would like to add the mongol culture to the game, but im doing something wrong because it wont work;( wiki said prob a problem in village file, here it is;

name:Khanate
weight:10
carriesraid:true

pathmaterial:pathdirt
pathmaterial:pathgravel
pathmaterial:pathgravelslabs

biome:plains
biome:extreme hills

//starting buildings:
centre:Palace

dont see a problem there, but might just be dumb. here is file for palace, seeing as its the only building ive done

max:0;priority:500;native:nameinvillagelangue;Palace_name_en:inenglish;Palace_name_fr:enfrancais;around:4;startLevel:0;orientation:3;signs:2,1,3,5,7,8,6,4,0;shop:Palace;male:Khan;female:Khan's Wife;width:14;length:36;

Ty in advance. Please ask if you would like to check another file.

User avatar
druha
Posts: 275
Joined: Sat Jul 20, 2013 10:09 pm

Re: Making the mongol Empire-Help please?

Post by druha » Thu Dec 19, 2013 12:46 am

fortytwo wrote:I would like to add the mongol culture to the game, but im doing something wrong because it wont work;( wiki said prob a problem in village file, here it is;

name:Khanate
weight:10
carriesraid:true

pathmaterial:pathdirt
pathmaterial:pathgravel
pathmaterial:pathgravelslabs

biome:plains
biome:extreme hills

//starting buildings:
centre:Palace

dont see a problem there, but might just be dumb. here is file for palace, seeing as its the only building ive done

max:0;priority:500;native:nameinvillagelangue;Palace_name_en:inenglish;Palace_name_fr:enfrancais;around:4;startLevel:0;orientation:3;signs:2,1,3,5,7,8,6,4,0;shop:Palace;male:Khan;female:Khan's Wife;width:14;length:36;

Ty in advance. Please ask if you would like to check another file.
Couple of things to note. The building/shop/villager/etc files have to be named exactly as you're referencing. This includes capitalization. The letter 'p' is different from the letter 'P'.

One thing that could be suspect is the apostrophe in the female villager's file name. The code may not like that, but that's only a guess.

Also, Millenaire writes a log file that will give you hints on what wrong. It's located in .minecraft/mods/millenaire/millenaire.log. Check there and see if that gives you anythig to go on.

fortytwo
Posts: 13
Joined: Wed Dec 18, 2013 11:58 pm

Re: Making the mongol Empire-Help please?

Post by fortytwo » Thu Dec 19, 2013 1:52 am

Thanks! This seems to appear in the log when I try to summon one(doesnt appear on list to spawn)

5.1.11 18-12-2013 20:40:04 ERROR: Khanate: Could not recognise parameter ?name: ?name:Khanate
5.1.11 18-12-2013 20:40:04 ERROR: null: No name found for village: Khanate
5.1.11 18-12-2013 20:40:04 MAJOR: null: Loading language: en_US
5.1.11 18-12-2013 20:40:04 MAJOR: null: Language loaded: en_US. Wand name: Wand of Summoning Wand invitem name: item.ml_villageWand.name

any idea what this means Im doing wrong?

User avatar
druha
Posts: 275
Joined: Sat Jul 20, 2013 10:09 pm

Re: Making the mongol Empire-Help please?

Post by druha » Thu Dec 19, 2013 5:58 am

fortytwo wrote:Thanks! This seems to appear in the log when I try to summon one(doesnt appear on list to spawn)

5.1.11 18-12-2013 20:40:04 ERROR: Khanate: Could not recognise parameter ?name: ?name:Khanate
5.1.11 18-12-2013 20:40:04 ERROR: null: No name found for village: Khanate
5.1.11 18-12-2013 20:40:04 MAJOR: null: Loading language: en_US
5.1.11 18-12-2013 20:40:04 MAJOR: null: Language loaded: en_US. Wand name: Wand of Summoning Wand invitem name: item.ml_villageWand.name

any idea what this means Im doing wrong?
Someone else had a similar problem very recently. I believe the person solved it by completely trashing the new text files and using something like Notepad++ or TextPad to recreate them. Notepad has a tendency to mess with formatting.

fortytwo
Posts: 13
Joined: Wed Dec 18, 2013 11:58 pm

Re: Making the mongol Empire-Help please?

Post by fortytwo » Thu Dec 19, 2013 9:04 pm

Ok got textpad, do I have to retype or is copy and paste alright?

fortytwo
Posts: 13
Joined: Wed Dec 18, 2013 11:58 pm

Re: Making the mongol Empire-Help please?

Post by fortytwo » Thu Dec 19, 2013 9:56 pm

Nevermind,worked-kinda. Village spawned but with 0 population. Whats wrong?

User avatar
druha
Posts: 275
Joined: Sat Jul 20, 2013 10:09 pm

Re: Making the mongol Empire-Help please?

Post by druha » Thu Dec 19, 2013 10:06 pm

fortytwo wrote:Nevermind,worked-kinda. Village spawned but with 0 population. Whats wrong?
That would indicate that either the villagers' files have an error in them or the building is not referencing the correct villager files. Also check to make sure your buildings have main chests and sleeping positions as villagers can't be tied to a building that's missing those.

fortytwo
Posts: 13
Joined: Wed Dec 18, 2013 11:58 pm

Re: Making the mongol Empire-Help please?

Post by fortytwo » Thu Dec 19, 2013 10:19 pm

Has a sleeping position in chests, mind checking villager files? Here they are:
Khan
native_name=Khan
gender=male
familyNameList=last names
firstNameList=males
tag=chief
baseHeight=1.3
tag=archer
health=100
texture=/textures/entity/norman/khan

goal=gorest
goal=huntmonster

toolneededclass=meleeweapons

toolneededclass=armour
toolneededclass=rangedweapons

baseAttackStrength=12
tag=helpInAttacks
defaultweapon=diamondsword

Khans Wife
native_name=Khans Wife
gender=female
familyNameList=last names
firstNameList=females
baseHeight=0.85
tag=seller

texture=/textures/entity/japanese/japanese_Peasant_Wife1.png

goal=gorest
goal=makecalva

startingInv=iron,64

//for calva
requiredGood=wheat,16

and this seems to appear in log, not sure if it means anything:

5.1.11 19-12-2013 17:01:22 ERROR: Mongols:Palace_A0: Attempted to load unknown male villager: Khan
5.1.11 19-12-2013 17:01:22 ERROR: Mongols:Palace_A0: Attempted to load unknown female villager: KhansWife

Thanks for all the help!

User avatar
druha
Posts: 275
Joined: Sat Jul 20, 2013 10:09 pm

Re: Making the mongol Empire-Help please?

Post by druha » Fri Dec 20, 2013 12:16 am

fortytwo wrote:Has a sleeping position in chests, mind checking villager files? Here they are:
Khan
native_name=Khan
gender=male
familyNameList=last names
firstNameList=males
tag=chief
baseHeight=1.3
tag=archer
health=100
texture=/textures/entity/norman/khan

goal=gorest
goal=huntmonster

toolneededclass=meleeweapons

toolneededclass=armour
toolneededclass=rangedweapons

baseAttackStrength=12
tag=helpInAttacks
defaultweapon=diamondsword

Khans Wife
native_name=Khans Wife
gender=female
familyNameList=last names
firstNameList=females
baseHeight=0.85
tag=seller

texture=/textures/entity/japanese/japanese_Peasant_Wife1.png

goal=gorest
goal=makecalva

startingInv=iron,64

//for calva
requiredGood=wheat,16

and this seems to appear in log, not sure if it means anything:

5.1.11 19-12-2013 17:01:22 ERROR: Mongols:Palace_A0: Attempted to load unknown male villager: Khan
5.1.11 19-12-2013 17:01:22 ERROR: Mongols:Palace_A0: Attempted to load unknown female villager: KhansWife

Thanks for all the help!
I see a couple of things that I question. I don't really know if they are problems, but they potentially could be.

Khan:
1. The family names file has a space in it. I'm not sure if spaces are allow or not.
2. The texture file must be the full names of the file. It can't reference a folder and it must have the file extension.

Khans Wife:
1. The family names file has a space in it. I'm not sure if spaces are allow or not.
2. The goal 'makecalva' is actually 'makeCalva'. Capitalization is important.


Also a though I had. Can you list the directories in which you are placing all the different files?

fortytwo
Posts: 13
Joined: Wed Dec 18, 2013 11:58 pm

Re: Making the mongol Empire-Help please?

Post by fortytwo » Fri Dec 20, 2013 1:42 am

Changed name file, calva, and textures and no change. Heres the file orginization:






custom cultures-Mongols-buildings-core- Palace_A txt file and Palace_A0 png
language-empty
lonebuildings-empty
namelists- fenales, lastnames, males, villages
shops-Palaceshop
villagers-Mongol_Khan and Mongol_Khanswife
villages- Khanate

User avatar
druha
Posts: 275
Joined: Sat Jul 20, 2013 10:09 pm

Re: Making the mongol Empire-Help please?

Post by druha » Fri Dec 20, 2013 4:47 am

fortytwo wrote:Changed name file, calva, and textures and no change. Heres the file orginization:






custom cultures-Mongols-buildings-core- Palace_A txt file and Palace_A0 png
language-empty
lonebuildings-empty
namelists- fenales, lastnames, males, villages
shops-Palaceshop
villagers-Mongol_Khan and Mongol_Khanswife
villages- Khanate
Hrmm. Does the Palace file have Mongol_Khan as the male and Mongol_Khanswife as the female or do you have it as just Khan and Khanswife? If so, that's what I would think the issue is. Those references in the building file have to match the file name of the villager, not the name that's in their file.

Other than that, I've got no idea.

fortytwo
Posts: 13
Joined: Wed Dec 18, 2013 11:58 pm

Re: Making the mongol Empire-Help please?

Post by fortytwo » Fri Dec 20, 2013 11:57 am

Yeah. Heres the palace txt

max:0;priority:500;native:Palace;around:4;startLevel:0;orientation:3
;signs:2,1,3,5,7,8,6,4,0;shop:Palaceshop;
male:Mongol_Khan;female:Mongol_KhansWife;width:14;length:36;

rebuildpath:true
priority:2

User avatar
druha
Posts: 275
Joined: Sat Jul 20, 2013 10:09 pm

Re: Making the mongol Empire-Help please?

Post by druha » Fri Dec 20, 2013 9:13 pm

Everything looks pretty OK. I'm not sure where to go from here.

fortytwo
Posts: 13
Joined: Wed Dec 18, 2013 11:58 pm

Re: Making the mongol Empire-Help please?

Post by fortytwo » Fri Dec 20, 2013 9:18 pm

Yeah, dont see why villagers wont spawn

fortytwo
Posts: 13
Joined: Wed Dec 18, 2013 11:58 pm

Re: Making the mongol Empire-Help please?

Post by fortytwo » Fri Dec 20, 2013 9:26 pm

Hm found something weird that could be related- in game it says culture.mongols instead of Mongols in menu and wand of summoning.

User avatar
felinoel
Posts: 974
Joined: Sun Jun 09, 2013 6:02 pm

Re: Making the mongol Empire-Help please?

Post by felinoel » Fri Dec 20, 2013 11:59 pm

fortytwo wrote:wiki said prob a problem in village file
Who did you speak to in the wiki?

fortytwo
Posts: 13
Joined: Wed Dec 18, 2013 11:58 pm

Re: Making the mongol Empire-Help please?

Post by fortytwo » Sat Dec 21, 2013 12:26 am

Didnt speak to anyone, its on the page http://millenaire.org/wiki/Guide_on_mak ... om_Culture
But I solved the problem its about

User avatar
druha
Posts: 275
Joined: Sat Jul 20, 2013 10:09 pm

Re: Making the mongol Empire-Help please?

Post by druha » Sat Dec 21, 2013 12:40 am

fortytwo wrote:Hm found something weird that could be related- in game it says culture.mongols instead of Mongols in menu and wand of summoning.
That's from not having language files (of which there is virtually no info about on the wiki).

You'll need a 'languages' folder and in that a 'en' or 'fr' or whatever the short abbreviation is for the different languages. Then in those you'll need several files:

<culture>_buildings.txt
<culture>_dialogs.txt
<culture>_reputation.txt
<culture>_sentences.txt
<culture>_strings.txt
strings.txt

Those 6 files will contain the display names for each language. In strings.txt the top line of the file should be, in your case, 'culture.mongols=Mongols'.

Look at the files for the other cultures to see all the stuff needed.

fortytwo
Posts: 13
Joined: Wed Dec 18, 2013 11:58 pm

Re: Making the mongol Empire-Help please?

Post by fortytwo » Sat Dec 21, 2013 4:13 pm

Ok, is that effecting spawning?And where are the other cultures language files?

User avatar
druha
Posts: 275
Joined: Sat Jul 20, 2013 10:09 pm

Re: Making the mongol Empire-Help please?

Post by druha » Sun Dec 22, 2013 2:43 am

fortytwo wrote:Ok, is that effecting spawning?And where are the other cultures language files?
That should not effect village spawning; just what it displays as.

The language files for the built in cultures are in .minecraft/mods/millenaire/languages

fortytwo
Posts: 13
Joined: Wed Dec 18, 2013 11:58 pm

Re: Making the mongol Empire-Help please?

Post by fortytwo » Thu Jan 02, 2014 2:07 pm

bump

Post Reply