Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and rework random system generator #5748

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

Mc-Pain
Copy link
Contributor

@Mc-Pain Mc-Pain commented Feb 7, 2024

Current implementation allows up to four stars in the system with only layout of "two binary systems orbiting each other"

  • Clean up the code
  • Work out on star layouts
  • Remove upper limit of stars being generated (separate PR)

@fluffyfreak
Copy link
Contributor

This is good work! Glad to see someone showing this code some care and attention

@Mc-Pain
Copy link
Contributor Author

Mc-Pain commented Feb 8, 2024

Looks messy
изображение
изображение

@Mc-Pain
Copy link
Contributor Author

Mc-Pain commented Feb 16, 2024

изображение

@Mc-Pain Mc-Pain changed the title WIP: Refactor and rework random system generator Refactor and rework random system generator Feb 27, 2024
@Mc-Pain
Copy link
Contributor Author

Mc-Pain commented Feb 27, 2024

removed WIP: sign, third task would be completed through separate PR

Copy link
Contributor

@fluffyfreak fluffyfreak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't spot any coding issues, although the ULGY HACK part could be nice to cleanup

@Mc-Pain
Copy link
Contributor Author

Mc-Pain commented Feb 28, 2024

I can't spot any coding issues, although the ULGY HACK part could be nice to cleanup

I don't know how to make it pretty, it generates an i-th uppercase letter

@fluffyfreak
Copy link
Contributor

Does this change the universe generation at all?

@Mc-Pain
Copy link
Contributor Author

Mc-Pain commented Feb 29, 2024

Does this change the universe generation at all?

In what terms?

@fluffyfreak
Copy link
Contributor

In what terms?

Naming of systems, numbers of stars/planets/etc, anything like that or is it purely a code reorganisation?

@Mc-Pain
Copy link
Contributor Author

Mc-Pain commented Feb 29, 2024

In what terms?

Naming of systems, numbers of stars/planets/etc, anything like that or is it purely a code reorganisation?

Number of planets could vary. Number of stars for each system is done in sector generator.

Only change here is how star types are generated

@fluffyfreak
Copy link
Contributor

@Mc-Pain would you mind if I pushed a small change to your PR to cleanup the UGLY HACK ?

@Mc-Pain
Copy link
Contributor Author

Mc-Pain commented Feb 29, 2024

@Mc-Pain would you mind if I pushed a small change to your PR to cleanup the UGLY HACK ?

+, go ahead

@impaktor
Copy link
Member

impaktor commented Feb 29, 2024

@fluffyfreak Wait with asking until after you've done it. (looks like mcpain gave thumbs up on your post, but you're not notified by that)

EDIT: looks like me and mcpain posted at the same time

@fluffyfreak
Copy link
Contributor

@Web-eWorks I'm happy with this as-is but as I've (tried to) contribute to the code I'm not going to judge whether it should be merged, also with the changes it may have changed the generated universe which requires a savegame bump?

@impaktor
Copy link
Member

impaktor commented Mar 4, 2024

I'd recommend holding off on merge until after 3.14, when we intend to release a bug-fix zuper-ztable Tauoneer (tau = 2 x pi, Tauoneer = Pi-Pioneer - yes, I'll keep proposing that). Players of the 3.14 release are Tauonauts.

Only bug-fixes and PRs that are unlikely to introduce bugs before 3.14, and no save-bumps, according to the Board of Directors of Pioneer.
Tauoneer - dammit!.

@Mc-Pain
Copy link
Contributor Author

Mc-Pain commented Mar 4, 2024

I'd recommend holding off on merge until after 3.14, when we intend to release a bug-fix zuper-ztable Tauoneer (tau = 2 x pi, Tauoneer = Pi-Pioneer - yes, I'll keep proposing that). Players of the 3.14 release are Tauonauts.

Only bug-fixes and PRs that are unlikely to introduce bugs before 3.14, and no save-bumps, according to the Board of Directors of Pioneer. Tauoneer - dammit!.

изображение

@Web-eWorks
Copy link
Member

Apologies on the delay officially responding here. I'll be reviewing this PR soon after the 3.14 hotfix release, as I'd prefer not to introduce a savegame bump in the upcoming release if it's not absolutely necessary.

@impaktor
Copy link
Member

impaktor commented May 24, 2024

<impaktor> sturnclaw: Seems like you're slightly more active again. If so,
           looks like #5748 is ready for review.  [12:18]
<cmdr-jameson> pull request #5748: Refactor and rework random system generator
               https://github.com/pioneerspacesim/pioneer/pull/5748
<mcpain> always has been  [12:59]
<impaktor> meme  [13:00]
<mcpain> da  [13:01]

2024-05-24-130233_1312x739_scrot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants