Commit Graph

160 Commits

Author SHA1 Message Date
worldwidesorrow abb4046281 Compiles have been added to the top of the init file. 2020-01-09 16:43:45 -06:00
worldwidesorrow ddca2cbec8 Remove unused line.
The operations were moved to the scheduler in the 1.0.6 update.
2019-11-26 09:37:51 -06:00
worldwidesorrow 357d6c5aed Remove server_spawnEvents from compiles.
This function has been moved to the scheduler.
2019-11-25 08:47:57 -06:00
A Man 786eae2956 Move trader category call to client only
Server does not need the trader categories any longer. Also clean up the server_traders.sqf file. This file is redundant. If server admins want to change the trader categories, they just have to edit the path and add the file to the mission.
2019-11-16 19:28:57 +01:00
A Man 49378f62b3 Remove DB traders 2019-11-16 19:06:32 +01:00
A Man f24921ab1e Updating server_updateObject 2019-10-31 20:41:15 +01:00
ebayShopper d48c9070e8 Revert the last two commits
This reverts commits b5f3f30 and 3e0ddef.

Discussed with oiad on discord:
- BIS_fnc_areEqual is much slower than short string comparisons
- String in array form is three times longer, which means more data sent over the network

This way keeps authKey as a string and still avoids pvval kicks.
2018-01-21 13:54:20 -05:00
oiad 3e0ddef7b1 Fix more dayz_serverKey from https://github.com/EpochModTeam/DayZ-Epoch/commit/b5f3f306de9e989a1106333e6feeb97f2e73a3d0
Thanks to @AirwavesMan for the heads up
Hopefully no more! :)
2018-01-21 12:48:52 +13:00
ebayShopper dd2ba5cf6a Fix mission check typo
My mistake in 410ef64
2017-12-11 17:59:27 -05:00
ebayShopper 410ef644ae Add better handling of very large files in mission check
Thanks to Dihan for pointing this out.
2017-12-10 17:12:33 -05:00
ebayShopper 1e65d5d324 Move server_getDiff to missionNameSpace
Vanilla commits:

https://github.com/DayZMod/DayZ/commit/dc984fd21994c137b757a3ad4e7ff0dce7e4019a

https://github.com/DayZMod/DayZ/commit/d82f430c28f69c89c091bd18121578d293ba6400
2017-11-25 12:47:25 -05:00
ebayShopper 137f448793 Update vanilla fence damage
Vanilla commits:

https://github.com/DayZMod/DayZ/commit/b56d85eb99ddb2e419864608b9098a5e96c0f7f6

https://github.com/DayZMod/DayZ/commit/2eb963dc3f381ece6496c129fa42b4b0b1baa90c

https://github.com/DayZMod/DayZ/commit/8b4a985cf632d0b0d14ca3e558c89729abeec5b0
2017-11-18 17:43:06 -05:00
oiad 2f178d8978 Consolidate weapon/magazine/backpack adding to function
This moves a lot of duplicated code from a server side only function
(server_addCargo) to a client/server function called fn_addCargo.
2017-11-19 11:06:00 +13:00
ebayShopper eefcdf2610 Add basic security checks to object_killed
PVDZ_veh_Save = [_obj,"killed"]; could be abused in the same way as
server_deleteObj (42e0047)
2017-11-13 16:14:22 -05:00
ebayShopper 42e00475d6 Add sender verification to publish and swap object
Continuation of 8035df0

This is important to have on publish to identify cheaters who spam
create objects in the database or create objects with bad inventory.

- Renamed variables to backport to vanilla
- Removed % and & due to code filtering in publicvariableval.txt

Changes in modular_build.sqf were the same as player_build.sqf.

Tested with building, upgrading buildable/vehicle/tent, downgrading,
buying a vehicle, destroying tent and removing an object.
2017-11-03 16:09:14 -04:00
ebayShopper 6ab4faba39 Update AI hit log
Correction for 6239959

