Tweak - How to Allow Accessing Inventory During a Siege

Users who are viewing this thread

TheMageLord

The Handyman Can
Knight at Arms
The lack of baggage during a siege is annoying. Short of going into every single scene and making a 20mb download just to add baggage to them all, the easiest way of modding in inventory access to sieges is to just make it work by pressing the inventory key. So this is what I did. I'll leave it to you to regulate how you use it - run back to your troops and pretend you're opening baggage before you re-arm during combat if you like, it's just nice to be able to do it at all.

The file you need to edit is mission_templates.txt. You'll need to look for mst_castle_attack_walls_belfry and mst_castle_attack_walls_ladder, and you'll be looking at the parts at the bottom of these entries (right before the next mst_ entry).

The belfry one has:
0.000000 0.000000 0.000000  0  2 73 1 20 900 1 1513209474796486666
0.100000 0.000000 0.000000  0  2 31 2 144115188075856128 1 1 1 936748722493063415
-22.000000 0.000000 0.000000  1 1106 1 216172782113783919  0
0.000000 0.000000 100000000.000000  1 1 1 936748722493063401  0
0.000000 0.000000 100000000.000000  1 1 1 936748722493063402  0
0.000000 2.000000 100000000.000000  1 1 1 936748722493063403  1 2133 2 144115188075856133 3
0.000000 0.000000 100000000.000000  1 1 1 936748722493063404  0

And the ladder one has:
0.000000 0.000000 0.000000  0  2 73 1 20 900 1 1513209474796486666
0.100000 0.000000 0.000000  0  2 31 2 144115188075856128 1 1 1 936748722493063415
-22.000000 0.000000 0.000000  1 1106 1 216172782113783919  0

The red being the line you actually need to edit - that's telling the game what to do once you push the inventory key. The way it's set now tells you that you can't access your inventory. Instead we change it to this:
-22.000000 0.000000 0.000000  1 2075 1 1  0

All you actually have to change is the 1106 to 2075 and the 216172782113783919 to 1. This tells it to trigger the key as normal (aka open inventory) when you press the inventory key.

To clarity (in case I lost someone) What you'll want to see is this for the end of the belfry script:
0.000000 0.000000 0.000000  0  2 73 1 20 900 1 1513209474796486666
0.100000 0.000000 0.000000  0  2 31 2 144115188075856128 1 1 1 936748722493063415
-22.000000 0.000000 0.000000  1 2075 1 1  0  
0.000000 0.000000 100000000.000000  1 1 1 936748722493063401  0
0.000000 0.000000 100000000.000000  1 1 1 936748722493063402  0
0.000000 2.000000 100000000.000000  1 1 1 936748722493063403  1 2133 2 144115188075856133 3
0.000000 0.000000 100000000.000000  1 1 1 936748722493063404  0
And this for the end of the ladder one:
0.000000 0.000000 0.000000  0  2 73 1 20 900 1 1513209474796486666
0.100000 0.000000 0.000000  0  2 31 2 144115188075856128 1 1 1 936748722493063415
-22.000000 0.000000 0.000000  1 2075 1 1  0

Once these changes are done, the next time you siege a castle or defend a castle pressing I will open your inventory. Not quite as elegant as baggage boxes, but much simpler. Enjoy!

Link to other tweaks.
 
Absoulutely brilliant!

I swear that I don't know anyone who has come up with more useful stuff for the masses!  :grin:

Keep up the good work!
 
Well, as soon as the module system comes along plenty of people will be contributing new 1.003 mods and tweaks.

I'm just the only nut who digs through text files and submits guides for changes before the module system is out :grin:

I'm glad everyone's enjoying them, though.
 
Oh, thank you, thank you!
This lack of options (and logic) in sieges has always annoyed me.
"Yeah, I'm going to sack a town. Bring some extra arrows and a shield, you ask? No. Why?"

Can't wait to implement this.
 
TheMageLord is ****ing awesome.

There should be an entire forum category for him.
FAQs, Requests, Tutorials, Group Readings.

Basically, a blast.
 
I wish the castles had "barrels of arrows/bolts", where you could get a new quiver full of ammo. The AI should use it, and ranged units would become deadlier in sieges. I don't want to leave my favorite tower just to loot some new ammo. It would add realism too.
Oh and it would be cool if castes had an armoury where you can pick up some of the basic weapons.
 
Were I wearing a hat right now I'd raise it to you Magelord. That's another fine little tweak! I tend to get excited whenever I see a siege battle taking place that I forget to change my equipment so I'm prepared for it. This will save me the bother of having to struggle with a jousting lance in my arm when I try and storm the castle.
 
Nice, but I'll stick to baggages.
It feels better if you are archer, and if your retreat to get more arrows is blocked by enemy, you can't just randomly get them to your hand.
Makes you need to plan your advancing.
 
That's awesome, even though I'm probably not going to use it, as I never really have any desire to access inventory during a siege.
One question, though: How the hell do you come up with this stuff? Can you actually read this gibberish? :shock:
 
wow thank you kindly sir

i looked for a baggae area so many times and finally started looting the dead for arrows.

headshots on knights only of course
 
The logic why baggage is not accessable during siege has been a mystery for devs know how long, as well as the defending troops running out of ammo and no way to restock, I mean come on, you are in a walled castle built for a siege, why on earth you don't have your storages filled with weaponry to actually last a battle?
 
Ringwraith #5 said:
That's awesome, even though I'm probably not going to use it, as I never really have any desire to access inventory during a siege.
One question, though: How the hell do you come up with this stuff? Can you actually read this gibberish? :shock:

I can understand it up to a point. I mostly use the .960 module system and .960 text files to compare to the 1.003 text files, as the meat of the .960 stuff is mostly the same as the 1.003 stuff. The line for telling the player that he couldn't access his inventory was the same, for instance, so I just had to find that line in the 1.003 mission templates for castles. Then I changed it to the one from towns (which was also the same) that let you open your inventory.
 
I Saulte you and your awesomeness sir, now my tournaments give me money, and i can access my inventory during a siege
 
Would the same apply in some manner for the party window?
It would be nice to be able to readjust my troops, upgrade them maybe, and give my companions swords instead of lances... >.>
 
Brilliant stuff!  Thanks TML! :grin:

May I humbly suggest that we gather all the actual "tweak" posts (instead of links to them) in a single post and make it sticky?  :idea:
 
I tried this tweak but didn't, got some red script error, wasn't able to open inventory.

Maybe cuz its 1.003?  The other tweaks I tried like the variable ransom value worked though.
 
Back
Top Bottom