LordGolias / antistasi

Antistasi improved, a mod for the game Arma 3.
BSD 3-Clause "New" or "Revised" License
31 stars 18 forks source link

Saving game in MP does not copy to clipboard #52

Closed LordGolias closed 6 years ago

LordGolias commented 7 years ago

In SP this works as expected.

LordGolias commented 7 years ago

This is because copyToClipboard only works in SP and MP if the client is server.

I didn't know this before, so we have to change to where the game is saved.

mike-187 commented 7 years ago

On dedicated server I just tried to save and it didn't complete. here is the error log: 21:48:46 "[AS] Server: saving game..." 21:48:46 "[AS] Server: serializing game..." 21:48:46 "[AS] Server: serializing AAF arsenal..." 21:48:46 "[AS] Server: serializing locations..." 21:48:52 "[AS] Server: serializing fia_hq..." 21:48:52 "[AS] Server: serializing FIA arsenal..." 21:48:54 "[AS] Server: serializing persistents..." 21:48:54 Error in expression <t; private _closest_pos = _closest call AS_location_fnc_location; private _size > 21:48:54 Error position: <AS_location_fnc_location; private _size > 21:48:54 Error Undefined variable in expression: as_location_fnc_location 21:48:54 File database\fnc_persistents_toDict.sqf [AS_database_fnc_persistents_toDict], line 40

LordGolias commented 7 years ago

@mike-187, yap, my bad :( Just pushed a fix for it with 726d6245cbf364525c4f9d4a0f23b912d6120ae0.

The problem still remains that we cannot save the string into a file (this issue)

LordGolias commented 6 years ago

Closing as this will be handled in #174