@oiad isPlayer is not reliable on dead units which may be passed to
fa_plr2Str. Also, the other scripts which call fa_plr2Str always provide
a player, so we only want to check for AI on the hit log source.
2017-09-19 12:11:27 -04:00
icomrade fc23bc73b2 remove hotfix from check 2017-09-08 11:42:03 -04:00
oiad 7428f3fd1f AI hit messages and continuity
This changes the hit messages to only show AI instead of the AI's names.
Changes this:
20:08:37 "P1ayer PID#7(salival) hit by PID#1(Qadeer Hakimi) with
vil_G36VA4Eot/B_556x45_Ball <ammo left:25> from 356 meters in head_hit
for 0 damage"
To this:
20:08:37 "P1ayer PID#7(salival) hit by AI with
vil_G36VA4Eot/B_556x45_Ball <ammo left:25> from 356 meters in head_hit
for 0 damage"

Sanity fix for hit and kill for vehicles so they match:
Before:
22:44:03 "P1ayer PID#3(salival) hit by AI in Pickup (PK) DZ from 15
meters in head_hit for 0.88666 damage"
After:
22:44:03 "P1ayer PID#3(salival) hit by AI with a Pickup (PK) DZ from 15
meters in head_hit for 0.88666 damage"
Kill message:
22:44:04 "salival (76561197999617086) salival was killed
by AI with a Pickup_PK_INS_DZ from 15m"
2017-08-17 23:09:10 +12:00
icomrade 8035df0ba0 Rudimentary auth for DeleteObj
limits distance to object, as well as validating random auth key.  added server_deleteObjDirect which is only for direct execution on the server, whereas server_deleteObj should be used for PVEH execution only
2017-07-29 21:09:20 -04:00
ebayShopper 6a711deccc Add reliable workaround for swimming in ground and air issue
Fixes #1913
2017-03-23 15:58:14 -04:00
ebayShopper ad7a12771a Fix swimming in ground again #1913
Closes #1913
2017-03-22 14:59:31 -04:00
ebayShopper c19a138804 Use formatText in mission check
Avoids format character limit
closes #1905
2017-03-11 20:41:33 -05:00
icomrade 6871da6168 add hotfix files to mission check 2017-03-10 13:56:17 -05:00
icomrade a3f22197de 1.0.6.1 hotfix A
update changelog
add mission check
add fixes for group icons and nutrition to mission files
2017-03-10 13:50:33 -05:00
ebaydayz 9afb74ff26 Remove plot take ownership feature #1811
See #1811
2017-01-31 15:22:23 -05:00
ebaydayz 26c1bd9a86 Properly disable town generator and plant spawner loops
Stops intensive loop from running unnecessarily when dayz_townGenerator
= false; The comfrey plants are pointless atm since the only thing they
may be used for is crafting a sepsis bandage.

Also added waterHoleProxy for Napf and Namalsk placed by @skigoggles

Vanilla commit:

https://github.com/DayZMod/DayZ/commit/b5a91250865db7f3bdce7f0d2bfc676be27d7884
2017-01-21 21:44:43 -05:00
ebaydayz ad556aa0cb Remove two hardcoded Chernarus checks
Vanilla commit:

https://github.com/DayZMod/DayZ/commit/c8455bb718733aa89633c69fee0dd8a6a901d87e
2017-01-06 17:58:13 -05:00
ebaydayz 7e341739ee Readd hive shutdown code from 1051 #1822
Fixes hive connection error when child 302 call fails.
2016-12-24 18:09:01 -05:00
ebaydayz b6d88b1329 Update vanilla building
Vanilla commits:

https://github.com/DayZMod/DayZ/commit/9b2092c9f7f1bb57607452691cae7e6975ccb959

https://github.com/DayZMod/DayZ/commit/674624d1221e7f661189206631e066b48870e0c7
2016-11-25 16:25:26 -05:00
ebaydayz bec4ccce38 Update dayz_server
Vanilla commits:

https://github.com/DayZMod/DayZ/commit/95bf775fd2efaaa915f0fbcce3457eab888ff54f

https://github.com/DayZMod/DayZ/commit/6e638aeb8c18faeb5758e6acb3906b82b2d6eb60
2016-11-18 15:28:00 -05:00
ebaydayz b01a4165a8 Comment some unused achievement code
Vanilla commits:

https://github.com/DayZMod/DayZ/commit/3ec1cc3c5db3cb9c8a0a974ef6d11248b761cea0

