Commit Graph
3481 Commits
Author SHA1 Message Date
bigguy345 6cdb222b67 Added INTERFACE_METHOD_BODY error & improved logic 2025-12-31 16:53:38 +02:00
bigguy345 c97de07ef7 Added MISSING_BODY error for method declarations 2025-12-31 14:46:00 +02:00
bigguy345 20f1c7cb66 Detected duplicate methods for ScriptTypeInfo methods 2025-12-31 14:27:57 +02:00
bigguy345 002d2a6f15 Optimised ScriptType member detection 2025-12-31 14:25:47 +02:00
bigguy345 4ff47456b7 Detected bodyless Methods declared within interfaces/have abstract modifiers 2025-12-31 14:09:17 +02:00
bigguy345 6c0a2caa7e Quick re-organisation 2025-12-31 13:30:01 +02:00
Claude 9b654621e8 Add attack speed check to NPC's attackEntityFrom before immunity check
The LivingAttackEvent handler was firing too late for NPCs because
EntityNPCInterface.attackEntityFrom() has its own immunity check that
runs BEFORE calling super (which fires LivingAttackEvent).

Now the attack speed bypass is checked directly in the NPC's
attackEntityFrom() method, before the immunity check at line 658.
2025-12-31 01:00:33 +00:00
Claude d06e680350 Fix attack speed formula to check elapsed time properly
Instead of blindly resetting hurtResistantTime for fast weapons, now
checks if enough time has elapsed based on the weapon's attackSpeed:
- timeElapsed = maxHurtResistantTime - hurtResistantTime
- Allow attack when: hurtResistantTime <= maxHurtResistantTime - attackSpeed

Example: attackSpeed=10, maxHurtResistantTime=20
- Allows attack when hurtResistantTime <= 10 (10 ticks elapsed)
2025-12-31 00:52:06 +00:00
Claude 185a8bc917 Move hurt resistant time handling from LivingHurtEvent to LivingAttackEvent
- Remove legacy attack speed handling from ServerEventsHandler.LivingHurtEvent
  (was setting hurtResistantTime AFTER immunity check, too late)
- Add proper handling in ScriptPlayerEventHandler.LivingAttackEvent
  (sets hurtResistantTime=0 BEFORE immunity check for fast weapons)
- For weapons with attackSpeed < 20, bypass invincibility frames to allow
  rapid attacks to land
2025-12-31 00:45:26 +00:00
Kam ce8e38b6bd Update ScriptPlayerEventHandler.java 2025-12-30 19:41:02 -05:00
bigguy345 ef4438fcf4 Optimised scrolling animation variables to fix the line text's stuttering at the end of scroll ease out 2025-12-31 02:37:15 +02:00
bigguy345 8089a5eef0 Fully migrated to drawStringHex for Script Editor line rendering 2025-12-31 02:36:10 +02:00
Kam 592a910cbc Add some more Attack Speed Handling 2025-12-30 19:29:44 -05:00
bigguy345 a7b43563cf Quick move 2025-12-31 01:22:08 +02:00
bigguy345 7f010f5e0c Removed no longer usued HexRenderer 2025-12-31 01:21:45 +02:00
Kam 8dad290486 Merge branch 'claude/fix-mount-movement-jitter-7JrfX' into dev 2025-12-30 18:21:38 -05:00
bigguy345 f3a7f3a0ad ScriptLine.drawStringHex is now functional 2025-12-31 01:20:59 +02:00
Claude de8c317023 Add mount edge case handling for dismount scenarios
- Player logout: Dismount from NPC mount before logout to prevent
  orphaned mount state (ServerTickHandler)
- Teleportation: Dismount before cross-dimension teleport to prevent
  mount being left behind in old dimension (NoppesUtilPlayer)
- Dead rider: Validate rider is alive, dismount dead/invalid riders
  to prevent stuck mount state (NPCMountUtil)
- Role disable: Dismount rider when mount role is disabled to prevent
  mounted player on non-mount NPC (RoleMount)
2025-12-30 23:20:54 +00:00
Claude 096c9b0a69 Fix mount movement jitter by following vanilla horse/boat sync pattern
- Remove all velocityChanged=true flags from mount movement code
  (NPCMountUtil, EntityNPCInterface, EntityNPCFlying)
- Make performMountedMovement physics server-side only like vanilla horse
- Remove syncMountedRiderVelocity method that forced rider velocity packets
- Fix ground movement to not reset motionY every tick
- Let Minecraft's entity tracker handle position sync naturally

