Well, I can help you with your first problem, I think. Inside your main script, you need to use the "include" command to include all exterior files in the build process. This should allow the publish to catch all your game files. You can find the syntax for include in the manual.
As for your second problem... I could only suggest reinstalling 3DGS.
Regards,
Jay_Watergate