Difference between revisions of "Troubleshooting"
m (→Going further:) |
(→Going further:) |
||
Line 98: | Line 98: | ||
*[2] diag_activeSQFScripts: Displays <nowiki>[[" hint str diag_activeSQFScripts;", "", true, 1]]</nowiki> [https://community.bistudio.com/wiki/diag_activeSQFScripts] | *[2] diag_activeSQFScripts: Displays <nowiki>[[" hint str diag_activeSQFScripts;", "", true, 1]]</nowiki> [https://community.bistudio.com/wiki/diag_activeSQFScripts] | ||
*[3] diag_activeMissionFSMs: Returns array with active Mission FSMs. [https://community.bistudio.com/wiki/diag_activeMissionFSMs] | *[3] diag_activeMissionFSMs: Returns array with active Mission FSMs. [https://community.bistudio.com/wiki/diag_activeMissionFSMs] | ||
− | *[4] TAOR: Tactical Area Of Responsibility | + | *[4] TAOR: Tactical Area Of Responsibility [http://alivemod.com/wiki/index.php/TAOR] |
== ALiVE Common Error Messages (Legacy, being rewritten)== | == ALiVE Common Error Messages (Legacy, being rewritten)== |
Revision as of 14:41, 28 May 2020
Contents
Common ALiVE issues and their troubleshoots
For the following section, the [XX/XX] tags represent where the issue is located:
- DS: Dedicated server (on a game hosting or a VPS hosting)
- LS: Local server (a server hosted on your personal machine)
- CS: Client sided (an issue noticed by users and unrelated to the server)
- SL: Solo (an issue noticed in solo campaigns hosted on the local machine)
[DS/LS] 'I am getting low server-side FPS on my mission'
- How do detect?
- Arma works with 2 FPS counters. The client FPS are the frames per second a user gets on his machine. This is mostly affected by the amount of geometry (objects) arma has to render. The server FPS are only related to calculating AI movements and scripts, anything over 24FPS is overkill. To see the server-sided FPS counter, login as an admin (using '#login ' in the in-game text chat) and use the command '#monitor t' in the in-game text chat where 't' is a time in seconds (i.e. '#monitor 5'). If you notice your FPS counter below 24 you can try and gain a few using mission & server optimizing. You should get at least 10FPS to get playable performances.
- What affects it?
- Server-sided FPS can be affected by the following: (ordered by amount of influence)
- ALiVE objectives
- Amount of AI spawned on the map
- Server-sided scripts (included in the mission file BUT ALSO IN MODS!!)
- Server-sided FPS can be affected by the following: (ordered by amount of influence)
- How to troubleshoot?
- 1: Check for abusive scripts: (commands below)
- Run hint str diag_activeScripts; globally in the debug console, it should output something like this: [0,0,0,1]. This represents the amount of scripts running on the server. Check that the number is not anomaly high. [1]
- Run [] spawn { hint str diag_activeSQFScripts; }; globally globally in the debug console, it should output all SQF scripts running on the server, look for anything out-of-the-ordinary. [2]
- Run {systemChat str _x} forEach diag_activeMissionFSMs; globally globally in the debug console, it should output all FSM scripts running on the server, look for anything out-of-the-ordinary. [3]
- 2: Check for abusive AI calculations.
- Test the missing with less than 50 units spawned at the same time.
- Check that ALiVE uses your HCs if you have any (in the ALiVE_Required module > AI Distribution > Headless Clients)
- If you see performance increase while lowering AI count, consider using headless clients to increase AI count (a good rule of thumb is max 300 AI per HC).
- 3: Lower abusive objectives.
- The last thing you can do is lower your objective counts. I have noticed Civilian objectives not having a huge impact so not having filters on them shouldn't be much an issue. The biggest change is noticed with asymmetric objectives.
- Run your mission with placement module debug on and see all the objectives on your map. Notice what objectives you can sacrifice without impacting gameplay (some modded maps have an odd placement and sizing of towns making for unbalanced objective density on the map).
- Apply filters and run your mission with debug until you can find a balancing point between FPS and gameplay. You can also use a combination of asymmetric commander on big objectives only and occupation commander on small objectives with the same faction as a 'filler' to trick the player into not noticing the lack of enemies in the small towns.
- 1: Check for abusive scripts: (commands below)
[DS/LS/SL] 'All my spawned AIs defaulted to CSAT and NATO units'
- How do detect?
- Running the mission, modded faction spawn vanilla faction units.
- What affects it?
- Spawned units are affected by the following: (ordered randomly)
- Faction classnames (typos)
- Mods installed on hosting platform (could be your own computer)
- Spawned units are affected by the following: (ordered randomly)
- How to troubleshoot?
- 1: Check all your classnames for typos, BLU_F, OPF_F and CIV_F are the 'fallback' factions, meaning if any error, ALiVE will use one of these to spawn its units.
- 2: Check for module clashes; make sure all your synced modules use the same classnames (ie. AI commander, AI placement ect...) sometimes, clashes result in an error leading to the fallback faction to be used.
- 3: Check your installed mods and startup parameters. Sometimes the missing will launch even if the mods arn't loaded correctly. If you use dedicated servers, make sure the mod is read correctly and is loaded.
[DS/LS/CS/SL] 'I get this message when trying to use the Alive mod'
- How to detect?
- Start the server/game and notice
include file x cba addons main script_macros.hpp not found
- What affects it?
- This error is affected by @CBA_A3 presence
- How to troubleshoot?
- 1: Check if @CBA_A3 is installed correctly (via steam on client, or manualy check the mod in the FTP if in DS)
- 2: Check the startup command (for clients, check if the mod is checkedin the launched and placed above (before) @ALiVE (in the case of @CBA_A3, it should be the first mod to load regardless of your modlist); for servers check your startup command and look for typos).
- 3: Repair the mod (in launcher right click on the mod and hit 'repair'; on server, delete the entire mod and redownload it from steam)
- 3.1: Totaly redownload the mod (unsubscribe from workshop, delete mod folder, re-subscribe and redownload).
- 4: Check RPTs to see if the mod loaded correctly. Maybe the mod is installed incorrectly.
[DS/LS/SL] 'I'm getting an error with placement modules and markers'
- How to detect?
- Start the server/game and notice
Warning no location found for placement, you need to include military location within the TOAR marker
- What affects it?
- This error is affected by the following: (in no particular order)
- ALiVE placement modules
- Map markers
- Classnames and var names for both placement modules & map markers
- This error is affected by the following: (in no particular order)
- How to troubleshoot?
- All the following need to be done for EACH TAOR unless you know precisely which one is causing the hassle.
- 1: Check the name given to the TAOR [4] and the one placed in the placement module's appropriate field. CHECK FOR TYPOS!!!!
- 2: Check that the TAOR includes towns available in the currently used filter settings (see following steps if unsure)
- 3: Empty the TAOR field in the placement module and turn on the debug for said TAOR. Check for the error, if the error is still present it can mean one of 2 things:
- A: The map you are using does not contain objectives of this type, maybe open your placement filters a bit?
- B: The module you are troubbleshooting is not the module yielding the issue.
- 4: Using the debug, notice available objectives and reconsider your TAOR placement. Resizing or moving or your TAOR marker may be needed to fix this issue.
Going further:
- [1] diag_activeScripts: Returns 4 element array with numbers of currently running scripts in format: [spawn-ed, execVM-ed, exec-ed, execFSM-ed] [1]
- [2] diag_activeSQFScripts: Displays [[" hint str diag_activeSQFScripts;", "", true, 1]] [2]
- [3] diag_activeMissionFSMs: Returns array with active Mission FSMs. [3]
- [4] TAOR: Tactical Area Of Responsibility [4]
ALiVE Common Error Messages (Legacy, being rewritten)
I get this message when trying to use the Alive mod
include file x cba addons main script_macros.hpp not found
You are missing the required mod: @CBA_A3
I'm getting an error with placement modules and markers
Warning no location found for placement, you need to include military location within the TOAR marker
Try the placement module without any TAOR marker defined and with debug switched on in the module, once the game starts take a screen shot of the map so you can see what locations are available over the whole map. Then place your TAOR marker (making sure the marker covers the center point of an existing location from you screen shot). Alternatively expand the size of your TAOR marker until some location is found.
Mission takes a very long time to load
ALiVE initialisation time depends on the size of the map, number of objectives and Placement modules you have. On very large and complex missions it can take up to 15 minutes on the loading screen. Try filtering out the small and low priority objectives.
Infinite Load Screen
This is typically caused by one of the following:
1. Modules are not synced correctly. Ensure ALiVE modules are properly synced (F5) in the editor and not Grouped (F2). The editor loves to group modules so always double check.
2. The Virtual AI Commander (OPCOM) cannot find any groups in the addon faction config. Check that the AI Commander has at least one Placement module with the same faction in the override box, the classname is spelt correctly and the addon is in the list of Supported Factions.
3. The Virtual AI Commander (OPCOM) cannot find any objectives on the map or within the TAOR. Try expanding the TAOR and use debug on the Placement modules to check some objectives show. Check that the map is in the list of Supported Maps. Note that sometimes maps are updated and the indexing is out of date.
4. Troubleshooting: if in doubt, always test with vanilla factions (e.g. OPF_F and BLU_F) and ideally a vanilla map (e.g. Altis) to rule out any issues with your ALiVE installation or setup.
Persistence isn't working
1. For full mission persistence via the War Room, check that you having @ALiVEServer and have set up your server details as per the instructions in your group's server profile page.
2. When saving the mission, you must use the "Server Save & Exit" button. Do not Abort or do #missions, as this exits too quickly for ALiVE to gather the data. If in doubt, it's sometimes worth having the admin manually save his profile before quitting.
3. When restarting the server, it sometimes helps to wait a few minutes on the map screen for all the scripts (including any other mods) to initialise before joining the game.
4. Note that vehicles are only saved after a player "get out" event. Objects are only saved after they are moved around with Logistics Support.
My Game Crashes on loading a mission on X map with ALiVE
Try switching memory allocator