Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Do not have the server running while modifying the DB (not just this time, but any time)
As mentioned by silvertoken99, there are interdependencies across multiple tables. Wurm may or may not handle missing records properly, but don't assume it will. Fix it yourself before restarting the server.
At the very least, you need to clean up the wurmcreatures.position table with a query such as:
delete from position where wurmid not in (select wurmid from creatures);
If you delete creatures that have inventory (such as trolls and their clubs) you'll end up with orphaned items- the club still exists in the items DB, but the owner (troll) no longer exists in the creatures DB.
There is not a quick and simple way to do what you want, but it can be done.
You're assuming that the item will appear in the world when the creature holding it is removed from the DB.
select * from items where name like '%club%';
Note that their x,y,z coords are null.
Will they miraculously appear somewhere once the holder (troll) is deleted?
If they do not appear, how will they take environmental damage and decay?
Is the server programmed to handle this unexpected condition, or will those items remain indefinitely?
If they remain indefinitely, will this unexpected data in the DB cause future problems?
Computers don't generally handle unexpected data well, unless they are explicitly told how to do so.
And that's the situation with troll clubs. They are created in a creature's inventory (the troll) and do not start to take decay until they are in an item (the troll's corpse). Killing a troll converts it from being a creature to being an item. During this conversion, the huge shod club gains x/y/z coords in the database. If you simply delete the creature from the database, it never goes thru this conversion.
Database errors tend to snowball in general, not just in Wurm. What starts off looking like a minor issue, over time, becomes a huge one. It may work fine for weeks or even months until you hit a critical point where the database becomes hopelessly corrupted and unsalvageable.