It's important to remember that the "init" function must return a ModuleInstance. Use "return ModuleName(mpstate)" as an example. Your blunder probably lies there. https://basketball-stars.co/
Basketball Stars
Basketball Stars is the most exciting game for basketball fan gamers. It's great to win a medal and see your name appear on the leaderboard!
Replies
Take a look at http://ardupilot.github.io/MAVProxy/html/development/mavcustmod.html for an example of a MAVProxy module.
Note the "init" function must return an instance of the module. For example "return ModuleName(mpstate)". That is most likely where your error is.