-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: TFS project: where to keep documentation? #4819
Comments
very good! |
Good idea! |
regarding binary save, I suggest changing the way the system serializes the items current problem is similar to OTBM - the engine is being told (in sources) how many bytes have to be read so if it faces unknown attributes (eg. loading the database after revert of some upgrade/imbuement system), or even an item that is no longer a container in the otb, it results in a corrupted read. While this never happened to my server in production (due to proper management), it happened a few times in my local test environment. |
That's how it works in my new binary save. In earlier version I've saved all items in tree structure (parent/child Container etc.) with no information about attributes length. It made binary data unreadable on website and single bugged item attribute could break all player items. itemsStream.write<uint32_t>(runningId);
itemsStream.write<uint32_t>(pid);
itemsStream.write<uint16_t>(item->getID());
itemsStream.write<uint16_t>(item->getSubType());
itemsStream.write<uint32_t>(attributesSize);
itemsStream.writeBytes(attributes, attributesSize); so there are sid, pid, itemID and item with same bytes size for each item, and then there are attributes, but with I've also prepared parameters for already running OTSes to convert all player items to new format ex.
|
By submitting this feature issue, you agree to the following.
Pull Requests or Links to add this feature
No response
Request
What do you want to achieve?
Right now there are 2 documentations:
docs
project: https://github.com/otland/docs - not mentioned anywhere? not up to dateWhy?
I'm planning to add new feature to TFS ex. "binary items save". It will store items in new SQL table in custom binary format. Acc. makers that show EQ of player will need to read that format from database. It would be much easier, if in commit with C++ changes I could add documentation of that format and how to read it.
My idea
Create folder
docs
on Git with documentation in MD format. Only text, no images (to do not increase project size too much).What do you think about it?
Possible Solutions
No response
The text was updated successfully, but these errors were encountered: