Author Topic: [WB, SP, Code] Prebattle Orders Kit v0.8 Beta (Open Source)  (Read 17265 times)

0 Members and 1 Guest are viewing this topic.

Caba`drin

  • Dovie'andi se tovya sagain
  • Forum Legend
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • WBM&BWF&SNWVC
[WB, SP, Code] Prebattle Orders Kit v0.8 Beta (Open Source)
« on: October 04, 2010, 12:43:19 AM »
The goal here is to cater to those who want an added level of strategy in the planning of their battle engagements--or, more pointedly, to get beyond the repetitive keystrokes of giving the same orders at the start of each battle. It is also the first step in an attempt to respond to the various comments and suggestions around this community to implement pre-battle setup and options (cf. calls for a "deployment phase").

The Prebattle Orders kit adds to the pre-battle menu options that the player is presented with during any field encounter with an enemy party. At the most basic, with 1 point of Tactics skill in the party, there are two additional options: rather than just "Charge the Enemy" one can "Take the Field" and your party begins holding position, or "Lead your Troops" and your party begins following you. Add another point of Tactics skill to the party and another menu item appears: "Plan your battle with the enemy".

When planning your battle with the enemy, a presentation similar to the "heads-up" battle menu appears, allowing you to customize 4 orders (eventually to be scaled by tactics skill) to each of your divisions. Movement orders can be repeated up to 4 times. Across the bottom of the presentation are options to Reassess--return to the encounter menu; Scrap all--clear all orders; Prepare Orders--preview the order set up on the right panel; and Dispatch Orders--store the orders and return to the encounter menu.

Orders to specify to each division which Weapon Type to use, whether or not to use shields, and for ranged units, whether to avoid melee or not (skirmish) have been added. In the display where orders are selected, there are now two "pages"--one for forming up, and the second to outline which weapons to use.

Screenshots Galore
(click to show/hide)
(click to show/hide)
(click to show/hide)
(click to show/hide)
(click to show/hide)
(click to show/hide)
(click to show/hide)
Version 0.8 Beta --
(click to show/hide)
(click to show/hide)
(click to show/hide)

Code
Considering its size, I opted to not place the code in spoilers here. Instead it can be downloaded from the M&B Repository: Repository kit download.

The following are modified:
(click to show/hide)

As always, comments, questions, criticisms, suggestions are more than welcome.

Checklist to Version 1
  • Bug testing and squarshing
  • Wrap for installation via sphere's ModMerger
  • Move to M&B Repository
  • Allow movement orders to be repeated (Stand Closer x2 or Move Forward x2)
  • Inclusion of my Weapon Type and Skirmish Mode orders
  • Cleaning up the presentation
  • Scale the number of orders available to Tactics skill

(click to show/hide)
« Last Edit: December 07, 2010, 12:24:35 AM by Caba`drin »



Caba`drin

  • Dovie'andi se tovya sagain
  • Forum Legend
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • WBM&BWF&SNWVC
PreBattle Orders & Deployment Kit Beta (merge)
« Reply #1 on: October 04, 2010, 12:44:00 AM »

Merged with Prebattle Deployment Kit: PreBattle Orders & Deployment Kit

Compiled 'mini-mod' version: Pre-Battle Orders & Deployment MOD
« Last Edit: October 25, 2010, 04:18:03 AM by Caba`drin »



Ashmond

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: [WB, SP, Code] Prebattle Orders Kit v0.5 Beta (Open Source)
« Reply #2 on: October 04, 2010, 04:28:14 AM »
Congratulations on such a fine accomplishment!  I've been waiting for this since I first played Warband. 

Can't wait to take this for a spin and, also, looking forward to the weapon type inclusion.  For the tactical scaling, at what level are you considering as the "full feature" requirement?

GetAssista

  • Baron
  • *
  • TLD corovan robber
    • View Profile
  • Faction: Neutral
  • M&BWF&SWB
