RS-SDK:用Claude代码驱动RuneScape
RS-SDK: Drive RuneScape with Claude Code

原始链接: https://github.com/MaxBittker/rs-sdk

## rs-sdk:一个RuneScape机器人研究工具包 rs-sdk是一个面向RuneScape类似环境的机器人开发和测试的入门工具包。它提供了一个TypeScript SDK、代理文档和一个服务器模拟器,允许用户在安全、隔离的环境中自动化游戏玩法——甚至可以达到满级账号。 该项目旨在促进对目标导向程序合成和多智能体系统的研究,并提供一个排行榜,根据效率(等级/游戏时间)对机器人进行排名。它基于LostCity引擎构建,并利用基于Web的客户端(botclient)通过网关服务器进行通信。 用户可以快速启动演示服务器,或托管自己的服务器以获得更大的控制权。演示服务器提供加速升级并移除了反机器人措施,以便于开发。 **重要提示:**这不是《旧版RuneScape》。使用rs-sdk创建的机器人将*无法*在官方服务器上运行,该项目仅用于教育和研究目的。它是开源的,并采用MIT许可。

一位开发者创建了一个“RS-SDK”,使AI模型Claude能够自主玩游戏《RuneScape》(github.com/maxbittker)。该项目在Hacker News上引发讨论,一位评论员强调使用游戏环境来促进AI学习和自主任务完成的独特优势。 该AI成功编写了脚本,甚至完成了一个任务,展示了它在游戏内学习和适应的能力。然而,其他评论员很快指出,以这种方式使用AI玩《RuneScape》构成了“机器人”行为,这违反了游戏的服务条款,通常被认为是不道德的,并可能导致封禁。尽管存在潜在后果,该项目仍在在线社区内引起了兴奋和担忧。
相关文章

原文

Research-oriented starter kit for runescape-style bots, including a typescript sdk, agent documentation and bindings, and a server emulator. Works out of the box - tell it what to automate!

Discord Hiscores

Build and operate bots within a complex economic role-playing MMO. You can automate the game, level an account to all 99s, and experiment with agentic development techniques within a safe, bot-only setting.

The goals of this project are to provide a rich testing environment for goal-directed program synthesis techniques (Ralph loops, etc), and to facilitate research into collaboration and competition between agents.

Task Length Distribution

There is currently a leaderboard for bots running on the demo server, with rankings based on highest total level per lowest account playtime.

Note

RS-SDK is a fork of the LostCity engine/client, an amazing project without which rs-sdk would not be possible. Find their code here or read their history and ethos

git clone https://github.com/MaxBittker/rs-sdk.git

Out of the box, you can connect to the provided demo server, choose a name that is not already taken!

With claude code:

bun install
claude "start a new bot with name: {username}"

Manually:

bun install
bun scripts/create-bot.ts {username}
bun bots/{username}/script.ts 

Chat is off by default to prevent scamming and prompt injection attacks, but you can opt in with SHOW_CHAT=true in the bot.env file

Warning: The demo server is offered as a convenience, and we do not guarantee uptime or data persistence. Hold your accounts lightly, and consider hosting your own server instance. Please do not manually play on the demo server.

This server has a few modifications from the original game to make development and bot testing easier:

  • Faster leveling - The XP curve is accelerated and less steep.
  • Infinite run energy - Players never run out of energy
  • No random events - Anti-botting random events are disabled

rs-sdk runs against an enhanced web-based client (botclient) which connects to the LostCity 2004scape server emulator.

There is a gateway server which accepts connections from botclient and SDK instances, and forwards messages between them based on username. Once connected to the gateway, the botclient will relay game state to the SDK, and execute low-level actions (e.g. walkTo(x,y)) sent from the SDK through the gateway.

This means that the SDK can't talk directly to the game server, but must go through the botclient. It will attempt to launch the botclient on startup if one is not already running.

You don't need to run the gateway/botclient in order to run automations against the demo server, but you may choose to if you are fixing bugs or adding features to the rs-sdk project

Running the server locally:

You want all these running:

cd engine && bun run start
cd webclient && bun run watch
cd gateway && bun run gateway

There is also a login server which you may not need, I forget

This is a free, open-source, community-run project.

The goal is strictly education and scientific research.

LostCity Server was written from scratch after many hours of research and peer review. Everything you see is completely and transparently open source.

We have not been endorsed by, authorized by, or officially communicated with Jagex Ltd. on our efforts here.

You cannot play Old School RuneScape here, buy RuneScape gold, or access any of the official game's services! Bots developed here will not work on the official game servers.

This project is licensed under the MIT License. See the LICENSE file for details.

联系我们 contact @ memedata.com