ITADN

LookupByEditorID returns null and GetAllFormsByEditorID() missing some EditorIDs

#102OpenFhqTreap 创建于 2025-12-20
F
FhqTreapcommented
I’m trying to execute the code like: ``` auto* sweetroll0 = RE::TESForm::LookupByID(0x64B3D); logger::info("Form Name: {} 1 {}", sweetroll0->GetName(), sweetroll0->GetFormEditorID()); auto* sweetroll1 = RE::TESForm::LookupByEditorID("FoodSweetRoll"); auto* sweetroll = sweetroll1; if (!sweetroll) { logger::error("Could not get the Sweet Roll!"); } ``` However, the output is: ``` Form Name: Sweet Roll 1 Could not get the Sweet Roll! ``` I then printed all keys from RE::TESForm::GetAllFormsByEditorID(), and it only contains 22696 EditorIDs. FoodSweetRoll is not among them. I think this code worked fine with the CharmedBaryon's library on game version 1.6.640. I just switched to version 1.6.1170 today and started using this library. Thanks in advance for any help!
1 条评论