# Tips from Upgrading "Legend of the Stones"

*I'll be honest. It's been too many months since I've worked on my own RPG project, Legend of the Stones. To be fair, I've spent that time working on **Game Modules 4**, so perhaps it's an OK tradeoff!*

*I've installed the new **Game Modules 4** into the project, and as expected, many things broke. I'll be fixing them, and the sections below may be similar to issues you face if you upgrade from a previous Game Modules version to version 4.*

***Come to the Discord to chat more!***

## Two "GameStatList" classes

I don't know how this happened, but there are two `GameStatList` classes. I'll remove the old one. The old one has a comment at the top with "GAME STATS LIST".

*Also, if "GameStatsList" (with a plurel Stats) exists, remove that.*

## The type of namespace "Inventory" does not exist

True. It is now "`InfinityPBR.Modules.Inventory`".

If you are using the Inventory system, any references to `InfinityPBR.Inventory` should add "`Modules.`" in the middle.

## \[Class] does not implement interface member \[XYZ]

Some interfaces now have new required methods. If you're using an IDE, it should be easy enough to add those, and then decide which ones you'll make use of.

## Error: `StatsRepository.GetStatByUid(uid);`

Repositories have a new "Get" method.

`StatsRepository.GetStatByUid(uid);` should now be `StatsRepository.statsRepository.GetByUid(uid);`

Note the change of "GeStatByUid" to just "GetByUid".

## `.uid` is now `.Uid()`

`gameStat.uid` would now be `gameStat.Uid()`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://infinitypbr.gitbook.io/magic-pig-games/game-modules-4/v4-migration-tips/tips-from-upgrading-legend-of-the-stones.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
