Modding Manual |
I remember reading about a modding manual with all the functions and the variables, but I cannot find it anywhere... Is it still to be shipped with the next patch?
Specifically I'm looking for a function or variable that return the population amount on the planet, in order to have the buildings producing quantities based on the population on the planet...
Thanks

Re: Modding Manual
That's a valid function for the AI scripts - but cannot be used in the data files. Make sure you're looking in the "SE:V Modding" document as opposed to the "SE:V Scripting" one for abilities/functions you can use in the data files.
-----
Re: Modding Manual
You might be able to kludge something like what you want using the population modifier settings in settings.txt. eg set your facility to produce 1, and have a huge number of population production modifiers so a pop of 100 gives 1000%, a pop of 110 gives 1001%, a pop of 2000 gives a 200000000% etc etc (adjust numbers to taste). I don't know if there's a maximum number of population modifiers you can have.
Re: Modding Manual
I have a quick question if a field is marked as decimal does that mean you can't use a formula in it and if so how can this change? I want to put a furmula in Engines Per Move but any time I do I get no movement in that class of vehichle
Created a new tech called engine efficiency and just want this to subtract a small numer from the engines per move.
edit hmm guess I can just make it add more movement per engine.

Re: Modding Manual
The modding guide tells you if a field can except a formula or not. The EPM field cannot accept a formula.
-----

Re: Modding Manual
Are there functions not listed in the modding manual? and what about the ones listed as 'not used', are they available to return values or are they defunct code left open?
I was looking for a function to give me coordinates of a vehicle size type during combat, would like to draw bitmap images at function returned coordinates (aka the smoke trail effect I'm still stubbornly trying to model).
A side question in case someone gets to it before I try it in game: does the bitmap effect lines really work in the ship_x.file class.txt?

Re: Modding Manual
You might be able to kludge something like what you want using the population modifier settings in settings.txt. eg set your facility to produce 1, and have a huge number of population production modifiers so a pop of 100 gives 1000%, a pop of 110 gives 1001%, a pop of 2000 gives a 200000000% etc etc (adjust numbers to taste). I don't know if there's a maximum number of population modifiers you can have.
There is probably a limit, but its *VERY* high. Once upon a time I wrote a C++ program to do some work for me... I had 1% resource / ship construction for every 20 million people present. Which required 2 billion people for "full" construction. I then had the program take it all the way out to sphere world population limits. It ran. It may have been slow loading, but it ran.
_______________________
There are 10 types of people in the world:
Those that understand binary, and those that don't.






Re: Modding Manual
The Modding Guide is in the docs folder. Not sure if there is a function that returns the population.
-----
Space Empires Depot | SE:V Balance Mod