ENDLESS™ Space 2 is turn-based 4X space-strategy that launches players into the space colonization age of different civilizations within the ENDLESS™ Universe. Your Vision. Their Future.
I'd like to create a custom trait, similar to dark matter manipulator (which converts unallocated bandwidth into manpower), except that it would convert unallocated bandwidth into hacking speed.
Unfortunately, it doesn't seem that simple to do.
Dark matter manipulator is a simple trait, wich points to a single simulation descriptor :
(excerpt from "SimulationDescriptors[FactionTrait_DLC3]", dark matter manipulators simulationDescriptors) :
It seems that the "PassiveProcessingPowerEnrollmentRate " property is hardcoded ? So it is not possible to copy it or modify it to give hacking speed instead of Manpower ?
Alternatively, hacking speed bonus can be added to a trait via the following simulation descriptors :
However, I don't know how to make it so the speed bonus is proportionnal to the unallocated bandwidth. is there maybe a property that counts unallocated bandwidth ?
Can anyone help me ? Is there a way to have a trait that gives you hacking speed proportionnal to your unallocated bandwidth ?
The reason they do this is for the tooltip, they're perfectly capable of just doing all the math within the faction trait, however, the auto-tooltip generator thing will mess up the variable names, so what they do is make a new property, give that property its own GUI Element and give it the name of the trait, so that in the breakdown of where your resources come from it'll say "+5 Manpower From Dark Matter Manipulators".
If you want to make a trait that converts unused bandwidth into hacking speed, you need to remember that Hacking Speed is a PERCENTAGE. If you have 500 bandwidth and you add that to hacking speed, you'll get +5000 HACKING SPEED. So, to avoid this, you need to first divide the bandwidth by 10.
I'll give you an example of what you need to do, but I'm not going to type the full thing out:
After you do that, you need to make a gui element named BandwidthToHackingSpeed (or whatever you name your property to be), then make the title of that GUI Element to be the same title as your trait.
Thanks to your answer, I managed to create something similar to dark Matter Manipulators, but for hacking speed. Sadly, it doesn't seem to work : the game can't load and in the custom faction screen all factions (including premade) lose all traits and get some default values ("duck communists, duck land, duck monarchy") instead.
After some tests, the problem seems to be with this precise line in the SimulationDescriptors[Empire] file of ther mod (when I remove the line the game works fine, except for the intended mechanism of the trait) :
The "ProcessingPowerForHacking " is a property set at a base of 0. The first operation is supposed to add (EmpireProcessingPowerStock (which is the empire's unallocated bandwidth) * a second property, PassiveProcessingPowerHackingRate ) to this first property.
PassiveProcessingPowerHackingRate is a property set to a base value of 0, and set to 90 by a trait similar to Dark Matter Manipulators, so that a faction without this trait gets a result of 0, and a faction with the trait gets a bonus of (unallocated bandwidth * 90) (This value of 90 hacking speed per unallocated bandwidth is extremely high, I use it for testing purposes to immediatly see if the trait works, as it should enhance hacking speed by absurd amounts if functional ; Once the formula works I'll set it to a reasonable value such as 0,5 per unallocated bandwidth).
The resulting operation sets the value of ProcessingPowerForHacking , and ProcessingPowerForHacking is then supposedly added to the hacking speed of the empire by the three other operations.
The trait used to set PassiveProcessingPowerHackingRate to a value other than 0 is scripted this way : (it is correctly visible and selectionable in the custom faction screen, with the tooltip saying "sets Overcloaked processors (this is the title of the trait) to 90 (this is the correct value for testing purposes) on Empire "
apylam
Newcomer
apylam
Newcomer
13 600g2g ptsReport comment
Why do you report apylam?
Are you sure you want to block apylam ?
BlockCancelAre you sure you want to unblock apylam ?
UnblockCancelVIPCaptainCobbs
Solitary Immortal
I will not die, you can't make me
VIPCaptainCobbs
Solitary Immortal
76 100g2g ptsReport comment
Why do you report CaptainCobbs?
Are you sure you want to block CaptainCobbs ?
BlockCancelAre you sure you want to unblock CaptainCobbs ?
UnblockCancelapylam
Newcomer
apylam
Newcomer
13 600g2g ptsReport comment
Why do you report apylam?
Are you sure you want to block apylam ?
BlockCancelAre you sure you want to unblock apylam ?
UnblockCancelapylam
Newcomer
apylam
Newcomer
13 600g2g ptsReport comment
Why do you report apylam?
Are you sure you want to block apylam ?
BlockCancelAre you sure you want to unblock apylam ?
UnblockCancel