The Pages¶
The application's settings are split over four pages. Each setting matches a setting in the project file and an option of the command line, so you can always switch between the two.
Project¶
On this page you choose what to build, for which host, and where the results go.
| Setting | Description | Default |
|---|---|---|
| Input | An AutoPlay project (.autoplay) or a Lua file (.lua) |
Required |
| Target | The host the module is for. A Lua file needs one. | A project's own host |
| Module name | The name require loads |
Made from the input's file name |
| Module DLL | Where the module is written | CD_Root\AutoPlay\Scripts\<module>.dll for a project, next to a Lua file otherwise |
| Rewritten project | Where the rewritten project is written. Not for Lua files. | The project with .a2c.autoplay |
| Rename the data folder in scripts | Replaces AutoPlay at the start of paths in strings, see The Data Folder. Not for Lua files. |
Off |
| New name | The data folder's new name |
Version¶
On this page you set the version information the DLL carries, as Windows shows it in a file's properties. Read more in Version Information.
| Setting | Description |
|---|---|
| Give the DLL this version information | Use the fields below. Otherwise the DLL gets autoplay2c's own. |
| Copy from the project | Fill the fields with the version information of the AutoPlay project, see From the Project. If they hold version information already, it asks first. |
| File version, Product version | Four parts each, most significant first |
| Company, Description, Copyright, Trademarks, Product name, Comments, Private build, Special build | Text; empty fields are left out |
| Set the internal name and original file name | Use the two fields below. Otherwise both are the DLL's file name. |
| Internal name, Original file name | Text |
Objects¶
This page holds the object serializer, which is for AutoPlay projects only. Read more in Serialized Objects.
| Setting | Description |
|---|---|
| Create objects at run time | Create the project's objects from the module instead of from the project |
| Emulate the tab order | On the pages that have created objects |
| Kinds to leave in the project | Objects of these kinds stay in the project. Plugins always do. |
| Objects to leave in the project | These objects stay in the project, whatever their kind. The list shows every object of the project, by page and dialog. |
Note
Objects you excluded that are no longer in the project stay excluded in the project file. If you add them back to the project later, they're still left out.
Compiler¶
On this page you choose how the DLL is made, and what to keep next to it.
| Setting | Description |
|---|---|
| Backend | Native is autoplay2c's own code generator, and the default. C with tcc writes the module as C and compiles it with tcc; the page shows where tcc was found. See Backends. |
| Module source | The project's scripts as one module (.lua). Projects only, since a Lua file is its own source. |
| Generated C | The module as C (.c) |
| IR listing | The compiler's intermediate code (.ir) |
| Native code | The native backend's code, disassembled (.asm) |
| Not reported | The warnings and optimizations builds leave out (the project file's Allow list), each with its code, name and what it means. Click the bin next to one to report it again. You add to the list with Don't report this on the Messages tab. See Silencing. |
The files you keep are written next to the DLL, named <module>.intermediate.<extension> (such as
core.intermediate.lua) so that none of them is loaded instead of the DLL. The module source is
the useful one, because run-time errors name lines in it. The others are there for reading what autoplay2c made of your
code.