Vokarya's Workshop: Units

Here is a new unit that I've always wanted to include: Motorized Infantry. Motorized Infantry are infantry units with trucks; unlike Mechanized Infantry, the trucks are not armored or heavily armed, so they just provide mobility rather than adding to combat strength. The result is a Strength-36 (only 2 points over Infantry) unit with Move 2 and lacking Doesn't Receive Defensive Bonuses. Motorized Infantry are classified as a Wheeled Unit, so they don't get City Garrison promotions. Like Mechanized Infantry, they do get to start with March and have an increased gold support cost.

View attachment 368468View attachment 368469

I'm putting Motorized Infantry as early as possible; they require Automatic Weapons plus Automobile. I could move them farther forward on the tech tree if that would be better.

The unit graphic for this is two Infantry figures plus a truck. I was able to use civ-specific artworks for the Infantry figures, but I can't do separate artworks for the truck without defining a completely new unit, and I don't really want to do that.

View attachment 368470
 
Looks good, but what if you play with "single unit graphic" (as I usually do)? Which unit is displayed? Truck, infantry or the whole stack? Because if it's infantry only it might be confusing, so I hope it's the truck or the whole graphic.
 
45°38'N-13°47'E;13016305 said:
Looks good, but what if you play with "single unit graphic" (as I usually do)? Which unit is displayed? Truck, infantry or the whole stack? Because if it's infantry only it might be confusing, so I hope it's the truck or the whole graphic.

I'm looking into it - so far I haven't gotten anything other than the Infantry to display with single unit graphics turned on.

EDIT: I can get the truck to display in single unit graphics mode. I'm going to have to do some work to get both the single unit graphics mode and the ethnic-specific troop arts to work. The problem is that the Civ4UnitArtStyleTypeInfos.xml file calls unit types, not art definitions. It's a jigsaw puzzle to figure out exactly what needs to connect where for this to work.
 
Instead of adding this new unit you could give +1 movement to Infantry when you research Automobile.I have seen this feature somewhere but i can't remember where and it applied to every land unit.Perhaps it was in RoM or in older RoMAND.Of course i can see that the unit you propose adds some new stuff in gameplay.
 
Hi,

quick question: do any units make use of the "bPassableRouteNeeded" flag? Like a railway gun (e.g. http://en.wikipedia.org/wiki/Schwerer_Gustav)? I didn't find that tag at all in the "CIV4UnitInfos.xml" at "https://anewdawn.svn.sourceforge.net/svnroot/anewdawn" (and I'm not at my Civ computer).

I think it's a really interesting feature!

Cheers, A.
 
Hi,

quick question: do any units make use of the "bPassableRouteNeeded" flag? Like a railway gun (e.g. http://en.wikipedia.org/wiki/Schwerer_Gustav)? I didn't find that tag at all in the "CIV4UnitInfos.xml" at "https://anewdawn.svn.sourceforge.net/svnroot/anewdawn" (and I'm not at my Civ computer).

I think it's a really interesting feature!

Cheers, A.

No, currently no unit uses that tag. It's an interesting idea, but I'm not sure how to make it work. Anyway since units/buildings/wonders are Vokarya's playground, I'll let him decide whether or not to consider adding this unit.
 
Instead of adding this new unit you could give +1 movement to Infantry when you research Automobile.I have seen this feature somewhere but i can't remember where and it applied to every land unit.Perhaps it was in RoM or in older RoMAND.Of course i can see that the unit you propose adds some new stuff in gameplay.

What I'm actually doing is developing an entire unit line based on the Mounted Infantry and Mechanized Infantry. I call it the Mobile Defense line. These are units that get 2 moves but aren't eligible for City Garrison promotions, so you could use them for field defense or garrisoning a newly-captured city, but you wouldn't want to use them for permanent city garrisons. The entire list looks like this:
  • Mounted Infantry (Classical)
  • Man-at-Arms (Medieval)
  • Dragoon (mid-Renaissance)
  • Mounted Rifleman (late Renaissance)
  • Motorized Infantry (mid-Industrial)
  • possible Halftrack Infantry (early Modern)
  • Mechanized Infantry (mid-Modern)
  • Walker Mech (Transhuman)

Only the Mounted Infantry, Mechanized Infantry, and Walker Mech are currently in AND. I have to do some finding of artwork to be able to include the others.
 
45°38'N-13°47'E;13018310 said:
No, currently no unit uses that tag. It's an interesting idea, but I'm not sure how to make it work. Anyway since units/buildings/wonders are Vokarya's playground, I'll let him decide whether or not to consider adding this unit.

It looks to me like this is implemented in the DLL, but not included in any schema or unit. I almost think it's too big of a hoop to jump through, at least for any normal unit.
 
It looks to me like this is implemented in the DLL, but not included in any schema or unit. I almost think it's too big of a hoop to jump through, at least for any normal unit.

If I remember correct that mod comp was originally made for blood and iron mod. There was railroad artillery graphics and idea was that they only move on railroads. There was some problems with implementing and I dont recall was it never actually use in mod..
 
It looks to me like this is implemented in the DLL, but not included in any schema or unit. I almost think it's too big of a hoop to jump through, at least for any normal unit.

I've probably imported that code from C2C, it's simply not being used. It's just there if/when we decide to use it :)
 
45°38'N-13°47'E;13019375 said:
I've probably imported that code from C2C, it's simply not being used. It's just there if/when we decide to use it :)

Oh yes please! I'd love to have a super expensive mega-railroad-gun available!
 
Oh yes please! I'd love to have a super expensive mega-railroad-gun available!

I'm not sure AI knows how to use it; so for the moment it will stay out of the mod. But maybe in the future... :)
 
According to civilopedia the Spy-Agent-Spec.Agent-Hacker line is broken.
Is that intentional?

I would prefer it to NOT be broken. I am very fuzzy on why it is broken. I believe there might have been a problem with allowing Spies to upgrade to Agents, or maybe it was only with the Special Agent/Top Secret Agent because those are National Units with a max limit, so Auto-Upgrade doesn't work well with those. I think a few versions down the road once we have a lot more bugs squashed, we can try restoring that line and see what happens.
 
Something else for the next revision: I'm going to take Can Explore Rival Territory off the Fluyt. This ability seems really out of place, because the Fluyt is one of the ships in the general transport line. No other ship in that line has this ability, and I don't think any of them should have it. This ability should be saved for the Caravel-type ships, and be the unique shtick of the Portuguese Carrack.
 
I don't know if it is the proper thread to post for something bizarre that i encounetered:
I had a modern carrier with 2 F-35s in interception mode on the enemy's coast and it was attacked (successfully) by enemy gunships:mad:.How gunships can attack successfully a carrier that is being defended by jets?The gunships should have no chances even to survive but they managed to destroy my carrier.:cry:My mistake is that i left my carrier without escort of other ships but by normal means the F-35s should have intercepted the gunships.
Another question i have is that the message said that my carrier drowned-not sank.Was it sunk because of heavy damage or something else?
 
I don't know if it is the proper thread to post for something bizarre that i encounetered:
I had a modern carrier with 2 F-35s in interception mode on the enemy's coast and it was attacked (successfully) by enemy gunships:mad:.How gunships can attack successfully a carrier that is being defended by jets?The gunships should have no chances even to survive but they managed to destroy my carrier.:cry:My mistake is that i left my carrier without escort of other ships but by normal means the F-35s should have intercepted the gunships.
Another question i have is that the message said that my carrier drowned-not sank.Was it sunk because of heavy damage or something else?

Kinda strange that aircraft can intercept other aircraft but not helicopter units.
They're both air units so why not?


Anyway, the "Drowned" bit is strange. It came up I believe because you lost your fighter jets when the carrier was sunk, but the text says your carrier 'drowned'. The same thing happens with transports. You could have spies on a caravel or galley and if it gets killed by another boat it says the caravel/galley drowned instead of the spy drowned :lol:

Ships can drown? I never knew! :crazyeye:
 
Never knew about the problem with gunships, I'll have a look. Also that problem about drowning is there since a while now, I know which part of the code is involved, but at the moment I haven't found a solution. Also I'm looking at that part of the code because I think it's the one involved in surviving sinking.
 
45°38'N-13°47'E;13039366 said:
Never knew about the problem with gunships, I'll have a look.

The gunship issue is probably because they are DOMAIN_LAND, so they're treated like any other land unit for interception. They have <bCanMoveAllTerrain> set to 1 so they can enter Coast squares and <TerrainImpassables> for TERRAIN_OCEAN so they can't cross entire oceans. I couldn't find it in the source files myself where interception happens, but I guess it applies to any unit that is DOMAIN_AIR or DOMAIN_IMMOBILE (which is only used for ICBM's).
 
Motorized Infantry needs to be tweaked just a bit - Automobile is actually redundant as it comes before Automatic Weapons. Since Infantry upgrades to Motorized Infantry (although you can still build Infantry up until Manufacturing and Modern Infantry appear), I don't want them both appearing at the same tech. I am going to move Motorized Infantry to Automatic Weapons + Armored Vehicles. While the vehicles that Motorized Infantry uses technically aren't armored, I think it works better.
 
Top Bottom