What does <bMechanized> do?

  • Thread starter Thread starter Rabbit, White
  • Start date Start date
R

Rabbit, White

Guest
Can't find this info anywhere. Any ideas? Also, how come machine gunners are mechanized?
 
There's two thoeries I have: It either has to do with movement, or combat. I'm leaning towards movement, however. I'm not sure what they do, though.
 
As far as I can tell it doesn't do anything.
 
Guess it'll remain a mystery till the SDK comes out, and maybe even then. :D
 
I have no idea as to what it does, but it could be used to define a double-unit type. For example a mechanized unit fighting infantry would be considered an armored unit, while a mechanized unit fighting tanks would be considered an infantry (gunpowder) unit. Just a thought, for modders.
 
OK, now that the SDK is out, any answers? I guess if it wasn't exposed to Python, then it sounds pretty useless.
 
Padmewan said:
OK, now that the SDK is out, any answers? I guess if it wasn't exposed to Python, then it sounds pretty useless.

It is read by CvCoreGameDLL and passed to python through the isMechUnit() function. It doesn't look like the vanilla game ever uses the attribute for anything either in the CvCore or in python.
 
The C++ Code in the SDK doesn't use it, but it exposes a function to Python called isMechUnit(), which is currently not used.

Edit: Kael was faster.

Matze
 
Probably an element that didn't make the final cut.

What this means for modders is a free boolean tag to use for whatever purpose they want through python, without using the SDK to modify schemas.
 
Shqype said:
What this means for modders is a free boolean tag to use for whatever purpose they want through python, without using the SDK to modify schemas.
That's the answer I was looking for :)
 
Padmewan said:
That's the answer I was looking for :)
You could definitely use something like this for your SMAC mod: <bMechanized> can actually be a pseudonym for <bIsVirulentDestructiveUnit> or something like that :lol:
 
Shqype said:
You could definitely use something like this for your SMAC mod: <bMechanized> can actually be a pseudonym for <bIsVirulentDestructiveUnit> or something like that :lol:
I'm using it the 40k mod for... mechanised units :mischief:
 
The ideal would be a promotion that was useful against bMechanized. I believe for now bonuses are vs. specific units or vs. unit classes. Since bMechanized is not exposed to XML I guess this would need SDK work. Great Apple, how are you using bMechanized? Did you mod Python to handle it, and is that transparent to the user (which is one reason I like to stick to XML when possible)?
 
Padmewan said:
Did you mod Python to handle it, and is that transparent to the user (which is one reason I like to stick to XML when possible)?
Yeah I used it in python. Python is only really transparent if you know python. If you don't then it's semi-transparent (translucent...).
 
I meant, in terms of "transparency," that tooltips and all that would automatically appear, e.g. a custom promotion that gives you +25% versus "mechanical." I suspect the answer to all of this would be "no" and that the tooltips would need to be customized in Python as well. And also such a bonus be made understandable to the AI.
 
Nope, I think there is a way you can change tooltips using python - I think 12monkeys did it for his plot list enhancements. The AI wouldn't understand it though without SDK work.
 
The AI doesn't need to understand tooltips ...
 
Shqype said:
The AI doesn't need to understand tooltips ...
Wait, what now?! I thought that's how the AI knows how to do stuff :confused: :D

On a serious note, I think what TGA meant was that even if you implement this in python there's still a way to create tooltips for it but the AI will not really understand it. I.e. the reason not to implement this in python has nothing to do with tooltips and/or "transparency" for user but rather with making the AI use it properly.
 
:lol: Oops, sorry for misunderstanding.
 
Shqype said:
The AI doesn't need to understand tooltips ...

Rabbit said:
Wait, what now?! I thought that's how the AI knows how to do stuff :confused: :D

lmao :lol: You guys are hilarious.

As for the BMechanized thing... I thought it was just to determine whether or not that unit was mechanical. Like the Mechanized Infantry. Are there not any attack bonuses against mechs and such? Maybe I am wrong as I really haven't looked into it. It's just a thought. ;)
 
Back
Top Bottom