[Question] Getting a specific feature on a custom race

Hi all, 

Very new to modding. I created my own race, and I have an insistent tendency to keep refreshing my map until I get the +3 to manufacturing planet feature surrounded by a decent amount of tiles. Naturally, this takes a very long time to get it right, and I find myself spending a large amount of time refreshing maps rather than getting to play. Given that the game naturally sets specific types of planets for races, I am hoping that there's a way to be a bit more specific as to what I'd like to be on my starter planet? 

Idealistically, I'd like for the +3 to manufacturing to be surrounded by tiles I can use (hate it when it's by itself or like 1-2 other tiles), but I'd settle for just the +3 if it's not possible.

Please let me know what to do or if there is something already out there I can refer to!

9,573 views 8 replies
Reply #1 Top

When you say, "+3 manufacturing planet feature", are you reffering to the planetary traits such as: (Serene World, Shielded World, Low Gravity World, etc)?

Reply #2 Top

I mean the planet features such as cataract, which gives +3 to manufacturing on current tile, and +1 to research on adjacent tiles. 

Reply #3 Top

Unfortunately I can't help with that. I believe the Trade Resources are randomly generated and can't be modded to be placed on a "pre-specified" planet, at least to my knowledge. Someone more knowledgeable than myself might know a way to do it, but as far as I know, it can't be done.  But one thing that might help you get more manufacturing power to your homeworld is to mod your starting planets by adding a planetary trait to your homeworld. The Active Core trait, gives you a +50% Manufacturing bonus to the entire planet.

Reply #4 Top

You can mod  mod it so a planet gets production points, which may be better for you.

 

For example I created a planetary system which is dying (some man made disaster and they have destroyed their planets), but their planets were once very rich in resources.

So I created a planet type called "Dying World", which is a class 8 or under (usually its like a 5 down to a 2) but it gets a bonus to production because a few of the planets cities have survived.

 

You add this as a ExtremeTypeModifier, Modifier, EffectType, ProductionPoints and define that in your PlanetTraitList defs xml file.

 

So you can create a homeworld for your race, which gets this production bonus. But it is also likely you will find other planets with it as well.

 

Here is xml snipet for my world.

Reply #5 Top

 Ahhhhhhhhhhhhhhhhhhhhhhh

So, I get what you're saying Syrkres, but I guess I dont know how that would tie that planet to it always being my starter planet regardless of the race I'm playing in? 

At the suggestion of Venom, I'm trying to create a custom race that will allow me to do this by having my starting planet being a certain planetary trait instead of the tile bonuses. I took Horemvore's Stratus race, and attempted to swap out all the necessary data to the custom race (since I have no modding experience/knowledge to start from scratch). Apparently I have no clue what I'm doing since the game crashes immediately and I cannot sift through what I'm lacking or messed up on. 

Reply #6 Top

If you need some help, you can email me your files and I'll take a look at them for you.

Reply #7 Top

You can increase the number and frequency of tiles with special traits, but probably not the type.  Could try and add weights to the .xml code for the tile features, but you'll probably get an "x is not enumerated for y" error on startup.

Reply #8 Top

@DE,

For a race you have to define your home solar system. Normally you logically just pick one of the existing solar systems, but you can define your own.

For example lets call your race Xenos and they live around the new star called Xeno on the planet Xeno I. 

Lets create a trait called "Xeno World".

I have uploaded my mod to my website, where you can pull it down and then edit it as needed.

GlobalSedition Mod

So steps, though another modder may explain it better.

  1. In StarDefs.xml (define a new star) with a name "Xeno", you can copy the ArtDefine from existing planets.
  2. Define your planet trait "Xeno World" in PlanetTraitDefs.xml. Give it an ExtremeTypeModifier for ProductionPoints and a value (whatever you want the value to be).
  3. Define your home planet (in PlanetDefx.xml) and name it "Xeno I".
  4. Give your Home Planet the planet trait you define above "Xeno World". Give the planet you want a class (1-50?).
  5. Save and play.

You can save my mod above and then edit the files. Also you can create as many planets in your home System as you want, you could have 10 Class 30 planets surrounded by asteroids. It's really how you want to play.  Note: You probably don't want all the files from my mod since you already have your own faction , but if you haven't defined your own race (in XML) then you will need the Faction files.

In my mod I gave myself 3 planets all dying, classes 9, 5, 2, but you can do what you want.

Hope this helps, if you have any questions, please ask.