Announcing the declaration finder.

How, what and why to code in BYOND.
Post Reply
User avatar
MrStonedOne
Host
Joined: Mon Apr 14, 2014 10:56 pm
Byond Username: MrStonedOne
Github Username: MrStonedOne

Announcing the declaration finder.

Post by MrStonedOne » #153868

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()
Forum/Wiki Administrator, Server host, Database King, Master Coder
MrStonedOne on digg(banned), Steam, IRC, Skype Discord. (!vAKvpFcksg)
Image
NSFW:
Image
lzimann
Joined: Sun Oct 26, 2014 5:13 am
Byond Username: Lzimann
Github Username: lzimann

Re: Announcing the declaration finder.

Post by lzimann » #153906

Damn this is useful, thanks a lot MSO!
Amnestik
Joined: Thu Mar 26, 2015 12:06 am
Byond Username: Amnestik

Re: Announcing the declaration finder.

Post by Amnestik » #153920

thanks dad
User avatar
iamgoofball
Github User
Joined: Fri Apr 18, 2014 5:50 pm
Byond Username: Iamgoofball
Github Username: Iamgoofball

Re: Announcing the declaration finder.

Post by iamgoofball » #153929

YESSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
Gun Hog
Joined: Sat Apr 19, 2014 5:19 am
Byond Username: Gun Hog

Re: Announcing the declaration finder.

Post by Gun Hog » #153939

Amazing tool, 10/10.
User avatar
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.

Post by PKPenguin321 » #153966

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
Spoiler:
Image
Shadowlight213
Joined: Tue Nov 11, 2014 9:34 pm
Byond Username: Shadowlight213
Github Username: Shadowlight213

Re: Announcing the declaration finder.

Post by Shadowlight213 » #155099

Absolutely amazing. 100/10
User avatar
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.

Post by Remie Richards » #169044

I never said anywhere, but I put the declaration finder on the main homepage, under "Development"
私は完璧
Gun Hog
Joined: Sat Apr 19, 2014 5:19 am
Byond Username: Gun Hog

Re: Announcing the declaration finder.

Post by Gun Hog » #172120

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.
User avatar
oranges
Code Maintainer
Joined: Tue Apr 15, 2014 9:16 pm
Byond Username: Optimumtact
Github Username: optimumtact
Location: #CHATSHITGETBANGED

Re: Announcing the declaration finder.

Post by oranges » #172247

I have no success usually unless I add at least one type def

like atom
or obj
Post Reply

Who is online

Users browsing this forum: No registered users