Updated settings-fraemwork and how-to-report-an-issue

This commit is contained in:
jonpas
2015-08-25 04:05:43 +02:00
parent 1019450c30
commit 1048562a42
2 changed files with 30 additions and 26 deletions

View File

@ -17,20 +17,22 @@ Part of this settings framework are global settings and client settings. Both us
Settings are entries in the config that get translated to `missionNamespace` global variables. An example settings entry looks like this: Settings are entries in the config that get translated to `missionNamespace` global variables. An example settings entry looks like this:
```c++ ```c++
class ACE_module_sampleSetting { class ACE_Settings {
// Following 2 entries are redundant if isClientSettable = 0 class ACE_module_sampleSetting {
displayName = "$STR_ACE_Common_SettingName"; // Stringtable entry with the setting name // Following 2 entries are redundant if isClientSettable = 0
description = "$STR_ACE_Common_SettingDescription"; // Stringtable entry with the setting description displayName = "$STR_ACE_Common_SettingName"; // Stringtable entry with the setting name
description = "$STR_ACE_Common_SettingDescription"; // Stringtable entry with the setting description
isClientSettable = 1; // Show in client options menu (0-no, 1-yes) isClientSettable = 1; // Show in client options menu (0-no, 1-yes)
typeName = "SCALAR"; // Type (BOOL/SCALAR/STRING/ARRAY/COLOR) typeName = "SCALAR"; // Type (BOOL/SCALAR/STRING/ARRAY/COLOR)
value = 1; // Value value = 1; // Value
// Following entry is redundant if typeName is NOT "SCALAR" // Following entry is redundant if typeName is NOT "SCALAR"
values[] = {"Disabled", "Enabled", "Only Cursor", "Only On Keypress", "Only Cursor and KeyPress"}; // (Optional) Stringtable entries that describe the options values[] = {"Disabled", "Enabled", "Only Cursor", "Only On Keypress", "Only Cursor and KeyPress"}; // (Optional) Stringtable entries that describe the options
// Following entry is present only in export // Following entry is present only in export
force = 0; // Force the setting (0-no, 1-yes), exported settings are forced by default force = 0; // Force the setting (0-no, 1-yes), exported settings are forced by default
};
}; };
``` ```
@ -82,17 +84,19 @@ class ACE_Settings {
#### 3.1.1 Notes #### 3.1.1 Notes
- If a setting is forced it cannot be changed further down the line, see `2. Load order` for the hierarchy. - If a setting is forced it cannot be changed further down the line, see `2. Load order` for the hierarchy.
- Client settings can be forced, include them while exporting (the button is right next to export on the UI) - Client settings can be forced, include while exporting (the button is next to export on the UI)
- You can use `ACE_common_forceAllSettings` to force settings in a mission, it will lock **all** the settings (which are not already forced) to the values they are set in either modules or server config - You can use `ACE_common_forceAllSettings` to force settings in a mission, it will lock **all** the settings (which are not already forced) to the values they are set in either modules or server config
- example of `ACE_common_forceAllSettings`
```c++ Example of `ACE_common_forceAllSettings`:
//^^ rest of your description.ext ```c++
//------------------------- ACE settings class ACE_Settings {
class ACE_common_forceAllSettings { class ACE_common_forceAllSettings {
value = 1; value = 1;
typeName = "BOOL"; typeName = "BOOL";
}; };
``` };
```
### 3.2 Loading up the server config ### 3.2 Loading up the server config

View File

@ -1,7 +1,7 @@
--- ---
layout: wiki layout: wiki
title: How to report an issue title: How to report an issue
description: If you've found an issue with ACE3 please read this entry before reporting it. description: If you have found an issue with ACE3 please read this entry before reporting it.
group: user group: user
order: 10 order: 10
parent: wiki parent: wiki
@ -9,13 +9,13 @@ parent: wiki
### Before reporting ### Before reporting
If you've found an issue with ACE3 please make sure that ACE3 is really the cause of the problem. To do this try to reproduce the issue with using only `@cba_a3` and `@ACE3` on a newly created mission. If you have found an issue with ACE3 please make sure that ACE3 is really the cause of the problem. To do this try to reproduce the issue with using only `@CBA_A3` and `@ace` on a newly created mission.
Indicate if the issue appears on stable or development version. In case it is the development version, please also include the commit SHA-1 hash. Indicate if the issue appears on stable or development version. In case it is the development version, please also include the commit SHA-1 hash.
<div class="panel callout"> <div class="panel callout">
<h5>Please note:</h5> <h5>Please note:</h5>
<p>It's not a valid to simply remove <code>@ACE3</code> from the mod list to confirm that ACE3 is the culprit.</p> <p>It's not a valid to simply remove <code>@ace</code> from the mod list to confirm that ACE3 is the culprit.</p>
<p>If the error happens when using a <b>third-party mod</b> contact the author of the appropriate mod and report the issue there.</p> <p>If the error happens when using a <b>third-party mod</b> contact the author of the appropriate mod and report the issue there.</p>
</div> </div>
@ -24,29 +24,29 @@ Indicate if the issue appears on stable or development version. In case it is th
Head over to the <a href="{{ site.githubUrl }}/issues" target="_blank">ACE3 GitHub issue tracker</a> and press the <a href="{{ site.githubUrl }}/issues/new" target="_blank">"New issue"</a> button in the top right corner. Add a descriptive title and copy the following issue template in to the text area: Head over to the <a href="{{ site.githubUrl }}/issues" target="_blank">ACE3 GitHub issue tracker</a> and press the <a href="{{ site.githubUrl }}/issues/new" target="_blank">"New issue"</a> button in the top right corner. Add a descriptive title and copy the following issue template in to the text area:
``` ```
*PRO-TIP :The english language allows individuals to correct each other's mistakes in a respectful manner.* *PRO-TIP: The english language allows individuals to correct each other's mistakes in a respectful manner.*
ACE3 Version: 3.x.x ACE3 Version: 3.x.x
(indicate if stable or dev, if dev indicate the commit the version is based on) (indicate if stable or dev, if dev indicate the commit the version is based on)
**Mods:** **Mods:**
* @cba_a3 * `@CBA_A3`
* @ace3 * `@ace`
**Placed ACE3 Modules:** **Placed ACE3 Modules:**
* *Add the list of modules you have placed on the map. Use 'None' if the error occurs without using any modules.* * *Add the list of modules you have placed on the map. Use 'None' if the error occurs without using any modules.*
**Description:** **Description:**
*Add a detailed description of the error. This makes it easier for us to fix the issue.* * Add a detailed description of the error. This makes it easier for us to fix the issue.*
**Steps to reproduce:** **Steps to reproduce:**
* *Add the steps needed to reproduce the issue.* * *Add the steps needed to reproduce the issue.*
**Where did the issue occur?** **Where did the issue occur?**
*A possible answer might be "Multiplayer", "Singleplayer"* * A possible answer might be "Multiplayer" or "Singleplayer" or "Editor"*
**RPT log file:** **RPT log file:**
*Add a link (pastebin.com) to the client or server RPT file.* * Add a link (pastebin.com) to the client or server RPT file.*
``` ```
A video of the issue might be helpful in resolving it faster. A video of the issue might be helpful in resolving it faster.