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

admin stuff update #6855

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

Conversation

LetterN
Copy link
Contributor

@LetterN LetterN commented Nov 12, 2024

title

  • admin stuff use href token now
  • update VV, now (properly) supports appearance_visual (you can see the appearance!)
  • update ahelp, support for screaming at admins if there are none. webhook changes so its formatted
  • send2irc -> send2tgs

@github-actions github-actions bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Nov 12, 2024
@LetterN LetterN marked this pull request as ready for review November 14, 2024 07:28
@LetterN LetterN requested a review from Zandario as a code owner November 14, 2024 07:28
Copy link

github-actions bot commented Dec 5, 2024

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ two week, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale label Dec 5, 2024
@silicons silicons removed the Stale label Dec 5, 2024
/**
* Completely occludes a path from view variable interactions.
*/
///Protects a datum from being VV'd or spawned through admin manipulation
Copy link
Contributor

Choose a reason for hiding this comment

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

will dmdoc work when it's placed above the ifndef instead of the define?

#else
#define VV_PROTECT(Path)
#endif
// we del instead of qdel because for security reasons we must ensure the datum does not exist if Read is called. qdel will not enforce this.

/**
* Makes a path read-only to view variables.
Copy link
Contributor

Choose a reason for hiding this comment

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

readonly probably needs /Read() override too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

kinda usless since you can still tag (and potentially) json_encode to get its value

#define isimage(D) (istype(D, /image))

#define isweakref(D) (istype(D, /datum/weakref))
GLOBAL_VAR_INIT(magic_appearance_detecting_image, new /image) // appearances are awful to detect safely, but this seems to be the best way ~ninjanomnom
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be reconciled with IS_APPEARANCE macro, seen in typeids

alternatively, switch the typeid macros to IS_TYPEID_* instead of IS_*, since those are implementation defined and definitely not as safe as this (then again; this also seems to be implementation defined, lol)

code/__DEFINES/vv.dm Outdated Show resolved Hide resolved
Comment on lines +13 to +27
// A list of all the special byond lists that need to be handled different by vv
GLOBAL_LIST_INIT(vv_special_lists, init_special_list_names())

/proc/init_special_list_names()
var/list/output = list()
var/obj/sacrifice = new
for(var/varname in sacrifice.vars)
var/value = sacrifice.vars[varname]
if(!islist(value))
if(!isdatum(value) && hascall(value, "Cut"))
output += varname
continue
if(isnull(locate(REF(value))))
output += varname
return output
Copy link
Contributor

Choose a reason for hiding this comment

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

i honestly really dislike doing this because we do have our own slightly more janky way of doing it, and because imo, doing this in the render loop for vv is better

Copy link
Contributor Author

Choose a reason for hiding this comment

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

wdym render loop? it runs every vv UI call?


if(VV_COLOR_MATRIX)
.["value"] = open_color_matrix_editor()
if(.["value"] == COLOR_MATRIX_IDENTITY) //identity is equivalent to null
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be ~= for equivalency?

@@ -26,13 +26,13 @@ export const MESSAGE_TYPE_LOCALCHAT = 'localchat';
export const MESSAGE_TYPE_RADIO = 'radio';
export const MESSAGE_TYPE_INFO = 'info';
export const MESSAGE_TYPE_WARNING = 'warning';
export const MESSAGE_TYPE_HELPFUL = 'helpful';
Copy link
Contributor

Choose a reason for hiding this comment

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

is this verified to not be necessary?

silicons pushed a commit that referenced this pull request Dec 19, 2024
silicons pushed a commit that referenced this pull request Dec 19, 2024
Copy link

github-actions bot commented Jan 4, 2025

This PR has been inactive for long enough to be automatically marked as stale. This means it is at risk of being auto closed in ~ two week, please address any outstanding review items and ensure your PR is finished, if these are all true and you are auto-staled anyway, you need to actively ask maintainers if your PR will be merged. Once you have done any of the previous actions then you should request a maintainer remove the stale label on your PR, to reset the stale timer. If you feel no maintainer will respond in that time, you may wish to close this PR youself, while you seek maintainer comment, as you will then be able to reopen the PR yourself

@github-actions github-actions bot added the Stale label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants