Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. Resources
  3. Scripts
  4. [Announcement] ScriptAPI Improvements in 0.18.0

[Announcement] ScriptAPI Improvements in 0.18.0

Scheduled Pinned Locked Moved Scripts
1 Posts 1 Posters 512 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • kawaiinekololisK Offline
    kawaiinekololisK Offline
    kawaiinekololis
    Admin
    wrote on last edited by kawaiinekololis
    #1

    Hello everyone,

    Currently on 0.17.0 the ScriptAPI does not use the GraalJS JIT. While we had a proof of concept available in the graaljs_jit branch, it lacked the functionality to remap calls.

    As you may know, Minecraft runs in an obfuscated environment, making it difficult to navigate the Minecraft source code through JavaScript without remapping. We've previously done this by injecting into GraalJS in non-JIT mode, but the current implementation struggles with functions that have similar names. For the remapper to work effectively, it needs to approach this from a call target remapping perspective rather than a call lookup perspective.

    We originally posted a request for someone to do this task: https://github.com/CCBlueX/LiquidBounce/issues/4278 including a small amount of money as compensation.

    However, I took it upon myself and am happy to announce that I have successfully implemented a new remapper with call target remapping, which fixes all the bugs caused by overloaded methods and fields, as well as brings higher performance when using the GraalVM JDK, which is now the default JRE on LiquidLauncher starting with this commit: https://github.com/CCBlueX/LiquidBounce/commit/591c5793a93b8e4cbaf7843545055f517848cbf3

    59efe6ab-6d4c-4d8c-b052-ddb33d7200c0-image.png

    undefined

    1zun4 created this issue in CCBlueX/LiquidBounce

    closed [FEATURE] GraalJS JIT Support with Remapper #4278

    0 1zun4 committed to CCBlueX/LiquidBounce
    feat(ScriptAPI): Implement GraalJS JIT with call target remapping (#4368)
    
    Improves ScriptAPI by enabling GraalJS JIT while addressing Minecraft's obfuscation. Previously, non-JIT mode allowed remapping; however, this new approach applies a call target remapping strategy, overcoming bugs with overloaded names.
    
    Also, GraalVM is now the default JDK on LiquidLauncher.
    
    ---------
    
    Co-authored-by: Senk Ju <[email protected]>
    1 Reply Last reply
    1
    • kawaiinekololisK kawaiinekololis pinned this topic on
    • kawaiinekololisK kawaiinekololis moved this topic from Scripts on
    • kawaiinekololisK kawaiinekololis locked this topic on
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    About
    • Terms of Service
    • Privacy Policy
    • Status
    • Contact Us
    Downloads
    • Releases
    • Source code
    • License
    Docs
    • Tutorials
    • CustomHUD
    • AutoSettings
    • ScriptAPI
    Community
    • Forum
    • Guilded
    • YouTube
    • Twitter
    • D.Tube
    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups