Question on generation of suns

Forum for discussing various mods for the VS-engine based upon Privateer. (Please play nice now, and extinguish all flaming materials.
Sincerely, The Management)
Post Reply
Andy
Merchant
Merchant
Posts: 32
Joined: Tue Dec 04, 2012 7:52 pm

Question on generation of suns

Post 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...
loki1950
The Shepherd
Posts: 5841
Joined: Fri May 13, 2005 8:37 pm
Location: Ottawa
Contact:

Re: Question on generation of suns

Post 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 :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Question on generation of suns

Post 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.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Andy
Merchant
Merchant
Posts: 32
Joined: Tue Dec 04, 2012 7:52 pm

Re: Question on generation of suns

Post 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...
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Question on generation of suns

Post 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
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Andy
Merchant
Merchant
Posts: 32
Joined: Tue Dec 04, 2012 7:52 pm

Re: Question on generation of suns

Post by Andy »

...great minds... ;)
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Question on generation of suns

Post 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.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Andy
Merchant
Merchant
Posts: 32
Joined: Tue Dec 04, 2012 7:52 pm

Re: Question on generation of suns

Post 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...
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Question on generation of suns

Post by klauss »

src/starsystem_xml.cpp I think
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Andy
Merchant
Merchant
Posts: 32
Joined: Tue Dec 04, 2012 7:52 pm

Re: Question on generation of suns

Post 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...
Andy
Merchant
Merchant
Posts: 32
Joined: Tue Dec 04, 2012 7:52 pm

Re: Question on generation of suns

Post 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?
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Question on generation of suns

Post by klauss »

Just go here and hit "Add new". Describe it, and that's it.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
Post Reply