List of 'open containers' is kept in C++ (forgottenserver/src/player.h at 1.4 · otland/forgottenserver (https://github.com/otland/forgottenserver/blob/1.4/src/player.h#L1200)).probably without changing the src
If a genius writes so, it must be soList of 'open containers' is kept in C++ (forgottenserver/src/player.h at 1.4 · otland/forgottenserver (https://github.com/otland/forgottenserver/blob/1.4/src/player.h#L1200)).
You can't reopen containers without C++ changes. This change (TFS 1.6) should be compatible with 1.4 code:
![]()
Saving opened containers · otland/forgottenserver@df20cb5
A free and open-source MMORPG server emulator written in C++ - Saving opened containers · otland/forgottenserver@df20cb5github.com
Hmmm, I did it, but suddenly a lot of errors appeared when trying to compile such as...List of 'open containers' is kept in C++ (forgottenserver/src/player.h at 1.4 · otland/forgottenserver (https://github.com/otland/forgottenserver/blob/1.4/src/player.h#L1200)).
You can't reopen containers without C++ changes. This change (TFS 1.6) should be compatible with 1.4 code:
![]()
Saving opened containers · otland/forgottenserver@df20cb5
A free and open-source MMORPG server emulator written in C++ - Saving opened containers · otland/forgottenserver@df20cb5github.com
Błąd C2679 dwuargumentowy "=": nie znaleziono żadnego operatora, który przyjmuje prawostronny operand typu "bool" (lub nie istnieje akceptowalna konwersja) theforgottenserver C:\Forgottenserver testy\Kopia SRC\04.10.2024\src\item.h 327
Błąd C2365 "ATTR_OPENCONTAINER": zmiana definicji; definicja poprzednia była "moduł wyliczający" theforgottenserver
Błąd C2679 dwuargumentowy "=": nie znaleziono żadnego operatora, który przyjmuje prawostronny operand typu "double" (lub nie istnieje akceptowalna konwersja) theforgottenserver C:\Forgottenserver testy\Kopia SRC\04.10.2024\src\item.h 318
Błąd C2365 "ATTR_OPENCONTAINER": zmiana definicji; definicja poprzednia była "moduł wyliczający" theforgottenserver C:\Forgottenserver testy\Kopia SRC\04.10.2024\src\item.h 96
Błąd C2679 dwuargumentowy "=": nie znaleziono żadnego operatora, który przyjmuje prawostronny operand typu "int64_t" (lub nie istnieje akceptowalna konwersja) theforgottenserver C:\Forgottenserver testy\Kopia SRC\04.10.2024\src\item.h 309
Hmmm i have one problemList of 'open containers' is kept in C++ (forgottenserver/src/player.h at 1.4 · otland/forgottenserver (https://github.com/otland/forgottenserver/blob/1.4/src/player.h#L1200)).
You can't reopen containers without C++ changes. This change (TFS 1.6) should be compatible with 1.4 code:
![]()
Saving opened containers · otland/forgottenserver@df20cb5
A free and open-source MMORPG server emulator written in C++ - Saving opened containers · otland/forgottenserver@df20cb5github.com
Database& db = Database::getInstance();
for (const auto& it : itemList) {
int32_t pid = it.first;
Item* item = it.second;
++runningId;
if (Container* container = item->getContainer()) {
if (container->getIntAttr(ITEM_ATTRIBUTE_OPENCONTAINER)) {
container->setIntAttr(ITEM_ATTRIBUTE_OPENCONTAINER, 0);
}
if (!openContainers.empty()) {
for (const auto& its : openContainers) {
auto openContainer = its.second;
auto opcontainer = openContainer.container;
if (opcontainer == container) {
container->setIntAttr(ITEM_ATTRIBUTE_OPENCONTAINER, static_cast<int64_t>(its.first) + 1);
break;
}
}
}
containers.emplace_back(container, runningId);
}
error C2065: "containers": undeclared identifier
containers
variable was defined in commit from 2021-09-18:Hmm Ok, I'll check it when I get homecontainers
variable was defined in commit from 2021-09-18:
TFS 1.4.0 was released on same day (2021-09-18). Maybe it was added after official TFS 1.4.0 was released or maybe you are using "TFS 1.4" downgrade (ex. 8.6) version, which uses TFS 1.3 as base, not TFS 1.4.
Ok, what you wrote worked.containers
variable was defined in commit from 2021-09-18:
TFS 1.4.0 was released on same day (2021-09-18). Maybe it was added after official TFS 1.4.0 was released or maybe you are using "TFS 1.4" downgrade (ex. 8.6) version, which uses TFS 1.3 as base, not TFS 1.4.