new faction builders
Started by Glorfindel_10, Jul 18 2007 01:38 PM
4 replies to this topic
#1
Posted 18 July 2007 - 01:38 PM
alright, so i kind of made a new faction, and the fortress for my faction can make a wild porter and a morder porter. so, i make them, and they can build everything correctly, except for when i try to build a fortress with them. the building is not there when i place it, it is just an empty box, but when its building, i can see the fortress and its progress. then, when its done, there's nothing there, and i can build over it. why is this? can somebody please tell me how to fix this?
As long as people are still having premarital sex with many anonymous partners while at the same time experimenting with mind-expanding drugs in a consequence free environment, I'll be sound as a pound!
#2
Posted 18 July 2007 - 08:56 PM
anybody????
As long as people are still having premarital sex with many anonymous partners while at the same time experimenting with mind-expanding drugs in a consequence free environment, I'll be sound as a pound!
#4
Posted 19 July 2007 - 02:58 AM
That one is real easy. Look inside the fortress code.
There are two fortresses, one is like a placeholder. It will be built by the porter. The other will replace the placeholder once the construction is starting. Which 2nd Fortress is built depends on the faction you are playing. The funny thing is, it is the same for all factions. BUT. There are only the standard factions listed. So your new faction will cause an error at this step. Here is the piece of code:
From isengardfortress.ini
So, for your new Faction to actually build the whole Isengard fortress (as an example), you will need to insert the faction specific line for your fortresses in ALL Fortress placeholders that you want to be able to build. For you, it would look something like this:
And yes: You should definitely look at the tutorials. Most things you need to know are explained there. Someone took a lot of effort putting these together so other could profit and the same questions need not be answered a million times. Honor their work and READ them.
There are two fortresses, one is like a placeholder. It will be built by the porter. The other will replace the placeholder once the construction is starting. Which 2nd Fortress is built depends on the faction you are playing. The funny thing is, it is the same for all factions. BUT. There are only the standard factions listed. So your new faction will cause an error at this step. Here is the piece of code:
From isengardfortress.ini
Object IsengardFortress ... Behavior = CastleBehavior ModuleTag_castle CastleToUnpackForFaction = Isengard Fortress_Isengard CastleToUnpackForFaction = Men Fortress_Isengard CastleToUnpackForFaction = Elves Fortress_Isengard CastleToUnpackForFaction = Dwarves Fortress_Isengard CastleToUnpackForFaction = Wild Fortress_Isengard CastleToUnpackForFaction = Mordor Fortress_Isengard ;//Anything that does not fit this filter will be given to the neutral player, so the template can have rocks and props. FilterValidOwnedEntries = ANY +STRUCTURE +WALK_ON_TOP_OF_WALL +BASE_FOUNDATION +TACTICAL_MARKER MaxCastleRadius = 130.0 InstantUnpack = Yes KeepDeathKillsEverything = Yes EvaEnemyCastleSightedEvent = EnemyFortressSighted End ...
So, for your new Faction to actually build the whole Isengard fortress (as an example), you will need to insert the faction specific line for your fortresses in ALL Fortress placeholders that you want to be able to build. For you, it would look something like this:
CastleToUnpackForFaction = MyNewFaction Fortress_Isengard
And yes: You should definitely look at the tutorials. Most things you need to know are explained there. Someone took a lot of effort putting these together so other could profit and the same questions need not be answered a million times. Honor their work and READ them.
Edited by Sûlherokhh, 19 July 2007 - 03:01 AM.
Axed Head and A.I. Coder for S.E.E. and ... stuff
".. coding is basically boring. What's fun is finding out how things work, take them apart and then put them together in ways that were not intended nor even conceived."
#5
Posted 19 July 2007 - 03:18 PM
sorry about that, i didn't even think of that, but that was right in front of my face. i should have known, seeing as you have to put that code in the faction that you want your faction's fortress to be from, so i should have known, and i'll definitely read the tutorials, so thanks
NOOB out. lol
NOOB out. lol
Edited by Glorfindel_10, 19 July 2007 - 03:18 PM.
As long as people are still having premarital sex with many anonymous partners while at the same time experimenting with mind-expanding drugs in a consequence free environment, I'll be sound as a pound!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users