[FIXED] crash bug on regions.dfn

Here we stuff all the bugs we've managed to squash/squish/squelch.
Locked
dragon slayer
UOX3 Guru
Posts: 776
Joined: Thu Dec 21, 2006 7:37 am
Has thanked: 4 times
Been thanked: 26 times

crash bug on regions.dfn

Post by dragon slayer »

I was meaning to wipe the spawn.dfn out so it had no entrys well i wasnt thinking and I removed regions.dfn entrys left regions.dfn blank.

I tryed to load uox3 with regions.dfn being blank it causes it to crash right after startup. I wasnt going to post it because I thought wasnt a big deal.

I thought to my self what if some one wanted to make it blank to make all new regions for a custom world, They wouldnt know what to do if it kept crahsing on startup.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

At the bare minimum, UOX3 requires the base regions that cover the entire landmasses (see regions 251 to 255 - also, btw, I'm adding Ter'mur to region 250 for the next version) to be present, or there will be all kinds of trouble related to handling items/characters/weather/etc. As such it's not a good idea to allow UOX3 to finish starting up if there are no regions present at all.

I added some code to shut down UOX3 gracefully when it encounters missing regions, though - instead of just crashing. Though UOX3 will still run into trouble if you add a fake region to the file and don't actually have the base-regions covering the maps.
-= Ho Eyo He Hum =-
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

The fix for this is now available in UOX3 0.99, and on the CVS.
-= Ho Eyo He Hum =-
Locked