Oblivion:Loot Bag: Difference between revisions

From PRCLive 100% Speedrun Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 7: Line 7:
==Mechanics==
==Mechanics==


Although the console versions are fairly easily able to spawn loot bags, the PC version appears to be near impossible. Analysis of the game's code has shown the following snippet:
Although the console versions are fairly easily able to spawn loot bags, the PC version appears to be near impossible. Analysis of the game's code can be summarized as the follow pseudo-code:
<pre>
<pre>
GlobalMemoryStatus((LPMEMORYSTATUS)&local_20);
if (availableMemory < 4kb) {
if (local_20.dwAvailPhys < 0x4000) {
     generateLootBag();
     FUN_00401020("MemoryHeap::MemoryProblem");
if (DAT_00b02184 != (code *)0x0) {
    (*DAT_00b02184)(0,0x4000,DAT_00b32b04); // This indirect function pointer does some magic.
}
    FUN_00401040();
}
}
</pre>
</pre>


What this snippet is showing evidence of is that the loot bags on the PC version will only spawn if there is less than 4kb of physical memory available. This would be very difficult to achieve on modern hardware, effectively making it impossible to spawn loot bags on PC.
What this snippet is showing evidence of is that the loot bags on the PC version will only spawn if there is less than 4kb of physical memory available. This would be very difficult to achieve on modern hardware, effectively making it impossible to spawn loot bags on PC.

Latest revision as of 01:19, 16 February 2023

Loot bags are items that spawn in a room when too many items have been dropped, resulting in the items in the room being transferred to the bag to reduce lag.

Uses

It was theorized that loot bags could be exploited to transfer quest items into an accessible container for the player to acquire. This would work on several items such as the Armor of Tiber Septim, or other lose items. Theoretically this would be faster than navigating through a dungeon to find these items, and in some cases could potentially cause sequence breaks due to acquiring items that are inaccessible otherwise.

Mechanics

Although the console versions are fairly easily able to spawn loot bags, the PC version appears to be near impossible. Analysis of the game's code can be summarized as the follow pseudo-code:

if (availableMemory < 4kb) {
    generateLootBag();
}

What this snippet is showing evidence of is that the loot bags on the PC version will only spawn if there is less than 4kb of physical memory available. This would be very difficult to achieve on modern hardware, effectively making it impossible to spawn loot bags on PC.