Having Server Lag

  1. ‹ Older
  2. 7 years ago

    Ahhh ok thanks! I was also wondering how often do people do server restarts? After around a day it seems like AI Combat support slows right down (takes 5 minutes for it to pickup on what you told it to do like move commands), frames slow right down, units begin spawning without correct loadouts, units take awhile to spawn in, damage stops registering, etc

  3. We don't run an Arma 3 server anymore but we used to restart it daily. Same with Arma 2.

  4. Awesome thanks! Is there a way to use the server exit to save for persistence automatically?

  5. Also I have had a few weird instances of being on a hill for instance for like 15 minutes and then all of a sudden tanks spawn right on my position?

  6. heres my rpt https://www.dropbox.com/s/xl1p8pr2pucu1bh/ServerRPT.zip?dl=0

  7. @Opendome Awesome thanks! Is there a way to use the server exit to save for persistence automatically?

    http://alivemod.com/wiki/index.php/Persistence#Persistence_Script_Commands

    Look under Autosave

  8. Awesome thanks! So if I put

    ["MyCustomVariable", _value] call ALiVE_fnc_setData
    _value = ["MyCustomVariable"] call ALiVE_fnc_getData

    in my init.sqf it will save and then load every time the server gets restarted?

  9. For whatever the value of MyCustomVariable is yes

    I think this is what you want for autosaving:

    900 call ALiVE_fnc_AutoSave_PNS //where 900 is the save interval in seconds
    -1 call ALiVE_fnc_AutoSave_PNS //run at any time will disable autosave
  10. Perfect thanks! So id just use

    900 call ALiVE_fnc_AutoSave_PNS //where 900 is the save interval in seconds

    and not

    -1 call ALiVE_fnc_AutoSave_PNS //run at any time will disable autosave

    to keep it saving every 15 minutes?

  11. Edited 7 years ago by Opendome

    Oh also I want it to save to the ALiVE DB as its on a dedicated server so id want

    ["MyCustomVariable", _value] call ALiVE_fnc_setData //will save to the Cloud on next Server Save & Exit
    _value = ["MyCustomVariable"] call ALiVE_fnc_getData //will load on next mission start or when command is executed

    then right?

    or would I use

    900 call ALiVE_fnc_setData

    in my init.sqf?

  12. Edited 7 years ago by SavageCDN

    the ALiVE_fnc_AutoSave_PNS function only works with local persistence.

    This line - ["MyCustomVariable", _value] call ALiVE_fnc_setData is for saving specific variables to the DB (ie: if your mission uses a payment system you could save the player's money to a variable before restarting so they wouldn't loose their money), not for saving the whole mission.

    So yeah just use this line in init:

    900 call ALiVE_fnc_AutoSave_PNS

    Note there will be some desync / lag when saving.

  13. Ahhh awesome thanks! I always thought mission persistence was saved to the cloud? In ALiVE data I have database source set to the cloud. So objectives, unit location, virtual layer, logistics, etc has always been saved locally?

  14. also does anyone see anything unusual in my rpt? Im really stuck and I dont see anything that stands out

  15. If you have it set to save to cloud and you have a War Room account then yes it should be saved to the cloud.

    That RPT is hard to look at due to all the mod errors (*cough* RHS *cough*). What's the issue you're trying to fix?

  16. Edited 7 years ago by Opendome

    Sorry for so many questions haha. So in that case using

    900 call ALiVE_fnc_AutoSave_PNS

    would save it to the cloud?

    I wonder if its RHS causing my issues. Im having issues with a few things, there are times where we'll be on a hill for say 15 minutes or so and FPS is still ok (40-60) and then all of a sudden enemy units/tanks will spawn in right on top of us. It doesnt happen all the time but happens occasionally. Also there are times where all clients who are playing drop to 10-20 FPS after awhile, after closing/reopening arma being in the exact same place right after frames go up to 50-60. Also I think it may be an ORBATRON issue but factions ive made sometimes only spawn in with a uniform (missing vest/helmet) some elements of the original import (such as vanilla clothing) etc.

    Does anyone know of any better optimized alternatives to RHS?

  17. CUP. But honestly, none of this sounds normal. If I was you, I’d strip the mission down to the very basic necessities (I would personally gut it down to just vanilla + the faction mods) and play it locally to see how it holds up. If well, then and only then would I put it back on a dedi to test to see if that’s where the issues lie.

    From there you can add mods back in to see which is causing your problems.

  18. @Opendome Sorry for so many questions haha. So in that case using

    900 call ALiVE_fnc_AutoSave_PNS

    would save it to the cloud?

    No there is no auto-save to cloud function - to local DB only.

    Heroes suggestion is a good one - try to strip out most of those mods when building the mission and add them back once things are working.

  19. Edited 7 years ago by Nichols

    Take a look at your spawn settings.

    We found that by lowering the helo and jet settings to a significantly lower number allowed our server to keep up better. Also when a player operated aircraft flys over an AI area they aren't spawning in all the CQB, CIV and OPFOR/INDFOR assets all the time. A player in a jet can literally keep most of the AI assets on a map like Isla Duala, Lingor, etc... spawned for nearly their entire time in the air if they are up there flying virtual figure eights waiting on you to bring in CAS for a mission.

    We still haven't figured out how to avoid having things spawn right on top of us in any way other than going super slow with our forces when near objectives.

    Also take a look at your objective filter settings (if they didn't mention it earlier...sorry didn't read all of the replies) and break up your TAOR's into smaller areas with different force sizes within them.

  20. Thanks thats a great suggestion! Ill definitely give that a try, right now I dont have any play er controlled aircraft but I do have AI combat support transports. I guess the biggest problem I have is that I get AI just running in place that cant be killed or anything,

  21. Edited 7 years ago by Opendome

    Also I just noticed my HCs rpt say

    MAP NOT INDEXED OR DEDI SERVER FILE LOAD... ALiVE LOADING MAP DATA: IslaDuala3

    which I think is just it checking if theres an index in the mission file itself and loads the index from the mod but just wanted to make sure lol

 

or Sign Up to reply!