Page 1 of 1

Question on generation of suns

Posted: Wed Feb 06, 2013 12:37 am
by Andy
Hi everybody.
I just noticed that the suns that are generated by the system files are not static. That means every time I start the game (PGG) the look of the sun of a specific system might vary from flare1.png to flare6.png.
Can the look of the sun be defined somehow in the system file? IMO this would add to the immersion factor since you really could recognize a system just by the look (and colour) of the star. That's not possible atm...

Re: Question on generation of suns

Posted: Wed Feb 06, 2013 1:56 am
by loki1950
The system generation only happens when you load a new game not from saved games but since the whole WC universe is quite set only a few systems are actually generated randomly,not any of the systems where the story happens.

Enjoy the Choice :)

Re: Question on generation of suns

Posted: Wed Feb 06, 2013 5:10 pm
by klauss
He means the sun flare, the texture is indeed random I think.

I've been thinking about improving how those flares work too, although I haven't thought of it in quite this POV. I guess I should.

I guess the flare texture could be specified on the XML, that would be easy to code.

Re: Question on generation of suns

Posted: Wed Feb 06, 2013 6:18 pm
by Andy
Yes, that would be cool and would allow to create really unique systems. If this could be implemented somehow, maybe also the size of the flare should be adjustable, or it should be calculated from the radius of the sun given in the system file...

Re: Question on generation of suns

Posted: Wed Feb 06, 2013 6:53 pm
by klauss
Andy wrote:Yes, that would be cool and would allow to create really unique systems. If this could be implemented somehow, maybe also the size of the flare should be adjustable, or it should be calculated from the radius of the sun given in the system file...
It is calculated like that

Re: Question on generation of suns

Posted: Wed Feb 06, 2013 7:12 pm
by Andy
...great minds... ;)

Re: Question on generation of suns

Posted: Wed Feb 06, 2013 7:31 pm
by klauss
Please, create a feature request tracker item to remind me of this (adding the xml option), if it's only on the forums it's quite certain I'll forget.

Re: Question on generation of suns

Posted: Wed Feb 06, 2013 7:57 pm
by Andy
Better idea: tell me what the relevant files are and I could have a try by myself. ;) I also would need an example like for the planet texture for instance...

Re: Question on generation of suns

Posted: Wed Feb 06, 2013 8:33 pm
by klauss
src/starsystem_xml.cpp I think

Re: Question on generation of suns

Posted: Wed Feb 06, 2013 8:43 pm
by Andy
src/starsystem_xml.cpp I think
Oh, sorry, I can't be of help with original code programming... I thought it is somewhere in the .py files...

Re: Question on generation of suns

Posted: Wed Feb 06, 2013 10:31 pm
by Andy
klauss wrote:Please, create a feature request tracker item to remind me of this (adding the xml option), if it's only on the forums it's quite certain I'll forget.

How can I do that?

Re: Question on generation of suns

Posted: Wed Feb 06, 2013 10:43 pm
by klauss
Just go here and hit "Add new". Describe it, and that's it.