pixeltris / YgoMaster

Offline Yu-Gi-Oh! Master Duel
MIT License
770 stars 112 forks source link

How to decrypt the new version of IDS text #389

Closed SherryChaos closed 2 months ago

SherryChaos commented 2 months ago

I know I shouldn't ask here, but I don't know who else can know the answer to this question:

the new version of Master Duel come with the new IDS_ITEM.bytes,

which used to be like: ITEM.LNG.en-US.ID1000001.Rescue Rabbit.

but now it looks like this: ITEM.LNG.en-US.c87857d0.Rescue Rabbit.

How do I get the original ID from the current "c87857d0" ?

Thanks in advance!

Merik2013 commented 2 months ago

Isnt that just the item id from itemid.json that it was originally using?

SherryChaos commented 2 months ago

Isnt that just the item id from itemid.json that it was originally using?

Yes, I need the original IDs, as provided by ygomaster in itemID.json. I want to know how to get it, as the YGOMaster did.

pixeltris commented 2 months ago

Hi @SherryChaos, big fan of your work on MDPro3. Would be great to see a mirror of the repo on github.

Unfortunately I'm not familiar with raw IDS_ITEM.bytes data as YgoMaster uses .NET reflection to get the IDs then gets the names using lookups of the IDs:

https://github.com/pixeltris/YgoMaster/blob/e3fe47e2875351cd701eefe3f2f6d018a97fe9cc/YgoMasterClient/ConsoleHelper.cs#L51-L53

You'd have to use Ghidra to look into how they are doing their lookups

https://github.com/pixeltris/YgoMaster/blob/e3fe47e2875351cd701eefe3f2f6d018a97fe9cc/YgoMasterClient/ConsoleHelper.cs#L60

SherryChaos commented 2 months ago

Hi @SherryChaos, big fan of your work on MDPro3. Would be great to see a mirror of the repo on github.

Unfortunately I'm not familiar with raw IDS_ITEM.bytes data as YgoMaster uses .NET reflection to get the IDs then gets the names using lookups of the IDs:

https://github.com/pixeltris/YgoMaster/blob/e3fe47e2875351cd701eefe3f2f6d018a97fe9cc/YgoMasterClient/ConsoleHelper.cs#L51-L53

You'd have to use Ghidra to look into how they are doing their lookups

https://github.com/pixeltris/YgoMaster/blob/e3fe47e2875351cd701eefe3f2f6d018a97fe9cc/YgoMasterClient/ConsoleHelper.cs#L60

Thank you for your interest in MDPro3 & your suggestion. I'm not good at assembly language, I'll stick with the old file for now.

SherryChaos commented 2 months ago

I just exported the ids i need using YgoMaster, it's very useful! Thank you, thank this project!

SherryChaos commented 2 months ago

LOL, I just find the list in MasterDuel: image