Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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. Chinese
  3. 请帮助我,我的LiquidBounce 1.12.2 b73无法加载自定义js

请帮助我,我的LiquidBounce 1.12.2 b73无法加载自定义js

Scheduled Pinned Locked Moved Chinese
3 Posts 2 Posters 115 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.
  • T Offline
    T Offline
    TvT
    wrote on last edited by
    #1

    是这样的,我尝试加载一个自己编写的js发现无法被正确加载,即使我使用了ai帮助我修正其中的错误和替换了mcp-stable_22.srg文件但问题依旧如此。下面是我的js脚本文件,如果有人发现了其中的错误可以告诉我吗?谢谢了
    autoeat_javascript.js
    autoeat.js (legacy script)
    Autoeat.js (api2)

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TvT
      wrote last edited by
      #2

      代码质量很差请见谅

      1 Reply Last reply
      0
      • CookieChineseC Offline
        CookieChineseC Offline
        CookieChinese
        wrote last edited by
        #3

        (by mumy)
        LiquidBounce 1.12.2 b73 官方已经放弃支持了,除非你需要安装一些这个版本才有的mod否则我不推荐你用它
        对于 API 上,LB Nextgen 和 LB legacy 虽然都是 APIv2 的格式,但对于细节上还是有很多不同,加上官方已经去除了 Legacy API 文档,如果真要编写 Legacy 的 JS 那我建议你有一定的开发经验作为基础

        至于怎么解决这个JS脚本错误问题,建议加载JS后查看MC客户端日志是否出现 LB ScriptManager 的错误信息(一般在 .minecraft\logs\latest.log,如果是PCL2启用了版本隔离的情况那一般在 .minecraft\versions\1.12.2-Forge\logs\latest.log)

        如果成功加载 JS 那日志一般会出现这类消息:

        [00:00:00] [Client thread/INFO] [LiquidBounce]: [ScriptAPI] Running script 'Script.js' with legacy support.
        [00:00:00] [Client thread/INFO] [LiquidBounce]: [ScriptAPI] Successfully loaded script 'Script.js'.
        

        (这里使用的 API v1 举例)

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        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