vgstation13 icon indicating copy to clipboard operation
vgstation13 copied to clipboard

remove ticker.minds

Open adacovsk opened this issue 3 years ago • 13 comments

Noticed this when doing the roundstart stuff, I couldn't think of a reason why it would be necessary, since it's relatively easy to access the mind through a mob. While trivial, it does not need to exist, just adds to confusion, and by removing it, it's one less thing to worry about. It's used in three things: body archives (which I repurposed and works), scoreboard stats for survivors (it referenced mobs anyway, so rather than looping through minds, it loops through mobs), and targets (used H.mind to maintain its intent, where H is a human mob, which lessens the amount of checks).

It's just a not-well maintained list, and targets for objectives aren't even held in this list. This list just contains a list of minds, but why not just use player_list? You can just access mind just as readily.

What this does

  • removes the existence of ticker.minds

Why it's good

  • Less junk

adacovsk avatar Oct 06 '22 04:10 adacovsk

Can't wait for something to break in unknowable ways.

Eneocho avatar Oct 06 '22 05:10 Eneocho

PREPARE FOR UNFORESEEN CONSEQUENCES

Theophrastus1 avatar Oct 06 '22 10:10 Theophrastus1

okay but does this fix dead AI's not showing up on the roundend screen?

pedr69 avatar Oct 06 '22 15:10 pedr69

okay but does this fix dead AI's not showing up on the roundend screen?

bro... this has been around forever hasn't it? completely unrelated

adacovsk avatar Oct 06 '22 16:10 adacovsk

THUMBS DOWN!!!!!!

wotisjanitor avatar Oct 06 '22 20:10 wotisjanitor

can you show an actual performance increase from this? if not the risk to reward seems tilted

west3436 avatar Oct 07 '22 03:10 west3436

can you show an actual performance increase from this?

Assuredly not. However, it is worth cleaning up the code, if this PR doesn't break anything. I haven't looked at it closely yet and cannot claim to know whether or not this is the case.

Exxion avatar Oct 07 '22 03:10 Exxion

I am not in favor of Adam deleting anything that he doesn't know what it's for.

ConfusedCactus avatar Oct 07 '22 16:10 ConfusedCactus

I am not in favor of Adam deleting anything that he doesn't know what it's for.

The only thing I don't know understand is: Kanef code:

for(var/datum/mind/M2 in ticker.minds) //see above, but for ghosts
			if(M2.current == M)
				return TRUE

The logic here doesn't make any sense and I fixed it by just doing M.mind, referencing the mob, rather than the mind. And: manifest_entries.Add(new /datum/stat/manifest_entry(M)) I didn't change this, it should work as intended, but all signs say it does nothing anyway.

adacovsk avatar Oct 07 '22 19:10 adacovsk

kanef code

vs

adacovsk unforeseen circumstance code

which is the lesser evil? i'll do my part by both upvoting and downvoting

pedr69 avatar Oct 07 '22 20:10 pedr69

Unforeseen consequences adamcode is an experience. You get something unique on each gunked round caused by the unforeseen consequences. It might be the greater evil, but merge it anyway, at least the bugs will be funny to watch. If shit breaks we can always pull one from the collabs' book and revert if something went wrong.

Eneocho avatar Oct 08 '22 00:10 Eneocho

okay but does this fix dead AI's not showing up on the roundend screen?

On second thought, it might?

adacovsk avatar Oct 11 '22 04:10 adacovsk

test this at least once and have someone whose body was destroyed show up on the scoreboard

Kammerjunk avatar Oct 11 '22 21:10 Kammerjunk

alternative to this PR: don't

PrimeDSS13 avatar Oct 11 '22 21:10 PrimeDSS13

test this at least once and have someone whose body was destroyed show up on the scoreboard image

Does this work for you? Deletion of the antag mob also works. Malf will be tested too.

adacovsk avatar Oct 11 '22 22:10 adacovsk

okay but does this fix dead AI's not showing up on the roundend screen?

On second thought, it might?

yeah this fixes it

adacovsk avatar Oct 11 '22 23:10 adacovsk

@pedr69 if that works, it has nothing to do with this PR

Kammerjunk avatar Oct 12 '22 00:10 Kammerjunk

Stop doing thing at random. If you want to improve performance, look at a profiler. Roundstart can lag horribly now. I am not sure if your previous PRs worked.

ShiftyRail avatar Nov 18 '22 08:11 ShiftyRail

Stop doing thing at random. If you want to improve performance, look at a profiler. Roundstart can lag horribly now. I am not sure if your previous PRs worked.

this wasn't about performance, retard, it's about something that doesn't work and isn't used

adacovsk avatar Nov 18 '22 12:11 adacovsk

Stop doing thing at random. If you want to improve performance, look at a profiler. Roundstart can lag horribly now. I am not sure if your previous PRs worked.

Also, roundstart works great now. No lights off or naked for 10+ seconds. Not only that, I no longer crash.

adacovsk avatar Nov 18 '22 12:11 adacovsk

It definitely works. The problem is that it has a use case your PR:

  • failed to account for
  • failed to make a better replacement for

nervere avatar Nov 18 '22 19:11 nervere