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
Support itemids up to ~2 billion #5141
Conversation
|
This pull request introduces 2 alerts when merging d98d205b5e946fa825727019e9e8755de391b8f6 into d35e289 - view on LGTM.com new alerts:
|
|
I think with this the max storage etc is now 682 ? (struct size with |
|
With this PR will it be possible to create items with larger IDs? for example: I applied and the items cannot be created. Another problem I noticed is that the HP and SP in the char is now 1/1. |
|
Sorry, I should have said that this is only for clients that support it (ones that support 32bit item ids) |
|
Weird. I just downloaded the clean rAthena and applied it. I also applied the 2 sql upgrade files. I'm using 2020-04-01. |
|
This pull request introduces 2 alerts when merging 1f0fc488e45a0e63c999fcfac20f91f911205a10 into c14f05b - view on LGTM.com new alerts:
|
|
There are 2 warnings after compilation: Warning C4244 '=': conversion from 'unsigned long' to 'short', possible loss of data char-server trunk\src\char\int_auction.cpp line 250 Warning C4146 unary minus operator applied to unsigned type, result still unsigned map-server trunk\src\map\script.cpp line 7901 |
confirmed that I can trade |
|
It worked now, for some reason the rA is like PRERE as a default now and I didn't notice. |
src/char/int_auction.cpp
Outdated
| } | ||
|
|
||
| for (i = 0; i < MAX_ITEM_RDM_OPT; i++) { | ||
| Sql_GetData(sql_handle, 15 + MAX_SLOTS + i*3, &data, NULL); | ||
| item->option[i].id = atoi(data); | ||
| item->option[i].id = strtoul(data, NULL, 10); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, this shouldn't have been changed, since random option IDs haven't changed.
I'll fix
|
This pull request fixes 1 alert when merging 0c93af0f57f38ec4f1225a3a451e5a5e7deb5d11 into 9e79d59 - view on LGTM.com fixed alerts:
|
src/map/script.cpp
Outdated
| @@ -7942,7 +7940,7 @@ BUILDIN_FUNC(makeitem2) { | |||
| nameid = UNKNOWN_ITEM_ID; | |||
| } | |||
| else | |||
| nameid = script_getnum(st, 2); | |||
| nameid = script_getnum64(st, 2); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
possible loss of data from int64 to uint32.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another note: all the script commands will have to be adjusted to something like nameid = static_cast<uint32>(script_getnum64(st, X)); since script_getnum is int.
src/map/cashshop.hpp
Outdated
| @@ -6,6 +6,7 @@ | |||
|
|
|||
| #include "../common/cbasetypes.hpp" // uint16, uint32 | |||
| #include "../common/timer.hpp" // ShowWarning, ShowStatus | |||
| #include "../common/mmo.hpp" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't needed anymore.
* Reverted a print specifier.
* Adjusted main SQL files from smallint(5) to int(10). * Added upgrade SQL scripts.
|
Sorry about that @Badarosk0, I must have merged something incorrectly. It should be fixed now! |
|
This pull request fixes 1 alert when merging f8227e3 into 9000948 - view on LGTM.com fixed alerts:
|
|
Do you have a rough idea how much longer this PR could take to get pushed to master? |
I believe that the more people who test and submit problems here, the faster it will be. |
|
Is using a taming item capturing pet working fine? |
work fine for me |
|
This pull request fixes 1 alert when merging 386f8ef into 53e7f59 - view on LGTM.com fixed alerts:
|
|
This pull request fixes 1 alert when merging 1646094 into 53e7f59 - view on LGTM.com fixed alerts:
|
|
This pull request fixes 1 alert when merging a404cda into c86a5a4 - view on LGTM.com fixed alerts:
|
Should give better performance during migration Added missing newline at end of file
Should match the naming schema
|
This pull request fixes 1 alert when merging 3078847 into fd148a6 - view on LGTM.com fixed alerts:
|
This reverts commit 3776bfb.






If anyone knows the issue number, pls comment
Both
I've been working on this for a year and a half pls no hate
item ids are now uint32
ty @aleos89 for helping