Could you tell us how you added units like that into the game?
Somehow easier than i expected it to be.
Under the category "ebps" find the building you want, and clone it (if you want the building and its new contents to override the current building setup, clone it with the exact same name). In the building, find spawner_ext and go to spawn_items. If you want to replace an item, go to the spawn item that you want replaced, and where "squad" is, select the arrow at the far right of the squad/unit name and then select what you want to replace it. If you want to add a new unit altogether, then right click "spawn_items", select "add" and select "spawn_item". Dont forget to assign it a location in the building - "ui position"' with 11 being the top left of the building UI slot and 21 is row 2 column 1. Try not to have units occupy the same slot, and assigning a unit "-1" removes it from the Ui (but the building thinks it can still build it, so i would suggest removing the unit by replacing the spawn item slot with null in order to fully remove a unit - and i mean this that when you assign a unit the -1 slot, the unit still shows up in the builder unit's preview of the set building's units when you hover over it in the build menu, but you cant actually build the unit).
BUT... you need to make sure that the unit achieves the requirements that are set once they are moved to a building. Under "sbps" find the unit you are trying to add, and go to "squad_requirement_ext" and "require_player_upgrade". If you want the unit to simply be available once the tier is built, then set the requirement the current requirement to false. If you want to do it the right way, then set the requirement to activate the unit once the unit's building is built, (which should be set to true, them) by replacing the value of "upgrade_name".
Save, and build the mod. Go on CoH2 and test to see if the unit is in the building you want it to be in, and that you are able to build it straight away (i noticed a problem when i replaced the Su-76 with the T-70 when i forget to adjust the requirements
). Hopefully that is an acceptable way to add units.
Janne: can you direct me to the location of where transport vehicles are set to spawn with infantry inside them? I tried to make the 250 halftrack in Ostheer T2, and i thought it would be empty (because the MP version was already drastically cheaper than Mechanized Pzgrenadier callin), except it still spawned with panzergrenadiers inside it...