After using the W.O.G simulator. And understanding various weapon models the best way to make your weapon from scratch is to start with ammunition.
Remember no study is enough, the more the merrier.
For countries that suppress the freedom to have guns, use compressed air with non-conventional ammunition design. Power can match propellant firing ammunition.