It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
So, once you get hit by the infamous inventory bug in Ultima Underworld 1, are you completely and totally hosed or is there hope of completing the game still? How likely is it to strike again once it has happened, maybe corrupting a quest critical item and thus really dooming you? Is there anything to do to correct the corrupted inventory?

I heeded the warnings and had not been nesting containers and I had saved before every dungeon level change, but still I got the dreaded inventory corruption bug on dungeon level 4 and reverting to older saves doesn't seem to help - even if my inventory is OK after reloading, it will get corrupted along the way again on level 4. It seems to happen only on level 4 (so far), but it is consistent. After some time exploring the level, an enemy corpse or a random(?) item in my inventory will get corrupted (maybe an item will change into a blood splotch or something) and not be usable. I get no error messages or anything, the glitched items are the only indication of this bug. If I continue after hitting this bug, it just creates more bugged items as I go along and so it is only a matter of time before it hits quest items. Besides, that's no way to play through the game (hoping against hope to be lucky with the inventory bug). Any help, plz?
avatar
WarHamster: So, once you get hit by the infamous inventory bug in Ultima Underworld 1, are you completely and totally hosed or is there hope of completing the game still? How likely is it to strike again once it has happened, maybe corrupting a quest critical item and thus really dooming you? Is there anything to do to correct the corrupted inventory?

I heeded the warnings and had not been nesting containers and I had saved before every dungeon level change, but still I got the dreaded inventory corruption bug on dungeon level 4 and reverting to older saves doesn't seem to help - even if my inventory is OK after reloading, it will get corrupted along the way again on level 4. It seems to happen only on level 4 (so far), but it is consistent. After some time exploring the level, an enemy corpse or a random(?) item in my inventory will get corrupted (maybe an item will change into a blood splotch or something) and not be usable. I get no error messages or anything, the glitched items are the only indication of this bug. If I continue after hitting this bug, it just creates more bugged items as I go along and so it is only a matter of time before it hits quest items. Besides, that's no way to play through the game (hoping against hope to be lucky with the inventory bug). Any help, plz?
Have you tried this patch:

http://reconstruction.voyd.net/zips/uw1patch.zip

from the site http://reconstruction.voyd.net/index.php?event=project&typeKeyword=official

?

I'm new to the game myself so unfortunately I can't help you...
Thanks for the tip and sorry for the late answer. I think I have a version of later date than the patch given on that site.

It says on that site: "This is a patch for Ultima Underworld that fixes some known bugs in the disk-based version of the game, including the "Inventory Bug". This should not be needed for the re-released CD-based versions. (built 2/9/1993)". The dates on that site are in American style (month/day/year). So that makes the patch's date as 9th of February 1993. The UW exe I have, is an exe that is later than that, being dated 16th of June 1993. I would assume, it incorporates the patch pre-dating it. Of course I cannot be sure. HOwever, what I read (been doing little research), it seems that the inventory bug wasn't ever completely fixed, unfortunately. So, in the end, it doesn't really matter much which version you use, there will always be a danger of the bug rearing its ugly head. Of course, it is better to use the latest version of the game, but...

Anyways, I think I'll give it another go some time in the near future and use the GoG version this time and hope for the best (it would be my 4th attempt to get through UUW1 without bugs) . Anyone know what's the exe date on the GoG version? 16th JUN 1993, perhaps? (Hopefully not 11th MAR 1992, that would be the original exe, I think.)
avatar
WarHamster: Anyone know what's the exe date on the GoG version? 16th JUN 1993, perhaps? (Hopefully not 11th MAR 1992, that would be the original exe, I think.)
It's weird. It seems the GoG version contains the EXE file in some archive - I cannot find it! So my original "advice" is of course of no use for GoG players, including myself ;)

BUT

If your inventory is broken and you'd like to continue the game, I can testify that the Ultima 1 character editor from here: http://bootstrike.com/Uw1/solutions.php (the 308KB version) WORKS (at least for stats, so I assume also for items) with the GoG version at least. So if your items get corrupted, you can give them back to yourself using the editor.
Apologies for resurrecting a year-old post. I'm bringing it back because (1) this thread comes up in the top search results when I google this problem, and...

(2) I think finally, after all these years, I have figured out why this problem happens, and how to correct it and rescue your character so you can play through the rest of the game.

I got bit by this bug on level 3. I also have the supposedly patched CD version, where the bug should have been gone. I had gone through level 3 up to 2 to finish some loose ends, and in doing so dropped some heavier items and replaced them with a larger number of light items like potions wands and gems. After that, I could no longer enter level 3 without my inventory bugging out. It would replace the contents of the first container in my inventory with seemingly random stuff, from my inventory or the level. I didn't want my first playthrough in probably 8 years to end in ruin, so I started tinkering with save editors and reading the "Ultima Underworld 1 and 2 Formats Specification" on bootstrike to see if I could figure out how to de-glitch the containers, with a hex editor if need be.

Fortunately the solution turned out to be really simple. I had left too much crap lying around in that level.

See, a long time prior to this, I had been having fun with the "infinite rats" switch on level 3. I had achieved level 12 but crashed the game, and then loaded and done enough to get back to level 12, holding short of the crash. This left a very large number of blood splats lying around. The clue came when I was trying to edit myself a set of "un-bugged" containers, and started seeing those large numbers of blood splats appearing in new glitched packs.