https://github.com/DayZMod/DayZ/commit/3171f68beee73430d3236cfd4e43e13535209174
2016-11-18 13:22:36 -05:00
ebaydayz 46a1441773 Avoid format character limit in server_hiveReadWrite
Vanilla commit:
https://github.com/DayZMod/DayZ/pull/757
2016-10-12 13:36:19 -04:00
icomrade f66c512485 Revert SQL changes, update key gen
slightly different generation scheme
2016-10-02 15:00:35 -04:00
icomrade 8c3fe83a87 Better UID Calculation + Longer ObjectUID Column
Don't even bother using vector in the key calculation, the sqf ObjectUID
isn't as critical anymore. This method will be much faster.

Changed ObjectUID column to Varchar since with this key generation
method we can approach the BigINT ceiling much quicker than we used to.
2016-09-26 16:34:26 -04:00
icomrade 43547c8273 Better key calculation
append diag_ticktime to key. Max length is 24 characters in the DB so
the limit so this shouldn't cause issues unless the server is up for
hundreds of days.
2016-09-22 13:26:15 -04:00
icomrade b806043a4a Save player and vehicle after trade
Also forgot to commit a change yesterday
2016-09-11 12:52:38 -04:00
ebaydayz bfca19bf80 Remove some unused legacy code 2016-08-18 17:00:08 -04:00
icomrade cbf87cb1e4 Revert "Should fix #1733"
This reverts commit b6ffa37c1b.
2016-08-12 23:39:17 -04:00
icomrade b6ffa37c1b Should fix #1733 2016-08-12 22:14:52 -04:00
ebaydayz 72656ed001 Greatly optimize safe gear handling
- Safe inventory arrays are no longer sent over network to all machines
on server startup and on each lock/unlock
- Disabled user input then closed gear dialog during safe
lock/unlock/pack to block various duping methods.
- Moved safe creation, deletion and gear handling to server. This cuts
down on add[Magazine/Weapon/Backpack]Cargo, createVehicle and
deleteVehicle BE logs.
2016-08-10 20:34:54 -04:00
ebaydayz 28a522ba64 Fix PV value kick for player names with special characters
Vanilla development commit:

https://github.com/DayZMod/DayZ/commit/6b7a55b1ea0a8aacfc476599a6da10e75aa3c726
2016-07-25 13:37:33 -04:00
ebaydayz 55df36741b Diag_log Cleanup.
Vanilla development commits:

https://github.com/DayZMod/DayZ/commit/1dbef192bb413526503aca89bb636e277ac59985

https://github.com/DayZMod/DayZ/commit/10cb0249f0dcfa80b5e4cfd89660bc6c33d6700a
2016-07-25 12:06:53 -04:00
icomrade c702d92231 Remove SQF Based Duplicate UID Fix
Use the new DLL
2016-07-17 10:52:40 -04:00
ebaydayz 65233757e8 Correct duplicate object UID check
I forgot numbers greater than 1 million are truncated when converted to
string:

http://killzonekid.com/arma-scripting-tutorials-float-to-string-position-to-string/

KeyStartNumber exceeded 6 digits which is why it was being truncated to
"1e+011" and getting stuck on loop (as that string was already in
currentObjectUIDs) as mentioned in 2df7279.

Starting at 10, there should never be more than a couple duplicates
generated, so keyStartNumber will never exceed about 100 max.  Added an
exit just for a fail safe.
2016-05-16 11:52:45 -04:00
icomrade 6c24aaeb3b Add Vector Building 2016-05-12 22:52:04 -04:00
ebaydayz 1fe8a7abf5 Fix typo from 26e6727 2016-05-07 13:14:22 -04:00
ebaydayz 26e67270cb Update Precise Base Building to v1.0.5 by @Mikeeeyy
Note @icomrade : 1.0.6 test servers need to empty object_data or run the
SQL query linked below before applying this update.

http://epochmod.com/forum/topic/15813-release-v105-precise-base-building-persistent-bases-after-restart-updated-220915/#comment-118663
2016-05-07 13:06:20 -04:00
icomrade eddcf02ab3 Precise Base Building fix 2016-05-02 21:06:44 -04:00
icomrade 575682b7c8 Add A Plot For Life modification by RimBlock
A Plot For Life also includes Precise Base Building by Mikeeeyy. Precise
base building has no variable to switch it on or off, I don't think it
should.

Seems to work well enough, this may conflict with the duplicate object
uid fix, it appears to spam my server rpt.
2016-05-02 20:42:37 -04:00
ebaydayz f38c6ff72e Fix server FPS logging
No need to have a config variable for this, admin can easily change it
in server pbo.
2016-04-17 17:11:49 -04:00