July 14th, 2024

Solving Path of Exile Item Crafting with Reinforcement Learning

Reinforcement Learning is applied to optimize item crafting complexity in Path of Exile. Monte Carlo Tree Search is suggested to find efficient crafting strategies in the game environment with diverse outcomes.

Read original articleLink Icon
Solving Path of Exile Item Crafting with Reinforcement Learning

This article discusses using Reinforcement Learning to tackle item crafting complexity in the game Path of Exile (PoE). PoE involves modifying item attributes through crafting currencies to create powerful gear. Crafting involves changing modifiers on items through various actions to achieve desired outcomes. The article explores the challenge of finding the optimal sequence of actions to craft a target item efficiently. Traditional game tree search algorithms like Minimax are not suitable due to the cyclic nature of crafting actions and the large branching factor of possible outcomes. Monte Carlo Tree Search (MCTS) is proposed as an alternative to explore crafting strategies. The problem is formalized as a Markov Decision Process (MDP) in Reinforcement Learning, where a policy is learned to maximize rewards over crafting trajectories. Different reward functions, such as minimizing steps or costs, can guide the crafting process. While the dynamics of the crafting environment are known theoretically, the large distribution of possible outcomes makes direct modeling challenging. Sampling transitions through simulations is suggested as a practical approach to navigate the crafting process in PoE.

Related

Solving puzzles faster than humanly possible

Solving puzzles faster than humanly possible

The Opus Magnum challenge tasks players with automating puzzle-solving to optimize Cost, Cycles, and Area metrics. Participants submit solutions for evaluation, exploring automated vs. human strategies, hybrid approaches, scoring systems, mods, and bots.

SceneCraft: An LLM Agent for Synthesizing 3D Scenes as Blender Code

SceneCraft: An LLM Agent for Synthesizing 3D Scenes as Blender Code

SceneCraft is an advanced Large Language Model (LLM) Agent converting text to 3D scenes in Blender. It excels in spatial planning, asset arrangement, and scene refinement, surpassing other LLM agents in performance and human feedback.

Are Diablo fans getting too old for the old-school item grind?

Are Diablo fans getting too old for the old-school item grind?

Longtime Diablo fans shift preferences as Diablo IV developers address players' dislike for extensive item grind. Updates introduce Resplendent Sparks for crafting high-end items, reflecting changing player demographics and valuing time efficiency.

The History of Machine Learning in Trackmania

The History of Machine Learning in Trackmania

Trackmania, a racing game, inspires machine learning projects aiming for superhuman performance. Players like Rottaca and TMRL use supervised and unsupervised learning. Innovations include track lookahead and diverse learning algorithms. Programs show progress but not human-level skills. The goal is a top-performing AI on a desktop PC, blending gaming and machine learning for innovation.

A Thousand Primers, Not Just One

A Thousand Primers, Not Just One

The essay critiques generic gamification in education, advocating for intrinsic motivation and subject-specific design. "Zombies, Run!" success is attributed to tailored gameplay, immersive storytelling, and user-centered design principles.

Link Icon 6 comments
By @poetril - 7 months
Wow. Absolutely incredible. I have a truly shameful amount of time playing PoE, crafting by jumping between craftofexile, poedb, spreadsheets, etc. I was always curious if something like this was possible and you’ve gone and done it. Fantastic read as well, thank you for sharing.
By @nickzelei - 7 months
This is awesome! I don’t really play PoE anymore but was addicted to the game back in open beta/v1 launch. I still have my chaos orb key chain I got from my donor pack, unfortunately I lost my shirt somewhere. It’s to this day imo the best ARPG out there. I love seeing RL applied to this game because it is seriously complex! Nicely done and would love to see the full code at some point!
By @Funkeeee - 7 months
Great read, I followed it the best I could with my vast poe knowledge and zero knowledge about the techniques you used. I got the gist of it I think, well done. Love that poe attracts nerds from many domains and people come up with amazing stuff while impatiently waiting for the next season :)

Stay sane, Exile.

By @wordpad25 - 7 months
Chess also has a huge search space and allows cycles, still, wouldn't a better approach be refining a scoring function and then doing a deep search and suggest an action and min maxes your odds of victory?
By @tduan - 7 months
It’s often associated in PoE that friction is what usually drives profits. Using a recent meta example, Graveyard crafting was extremely tedious while simultaneously being extremely lucrative. I am quite interested then to see what the implications on the economy are if adopted mainstream by the masses. People nowadays would rather pay 3x the prices of the craft rather than learning how to do it themselves, but if there was a convenient calculator that could derive the optimal algorithm I suspect we will see a different behavior emerge.
By @number6 - 7 months
> does something like the following pseudocode:

The following code is Python. Hilarious!