I think what I did there was increase the total level item count past its limits, due to all the blood splats. When I went past the limit on the level the game simply crashed, but then I restored and killed fewer rats. I think what I'd done was bring the item count CLOSE to its limit, left, and then came back with a dozen more items in my inventory, putting it past the item count. Upon entering the level the game would load my inventory, load the level items, suffer an integer wrap-around, and begin overwriting my inventory with the items from the level.

So, here's what you do (at least it worked for me) to get your character back in the game with inventory intact and no more backpack bugs:

Note: If the glitch has already happened once, the running copy of the game itself is corrupted. If you see your inventory glitch, you have to quit and restart Ultima Underworld as the buffer overflow has actually damaged the game's level / inventory loading code in RAM.

1: Back up your save files.

2: Get the save file editor called "SaveGame Editor (308KB) from the 'bootstrike/uw1/solutions" link Elwro_RPGCODEX posted above. (Many thanks to him for the link, I currently cannot post links because my account is new.) It's the one that has some TIF files in the directory with it, and a very complete screen-filling interface that lets you press 'I' to edit your inventory.

3: Follow its instructions to edit your save. Either give yourself the runes for Fireball (Por Flam) and a huge amount of mana, or find a wand of Fireball in your inventory and give it 50 or 60 charges. (Note: For the wand trick, the charges are stored on the spell object that is one item past the wand in your inventory list.)

4: Start Ultima Underworld and load your save file. Verify the things you tried to do actually worked, and walk up to (but don't go into) the stairs to the level that bugs out your inventory.

5: Drop all of your packs and all of your gear on the ground. Only keep your map, the supercharged wand of fireball if you had one, your rune bag so you can cast spells, and a light. The idea is to keep the total number of items to a minimum when the level loads.

6: Save your game, just in case, and take the stairs to the problem level, still carrying just your minimal load.

7: Go around the problem level nuking piles of debris, broken items, blood splats, unwanted items, stray sling stones, etc. with fireballs to reduce the total count of items in the level. Don't just turn them into debris, hit the debris piles with more fireballs until the items are completely gone. If there's water or lava nearby, you can just throw things in there, but fireballs are more fun and take care of a small area full of items all at once.

8: Try to destroy at least 50 to 80 objects. If you only destroy 20 and then you visit the level again with 20 more items than you have now, your glitch will come back. Stacking things might help too.

9: Once you're done with your spring cleaning, go back and pick up your stuff. Your inventory glitches should now be gone.

10: Remember at some point to put your runes and mana back the way they were. I'm personally keeping my supercharged fireball wand around, strictly just to nuke debris and unwanted objects so the bug doesn't come back. (And giving myself a few more stones of carry capacity for my trouble.)

Note for Good Old Games users:

Since the GOG launcher is running the game automatically, you might need to install dosbox separately and mount the folder that has Ultima Underworld to use the save editor. I'm partly guessing, since I don't have the GOG version. I have vanilla DosBox and an actual old copy of the game that I lugged around from apartment to apartment over the decades.

The save editor runs as a DOS program. You drop it in the same folder as UW.EXE, use the DOS prompt to CD to the save folder that's being affected by the inventory glitch, and run the editor using DOS.

For me this looks like:
* run DosBox
> mount C "C:\Program Files\Good Old Games.com\Or whatever Ultima underworld is located"
> C:
> cd UW\SAVE3
> ..\UWEDIT.EXE

[tinker with save file]

Hope this works for everybody!
Post edited May 27, 2013 by misterbk
While this won't help you with UW1, the Ultima Underworld II engine seems to be a bit more resilient when it comes to level clutter. If there are too many objects spawned on the level then the game engine will begin to delete some of them, and it seems to prioritize cosmetic stuff (bones, blood, etc). This is most noticeable if you fight a lot of battles in the Pits of Carnage arenas, where it will result in the 'decorative' bones in the hallways slowly thinning out.
avatar
misterbk: ...
Good job finding the cause and a solution. I haven't encountered such a bug myself, but I'll put a link to this thread in the sticky.
avatar
Garran: While this won't help you with UW1, the Ultima Underworld II engine seems to be a bit more resilient when it comes to level clutter. If there are too many objects spawned on the level then the game engine will begin to delete some of them, and it seems to prioritize cosmetic stuff (bones, blood, etc). This is most noticeable if you fight a lot of battles in the Pits of Carnage arenas, where it will result in the 'decorative' bones in the hallways slowly thinning out.
That's kind of cool I hadn't noticed that before. At least with UW1, since the game crashes if you go over item count while you're on the level, you're fairly sure that if you do hit the glitch you're only over item count by fewer items than you're currently carrying, and can recover.

I'm just happy I get to finish my playthrough. And if this comes up for other people who find that glitch, so will they!

On a related note, while I was tinkering I discovered that one of the funniest glitched items that can appear in your inventory is yourself. I was attempting to give myself "un-glitched" empty packs, but one of them glitched and had a smiley face in it. Click and "You see an adventurer." When I threw it, I saw myself fly across the room, hit the wall, die and drop all of the items I was carrying. From then on my viewport couldn't move, but an invisible me in front of me in the viewport could walk around, throw items, cast spells and go down stairs. :D
avatar
misterbk: ...
avatar
HiPhish: Good job finding the cause and a solution. I haven't encountered such a bug myself, but I'll put a link to this thread in the sticky.
Thanks!! That's pretty cool!

The bug is reproducible for me, but whether you encounter it definitely depends on play style. I remember I used to pick up everything (resulting in the drops stacking together into one item) and used to think it was fun to throw items into the water. Now I know that some items are useless to me and just leave them around, resulting in clutter. That plus the infinite rats switch put it over the edge.