-
Notifications
You must be signed in to change notification settings - Fork 195
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
RobeNameTable_CLS entries with ID > RobeNameTable size are not processed #98
Comments
Afaik robe ids can’t be skipped anyway, exactly because it goes by index, that’s just what my minimal lua knowledge tells me xD. Correct me if I’m wrong and provide a better solution as I’m still learning it what it need. |
It's weird I had edited a code suggestion but it disappeared,
the original values could also always be overwritten:
|
Tbh it’s my first time seeing that _ is used this way, only learned that it’s used to omit the value like if you don’t really need it. |
Yes it could be renamed to |
Also the reason I didn’t use the k is based on my understanding that the index would be overwritten since the cls table starts with 1 |
Wouldn't it be easier to directly use the final IDs when matching the views with item dbs? |
I don't match the View IDs on item db but on kRO lub file, I pretty much copy&paste the content each time I update it. I only have 1 robe to test with so anything afterwards was just an estimation on my end that it worked just like signboards, because they also go by index and it was only displaying one, someone reported that it did work after I changed it to the current setup. |
Signboard are stored in an array of objects
this is equivalent to
Now for robes, it does make sense to allow arbitrary indexes since they are used as ID.
|
When merging RobeNameTable with RobeNameTable_CLS in MergeRobes, new entries are inserted at RobeNameTable size + 1 instead of RobeNameTable_CLS's entry id
ROenglishRE/Addons/Custom Lua Support/data/luafiles514/lua files/cls/spriterobename_f.lub
Lines 49 to 55 in 511d0e6
ROenglishRE/Addons/Custom Lua Support/data/luafiles514/lua files/cls/spriterobename_f.lub
Lines 5 to 11 in 511d0e6
How to reproduce:
Add new cls entries with ID gaps and check if they display
Example, if you have SPRITE_ROBE_IDs entries finishing in such way:
ROBE_C_CLB_SS_LT = 221, ROBE_C_Honey_Dipper = 222 }
and a SPRITE_ROBE_IDs_CLS with
SPRITE_ROBE_IDs_CLS = { ROBE_MY_CUSTOM_GARMENT = 300, }
,
SPRITE_ROBE_IDs.ROBE_MY_CUSTOM_GARMENT will be equal to 223 instead of 300 when merging RobeNameTable and RobeNameTable_CLS
The text was updated successfully, but these errors were encountered: