Author Topic: Tweak - How to Allow Accessing Inventory During a Siege  (Read 14970 times)

0 Members and 1 Guest are viewing this topic.

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Tweak - How to Allow Accessing Inventory During a Siege
« on: October 01, 2008, 06:42:45 AM »
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:
Quote
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:
Quote
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:
Quote
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:
Quote
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.
« Last Edit: October 04, 2008, 10:36:56 PM by TheMageLord »
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

Wraithcat

  • Sergeant
  • *
    • View Profile
  • Faction: Rhodok
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #1 on: October 01, 2008, 06:50:58 AM »
Absoulutely brilliant!

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

Keep up the good work!

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #2 on: October 01, 2008, 07:00:57 AM »
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 :D

I'm glad everyone's enjoying them, though.
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

Zandman

  • Sergeant at Arms
  • *
    • View Profile
    • Zandmod I
  • Faction: Vaegir
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #3 on: October 01, 2008, 07:48:47 AM »
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.
(download HERE! )

applepiepod

  • Regular
  • *
    • View Profile
  • Faction: Neutral
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #4 on: October 01, 2008, 07:52:08 AM »
TheMageLord is ******** awesome.

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

Basically, a blast.
I do not care for America.

Tyfedo

  • Sergeant
  • *
  • General Moose, at your service
    • View Profile
  • Faction: Nord
  • WB
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #5 on: October 01, 2008, 09:27:29 AM »
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.

Collie

  • Sergeant
  • *
  • A Chap fights with his wits, not his pointy sticks
    • View Profile
  • Faction: Neutral
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #6 on: October 01, 2008, 01:02:16 PM »
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.
What a fantastic sport this is: hacking off limbs with my sharpened axe before a spot of high-tea with my fellow lords and ladies down the country club. Splendid!

Lex Looter

  • Veteran
  • *
    • View Profile
  • Faction: Neutral
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #7 on: October 01, 2008, 01:21:13 PM »
I *WAS* wearing a hat but now it's in the other side of the room. With both my socks inside it.
« Last Edit: October 01, 2008, 01:37:36 PM by Lex Looter »

Pii100

  • Squire
  • *
    • View Profile
  • Faction: Vaegir
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #8 on: October 01, 2008, 02:12:17 PM »
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.

Ringwraith #5

  • Grandmaster Knight
  • *
  • The Rigid Designator
    • View Profile
  • Faction: Neutral
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #9 on: October 01, 2008, 03:42:14 PM »
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:

HvyPetals

  • Recruit
  • *
  • Self Control is the chief element in Self Respect
    • View Profile
  • Faction: Vaegir
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #10 on: October 01, 2008, 04:51:47 PM »
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

Shire

  • Recruit
  • *
    • View Profile
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #11 on: October 01, 2008, 06:47:20 PM »
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?

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #12 on: October 01, 2008, 06:54:42 PM »
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 shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

SPD_Phoenix

  • Master Knight
  • *
    • View Profile
  • Faction: Neutral
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #13 on: October 01, 2008, 07:47:53 PM »
This is probably the best tweak.

Now, I will have all the arrows and bolts I need.   :P

munkibowl

  • Veteran
  • *
    • View Profile
  • Faction: Neutral
Re: Tweak - How to Allow Accessing Inventory During a Siege
« Reply #14 on: October 01, 2008, 09:05:19 PM »
you're a good man, Charlie Brown