
Zitat von
Cryp18Struct
This 1.8 change:
causes problems with our mod. Is there a way to disable it?
Maybe by overwriting whatever you changed at runtime?

Zitat von
mud-freak
I have also had a problem with this. You can easily revert this change from the systempack (e.g. in your Init_Global) with some safety checks included. It amounts to checking/overwriting 4 bytes, if I remember correctly. I can share the code once I get on my computer next week.
Into your Init_Global or Init_Perceptions write this (code for G2 only):
Code:
MEM_InitAll();
// Revert changes of SystemPack 1.8 (Armor_unlock_in_trade, Armor_unlock_in_npc)
const int oCNpcContainer__CreateList_checkArmor_sp18 = 7386813; //0x70B6BD
const int oCStealContainer__CreateList_checkArmor_sp18 = 7384909; //0x70AF4D
if (MEM_ReadInt(oCStealContainer__CreateList_checkArmor_sp18) == 0) {
MemoryProtectionOverride(oCStealContainer__CreateList_checkArmor_sp18, 4);
MEM_WriteInt(oCStealContainer__CreateList_checkArmor_sp18, /*0F 01 00 00*/ 271);
};
if (MEM_ReadByte(oCNpcContainer__CreateList_checkArmor_sp18) == 0) {
MemoryProtectionOverride(oCNpcContainer__CreateList_checkArmor_sp18, 1);
MEM_WriteByte(oCNpcContainer__CreateList_checkArmor_sp18, /*1A*/ 26);
};