Re: [WB, SP, Code] Prebattle Orders Kit v0.5 Beta (Open Source)
« Reply #3 on: October 04, 2010, 08:03:46 AM »
Good stuff, thank you for sharing!

I'll certainly look into using it. And improving too :)

Lumos

  • Probably Not a Help Desk
  • Moderator
  • *
  • Mens INsana in corpore sano
    • Steam - lumosx
    • YouTube - LumosX
    • View Profile
  • Faction: Nord
  • WBWF&SNWM&BVC
Re: [WB, SP, Code] Prebattle Orders Kit v0.5 Beta (Open Source)
« Reply #4 on: October 04, 2010, 07:01:56 PM »
:shock:
I thought of creating something like a Heroes (or Medieval II: total War) tactics screen, but I might needn't. This looks awesome!

Idibil

  • External Developer
  • *
    • View Profile
    • Nova Regula
  • Faction: Nord
  • MP nick: CeltíberoIdibil
Re: [WB, SP, Code] Prebattle Orders Kit v0.5 Beta (Open Source)
« Reply #5 on: October 04, 2010, 08:18:40 PM »
wow, it look awesome. Congrats Caba`drin

CounterPoint

  • Master Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWBWF&S
Re: [WB, SP, Code] Prebattle Orders Kit v0.5 Beta (Open Source)
« Reply #6 on: October 06, 2010, 01:28:01 AM »
Nice work :D

Ashmond

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: [WB, SP, Code] Prebattle Orders Kit v0.5 Beta (Open Source)
« Reply #7 on: October 06, 2010, 11:20:25 PM »
Stitched it, tried it, loved it, and no glitches that I noticed after ten battles.

ripple

  • Knight
  • *
    • View Profile
  • Faction: Neutral
Re: [WB, SP, Code] Prebattle Orders Kit v0.5 Beta (Open Source)
« Reply #8 on: October 07, 2010, 08:03:03 AM »
Wow, I managed to add it without screwing up (too many times). Seems to work good, will test some more. Great job and thanks.
« Last Edit: October 07, 2010, 08:38:38 AM by ripple »

Kovas

  • Master Knight
  • *
  • Green Chaos
    • View Profile
  • Faction: Vaegir
  • MP nick: GreenWolf
  • M&BWBWF&S
Re: [WB, SP, Code] Prebattle Orders Kit v0.5 Beta (Open Source)
« Reply #9 on: October 07, 2010, 07:06:17 PM »
Caba`drin, thanks a lot for your codes. :)
« Last Edit: October 07, 2010, 07:27:45 PM by Kovas »

Ashmond

  • Sergeant at Arms
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: [WB, SP, Code] Prebattle Orders Kit v0.5 Beta (Open Source)
« Reply #10 on: October 07, 2010, 11:19:47 PM »
Vlejundo, you have a "1" where a "0" should be just after the first chunk.  Make sure you got all of the "encounter_*" tuples.

(click to show/hide)

Caba`drin

  • Dovie'andi se tovya sagain
  • Forum Legend
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • WBM&BWF&SNWVC
Re: [WB, SP, Code] Prebattle Orders Kit v0.5 Beta (Open Source)
« Reply #11 on: October 08, 2010, 12:18:25 AM »
@ Vlejundo: Actually, from what you describe, it would appear that there is a mistake in module_presentations.py because the menu option is not able to find the presentation. Check to make sure you added it and did not misplace any ) ] , etc and if you stuck it at the bottom on of the module_presentations file that you placed it within the final ]

Ashmond is correct, too however, but I don't think that is what is causing the errors you are seeing.

@All: thank you for the kind words. I'm glad it is working for you and proving enjoyable. Do let me know if there's something that could be improved. As for bugs I am aware of, there is one: if you have orders stored, but you choose "Take the field" or "Lead your troops", the next time you go to the order screen, the first order will be erased. This will be fixed in the next upload.

@Ashmond, et al.: I haven't really decided how it would be best to scale orders via tactics, but it seems that it would make sense to have the complexity of the orders a player can give based on their skill level. When I add my weapon type and skirmish orders, they will likely need to go another "page" and I'll move the native weapon orders to that page, too. Perhaps that page will need another tactics bump to get to. Further, once I work out how to record that you want infantry to Stand closer x3 and then Step forward x2, perhaps the ability to add that multiplier will require a tactics bump, too. Another alternative would be to have a static number of orders that one could give, depending on tactics, and if you try to give too many orders then those get reset to "None"...I suppose it is rather clear I haven't come to much of a consensus on tactics scaling, other than that may be needed to balance the feature and fit it into the rest of the game.
« Last Edit: October 08, 2010, 12:21:01 AM by Caba`drin »



