Announcing the declaration finder.
- MrStonedOne
- Host
- Joined: Mon Apr 14, 2014 10:56 pm
- Byond Username: MrStonedOne
- Github Username: MrStonedOne
Announcing the declaration finder.
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()
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()
-
- Joined: Sun Oct 26, 2014 5:13 am
- Byond Username: Lzimann
- Github Username: lzimann
Re: Announcing the declaration finder.
Damn this is useful, thanks a lot MSO!
-
- Joined: Thu Mar 26, 2015 12:06 am
- Byond Username: Amnestik
Re: Announcing the declaration finder.
thanks dad
- iamgoofball
- Github User
- Joined: Fri Apr 18, 2014 5:50 pm
- Byond Username: Iamgoofball
- Github Username: Iamgoofball
Re: Announcing the declaration finder.
YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
-
- Joined: Sat Apr 19, 2014 5:19 am
- Byond Username: Gun Hog
- PKPenguin321
- Site Admin
- Joined: Tue Jul 01, 2014 7:02 pm
- Byond Username: PKPenguin321
- Github Username: PKPenguin321
- Location: U S A, U S A, U S A
Re: Announcing the declaration finder.
B A S E D
i play Lauser McMauligan. clown name is Cold-Ass Honkey
i have three other top secret characters as well.
tell the best admin how good he is
i have three other top secret characters as well.
tell the best admin how good he is
Spoiler:
-
- Joined: Tue Nov 11, 2014 9:34 pm
- Byond Username: Shadowlight213
- Github Username: Shadowlight213
Re: Announcing the declaration finder.
Absolutely amazing. 100/10
- Remie Richards
- Joined: Thu Apr 17, 2014 7:11 pm
- Byond Username: CrimsonVision
- Location: England, UK, Earth, Sol, Milky Way, Local Group, Virgo Supercluster, Known Universe
- Contact:
Re: Announcing the declaration finder.
I never said anywhere, but I put the declaration finder on the main homepage, under "Development"
私は完璧
-
- Joined: Sat Apr 19, 2014 5:19 am
- Byond Username: Gun Hog
Re: Announcing the declaration finder.
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.
- oranges
- Code Maintainer
- Joined: Tue Apr 15, 2014 9:16 pm
- Byond Username: Optimumtact
- Github Username: optimumtact
- Location: #CHATSHITGETBANGED
Re: Announcing the declaration finder.
I have no success usually unless I add at least one type def
like atom
or obj
like atom
or obj
Who is online
Users browsing this forum: No registered users