Archonsod said:
Most people consider a byte 8 bits these days. Probably because there hasn't been a CPU using the old 4 bit model for about a decade
Mydienon said:
And regardless, what is the use of storing the value 24 in 3 Bytes?
The 24 allows you to use 3 8 - bit bytes (or 6 4-bit ones) to record the troops at the castle. If you had (for example) 27, then you'd be tying up a byte without using the full value, if you see what I mean.
Okay; your initial statement of 24 = 5 x 4 was where I was confused.
Archonsod said:
Binary ain't necessarily powers of 2, not when talking PC's anyway. 24 = 5 x 4, or 3 Bytes.
Also, I was confused about storing the
value 24 in 3 Bytes. But you're not talking about storing 24 as a value--you're talking about storing 24 bits. Which makes a little more sense, and I see now what you're talking about. Though I would've expected an implementation using pointers instead of bits...
------
Anyway, I haven't had a lot of time to play lately--was out of town for more than a week--but tonight I was able to get back into the game. Spent my time playing instead of testing, though I hope to do some unit comparisons and complete a table of unit information sometime soon.
------
Sturmspawn, your Nun plan sounds fine, but I want to remind newbie readers that the Nun only receives "more skill points" due to her intelligence. All characters have exactly 11 + Level + INT skill points to distribute. Similarly, all characters have exactly 40 + STR/2 + Ironforge * 2 health (rounded down), and all characters can lead exactly 5 + CHA + Leadership * 5 soldiers. No character has any innate bonus that makes them better or worse than any other character--the difference between characters is their starting equipment (which will likely change when you find or buy something better) and the skill points, attribute points, and weapon proficiencies that are predefined (all characters start with 12 skill points and 26 attribute points set, and a varying amount of weapon proficiencies set, which can't be lowered).
Although you are asked to choose a character background, Mount & Blade is not a class-based game. All attributes, skills, and weapon proficiencies can be learned by all characters. Your character background gives you a "push" in some direction, but once you start playing you're free to build your character however you like. However, you are limited by "time and experience"--it is unlikely that you'll play the character long enough to achieve level 90+, so having a character with all attributes at 30 and all skills at 10, while theoretically possible, is practically possible only if you edit your character's stats.
--Mydienon
EDIT:
I've been digging around in the module_troops.py and comparing it with in-game notes. So far, it looks like ALL units of a specific type in any game have identical stats--the same attributes, skills, and weapon proficiencies. Apparently, all units are created when a game is created, and only equipment is randomly generated for each specific soldier. Two Dark Knights will always have the same stats, but their equipment may be different.
When a new game is created, all of the units are generated again. So in one game all of the Swadian Knights might be extremely agile, and in another game all of the Swadian Knights might be extremely charismatic. This means there's definite advantage to finding out the stats of the different troop types every time you play a game. It make a big difference in how you build your party, which units you choose to use, and how they work together.
So far, I've discovered that the formula for generating attributes and skills in the module_troops.py documentation is incorrect (the documentation is probably for an earlier version). However, the true formula is still eluding me--I've discovered a formula that works for almost all troops, but not one that works for all troops. I'm collecting data intermittently while playing the game. This isn't a hardcore test going on, so getting results will take awhile. But, when I finish, I'll put my information in the forums.