A3Armory / A3A_A3Wasteland.Altis

A3Wasteland is a survival sandbox mission for Arma 3 where two teams and independent players fight for survival. Built in collaboration between GoT, TPG, KoS, 404Games, and others.
http://a3wasteland.com
GNU Affero General Public License v3.0
9 stars 6 forks source link

Vehicle store issues #31

Closed codexGW closed 7 years ago

codexGW commented 7 years ago

I'm having issues with the vehicle store timeout not working but the bad one is the vehicle store isn't taking money when I buy a vehicles sometime. Not sure what cause it but once its active everything you buy at the vehicle store is free.

codexGW commented 7 years ago

Oh nooo. It's happening on vanilla. @AgentRev need a quick fix. DLC is coming in 1 hour.

AgentRev commented 7 years ago

client rpt plz

AgentRev commented 7 years ago

actually, server rpt plz

codexGW commented 7 years ago

Don't worry about this. Testing something

4:53:09 Error in expression <ings\main_config.sqf"

_rNumber = floor random [4,22]; A3W_startHour = _rNumber;> 4:53:09 Error position: <random [4,22]; A3W_startHour = _rNumber;> 4:53:09 Error 2 elements provided, 3 expected 4:53:09 File A3Wasteland_settings\main_config.sqf, line 2

AgentRev commented 7 years ago

you shouldn't use an array like that with random, it's not a linear range, but a gaussian distribution. use this:

#define RANDOM_BETWEEN(START,END) ((START) + floor random ((END) - (START) + 1))
AgentRev commented 7 years ago

ok I have the bug too, looking into it

AgentRev commented 7 years ago

oh lol just a small bug with params, hang on.

AgentRev commented 7 years ago

https://github.com/A3Wasteland/ArmA3_Wasteland.Altis/commit/26b97344052c161c230c232408107a1fa3c1e336