Skip to content

New inventory system#60

Merged
RobbeBryssinck merged 57 commits into
masterfrom
feature-inventories
Mar 20, 2022
Merged

New inventory system#60
RobbeBryssinck merged 57 commits into
masterfrom
feature-inventories

Conversation

@RobbeBryssinck

Copy link
Copy Markdown
Member

This new system builds up a custom inventory with all relevant extra data (as far as I was able to enumerate it). This means individual items can now also be manipulated by the server. The inventories and their items can be exposed to a server side scripting API.

The system could be further optimized by adding and removing individual items on change instead of sending over the entire inventory every time it changes, but for testing purposes, I will do that for the next test build. Custom names for items are not synced yet, since this was causing some crashes, but I can add this at a later date.

This new system should fix 90% of the crashes that the playtesters are experiencing.


AlchemyItem* pPoison;
uint32_t uiCount;
AlchemyItem* pPoison{};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{nullptr}

if (!m_transport.IsOnline())
m_transport.Connect(s_address);
else
m_transport.Close();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetAsyncKeyState & 0x01


BGSCreatedObjectManager* BGSCreatedObjectManager::Get() noexcept
{
POINTER_SKYRIMSE(BGSCreatedObjectManager*, pObjManager, 400320);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s_instance instead of pObjManager

@RobbeBryssinck RobbeBryssinck merged commit 54a01b1 into master Mar 20, 2022
@RobbeBryssinck RobbeBryssinck deleted the feature-inventories branch March 20, 2022 14:26
@Luc45

Luc45 commented Jan 11, 2023

Copy link
Copy Markdown

Dumb question: Is it hard to add the capability of sharing crafted potions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants