Cenwulf / A3RifleRange

Arma 3 rifle range script.
GNU General Public License v3.0
6 stars 5 forks source link

Drill instructions won't load on dedicated #8

Closed AVESUM closed 3 years ago

AVESUM commented 3 years ago

Problem: Drill instructions won't load to player when mission is hosted on dedicated server. (on self hosted everything works fine) General instructions are loaded, but not specific range and drill instructions.

How to recreate: Start with required mods (cba, ace, acex). Join mission.

Cenwulf commented 3 years ago

Hi there, thanks for the report.

This may be a JIP issue. If on dedicated, do the instructions load correctly for players if they join before the mission is started?

Cenwulf commented 3 years ago

Ok so the function that adds the instructions should be getting added to the JIP queue and then get executed on every joining player. Not sure why that's not happening in your case.

I'll have to blow the dust off my test serve and see if I can recreate the issue.

Cenwulf commented 3 years ago

I wasn't able to replicate the issue but I've spotted a potential cause in that the drill instructions function wasn't checking that the player object had initialised before attempting to add the diary record entries. I've pushed the update to the master branch so please feel free to redownload.

Let me know if this solves the issue.

AVESUM commented 3 years ago

Thank you so much! It works like a charm!

Cenwulf commented 3 years ago

No problem, thanks for reporting back.