Commit Graph
2650 Commits
Author SHA1 Message Date
Luis C.M 118d79f3ad Added synchronization blocks to functions retrieving objects from CacheHashMaps and made the API use one for caching item stacks as well. 2023-05-31 00:35:57 -05:00
Luis C.M 3bc02a708e Moved entrySet() call outside of for loop 2023-05-30 23:43:10 -05:00
Luis C.M 46febe5c0a CacheHashMap:
-New class extending from the HashMap class, only takes CacheHashMap.CachedObject as values, which itself is a template class.
-On every call to get(), it goes through its values and removes any that are past a set age in millis.

ClientCache:
-New class with static CacheHashMap and function to get image data, will do more caching later on.
2023-05-30 23:41:37 -05:00
Luis C.M ab8e966f71 NpcAPI:
-Made item cache key removal a synchronized code block
2023-05-30 01:46:29 -05:00
Luis C.M 45a139ea68 NpcAPI:
-Further fix to concurrent modification exception
2023-05-30 01:37:08 -05:00
Luis C.M 65f3f8fc74 NpcAPI:
-Fixed concurrent modification exception
2023-05-30 01:33:18 -05:00
Luis C.M 500034f5f5 Merge branch 'patch' into dev 2023-05-30 01:28:02 -05:00
Luis C.M 895d20335f DataScript:
-Now doesn't create a new instance of NpcAPI
2023-05-30 01:27:34 -05:00
Luis C.M f260bb688a ScriptItemStack & NpcAPI:
-Created a cache for scripted item stacks
2023-05-30 01:25:20 -05:00
Luis C.M 1ce5b7b302 ScriptCustomItem:
-Fixed issue where NBT data was not being sent to the client side, caused by latest commit.
2023-05-30 00:56:39 -05:00
Luis C.M 7c4965d368 ScriptCustomItem:
-Made engine for containers also set on saving
2023-05-29 23:59:57 -05:00
Luis C.M a0adf0d7bd Fixed item toss event not being cancellable. Setting a script container's engine doesn't happen on every script call now, reducing lag. 2023-05-29 23:57:45 -05:00
Luis C.M 2ec6e5b753 PacketHandlerServer:
-Fixed global scripts still running old versions of their scripts when changed.
2023-05-26 00:22:14 -05:00
Luis C.M 130ac26879 ScriptContainer:
-Fixed issue where the full code the script engine evaluates wouldn't get remade after being changed
2023-05-25 22:18:54 -05:00
Luis C.M cbf99be297 PlayerData:
-Renamed loadPlayerDataFromFile() to load(), and moved it next to the save() function for later addition to the API.
-Moved saving/loading to EP functions where they used to be.
-Removed now unused PlayerData.get() and loadPlayerDataOld() functions

ServerEventsHandler:
-Added new EntityConstructing event to add the PlayerData EP earlier.

NoppesUtilPlayer:
-questCompletion() now saves player data right before its return statement.
2023-05-21 02:48:30 -05:00
Luis C.M dc42beee15 Merge branch 'dev' into patch
# Conflicts:
#	src/api
2023-05-20 21:15:14 -05:00
Luis C.M b49402f8bd Implemented ImageData object caching for custom GUI button & rect elements 2023-05-20 19:23:54 -05:00
Luis C.M 8df94aaf67 IDBCPlayer:
-Created separate mastery functions for racial and non-racial forms.
2023-05-20 16:13:15 -05:00
Luis C.M ed5cfad00d IDBCPlayer:
-Changed mastery functions to use a boolean for racial or non-racial forms.
2023-05-20 15:00:58 -05:00
Kam a9961ed740 Update to 1.8.4-beta 2023-05-19 14:29:08 -04:00
Kam 6700030890 Fix Animation on Players not finding body parts 2023-05-19 14:28:55 -04:00
Kam 02b44953cb Remove duplicate Quest Completed Message 2023-05-17 16:18:09 -04:00
Kam b8c3e9bef2 QuestData Null check for QuestKill 2023-05-17 12:21:38 -04:00
Kam 5b361d779f Fix Crate Crash 2023-05-17 11:43:43 -04:00
Kam 6df7d3643f Remove runTack() 2023-05-16 19:16:34 -04:00
Luis C.M e7ed34a591 Merge remote-tracking branch 'origin/dev' into dev 2023-05-16 18:02:19 -05:00
Kam a6cd55fcea Merge branch 'master' into patch 2023-05-16 17:46:42 -04:00
Kam 13b153d922 1.8.3 2023-05-16 17:46:34 -04:00
Kam f77a2ff101 Remove more threading 2023-05-16 17:45:23 -04:00
Kam 49fab85291 Revert lots of multithreading for better threaded saving and data synchronization 2023-05-16 17:43:54 -04:00
Kam 6f1914c002 Remove ClientSide 2023-05-16 17:33:28 -04:00
Kam d1901dcf0c Spoof 1.8.3 2023-05-16 17:17:47 -04:00
Kam 204e7a9c15 Revert Some Multithreading for Synchronization 2023-05-16 17:17:11 -04:00
Kam 892d11b89b Synchronized savePlayerDataMap 2023-05-16 14:40:16 -04:00
Kam b965d2e097 1.8.3 - version change 2023-05-16 14:33:06 -04:00
Kam 3c1d7e6689 oops 2023-05-16 12:59:08 -04:00
Kam 99298226f7 Faster Quest/Faction Menu loading 2023-05-16 12:58:28 -04:00
Kam 0306cff24e Fast Quest Log Loading 2023-05-16 12:51:14 -04:00
Kam 44f4301239 Fix Permission crash 2023-05-16 12:39:55 -04:00
Kam eb77ae3b99 1.8.2 2023-05-16 11:36:25 -04:00
Kam 2b1449b5f3 Fix and Remove Universal Permissions 2023-05-16 11:34:48 -04:00
Kam 221f00ccf4 Make Save PlayerData within PlayerData. More multithreaded saving 2023-05-15 23:06:21 -04:00
Kam cf82314181 Final & Synchronized Data sending with slight delays to heavily improve server performance 2023-05-15 20:03:52 -04:00
Kam ee33a57323 send Associated Data to all 2023-05-15 19:40:53 -04:00
Kam ae1f33d327 Utilize a One Thread and Synchronized attribute to better control data integrity and prevent data loss 2023-05-15 19:31:40 -04:00
Kam 60dbcc7146 Ensure Tracked Quest does not equal null when updating 2023-05-15 16:02:44 -04:00
Kam 0b7bd2f009 Add Update Tracked Quest Frequency for ITEM QUESTs 2023-05-15 15:55:41 -04:00
Luis C.M 92097769d9 ScriptPlayerEventHandler:
-Temporary fix to updating tracked item quests.

Fixed more tracked quest issues.
2023-05-14 19:14:43 -05:00
Kam 8d21291e7b Add Universal Developer support to Commands 2023-05-12 20:34:02 -04:00
Kam 88eb96e784 Change Mod name to CustomNPC+ 2023-05-12 20:32:55 -04:00