SphereServer BugTracker - SphereServer
View Issue Details
0002141SphereServerexecutable - windows buildpublic26-02-13 03:0111-09-13 03:57
Mordaunt 
Ben 
normalmajoralways
resolvedfixed 
20-09-2009, 0.56b Prerelease 
 
Not Available
None
None
0002141: WorldGem Bits do not recognise map edge
Something I discovered when making my spawner, was talking to RanXerox about it in IRC after someone posted with the same issue on the forums today.

A worldgem bit placed X distance from the edge of the map and given a distance of Y under morep when initialised (MOREP=<min time> <max time> <distance>
will spawn creatures off the map randomly if Y > X and create errors as follows:

19:28:DEBUG:>> 5308 | 0 | CWorld::OnTick | +0
19:28:DEBUG:>> 5308 | 1 | CSector::OnTick | +0
19:28:DEBUG:>> 5308 | 2 | CChar::OnTick | +125
19:28:DEBUG:>> 5308 | 3 | CChar::NPC_OnTickAction | +0
19:28:DEBUG:>> 5308 | 4 | CChar::NPC_Act_Wander | +0
19:28:DEBUG:>> 5308 | 5 | CChar::NPC_WalkToPoint | +0
19:28:DEBUG:>> 5308 | 6 | CChar::CanMoveWalkTo | +0 <-- exception catch point (below is guessed and could be incorrect!)
19:28:DEBUG:>> 5308 | 7 | CChar::CheckValidMove_New | +0
19:28:DEBUG:>> 5308 | 8 | CWorld::GetHeightPoint_New | +0
19:28:DEBUG:>> 5308 | 9 | CItemBase::GetItemHeight | +0
19:28:DEBUG:>> 5308 | 10 | CItemBase::GetItemHeightFlags | +0
19:28:DEBUG:__ thread (5308) __ | # | _____ function _____________ | ticks passed from previous function start ______
19:28:DEBUG:>> 5308 | 0 | CWorld::OnTick | +0
19:28:DEBUG:>> 5308 | 1 | CSector::OnTick | +0
19:28:DEBUG:>> 5308 | 2 | CChar::OnTick | +125
19:28:DEBUG:>> 5308 | 4 | CChar::NPC_Act_Wander | +0
19:28:DEBUG:>> 5308 | 5 | CChar::NPC_WalkToPoint | +0
19:28:DEBUG:>> 5308 | 6 | CChar::CanMoveWalkTo | +0 <-- exception catch point (below is guessed and could be incorrect!)
19:28:DEBUG:>> 5308 | 7 | CChar::CheckValidMove_New | +0
19:28:DEBUG:>> 5308 | 8 | CWorld::GetHeightPoint_New | +0
19:28:DEBUG:>> 5308 | 9 | CItemBase::GetItemHeight | +0
19:28:DEBUG:>> 5308 | 10 | CItemBase::GetItemHeightFlags | +0
19:28:CRITICAL:"Access Violation" (0x127e16), in CChar::CanMoveWalkTo() 0000001 "Check Valid Move"

23:56:ERROR:(sphere_npcs_m_Elementali.scp,506)Point(-1,-1): trying to get a sector for point on map #0 out of bounds for this map(6144,4096). Defaulting to sector 0 of the map.
23:56:ERROR:(sphere_npcs_m_Elementali.scp,506)Point(-1,-1): trying to get a sector for point on map #0 out of bounds for this map(6144,4096). Defaulting to sector 0 of the map.
23:56:ERROR:(sphere_npcs_m_AnimaliMalvagi.scp,499)Point(-1,-1): trying to get a sector for point on map #0 out of bounds for this map(6144,4096). Defaulting to sector 0 of the map.
23:56:ERROR:(sphere_npcs_m_Elementali.scp,506)Point(-1,-1): trying to get a sector for point on map #0 out of bounds for this map(6144,4096). Defaulting to sector 0 of the map.
23:56:ERROR:(sphere_npcs_m_Demoni.scp,422)Point(-1,-1): trying to get a sector for point on map #0 out of bounds for this map(6144,4096). Defaulting to sector 0 of the map.
23:56:ERROR:(sphere_npcs_a_Selvaggi.scp,1292)Point(-1,-1): trying to get a sector for point on map #0 out of bounds for this map(6144,4096). Defaulting to sector 0 of the map.
23:56:ERROR:(sphere_npcs_m_NonMorti.scp,468)Point(-1,-1): trying to get a sector for point on map #0 out of bounds for this map(6144,4096). Defaulting to sector 0 of the map.
23:56:ERROR:(sphere_npcs_m_NonMorti.scp,900)Point(-1,-1): trying to get a sector for point on map #0 out of bounds for this map(6144,4096). Defaulting to sector 0 of the map.
23:56:ERROR:(sphere_npcs_m_Insetti.scp,691)Point(-1,-1): trying to get a sector for point on map #0 out of bounds for this map(6144,4096). Defaulting to sector 0 of the map.
place a worldgem bit 50 tiles from the edge of the map set any spawn to it ensuring distance is greater than the distance to edge, 100 for example.

Wait and watch
Verified by RanXerox in IRC
No tags attached.
Issue History
26-02-13 03:01MordauntNew Issue
11-09-13 03:57BenNote Added: 0001672
11-09-13 03:57BenStatusnew => resolved
11-09-13 03:57BenResolutionopen => fixed
11-09-13 03:57BenAssigned To => Ben

Notes
(0001672)
Ben   
11-09-13 03:57   
This should be fixed for next build