Skip to content

Create and Destroy! #2141

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

Merged
merged 132 commits into from
Jun 12, 2025
Merged

Conversation

CheffieGithub
Copy link
Collaborator

@CheffieGithub CheffieGithub commented May 30, 2025

About The Pull Request

Fixes create and destroy:

Fixes the hard deletes and qdel/init hints that stopped create and destroy from running.
Fixes runtimes that occured during create and destory runs.

Adds reference tracking and SSgarbage improvements.

Port MC fixes.

Why It's Good For The Game

Pre-Merge Checklist

  • You tested this on a local server.
  • This code did not runtime during testing.
  • You documented all of your changes.

@github-actions github-actions bot added the MERGE CONFLICT This PR has conflicting changes with the main branch and can't be merged label May 30, 2025
@github-actions github-actions bot removed the MERGE CONFLICT This PR has conflicting changes with the main branch and can't be merged label May 30, 2025
@github-actions github-actions bot added the Mapping You've changed something minor or major within a map file! Woah... label May 30, 2025
@CheffieGithub CheffieGithub added the DO NOT MERGE Do not merge this PR. I swear to god. label May 30, 2025
@github-actions github-actions bot removed the DO NOT MERGE Do not merge this PR. I swear to god. label May 30, 2025
@CheffieGithub CheffieGithub added DO NOT MERGE Do not merge this PR. I swear to god. Code Maintenance Fixing this mess one line at a time FUCK FUCK labels May 30, 2025
@github-actions github-actions bot removed Code Maintenance Fixing this mess one line at a time DO NOT MERGE Do not merge this PR. I swear to god. FUCK FUCK labels May 30, 2025

/obj/effect/statclick/proc/cleanup()
SIGNAL_HANDLER
qdel(src)

Choose a reason for hiding this comment

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

can't just qdel this on the parent's destroy?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe, this is just a blind port from lemon gc fixes

@@ -468,6 +468,10 @@ GLOBAL_REAL(Master, /datum/controller/master)
continue
if ((SS_flags & (SS_TICKER|SS_KEEP_TIMING)) == SS_KEEP_TIMING && SS.last_fire + (SS.wait * 0.75) > world.time)
continue
if (SS.postponed_fires >= 1)

Choose a reason for hiding this comment

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

what does this do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Allows the mc to postpone correctly tgstation/tgstation#59813

@@ -96,7 +134,7 @@
return FALSE

if (queue_node_flags & SS_TICKER)
if (!(SS_flags & SS_TICKER))
if (!(SS_flags & (SS_TICKER|SS_BACKGROUND)) == SS_TICKER)

Choose a reason for hiding this comment

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

why?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It was part of a fix batch for ticker and background subsystems conflicting, but I missed a fix for this change so I'm glad you commented

@@ -1,26 +1,25 @@
/atom
/atom/movable

Choose a reason for hiding this comment

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

why, what if I want a particle emitter on a turf?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All the emitter procs and stuff are on movable they can be moved to atom later if someone wants to do that

@github-actions github-actions bot added the MERGE CONFLICT This PR has conflicting changes with the main branch and can't be merged label Jun 6, 2025
@github-actions github-actions bot removed the MERGE CONFLICT This PR has conflicting changes with the main branch and can't be merged label Jun 6, 2025
@CheffieGithub
Copy link
Collaborator Author

There may be some false positives sometimes but we can figure them out later

@CheffieGithub
Copy link
Collaborator Author

we yolo ball

@CheffieGithub CheffieGithub merged commit 0872f08 into Monkestation:main Jun 12, 2025
8 checks passed
PotatoTomahto added a commit to PotatoTomahto/Potato-Vanderlin that referenced this pull request Jun 13, 2025
StiffRobot pushed a commit to StiffRobot/Vanderlin that referenced this pull request Jun 13, 2025
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- Note: PRs including balance changes authored by anyone other than
maintainers and official devs will not be considered. -->

## About The Pull Request
Fixes create and destroy:

Fixes the hard deletes and qdel/init hints that stopped create and
destroy from running.
Fixes runtimes that occured during create and destory runs.

Adds reference tracking and SSgarbage improvements.

Port MC fixes.

<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review or prevent the PR from being merged!
-->

## Why It's Good For The Game

<!-- Please add a short description of why you think these changes would
benefit the game. If you can't justify it in words, it might not be
worth adding. -->

## Pre-Merge Checklist
<!-- Don't bother filling these in while creating your Pull Request,
just click the checkboxes after the Pull Request is opened and you are
redirected to the page. -->
- [x] You tested this on a local server.
- [x] This code did not runtime during testing.
- [x] You documented all of your changes.
<!-- Neither the compiler nor workflow checks are perfect at detecting
runtimes and errors. It is important to test your code/feature/fix
locally. -->

---------

Co-authored-by: grungussuss <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Github changes stuff that only affects the github Mapping You've changed something minor or major within a map file! Woah...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants