Little Cheat Mod - More starting units

Mynex

Warlord
Joined
Sep 30, 2010
Messages
287
A little cheat mod I made to start digging into the modding aspect of CivVI.

Gives you 3 Settlers, Warriors, and Builders and 5 Scouts (that's on top of the normal starting units you get)

Works for all player civs.
 

Attachments

  • MynexMoreStartingUnits.zip
    1.3 KB · Views: 1,412
Do you know how to restrict this new amount of starting units to just the human player or a particular civ?

Thanks for the mod, btw.
 
Looking at the schema there is this line:

"AiOnly" BOOLEAN NOT NULL CHECK (AiOnly IN (0,1)) DEFAULT 0,

Testing needs to be done to check if AiOnly=0 applies only to the player.
 
Wotan321 - The way it is now, the AI's shouldn't be getting it, but as BomberEscort noted, there is an AiOnly check... Although I didn't play through long enough to run into/see if any other civs had the bonuses.

As to restricting it to a specific civ, I was trying to do that initially when I hit upon this solution. IF it actually restricts to players only, then there's no need to restrict it to a specific civ.

If it doesn't, or can't be restricted, then I'm still poking into the guts of things... I _think_ there's a way to ensure that the AI players don't get it, so I'll go look and see. :)
 
Let us know what you learn, I am eager to mod this game but am unfamiliar with the Civ V way of doing it.
 
Still digging into it.

The way it looks now - I'm probably going to make a new leader trait that assigns the extra units at game start (if I can) and then people can change the leader name to whatever they want for their preferred civ.

At least I hope that will work. :s
 
Thank you for this mod. I changed it so I get extra scout and slinger from the start (so does AI). So now I can manage any unlucky start.
 
Let us know what you learn, I am eager to mod this game but am unfamiliar with the Civ V way of doing it.
see era.xml line 36. this would help you

<MajorStartingUnits>
<Row Era="ERA_ANCIENT" Unit="UNIT_SETTLER"/>
<Row Era="ERA_ANCIENT" Unit="UNIT_WARRIOR" NotStartTile="true"/>
<Row Era="ERA_ANCIENT" Unit="UNIT_SETTLER" AiOnly="true" MinDifficulty="DIFFICULTY_EMPEROR" DifficultyDelta="0.5"/>
<Row Era="ERA_ANCIENT" Unit="UNIT_WARRIOR" AiOnly="true" MinDifficulty="DIFFICULTY_KING" DifficultyDelta="1" NotStartTile="true"/>
<Row Era="ERA_ANCIENT" Unit="UNIT_BUILDER" AiOnly="true" MinDifficulty="DIFFICULTY_KING" DifficultyDelta="0.5" OnDistrictCreated="true"/>
 
"AI and HUMAN both get units when AiOnly=0"

So what would be the code for Human only?
Your help is very appreciated. Thank-you.
 
"AI and HUMAN both get units when AiOnly=0"

So what would be the code for Human only?
Your help is very appreciated. Thank-you.
there is no code for it to apply to only the player yet, when we get access to the dll source codes, someone will most likely find a way to make a playeronly hook for that
 
I think something like this should do it:
<GameInfo>
<StartEras>
<Update>
<Where EraType="ERA_ANCIENT"/>
<Set Gold="500"/>
</Update>
</StartEras>
</GameInfo>
 
  1. Unzip the mod
  2. Open the file called RASL_GameSet-Up.xml which is located right in the root directory of the mod
  3. instrructions on how to set data in the tables called <RASL_Units>, <RASL_Yields>, <RASL_CivicsStatus>, <RASL_TechnologiesStatus> is included in the RASL_GameSet-Up.xml file. You make your changes to these tables directly in the file.
  4. Each of the tables has at least one functional example of how to make the mod add stuff at game-start, usually directed to only apply to CIVILIZATION_ROME when the human selects Trajan/Rome, and the human player starts the game in the Ancient Era.
  5. there are also commented-out example rows of how to add stuff to each table.
  6. the lua code implements all the data you state in the RASL_GameSet-Up.xml file
  7. make no changes in either the lua file or the sql file included in the mod.

I originally created the mod to assist mod-makers in testing conditions of their mods, but then decided as a general rule to not widely circulate it since it seemed to step on the toes of other mods being made by other modders.

I also originally intended to add resource placements to the abilities, but given some of the lacking ability in lua that still exists, I chose to place that on hold. This was the other main reason I have not widely released the mod.
 

Attachments

  • ReallyAdvancedSetupLite.zip
    14.4 KB · Views: 383
Top Bottom