The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
December 11, 2024, 12:49:31 am
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  General UQM Discussion (Moderator: Death 999)
| | |-+  Randomizing locations
« previous next »
Pages: 1 [2] Print
Author Topic: Randomizing locations  (Read 3612 times)
TalkingPet
Zebranky food
*
Offline Offline

Posts: 6



View Profile
Re: Randomizing locations
« Reply #15 on: September 18, 2017, 03:54:43 am »

The main problem you would run into is that you would need to make it so it would only randomize once and save that particular random seed in each save file so it could be recalled.

The code I posted above broke due to something along these lines.  What I did to fix it was add a field to the global data that has a list of all the "special stars" and what star-index they should be remapped to.  This gets saved when the global data gets saved, and upon reloading I "patch" the starmap_array.
Logged
CelticMinstrel
Enlightened
*****
Offline Offline

Posts: 522



View Profile
Re: Randomizing locations
« Reply #16 on: October 14, 2017, 04:23:11 am »

Code:
// MYCON space
// SUN_DEVICE_DEFINED,
// EGG_CASE0_DEFINED,
// EGG_CASE1_DEFINED,
// EGG_CASE2_DEFINED,
Not all the egg cases need to be in Mycon space. The Syreen homeworld (by which I mean Syra, not Gaia at Betelgeuse) is not in Mycon space, so basically you need to distinguish between the Syreen homeworld and the other two random egg cases; the latter are hotter and in Mycon space, the former is cooler and merely near Mycon space. (It would be fine if it were just within their SoI, I think, or just outside.)
Logged
Death 999
Global Moderator
Enlightened
*****
Offline Offline

Gender: Male
Posts: 3874


We did. You did. Yes we can. No.


View Profile
Re: Randomizing locations
« Reply #17 on: October 14, 2017, 02:53:29 pm »

Syra is in Mycon space.
Logged
CelticMinstrel
Enlightened
*****
Offline Offline

Posts: 522



View Profile
Re: Randomizing locations
« Reply #18 on: October 15, 2017, 07:34:41 pm »

Hmm, I distinctly remember it not being in Mycon space, but I just checked and you're actually right. Maybe I was somehow remembering post-Organon Mycon space? Syra is still different from the other shattered worlds though - it's less recent and has cooled down quite a bit.
Logged
Pages: 1 [2] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!