[MOD] SD StackXP

Stone-D

Chieftain
Joined
Dec 4, 2005
Messages
68
(Also posted on Apolyton)

I found myself micromanaging unit stacks. I'd monitor who's got the least experience and try to focus on that unit in combat. Sometimes I would forfeit a higher level unit's combat round so that he wouldn't get too far ahead with XP.

This mod does away with that. At the end of a combat round, one point of the winner's experience level is given to a unit in the stack with the lowest experience.

Note that some battles will be a bit harder as a result of this.


History
=-=-=-=

v1.00 :
Initial Release.

v1.10 :
Requires sdToolKit 1.20+
Implemented version control.
Distributes all of a unit's NEW experience evenly throughout the lesser members of the battlegroup.
Siege weapons have been excluded.

v1.20 :
BugFix : Occasional loss of 1 XP.
Some minor cleanups and optimizations.
 

Attachments

  • SD-StackXP.v1.00.zip
    4.7 KB · Views: 234
  • SD-StackXP.v1.10.zip
    8.2 KB · Views: 209
  • SD-StackXP.v1.20.zip
    8.1 KB · Views: 246
Makes sense. I hate how if I just throw a stack of troops at another stack of troops my most experience soldiers will fight first (and most likely die), which means I don't have those elite troops around when I need them.
 
Mylon said:
Makes sense. I hate how if I just throw a stack of troops at another stack of troops my most experience soldiers will fight first (and most likely die), which means I don't have those elite troops around when I need them.

That's why I don't use stack attack but manage my units individually. :p
 
Mylon: Yup. I'm debugging a newer version that stores the pre-battle XP so I can get the difference, which is then distributed.

Exel: Guess what drove me to make this! :p

Remember the manual. Stack attack is for the player's convenience... it doesn't modify how the combat calculations are done at all. The micromanagement kinda removed that convenience for me.
 
I think he is complaining more about the fact that stack attack attacks stupidly, throwing away the best units in "Picketts Charge" rather then softening up with the weaker ones first. Ofcorse on the other hand in an easy battle you might want to veterans to desisivly crush your oponent rather then risk the loss of the green troops. Theirs realy a lot to consider. What we need is two kinds of stack attack Weak>Strong and Strong>Weak.
 
I don't see anything in the code that wouldn't make it compatible. Houman, since I'm at work, could you test it and let me know if it isn't. If it isn't then I'm take the responsibility and update it.
 
Thanks Lopez, I will test it. :) I am just downloading the updates of all components we have in our mod before we start integrating. So I thought I ask first. hehe ;)
 
Yes, it looks like it is needed since it is used in sdStackXP.py
 
@Lopez,

Yeah you are right, it is needed in sdStackXP.py. However why is it also in the Eventmanager:

import sdToolKit
sdEcho = sdToolKit.sdEcho

And it is not used there at all? Is it not enough to import it only within sdStackXP.py?

Thanks
Houman
 
You are correct, it is not needed in the event manager from what I can tell. So you should be able to remove it from there...
 
Top Bottom