Page 1 of 1

Announcing the declaration finder.

Posted: Sat Feb 13, 2016 11:00 am
by MrStonedOne
Ever wanted to find out where a given proc or var is defined?

https://tgstation13.org/findshit.php

BAM!

It parses thru xml giving by byond when you compile using the command line compiler and give it the option -o, finds the type you give, and then finds the earliest point on the type tree that thing is defined.

Limitations:

It doesn't yet understand mobs and objs are children of atom/movable, or that turfs are childrens of atom, or that atoms are childs of datums.

It shows the root definition or the earliest definition only, plans are to also show overrides (and in the case of vars, defaults and override values)

It only understands types as they are defined in the code. (meaning that you also have to watch out for types that don't start with datum, adding /datum/ to the start would confuse the script in that case.)

Updating is currently manually done, but i'll automate that.

This may go down from time to time as i update it to make it better.

Example link:

Find the root definition of /mob/living/carbon/human/Life()

Re: Announcing the declaration finder.

Posted: Sat Feb 13, 2016 4:24 pm
by lzimann
Damn this is useful, thanks a lot MSO!

Re: Announcing the declaration finder.

Posted: Sat Feb 13, 2016 5:15 pm
by Amnestik
thanks dad

Re: Announcing the declaration finder.

Posted: Sat Feb 13, 2016 6:36 pm
by iamgoofball
YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS

Re: Announcing the declaration finder.

Posted: Sat Feb 13, 2016 7:51 pm
by Gun Hog
Amazing tool, 10/10.

Re: Announcing the declaration finder.

Posted: Sat Feb 13, 2016 11:00 pm
by PKPenguin321
B A S E D

Re: Announcing the declaration finder.

Posted: Sat Apr 16, 2016 10:58 am
by Shadowlight213
Absolutely amazing. 100/10

Re: Announcing the declaration finder.

Posted: Sat Apr 16, 2016 11:30 am
by Remie Richards
I never said anywhere, but I put the declaration finder on the main homepage, under "Development"

Re: Announcing the declaration finder.

Posted: Thu Apr 28, 2016 1:59 pm
by Gun Hog
It does not seem to work for me. I tried to search for "transfer_to" and "transfer_to()" using the "Proc" option, and it finds nothing.

Re: Announcing the declaration finder.

Posted: Fri Apr 29, 2016 1:53 am
by oranges
I have no success usually unless I add at least one type def

like atom
or obj