Log in

View Full Version : Error on EDB



neo_deus
02-25-2009, 05:00
What can this be?

https://img.photobucket.com/albums/v43/neo_deus/erro-1.jpg

PopePopo
02-25-2009, 14:31
have you made that new building , or is it from a mod (the spartacus mod apparently) ? If it's from a mod , it's best to ask on their forum :)

Aradan
02-25-2009, 14:34
It's pretty clear actually. ;) The building tree's first level (ie shrine) is not available to a faction, while a level above that is, so it's causing an error.

neo_deus
02-25-2009, 15:18
It's pretty clear actually. ;) The building tree's first level (ie shrine) is not available to a faction, while a level above that is, so it's causing an error.


Neither the temple the error referes to is not available to romans_julii on any level. The temple above it, is available for all the leves. I've checked and re-checked it, thats why it doesn't seem to make sense. Also, the line the error points to, its the last line on the EDB.


It is from a mod, PopePopo. But one that I am creating: Spartacus, Total War.

SubRosa
02-25-2009, 18:08
Could you post the entire section of code for the temple_of_governors?

neo_deus
02-25-2009, 20:35
plugins
{
}
}
building temple_of_governors
{
levels temple_of_governors_shrine temple_of_governors_temple temple_of_governors_large_temple temple_of_governors_awesome_temple temple_of_governors_pantheon
{
temple_of_governors_shrine requires factions { pontus, macedon, }
{
capability
{
happiness_bonus bonus 1
law_bonus bonus 1
}
construction 1
cost 400
settlement_min town
upgrades
{
temple_of_governors_temple
}
}
temple_of_governors_temple requires factions { pontus, macedon, }
{
capability
{
happiness_bonus bonus 2
law_bonus bonus 2
}
construction 2
cost 800
settlement_min large_town
upgrades
{
temple_of_governors_large_temple
}
}
temple_of_governors_large_temple requires factions { pontus, macedon, }
{
capability
{
happiness_bonus bonus 3
law_bonus bonus 3
}
construction 3
cost 1600
settlement_min city
upgrades
{
temple_of_governors_awesome_temple
}
}
temple_of_governors_awesome_temple requires factions { pontus, macedon, }
{
capability
{
happiness_bonus bonus 4
law_bonus bonus 4
}
construction 5
cost 3200
settlement_min large_city
upgrades
{
temple_of_governors_pantheon
}
}
temple_of_governors_pantheon requires factions { }
{
capability
{
happiness_bonus bonus 5
law_bonus bonus 5
farming_level bonus 2
recruits_exp_bonus bonus 2
weapon_missile bonus 2
}
construction 6
cost 6400
settlement_min huge_city
upgrades
{
}
}



Here it is.

Makanyane
02-25-2009, 21:17
is

temple_of_governors_pantheon requires factions { }
the right way to say no factions can build that level? maybe its reading that as all factions?

I've seen that written elsewhere as

temple_of_governors_pantheon requires factions { , }



Also, the line the error points to, its the last line on the EDB.
If the above doesn't work - you can sometimes get really weird EDB errors if you've made changes to resources / things Carthaginian's can build without fixing their look up first, and haven't deleted your map.rwm

neo_deus
02-25-2009, 21:59
the right way to say no factions can build that level? maybe its reading that as all factions?

I believe the right way is

temple_of_governors_pantheon

nothing added in front of it, because there are other temples like that. I checked it when I made the changes.
My mistake, I pasted after making some changes to try and see if it would work.
Here is the "correct" one:

}
building temple_of_governors
{
levels temple_of_governors_shrine temple_of_governors_temple temple_of_governors_large_temple temple_of_governors_awesome_temple temple_of_governors_pantheon
{
temple_of_governors_shrine requires factions { pontus, macedon, }
{
capability
{
happiness_bonus bonus 1
law_bonus bonus 1
}
construction 1
cost 400
settlement_min town
upgrades
{
temple_of_governors_temple
}
}
temple_of_governors_temple requires factions { pontus, macedon, }
{
capability
{
happiness_bonus bonus 2
law_bonus bonus 2
}
construction 2
cost 800
settlement_min large_town
upgrades
{
temple_of_governors_large_temple
}
}
temple_of_governors_large_temple requires factions { pontus, macedon, }
{
capability
{
happiness_bonus bonus 3
law_bonus bonus 3
}
construction 3
cost 1600
settlement_min city
upgrades
{
temple_of_governors_awesome_temple
}
}
temple_of_governors_awesome_temple requires factions { pontus, }
{
capability
{
happiness_bonus bonus 4
law_bonus bonus 4
}
construction 5
cost 3200
settlement_min large_city
upgrades
{
temple_of_governors_pantheon
}
}
temple_of_governors_pantheon
{
capability
{
happiness_bonus bonus 5
law_bonus bonus 5
farming_level bonus 2
recruits_exp_bonus bonus 2
weapon_missile bonus 2
}
construction 6
cost 6400
settlement_min huge_city
upgrades
{
}
}

Dol Guldur
02-25-2009, 23:59
I think you will find, and as Mak rightly guessed, that your syntax is being read as "all factions". The Julii are being reported because they are the default report faction I believe. Change it to the syntax Mak suggested. This is how I do it, and it is how other mods no doubt do it - check other mods and learn from them rather than guessing :yes:

Red Spot
02-26-2009, 01:58
I can confirm the syntax isnt the issue, had to dig trhu some back up folders, but from my EDB:


building taverns
{
levels tavern bardic_circle
{
tavern requires factions { }
{
capability
{
happiness_bonus bonus 1
}
construction 2
cost 800
settlement_min large_town
upgrades
{
bardic_circle
}
}
bardic_circle requires factions { }
{
capability
{
happiness_bonus bonus 2
}
construction 3
cost 1600
settlement_min city
upgrades
{
}
}
}
plugins
{
}
}
building temple_of_battle
{
levels temple_of_battle_shrine temple_of_battle_temple temple_of_battle_large_temple temple_of_battle_awesome_temple temple_of_battle_pantheon
{
temple_of_battle_shrine requires factions { }
{
capability
{
happiness_bonus bonus 1
}
construction 1
cost 400
settlement_min town
upgrades
{
temple_of_battle_temple
}
}
temple_of_battle_temple requires factions { }
{
capability
{
happiness_bonus bonus 2
recruits_morale_bonus bonus 1
}
construction 2
cost 800
settlement_min large_town
upgrades
{
temple_of_battle_large_temple
}
}
temple_of_battle_large_temple requires factions { }
{
capability
{
happiness_bonus bonus 3
recruits_morale_bonus bonus 2
}
construction 3
cost 1600
settlement_min city
upgrades
{
temple_of_battle_awesome_temple
}
}
temple_of_battle_awesome_temple requires factions { }
{
capability
{
happiness_bonus bonus 4
recruits_morale_bonus bonus 3
}
construction 5
cost 3200
settlement_min large_city
upgrades
{
temple_of_battle_pantheon
}
}
temple_of_battle_pantheon requires factions { }
{
capability
{
happiness_bonus bonus 7
recruits_morale_bonus bonus 4
}
construction 6
cost 6400
settlement_min huge_city
upgrades
{
}
}
}
plugins
{
}
}

edit: .. er .. I used 2 spaces instead of 1, so perhaps it could be a syntax error ... lol

SubRosa
02-26-2009, 02:17
If you do not want pontus or macedon to have the pantheon level, why not just remove it?

This ought to do the trick (I think)


}
building temple_of_governors
{
levels temple_of_governors_shrine temple_of_governors_temple temple_of_governors_large_temple temple_of_governors_awesome_temple
{
temple_of_governors_shrine requires factions { pontus, macedon, }
{
capability
{
happiness_bonus bonus 1
law_bonus bonus 1
}
construction 1
cost 400
settlement_min town
upgrades
{
temple_of_governors_temple
}
}
temple_of_governors_temple requires factions { pontus, macedon, }
{
capability
{
happiness_bonus bonus 2
law_bonus bonus 2
}
construction 2
cost 800
settlement_min large_town
upgrades
{
temple_of_governors_large_temple
}
}
temple_of_governors_large_temple requires factions { pontus, macedon, }
{
capability
{
happiness_bonus bonus 3
law_bonus bonus 3
}
construction 3
cost 1600
settlement_min city
upgrades
{
temple_of_governors_awesome_temple
}
}
temple_of_governors_awesome_temple requires factions { pontus, }
{
capability
{
happiness_bonus bonus 4
law_bonus bonus 4
}
construction 5
cost 3200
settlement_min large_city
upgrades
{
}
}
}
plugins
{
}
}

Dol Guldur
02-26-2009, 13:13
It is the syntax. I tested a building from a mod. Use the "requires factions { , }" to block out any higher levels you do not want; you can just remove the level but sometimes that means hunting through and changing references elsewhere (and of course you may choose to use it later).

I have used this in FATW for years and it has never caused any reported errors, CTDs or instability.