Changing buggy castle

Users who are viewing this thread

Neterkun

Veteran
I've been trying to revert  some castle  to the native one  but I wish to only revert those that are buggy and prevent AI from moving well ( such as unhun castle. 

Unfortunatly all the castle are listed in numbers  from 1 to 48    same for the city    I wish to work a little with modding and adding removing stuff that work or doesn't  but  with the way it's liste I got no idea which castle is which  so  does somebody know a way to  know which castle  is number 1 which is 2 etc  without  having to remove one then go check is it load  etc.... 


ohh and If I wanted to create new map ( if I wish to fix castle that dont work) what kind of program do I need to do so ?  thanks:razz:


and If I wish to "preset"  course for soldiers to fallow ( like If I want  1/3 of ennemie soldier to go around the castle and attack from the side)  where do I set this and how 

( I only roughly need one exemple of how it's done after that I can extrapolate and do different thing based on the exemple

 
If someone could outline how to do this, it would be appreciated: Knudarr castle is impossible to take, unless you go all John Rambo, grab an arbalest, and do it alone.
 
that's why I  want to get down on this and  mod new castle and fix current one  there is actualy a few new castle that are really great to play ( as native one are kinda boring  and same)  and maybe create new map for city and stuff  (im pretty sure I can make  sweet stuff I just need an exemple of how it's done and I'll be able to work from that ^^
 
You can find a list of all the castles/cities and what their number is in the parties txt, it has the name and number of each castle. For instance uhhun is castle 40.
If you wish to edit the scenes then you need to run M&B in edit mode, refer to the instructions on this post under "how to edit scenes" http://forums.taleworlds.com/index.php/topic,57569.0.html

Since Floris is using, at least in part, the el arte de la guerre siege pack, then you're likely running into a lot of the same problems I did. Which prompted me to edit every single castle/city in the game, reverting several back to default and editing those. If you're interested in doing this yourself be prepared for a lot work, I've spent 5-6 hours a day over the past week bug squashing in these siege scenes.
 
woohaaa ^^ this is sweet thanks ^^ now I only need to figure out how to make attacking unit  fallow differents ways
 
"Courses" for soldiers to follow are AI meshes, you'll see them when you open up the scene editor in game. It's one of the more annoying and intensely time consuming parts of scene designing. Put simply, the AI is stupid, a delicate baby you must guide and nudge to get to do what you want. They follow a mesh on the ground from one square (gray space) to the next, plotting a course through the shortest, always the shortest route possible. Their course goes from one ai mesh "face" as they're called to which ever one that is adjacent, or connected, that offers the shortest route to their target. Anything is considered adjacent and a possible route if it shares an edge or a vertices. KEEP THAT IN MIND when you edit the Ai mesh! If there's something in between two mesh faces they'll get stuck on it! Even if the only thing connecting those two meshes is a vertices corner. This is what I've gathered from many laborious hours of nudging and observing the AI as they use the AI mesh, and looking at what TW designed on the default areas of scenes.

If soldiers could be preset to follow a course, with a proportion of the army, then you wouldn't be asking about how to edit scenes because it would have already been used, sadly.
The AI is very simple in what it can do, infantry can only defend one position, archers only fill spots on the tower because you set spawn points there, once those archers die no new ones go to those locations, because the AI doesn't follow a code to tell it to fill archer positions, it just uses the stand ground command where they spawn, with a small AI routine to buffet and bounce around their location to fill out towers. You have to be careful with those spawn points too, it's often why you see archers sticking out from towers and hanging off the side, they likely spawned there or in a space with no room and got bumped out. Or they walked there trying to fill out the walls spaces but managed to walk OVER a short wall because nobody put in an AI limiter to stop them. (AI limiters are invisible walls used to stop the AI from moving into a location)

*Addendum
To put it further, and I hate to crush your dreams, you cannot, can not, tell the AI to follow a specific path, only give them a short one or several ones of identical size and hope they use it. Getting soldiers to use 3 ladders on a wall rather than one depends entirely upon the number of faces it takes them to get to their target, if one ladder offers a shorter route, they'll use that. If you adjust the direction they approach the ladder from, make it more even, then you make 3 ladders have an identical desirability for reaching their target, which is ALWAYS enemy soldiers. Your soldiers by default are on the CHARGE command, they will attack and kill everything they can reach until the battle is won, they do not follow pre-defined paths or plans. They have a target, they path to that target, that's all.
 
The siege pack itself can certainly do with being updated, as I understand it the maker has been having a combination of internet access problems and little free time to spend on scene editing.
If Floris mod pack is still using the version I downloaded, which was recently, then many of the scenes are completely broken. Several of them I had to gut or revert because the AI just could not win the siege at all, it either got horribly stuck or just went zombie because it couldn't find an AI mesh. I've only recently finished my first bug fixing pass, over the past week I've edited every castle and city, and I'm about 90% satisfied with the fixes to do a regular play through of my own mod compilation.
Another thing to note, that siege pack is not compatible with polished landscapes, which changes many of the scene objects, so you'd see pine trees in the desert or thick forests clipping walls. That is another one of the things I fixed. Looking forward to a mostly bug free play through now..  :lol:
 
Smarmellows said:
You can find a list of all the castles/cities and what their number is in the parties txt, it has the name and number of each castle. For instance uhhun is castle 40.
If you wish to edit the scenes then you need to run M&B in edit mode, refer to the instructions on this post under "how to edit scenes" http://forums.taleworlds.com/index.php/topic,57569.0.html

Since Floris is using, at least in part, the el arte de la guerre siege pack, then you're likely running into a lot of the same problems I did. Which prompted me to edit every single castle/city in the game, reverting several back to default and editing those. If you're interested in doing this yourself be prepared for a lot work, I've spent 5-6 hours a day over the past week bug squashing in these siege scenes.

Any chance you could release your zipped textures for the sieges/scenes and put it up for download? I was about to do a mass replacement of native to floris to fix the knudarr siege etc, and really dont want to lose the new castles that work if you have a working version for Floris.
 
It would also be good to make it so every soldier doesn't end up stuck in the big wooden spikes when you fortify your position. If someone is going to spend hours tediously fixing castles, might want to take a look at that too. Though I do not envy you.
 
Sethwick said:
It would also be good to make it so every soldier doesn't end up stuck in the big wooden spikes when you fortify your position. If someone is going to spend hours tediously fixing castles, might want to take a look at that too. Though I do not envy you.
I can't guarantee that this is fixed, but Tempered released a new version of his entrenchment system that is in 2.4. You'll have more, interesting opportunities to dig in...new scenes, etc. I'm pretty sure he worked with AI pathfinding on them a bit.
 
pada said:
Any chance you could release your zipped textures for the sieges/scenes and put it up for download? I was about to do a mass replacement of native to floris to fix the knudarr siege etc, and really dont want to lose the new castles that work if you have a working version for Floris.

Er, you mean scene files, not textures I think. I've finished them all for the most part, only run into hitches on two castles in a second play through that I want to go back and tweak. The thing is they're mostly edited versions of leandrojas's secondary walls and what not so I don't think I can "release" them without his permission. Technically his are just edited versions of the vanilla scenes, so mine are just edited edits, but still, for the scenes of his I didn't revert back it's his work in making the additional walls so I'd need to send him a PM, find the version of his files I edited from, and find somewhere to post them to (never uploaded files to the repository before, anyone can do that?), so in 5 minutes I couldn't get you a download. No telling how active Leandrojas is anymore, some of the bug report posts for things I ran into were from last year.
All that said the scenes aren't 100% bug proof, I've for the most part dealt with the AI getting stuck, falling off of walls, and replaced the scenes that were just plain broken, but I've found two hitches in two castles that I need to see about fixing. The spike obstructions in front of Sungetche trap troops though it's not too game breaking, Distar castles AI mesh on the approach is still wacky despite my best efforts, the AI doesn't seem to know how to deal with the hill near where they spawn (I moved the spawn forward to mitigate this but a few still get stuck) in addition they get stuck on the way up the hill to the castle as well. There's also spikes on the inside of the castle that block troops from clearing the inner towers, spikes in general are no bueno.

I can't remember which castle Knudarr is, if it was particularly bad, will have to look at it again.
Also, I'm not using the british castles scene mod, they were pretty sure but they didn't function well, and I'm using polished landscapes so several scene items had to be deleted, just the trees inside walls and pine trees in the desert, but I don't know what affect that will have if you don't have polished.
 
Rather than assume you thought of this let me suggest that you make a copy of each village and add the fortifications saving it as village21f for example.  If fortified every time the f would load otherwise the regular would load.  No need to share AI between those.
 
Just going to run my second play through with edit mode enabled the whole time, I keep running into little spots where the Ai goes all hurr durr on me and I have to correct it on the spot. Despite my best efforts a unit here or there will get hopelessly lost in some of these city sieges, he's on the AI mesh outside the wall and just stands there, no amount of shoving him around with an AI limiter gets him going again, he's gone zombie. Best way I've found to prevent this is to just not let the AI make a mistake, you MUST put ai limiters on ALL ladders, just within the edges so the Ai doesn't slowly glide off to the side, if they fell it would be a good thing because they try again, but instead the AI has a tendency of wandering just far enough off of the ladder to turn zombie outside of the AI mesh. All walls need AI limiters along them where the AI will ever be standing, especially on Khergit and Sarranid cities where it is very easy for them to just walk right over the edge and end up stuck somewhere. Archer spawn points need to be carefully pointed wherever you place them, that is the red/orange arrow that points off of the yellow, the X arrow, the archers spawn in a line in that direction and while they're not allowed to spawn in mid air and fall they will try to occupy any space possible when they spawn, so if they're clustered up in a tower you have to make sure that that line they spawn in doesn't have room for them to spawn where you don't want them to be. For instance if the X arrow was pointed at the gaps of a tower wall where archers fire, they'll go right up and over that and hang off the side of the tower, with or without limiters. The spawn points don't listen to limiters. You also have to be careful with the spawn point for the defender, spawn point 15, the archers that spawn in reinforcement waves will just hold their ground and buffet around, often times if they buffet towards the castle wall they'll hug right up against it, not knowing how to deal with this the attacking AI will just charge straight into the other side of the wall, in addition to getting everyone stuck it's making poor use of the archers.

All in all, lotta work!
 
Been a while and I've yet to get a response from him, seems pretty inactive so I think I'll just go ahead and upload the scenes to M&B repository once I have access, all due credit is to TW and leandrojas for the scene originals and the added walls. Once I post them, my changes, as I have said, are a bug fixing pass that is not 100% bug free, (but that's better than completely broken right?), the scenes have been edited for the spawn positions, AI meshes, limiters, in some cases the number of ladders and complete roll backs to original when the original was actually better or at least not completely broken. The originals were also edited to address the single ladder choke issue that the original mod was meant for, in some cases I also completely removed the extra ladders, this is exclusive to siege tower scenes where the ladder only served to attract all Ai soldiers and bypass the much better belfry completely.
For the most part, the AI should not get stuck and completely game break, they should be able to prosecute the attack to the end, for one side or the other, there are still a few bugs I mean to address and there may yet be more I missed that I'll have to mess around with more. If you find any bugs at that point you could post them here.
Lastly, these scenes do not include the english castles mod that Floris does, just el arte de la guerra, so if you encounter bugs with those scenes then I refer you to this...
http://forums.taleworlds.com/index.php/topic,57569.0.html
... under the instructions on how to edit scenes, it's not too hard and instead of waiting for someone to release a fix for a scene it's surprisingly easy to fix it yourself, just takes patience if you plan to edit ALL of the scenes.

Link for download to follow... er, if that's also allowed? I suppose? By Floris? er.. well I guess I'll find out.

Oh, almost forgot to mention, I use Polished landscapes so the scenes were also edited for that, nothing added mind you, taken out, if you play polished you've likely seen trees clogging up town and castle walls, or pine trees in the desert, those have been removed.
 
http://www.mbrepository.com/file.php?id=2694
And there it is, hopefully few to no problems? I've fixed so far what I've run into since I finished, but have yet to play much anymore since this endeavor has exhausted my desire for M&B, will pick it up again later... phew.
 
It's been a busy time lately, and I must have missed this topic before :sad:. I haven't had much time to edit the scenes myself, unfortunately. I know how much time it takes. Therefor I'm really glad you did. And if you don't mind, I'd love to make them part of version 2.5 (since 2.4 just got released). Till that moment I'll add it as an optional download on the introduction page.

About places to upload: the mirrors I upload to are all good places, but of course the MBRepository is best :smile:. You'll have to register there. If you don't want to do that, or if it just don't work, you can always email them to me, after which I'll put them up on the MBRepository.

And about which castle/city/town is which... I made a list of that and put it in the source code of the troops, in module_troops.py (I know... a strange place to hide it, but well, that's the place I used it most). But to make things easier, here it is:

Towns:
[list type=decimal]
[*]Sargoth, Nord
[*]Tihr, Nord
[*]Veluca, Rhodok
[*]Suno, Swadia
[*]Jelkala, Rhodok
[*]Praven, Swadia
[*]Uxkhal, Swadia
[*]Reyvadin, Vaegir
[*]Khudan, Vaegir
[*]Tulga, Khergit
[*]Curaw, Vaegir
[*]Wercheg, Nord
[*]Rivacheg, Vaegir
[*]Halmar, Khergit
[*]Yalen, Rhodok
[*]Dhirim, Swadia
[*]Ichamur, Khergit
[*]Narra, Khergit
[*]Shariz, Sarranid
[*]Durquba, Sarranid
[*]Ahmerrad, Sarranid
[*]Bariyye, Sarranid
[/list]

Castles:
[list type=decimal]
[*]Culmarr Castle, Rhodok
[*]Malayurg Castle, Khergit
[*]Bulugha Castle, Vaegir
[*]Radoghir Castle, Vaegir
[*]Tehlrog Castle, Nord
[*]Tilbaut Castle, Swadia
[*]Sungetche Castle, Khergit
[*]Jeirbe Castle, Vaegir
[*]Jamiche Castle, Rhodok
[*]Alburq Castle, Nord
[*]Curin Castle, Nord
[*]Chalbek Castle, Nord
[*]Kelredan Castle, Swadia
[*]Maras Castle, Rhodok
[*]Ergellon Castle, Rhodok
[*]Almerra Castle, Rhodok
[*]Distar Castle, Khergit
[*]Ismirala Castle, Vaegir
[*]Yruma Castle, Vaegir
[*]Derchios Castle, Swadia
[*]Ibdeles Castle, Rhodok
[*]Unuzdaq Castle, Khergit
[*]Tevarin Castle, Swadia
[*]Reindi Castle, Swadia
[*]Ryibelet Castle, Swadia
[*]Senuzgda Castle, Swadia
[*]Rindyar Castle, Swadia
[*]Grunwalder Castle, Rhodok
[*]Nelag Castle, Vaegir
[*]Asugan Castle, Khergit
[*]Vyincourd Castle, Swadia
[*]Knudarr Castle, Nord
[*]Etrosq Castle, Rhodok
[*]Hrus Castle, Nord
[*]Haringoth Castle, Swadia
[*]Jelbegi Castle, Nord
[*]Dramug Castle, Vaegir
[*]Tulbuk Castle, Khergit
[*]Slezkh Castle, Vaegir
[*]Uhhun Castle, Khergit
[*]Jameyyed Castle, Sarranid
[*]Teramma Castle, Sarranid
[*]Sharwa Castle, Sarranid
[*]Durrin Castle, Sarranid
[*]Caraf Castle, Sarranid
[*]Weyyah Castle, Sarranid
[*]Samarra Castle, Sarranid
[*]Bardaq Castle, Sarranid
[/list]

Villages:
[list type=decimal]
[*]Yaragar,  Swadia
[*]Burglen,  Swadia
[*]Azgad,  Swadia
[*]Nomar,  Swadia
[*]Kulum, Nord
[*]Emirin,  Swadia
[*]Amere,  Swadia
[*]Haen, Nord
[*]Buvran, Rhodok
[*]Mechin, Nord
[*]Dusturil, Khergit
[*]Emer, Rhodok
[*]Nemeja,  Swadia
[*]Sumbuja, Vaegir
[*]Ryibelet,  Swadia
[*]Shapeshte, Vaegir
[*]Mazen, Vaegir
[*]Ulburban, Vaegir
[*]Hanun, Vaegir
[*]Uslum, Vaegir
[*]Bazeck, Vaegir
[*]Shulus, Vaegir
[*]Ilvia, Rhodok
[*]Ruldi, Rhodok
[*]Dashbigha, Khergit
[*]Pagundur, Rhodok
[*]Glunmar, Rhodok
[*]Tash Kulun, Khergit
[*]Buillin, Nord
[*]Ruvar, Nord
[*]Ambean, Nord
[*]Tosdhar,  Swadia
[*]Ruluns,  Swadia
[*]Ehlerdah,  Swadia
[*]Fearichen, Nord
[*]Jayek, Nord
[*]Ada Kulun, Khergit
[*]Ibiran,  Swadia
[*]Reveran, Rhodok
[*]Saren, Rhodok
[*]Dugan, Khergit
[*]Dirigh Aban, Khergit
[*]Zagush, Khergit
[*]Peshmi, Khergit
[*]Bulugur, Khergit
[*]Fedner, Rhodok
[*]Epeshe, Rhodok
[*]Veidar,  Swadia
[*]Tismirr, Vaegir
[*]Karindi, Vaegir
[*]Jelbegi, Nord
[*]Amashke, Khergit
[*]Balanli,  Swadia
[*]Chide,  Swadia
[*]Tadsamesh,  Swadia
[*]Fenada, Nord
[*]Ushkuru,  Swadia
[*]Vezin, Vaegir
[*]Dumar, Rhodok
[*]Tahlberl,  Swadia
[*]Aldelen, Nord
[*]Rebache, Vaegir
[*]Rduna,  Swadia
[*]Serindiar, Rhodok
[*]Iyindah,  Swadia
[*]Fisdnar, Vaegir
[*]Tebandra, Vaegir
[*]Ibdeles, Rhodok
[*]Kwynn, Nord
[*]Dirigsene, Rhodok
[*]Tshibtin,  Swadia
[*]Elberl,  Swadia
[*]Chaeza, Rhodok
[*]Ayyike, Vaegir
[*]Bhulaban, Khergit
[*]Kedelke, Khergit
[*]Rizi, Nord
[*]Sarimish, Rhodok
[*]Istiniar, Rhodok
[*]Vayejeg, Nord
[*]Odasan, Nord
[*]Yalibe,  Swadia
[*]Gisim,  Swadia
[*]Chelez, Rhodok
[*]Ismirala, Vaegir
[*]Slezkh, Vaegir
[*]Udiniad, Vaegir
[*]Tulbuk, Khergit
[*]Uhhun, Khergit
[*]Jamiche, Rhodok
[*]Ayn Assuadi, Sarranid
[*]Dhibbain, Sarranid
[*]Qalyut, Sarranid
[*]Mazigh, Sarranid
[*]Tamnuh, Sarranid
[*]Habba, Sarranid
[*]Sekhtem, Sarranid
[*]Mawiti, Sarranid
[*]Fishara, Sarranid
[*]Iqbayl, Sarranid
[*]Uzgha, Sarranid
[*]Shibal Zumr, Sarranid
[*]Mijayet, Sarranid
[*]Tazjunat, Sarranid
[*]Aab, Sarranid
[*]Hawaha, Sarranid
[*]Unriya, Sarranid
[*]Mit Nun, Sarranid
[*]Tilimsal, Sarranid
[*]Rushdigh, Sarranid
[/list]

(Now I have a nice and handy list too :mrgreen:)

[edit]
You've ninja'd me :smile:.  Thanks for the upload, I'll add it to both the submod section and the introduction page. I can understand it has exhausted you. Nevertheless: many thanks for your great work!
[/edit]
 
Awesome, hopefully there were no problems with the upload, and few to no bugs in the scenes themselves. I may get back into play testing more of the scenes soon but trying to get these scripts working has me distracted, that bodyguard and lord title setting script, python is still a bit beyond me. Ah, something else occurs to me, in a few of the scenes, such as the nord cities, Leandrojas's secondary wall acts as an almost too powerful position for archers to apply crossfire to an attacking force. I dealt with this a little bit when I adjusted positions on the scenes, I didn't want the archers to give up that position but in one case I did move one of the spawn points on a city such as this for the sake of balance. It's entirely possible for an archer heavy force to defend the city with little to no casualties, since the AI attacking pick the closest enemy to present their shields to, leaving them exposed to archer fire from every other direction. In the case of Sargoth in particular, at least in a siege on my mod, I'd dumped 200 Vaegir marksman into the city with mixed troops filling out another 150, they managed to hold off 1,500 nords taking 5 casualties, The number of reinforcement waves had the deathtoll for the nords at about 950. AI vs AI does not have this balance issue since the AI does not stack a single troop type like this, but a player who knows what they're doing will be able to exploit some of these scenes to maximum affect. It will have to be balanced to your own tastes. Hm, though maybe this isn't a problem if your mod has limited ammunition. Certain mods with ammo replenishment scripts for instance will have this balance issue, but the slaughter will only last as long as the ammo does for others. In my case ammo is abundant so I had to balance the damage of bows to compensate.
 
Hate to make so many posts but I've just noticed something that I need to address in case anyone else has noticed it. The siege fix I posted is labeled as 1.4 because that's the version of his siege mod the readme says I have, I downloaded this from his link a few weeks ago, however he released 1.5 in October of last year, the very file I downloaded. So the scenes I edited off of are 1.5, not 1.4, and the readme was not updated to reflect this. Hopefully no one was thrown off by this.
 
Back
Top Bottom