I’m attempting to build a distributable version of a project that I’m working on – specifically, I’m using pdeploy to create a self-contained installer – and have hit a problem: it seems to crash when run on Windows. In order to fix this, I’d like to find out what errors, if any, are being encountered. To that end, is there either a log file somewhere that I might read, or some way of having a console appear with my game? If not, could I perhaps redirect the usual output to a file from within my game?
As related secondary questions, am I correct in thinking that directories from my original folder structure are packed into the .p3d file created as the first step of creating a distributable version, and are not unpacked when installed through the installer created by pdeploy? If so, how does this affect operations that involve, say, fetching a specific text or image file from a given sub-directory, or the creation or manipulation of new multifiles in a given directory? Thus far my game has been working in my development environment, surrounded by a structure of various folders that are used to store various files – level files, save-games, data files, etc. – and I see that this structure doesn’t seem to be extracted as part of installation, despite seeming to be present in the p3d file.