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 homecontainersvariable 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.containersvariable 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.
Hello wondering if anyone has solved this?
Im using tfs 1.4.2
otcv8
i made the changes @Gesior.pl wrote about:
started of with this one:
and then continued adding the rest:
![]()
Saving opened containers · otland/forgottenserver@df20cb5
A free and open-source MMORPG server emulator written in C++ - Saving opened containers · otland/forgottenserver@df20cb5github.com
was able to save and build TFS 1.4.2 with no errors, but when i start the server and otcv8 each time i login i get a placeholder bag:
picture for reference: Gyazo (https://gyazo.com/5fcbb9136bbfba9586a4f03fb2cc251b)
and in otcv8 terminal im getting this Error:
ERROR: ProtocolGame parse message exception (14294 bytes, 6260 unread, last opcode is 0x00 (0), prev opcode is 0x00 (0)): InputMessage eof reached
Packet has been saved to packet.log, you can use it to find what was wrong. (Protocol: 1098)
Any ideas?
Much appreciated!
Best regards,
Wusse