The jitter was caused by S12PacketEntityVelocity being sent every tick,
which constantly reset client interpolation. Vanilla horses/boats never
set velocityChanged and rely on the entity tracker for smooth sync.
2025-12-30 23:06:16 +00:00
Claude 370abd2f94 Fix Player Data search functionality bugs
- Fix category search logic for Quest/Dialog/Transport tabs that was
  incorrectly checking selectedCategory.isEmpty() before filtering,
  which cleared the category list instead of filtering it
- Add resetScroll() calls to all search methods so scroll position
  resets when search results change
2025-12-30 23:04:32 +00:00
Kam 2065d5dde5 Merge branch 'mount-movement-fix' into dev 2025-12-30 17:49:27 -05:00
bigguy345 f0b4513105 ExpressionTypeResolver API now checks resolved type against expected type.
i.e. in:
String s =  true? true : "";

Both true and "" try to match s type String, and if any are incompatible it returns that so the error can be produced
2025-12-30 21:09:39 +02:00
bigguy345 61fb092c82 Non-static method call from static context validation 2025-12-30 20:21:23 +02:00
bigguy345 9c1fadf493 Added missing FieldInfo code to ScriptTypes too 2025-12-30 20:03:12 +02:00
bigguy345 e268a99f26 Added script type assignment errors to proper pool fetch methods 2025-12-30 19:38:37 +02:00
bigguy345 d909e9e44e Improved field modifier fetching in HoverInfo 2025-12-30 19:38:00 +02:00
bigguy345 8240cbae9e Small refactor 2025-12-30 19:37:41 +02:00
bigguy345 91140d81be Fixed class detection patterns only searching for capital case words 2025-12-30 19:17:28 +02:00
bigguy345 b84ada3a30 Fixed class type detection using Character.isUpperCase in most contexts instead of more robust resolution 2025-12-30 19:08:30 +02:00
bigguy345 cd506cbc7a Improved static access detection logic 2025-12-30 18:54:14 +02:00
bigguy345 5899186445 Code optimization (for erorring static access of non static members) 2025-12-30 18:51:22 +02:00
bigguy345 bd0044a2aa applyTokenMetadata 2025-12-30 18:34:19 +02:00
bigguy345 d6b25127df Commented out UNDEFINED_VAR hover info declaration 2025-12-30 18:33:57 +02:00
bigguy345 d6ca60b121 TokenErrorMessage impl 2025-12-30 18:32:59 +02:00
bigguy345 0e2375e7f8 Added error: "Cannot access non-static field from static context" 2025-12-30 18:07:30 +02:00
bigguy345 36e0e114fe DONT FORGET TO TURN ON!
Turned off script error logging
2025-12-30 17:40:33 +02:00
bigguy345 c9e50f2cde Deprecated CastExpressionResolver as ExpressionResolver API already has all this built in 2025-12-29 17:05:24 +02:00
bigguy345 c46d61b221 Delegated Casting resolution to a helper class 2025-12-29 17:02:25 +02:00
bigguy345 efd7d96ec7 Casting completely functional 2025-12-29 16:46:03 +02:00
bigguy345 bc05164209 Proper numeric promotion between java types for fetching the correct overload.
i.ie Math.max(20f,20) checks if the second int can be promoted to the nearest matching overload max(float, float), and fetches it
2025-12-29 16:12:44 +02:00
bigguy345 96d12c360d MethodInfo now stores it's java Method 2025-12-29 15:16:53 +02:00
bigguy345 790cfae476 resolveExpressionType now accounts for method arg types when resolving a method, to fetch the matching overload 2025-12-29 15:16:40 +02:00
bigguy345 7e25b1c858 Fetched best method overload according to arg types provided 2025-12-29 15:05:39 +02:00
bigguy345 2ab48129b3 "null" is now a valid assignment/argument type 2025-12-29 02:12:12 +02:00
bigguy345 595efb529c Unified isTypeCompatible across classes 2025-12-29 00:01:54 +02:00
bigguy345 3a2bcd228f Fixed members of script types being unable to reference their type on creation 2025-12-28 23:03:52 +02:00
bigguy345 574c893f8d oops 2025-12-28 22:37:37 +02:00
bigguy345 941cc5e3fd Expression resolving/type resolution framework with operator parsing 2025-12-28 22:36:46 +02:00
bigguy345 c2e0bbedae Small package refactor 2025-12-28 20:33:39 +02:00
bigguy345 534ec7b2c5 Refactored error curly underline rendering to its own helper class 2025-12-28 19:57:10 +02:00