Start the game via Steam, In Visual Studio, Debug -> Attach to Process, select the total miner process, turn on 'Break On Exception' or put a break point in the InitializeGame method, activate the mod in game and start a world, and use the debugger to find out what is wrong in the InitializeGame method.