Difference between revisions of "Troubleshooting"

From ALiVE Wiki
Jump to: navigation, search
(Going thruther:)
(Going further:)
Line 56: Line 56:
 
== Going further: ==
 
== 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] // [https://community.bistudio.com/wiki/diag_activeScripts]
+
*[1] diag_activeScripts: Returns 4 element array with numbers of currently running scripts in format: [spawn-ed, execVM-ed, exec-ed, execFSM-ed] [https://community.bistudio.com/wiki/diag_activeScripts]
*[2] diag_activeSQFScripts: Displays [[" hint str diag_activeSQFScripts;", "", true, 1]] // [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]
  
 
== ALiVE Common Error Messages (Legacy, being rewritten)==
 
== ALiVE Common Error Messages (Legacy, being rewritten)==

Revision as of 10:44, 27 May 2020

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)


'I am getting low server-side FPS on my mission' [DS/LS]

  • 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!!)
  • How to troubleshoot?
    • 1: Check for abusive scripts:
      • 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; };' [2] globally in the debug console, it should output all SQF scripts running on the server, look for anything out-of-the-ordinary.
      • Run '{systemChat str _x} forEach diag_activeMissionFSMs;' [3] globally in the debug console, it should output all FSM scripts running on the server, look for anything out-of-the-ordinary.
    • 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.


'All my spawned AIs defaulted to CSAT and NATO units' [DS/LS/SL]

  • 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)
  • 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.


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]

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