That's the hard way, the easy way is to detect highly radioactive planets with a high concentration of gold after all the profit from destroying themselves was made.
https://www.sciencealert.com/mysteri...scientists-say
Free beer for everyone! --> How to upload files as ROM patches.
(Demo of homebrew I'm working on)