gruppe-adler / grad_meh

An Arma 3 Modification built on intercept, which allows exporting data from Arma 3 maps.
MIT License
13 stars 2 forks source link

Command should return error codes instead of true / false #15

Closed DerZade closed 4 years ago

DerZade commented 4 years ago

If the gradMehExportMap command returns false, there is really no way to tell if currently another export process is running or the map is invalid. So instead of true / false the command could return a code.

For example: 0: Process started nominally 1: Error: Another export is currently running 2: Error: Map invalid because worldSize in config is missing 3: Error: Map invalid because it is packed within a epbo

DerZade commented 4 years ago

We'll need the following status codes:

0: Process started nominally 1: Error: Invalid arguments given 2: Error: Another export is currently running 3: Error: World not found 4: Error: Map invalid because worldSize in config is missing 5: Error: PBO of WRP not found (Most likely because it is EBO) 6: Error: PBO map still populating

TheWillard commented 4 years ago

Sounds good 👍