leandrojas_

  • Squire
  • *
  • Hablo español...hablenme en español...
    • View Profile
  • Faction: Swadian
Re: [WB, SP, Code] Prebattle Orders Kit v0.5 Beta (Open Source)
« Reply #12 on: October 09, 2010, 09:21:39 AM »
Wow!
Great!
I have two questions:
You think that is compatible with the rank form by motomataru?
Have you thought about making your own form ranks?
I think you would do a great job.

Anyway all your contributions are great!
Please continue!
This is Great! (Again)
[SP, Add-on, OP, WB 1.134, ] Towers, walls and ladders. V1.5.2:
http://forums.taleworlds.com/index.php?topic=132920.msg3202250#msg3202250

[SP - Add on - MAP]Mundus Magnus http://forums.taleworlds.com/index.php/topic,243233.0.html


Caba`drin

  • Dovie'andi se tovya sagain
  • Forum Legend
  • *
  • It's time to toss the dice.
    • View Profile
  • Faction: Nord
  • MP nick: Caba_drin
  • WBM&BWF&SNWVC
Re: [WB, SP, Code] Prebattle Orders Kit v0.5 Beta (Open Source)
« Reply #13 on: October 15, 2010, 07:17:59 PM »
Wow!
Great!
I have two questions:
You think that is compatible with the rank form by motomataru?
Have you thought about making your own form ranks?
I think you would do a great job.

Anyway all your contributions are great!
Please continue!
This is Great! (Again)

At the moment, this shouldn't be incompatible with motomataru's formation kit, but it isn't set up with any of the formations used in that kit. So, you could use this to get your troops somewhat positioned and then use motomataru's commands to get them into full formation once in the mission.

From the onset, I've hoped to have a version that directly integrates motomataru's formations...but that may be a ways off yet.
Similarly, I'll likely end up packaging my various orders/weapon use tweaks into a single pack, and this prebattle orders and deployment into another pack with both compatible with one another and (hopefully) with motomataru's formations; that is the goal at least.

As for "my own" formation kit, I'm not sure if I have the interest in "re-making" the wheel so to speak. I've done some tinkering with motomataru's kit and have been in minimal contact with him over some possible additions that I'm working on, but I'd much rather augment that work than create some parallel project.



Abhuva

  • Knight at Arms
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: [WB, SP, Code] Prebattle Orders Kit v0.55 Beta (Open Source)
« Reply #14 on: October 20, 2010, 08:17:33 PM »
 :oops: i seem to have problems getting this to work.
I followed closely the instructions, checked for all normal errors like closing brackets etc, but i keep getting a weird compiler error
(click to show/hide)

After trying to hunt this down (and find my mistake cause others reported it works fine for them) i recognized that as soon as i delete the whole block from module_scripts.py the whole thing compiles without those errors (it wont work but those strange error is gone).
I checked then the spelling / brackets in module_scripts, but cant find anything wrong there.

Can anyone help me to understand what i do wrong here?

Btw, i also installed the Prebattle_deployment kit and this has worked pretty well without a single error.

Edit: I tried it now with the combined Orders & Deployment kit and gets the same compiling error... too bad, i was really hoping to get it solved =(
« Last Edit: October 20, 2010, 10:47:18 PM by Abhuva »