Hi,
Quick question: Where is the hostile environment cost handled in the code? And is it based on the habitability settings of the races, or does it have to be set?
Thank you.
edit: I've tried setting up visual studio, but I'm getting an error that VS is not set up to receive hints, and VS crashes. Sorry.
where is "hostile environment cost"?
- harpy eagle
- Posts: 296
- Joined: Sat Mar 10, 2018 3:25 am
Re: where is "hostile environment cost"?
Look for "function PlanetProperty.hostile_env_cost(planet)" in Orders/coin_production.lua
Re: where is "hostile environment cost"?
I couldn't get Visual Studio to work properly either - I think I got past this problem, but then I ran into another crash and gave up.akkamaddi wrote:edit: I've tried setting up visual studio, but I'm getting an error that VS is not set up to receive hints, and VS crashes. Sorry.
Sven added support for VSCode to the beta, that looks more promising.
- harpy eagle
- Posts: 296
- Joined: Sat Mar 10, 2018 3:25 am
Re: where is "hostile environment cost"?
If VS is giving you trouble, you don't actually need to use an IDE. I just use a text editor, myself.
Of course, you won't be able to use step-through debugging, but most of the time I think you can get by without it (not always though).
Of course, you won't be able to use step-through debugging, but most of the time I think you can get by without it (not always though).
Re: where is "hostile environment cost"?
Awesome! Thank you!harpy eagle wrote:Look for "function PlanetProperty.hostile_env_cost(planet)" in Orders/coin_production.lua