Royalties are due on revenue from products, as well as advance payments made by a publisher to the developer of a product.
If you receive money from an investor who is investing in your company, no royalties are due on that. That is capital, not product revenue.
If you are a contractor being paid to do work for another company for their use, no royalties are due on that income.