Tactical Combat Space Background (Starfield)

Tactical Combat Space Background (Starfield); support/discussion/questions

Moderator: thunderchero

Post Reply
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 723
Joined: Sun Apr 27, 2008 2:00 am

Tactical Combat Space Background (Starfield)

Post by Spocks-cuddly-tribble » Thu Nov 10, 2011 4:24 pm

Due to the outstanding progress made in increasing game resolution, here is how to avoid empty-looking backgrounds in tactical combat. :)


Base values for number of stars in the background: (min. 1, else crash)

Code: Select all

00495C6E                 mov     edx, 0FAh  // multiplier for random value
00495C81                 add     edx, 2EEh  // static bonus
After that sub_499C70 determines the positions (and colors?) of the stars.



An interesting option would be changing the whole background f.e. for nebulars (even better using something like the calamarain effect).

If some one wants to look into this: :wink:

Tactical combat screen setup:

Code: Select all

00471BF5                 mov     eax, 1 // screen ID *tactscn.wdf
00471BFA                 call    4B9180
00471BFF                 mov     eax, 1 // screen ID *tactscn.wdf
00471C04                 xor     edx, edx
00471C06                 call    4B9030
Directly above we find: (to create a switch marker)

Code: Select all

00471BC0                 call    Nebular_Effects
The old nebular Hob can be disabled in sub_4957D0 (Stellar_object_HOBs).
off_4957A0: case2 loc_495864 (nebula1.hob) -> loc_49581E (exit)
On the verge of a nervous breakdown? Try the relaxing tribble sounds.

User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2065
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Re: Tactical Combat Space Background (Starfield)

Post by Tethys » Thu Nov 10, 2011 4:45 pm

http://i40.tinypic.com/2hfngie.jpg
http://i42.tinypic.com/23igmky.jpg

But Ive not been able to figure out how to adjust their positions to be more dispersed :( (dont worry too much about it I know you dont anyways ;))

Thanks for all the info too SCT
Not for the weak of heart...
Image
GALM <--- GALM/Galaxies Mod

User avatar
Flocke
BORG Trouble Maker
BORG Trouble Maker
Posts: 2546
Joined: Sun Apr 27, 2008 2:00 am
Location: Hamburg, Germany
Contact:

Re: Tactical Combat Space Background (Starfield)

Post by Flocke » Thu Nov 10, 2011 5:38 pm

Tethys wrote:http://i40.tinypic.com/2hfngie.jpg
http://i42.tinypic.com/23igmky.jpg

But Ive not been able to figure out how to adjust their positions to be more dispersed :( (dont worry too much about it I know you dont anyways ;))
LOL, what an effect. :D

User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2065
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Re: Tactical Combat Space Background (Starfield)

Post by Tethys » Thu Nov 10, 2011 5:54 pm

Its definitely spherical from what I can tell? Or has my eyes tricked me?
Not for the weak of heart...
Image
GALM <--- GALM/Galaxies Mod

User avatar
QuasarDonkey
Code Analyst
Code Analyst
Posts: 433
Joined: Tue Jul 26, 2011 8:29 pm
Location: Ireland

Re: Tactical Combat Space Background (Starfield)

Post by QuasarDonkey » Thu Nov 10, 2011 10:23 pm

Thanks for this SCT. I'm including it in the resolution patch tool, so we'll have uniform star density across all resolutions. :D

Also, this might help out the less technical folk:

Code: Select all

00495C81           add     edx, 750  // minimum number of stars
00495C6E           mov     edx, 250  // random number of stars to add
So 750 is the min, 1000 is the max.

User avatar
Tethys
Past Administrator
Past Administrator
Posts: 2065
Joined: Fri Jul 18, 2008 2:00 am
Location: Your mom's bed ;)
Contact:

Re: Tactical Combat Space Background (Starfield)

Post by Tethys » Thu Nov 10, 2011 11:03 pm

That helps a little, but does not solve the "stripes" issue, but I wouldnt worry too much about it, Ive found that a value of 2000 (D0 07) and 255 (FF) seems to do the trick pretty nicely :)
Not for the weak of heart...
Image
GALM <--- GALM/Galaxies Mod

Post Reply

Return to “Tactical Combat Space Background (Starfield)”

Who is online

Users browsing this forum: No registered users