SphereCommunity
Sphere Issues - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Sphere Issues (/Thread-Sphere-Issues)

Pages: 1 2


Sphere Issues - Ray - 01-07-2013 12:52 PM

Background:
We have scripts and saves from around 2010. We used the Pre-Release for windows back then. since then we have been closed. We now have a Linux box running RHEL6, which does not support the libmysqlclient required by the 2009 prerelease as it is so old. So we have had to use a Nightly.

We understand there is no support for Nightlies, but I think this may be generic to all Linux versions, as a 2011 version does the same.

Issue #1:
When loading our scripts, it gets to our spheremap.scp and outputs an error like this for every single line:
03:26:ERROR:(spheremap.scp,44)Unsupported map #0 specified. Auto-fixing that to 0.
03:26:ERROR:(spheremap.scp,45)Unsupported map #0 specified. Auto-fixing that to 0.
03:26:FATAL:(spheremap.scp,48)Floating point exception
03:26:ERROR:(spheremap.scp,48)Exception adding debug message on the exception.

The #0 is sometimes #2 or #3 and so on.

It also complains about some CTeleport not being valid.


Issue #2:
When loading our Chars save, we get Floating Point exceptions everywhere.
03:26:FATAL:(spherechars.scp,169961)Floating point exception
03:26:DEBUG:command 'P' args '3621'
03:26:FATAL:(spherechars.scp,170304)Floating point exception
03:26:DEBUG:command 'P' args '3697'

It then fails to place the characters in the world:
03:26:ERROR:UID=03db122d, id=0190 'Quiksilver', Invalid code=3202 (Object not placed in the world)

This also happens for EVERY SINGLE ITEM in the sphereworld.scp save file.


Issues #3:
Having loaded up a server with 0 chars and 0 items, we can log in to the accounts fine. But we cannot create any characters. The console shows:
03:37:3:Login 'ivanp'
03:37:3:Setup_CreateDialog acct='ivanp', char='Ray'
03:37:3:Setup_Start acct='ivanp', char='Ray', IP='201.0.41.150'
03:37:FATAL:Floating point exception
03:37:FATAL:Error Pri=1, Code=8, Desc='Floating point exception', in SUB: NetworkInput::Message::ProcessMessage()
03:37:DEBUG:3:Parsing Packet len=104 id=0x00 [2013/01/07 03:37:39]
0 1 2 3 4 5 6 7 8 9 A B C D E F
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
0000 00 ed ed ed ed ff ff ff ff 00 52 61 79 00 6c 61 ..........Ray.la
0010 79 65 72 00 00 00 00 00 00 00 00 00 00 00 00 00 yer.............
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 1f 00 00 ................
0030 00 01 00 00 00 79 03 00 00 00 00 00 00 00 00 00 .....y..........
0040 00 00 00 00 00 00 00 3c 0a 0a 07 32 25 2d 2d 05 .......<...2%--.
0050 03 f1 00 00 04 4e 00 00 04 4e 01 06 00 00 00 00 .....N...N......
0060 c0 a8 00 6a 01 a8 01 af ...j....
03:38:3:Client disconnected [Total:1] ('201.0.41.150')
03:38:FATAL:Floating point exception
03:38:FATAL:Error Pri=1, Code=8, Desc='Floating point exception', in Sphere::Tick() #1 "world"


The Sphere.ini is set up to reflect our old one, we are using our spheretables.scp and scripts from before.


Another sister server based on the same scripts runs on the Windows version of Sphere (with a few bugs but they were fixed).


Any ideas?
Is the Linux build ever tested on a RHEL based server?

Thanks,


RE: Sphere Issues - Jaguar - 01-08-2013 01:04 AM

I can test it today 3 hours later or so.
But anyway write to my MSN what are you doing?


RE: Sphere Issues - Ultima One - 01-08-2013 01:12 AM

Hi!

This is my server, I wanted to say we got past these errors by adding the following in sphere.ini

MAP0=6144,4096,64,0
MAP1=6144,4096,64,1
MAP2=2304,1600,32,2
MAP3=2560,2048,32,3
MAP4=1448,1448,8,4
MAP5=1280,4096,32,5
MAP10=6144,4096,64,10
MAP20=6144,4096,64,20
MAP55=6144,4096,64,55

So our Characters all look fine.
(Items still a mess, but looking in to that later)

So, we can login and create characters now, but we cannot walk.


21:00:ERROR:Exception creating new memory block at 1933,2701,30. (CGrayMapBlock: Read)
21:00:WARNING:GetMapBlock failed at 1933,2701,30.

I will get a snippet of the Log for our world save file in a few minutes.

Any way to clean this up or ignore to increase the complex limit of characters? Im not sure we have that many characters on one spot as it is!!!

Code:
16:16:WARNING:34 chars at 6080,1344,0,10. Sector too complex!
16:16:WARNING:2660 chars at 2048,2048,0,10. Sector too complex!
16:16:WARNING:6912 chars at 2112,2048,0,10. Sector too complex!
16:16:WARNING:1764 chars at 1984,2112,0,10. Sector too complex!
16:16:WARNING:11978 chars at 2048,2112,0,10. Sector too complex!
16:16:WARNING:13948 chars at 2112,2112,0,10. Sector too complex!


This is the current issues with items in our sphereworld.scp:
Some armors break:
Code:
16:16:ERROR:(item_bf_armour_mail.scp,4516)Setting new id for base type i_chainmail_coif_valorite not allowed
16:16:ERROR:(item_bf_armour_mail.scp,5841)Setting new id for base type i_ringmail_gloves_mytheril not allowed

Havent looked at the code for those pieces, just incase anyone knows why this may happen and save me some time Smile


This is the main problem though, after the server loads everything and MySQL connects, I get a LOT of these:

Code:
16:16:ERROR:Exception creating new memory block at 1136,584. (Assert)
16:16:WARNING:GetMapBlock failed at 1139,587,1.
16:16:ERROR:Exception creating new memory block at 1136,584. (Assert)
16:16:WARNING:GetMapBlock failed at 1139,586,1.
16:16:ERROR:Exception creating new memory block at 1120,616. (Assert)
16:16:WARNING:GetMapBlock failed at 1120,619,16.
16:16:ERROR:Exception creating new memory block at 1120,616. (Assert)
16:16:WARNING:GetMapBlock failed at 1120,617,16.
16:16:ERROR:Exception creating new memory block at 1112,592. (Assert)
16:16:WARNING:GetMapBlock failed at 1117,595,16.
16:16:ERROR:Exception creating new memory block at 1112,592. (Assert)
16:16:WARNING:GetMapBlock failed at 1117,596,16.
16:16:ERROR:Exception creating new memory block at 2208,1192. (Assert)
16:16:WARNING:GetMapBlock failed at 2214,1194.
16:16:ERROR:Exception creating new memory block at 1264,616. (Assert)
16:16:WARNING:GetMapBlock failed at 1271,618,1.
16:16:ERROR:Exception creating new memory block at 2312,1168. (Assert)
16:16:WARNING:GetMapBlock failed at 2315,1173.
16:16:ERROR:Exception creating new memory block at 2312,1168. (Assert)
16:16:WARNING:GetMapBlock failed at 2315,1171.
16:16:ERROR:Exception creating new memory block at 5432,2888. (Assert)
16:16:WARNING:GetMapBlock failed at 5437,2895,31.
16:16:ERROR:Exception creating new memory block at 2376,1152. (Assert)
16:16:WARNING:GetMapBlock failed at 2380,1152.
16:16:ERROR:Exception creating new memory block at 2376,1152. (Assert)
16:16:WARNING:GetMapBlock failed at 2379,1153.
16:16:ERROR:Exception creating new memory block at 2376,1144. (Assert)
16:16:WARNING:GetMapBlock failed at 2379,1151.
16:16:ERROR:Exception creating new memory block at 2376,1152. (Assert)
16:16:WARNING:GetMapBlock failed at 2380,1152.
16:16:ERROR:Exception creating new memory block at 2376,1152. (Assert)
16:16:WARNING:GetMapBlock failed at 2380,1156.
16:16:ERROR:Exception creating new memory block at 2376,1152. (Assert)
16:16:WARNING:GetMapBlock failed at 2381,1157.
16:16:ERROR:Exception creating new memory block at 2408,1208. (Assert)
16:16:WARNING:GetMapBlock failed at 2410,1208.
16:16:ERROR:Exception creating new memory block at 2408,1208. (Assert)
16:16:WARNING:GetMapBlock failed at 2409,1208.
16:16:ERROR:Exception creating new memory block at 2408,1200. (Assert)
16:16:WARNING:GetMapBlock failed at 2409,1207.
16:16:ERROR:Exception creating new memory block at 2408,1208. (Assert)
16:16:WARNING:GetMapBlock failed at 2411,1209.

It just keeps going! lol

Code:
16:16:CRITICAL:(sphereworld.scp,49984)Error Pri=2, Code=0, Desc='CTileTerrainType.ReadInfo: TileData Read', in GetItemData
16:16:ERROR:(sphereworld.scp,57155)Conflicting region!
16:16:ERROR:(sphereworld.scp,57155)Linking sector #225 for map 0 for region Yew Territory (Cage) failed (fatal for this region).
16:16:ERROR:(sphereworld.scp,57157)Conflicting region!
16:16:ERROR:(sphereworld.scp,57157)Linking sector #225 for map 0 for region Yew Territory (Cage) failed (fatal for this region).
...
16:16:ERROR:(sphereworld.scp,182608)Conflicting region!
16:16:ERROR:(sphereworld.scp,182608)Linking sector #934 for map 0 for region Minoc (Markzone) failed (fatal for this region).
16:16:ERROR:(sphereworld.scp,182610)Conflicting region!
16:16:ERROR:(sphereworld.scp,182610)Linking sector #934 for map 0 for region Minoc (Markzone) failed (fatal for this region).
...
16:16:Loading save/spherechars...
16:16:CRITICAL:(spherechars.scp,26358)Error Pri=2, Code=0, Desc='CTileTerrainType.ReadInfo: TileData Read', in GetItemData
...
16:16:WARNING:38 chars at 5376,0. Sector too complex!
16:16:WARNING:57 chars at 5440,0. Sector too complex!
16:16:WARNING:35 chars at 5504,0. Sector too complex!
16:16:WARNING:40 chars at 5568,0. Sector too complex!
16:16:WARNING:33 chars at 5952,0. Sector too complex!
...
16:16:GC: 294766 Objects accounted for
16:16:Auto-complete dictionary loaded (contains 143 words).
16:16:Option flags: CommandSysmessages + FileCommands + NoHouseMuteSpeech + NoPrefix
16:16:Experimental flags: ItemStrictComparison + TelnetPacketFilter
16:16:Admin=admins@theuoproject.co.uk, URL=www.theuoproject.co.uk, Lang=English, TZ=0
16:16:Startup complete. items=238500, chars=56266
16:16:(sphere_serv_triggers.scp,75)MySQL debug: MySQL successfully connected!
16:16:ERROR:Exception creating new memory block at 1088,600. (Assert)
16:16:WARNING:GetMapBlock failed at 1094,605,27.
16:16:ERROR:Exception creating new memory block at 1088,600. (Assert)
16:16:WARNING:GetMapBlock failed at 1093,605,27.
16:16:ERROR:Exception creating new memory block at 1136,584. (Assert)



RE: Sphere Issues - Ultima One - 01-08-2013 05:50 AM

So, it seems that these Errors are because of NPC's trying to walk, as they are the same as when Players try to walk.

So this is now down to just 'wheneever something moved, we get the memory block error'

Any reasons why?

We are using MUL's from 4.0.11

Using:
Code:
MAP0=6144,4096,64,0
MAP1=6144,4096,64,1
MAP2=2304,1600,32,2
MAP3=2560,2048,32,3
MAP4=1448,1448,8,4
MAP10=6144,4096,64,10
MAP20=6144,4096,64,20
MAP50=6144,4096,64,50
MAP55=6144,4096,64,55
Map204=6144,4096,64,204


with RECTS defined:

Code:
[AREADEF a_aos]
NAME=Malas
P=848,160,-90,3
Rect=0,0,2554,2042,3

[AREADEF a_se]    // Samurai Empire (SE, map4,statics4,staidx4), map #4
NAME=Tokuno Islands
GROUP=ALLMAP
P=737,1245,30,4
RECT=0,0,1448,1448,4

[AREADEF a_world]
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
NAME=The UO Project
GROUP=ALLMAP
P=1323,1624,55,0
RECT=0,0,6144,4096,0


[AREADEF a_pvp_realm_1]
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
NAME=PvP Realm 1
GROUP=ALLMAP
P=1323,1624,55,10
RECT=0,0,6144,4096,10

[AREADEF a_pvp_realm_2]
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
NAME=PvP Realm 1
GROUP=ALLMAP
P=1323,1624,55,20
RECT=0,0,6144,4096,20

[AREADEF a_instance_realm_1]
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
NAME=Instance Realm 1
GROUP=ALLMAP
P=1323,1624,55,50
RECT=0,0,6144,4096,50

[AREADEF a_test_realm_1]
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
NAME=Test Realm 1
GROUP=ALLMAP
P=1323,1624,55,55
RECT=0,0,6144,4096,55

[AREADEF a_world_map1]
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass
NAME=Trammel
GROUP=ALLMAP
P=1323,1624,55,1
RECT=0,0,6144,4096,1

[AREADEF a_lbr]
NAME=Ilshenar
P=930,641,0,2
RECT=0,0,2299,1599,2
GROUP=ALLMAP
TAG.TITLE=the realm of
EVENTS=r_default_rock,r_default_water,r_default_tree,r_default_grass
FLAGS=region_flag_nobuilding

I notice some areas within a map use 5 digits, whats that about?
RECT=736,480,768,504,2


RE: Sphere Issues - darksun84 - 01-08-2013 06:08 AM

it defines the region's "rectangle" :
xmin,ymin,xmax,ymax,mapnumber


RE: Sphere Issues - Ultima One - 01-08-2013 06:16 AM

Sorry, that makes sense.. lol

So, when I or anything try and walk I get the error.

As a GM I can walk, but it gives and error each time.

NPC's and Players cannot move when they try. I have thousands of NPC's all trying to move Big Grin

some scripts cause it to, when I run SRC.ISSTUCK or serv.newnpc <args> I get the error, but only when its in our scripts. Using .add or .summon is fine.


RE: Sphere Issues - darksun84 - 01-08-2013 06:21 AM

I got the same kind of errors
6:16:ERROR:Exception creating new memory block at 1088,600. (Assert)
16:16:WARNING:GetMapBlock failed at 1094,605,27.
16:16:ERROR:Exception creating new memory block at 1088,600. (Assert)
16:16:WARNING:GetMapBlock failed at 1093,605,27.
16:16:ERROR:Exception creating new memory block at 1136,584. (Assert)


when i used a modified(and custom)map and didn't defrag the statics, you can try to defrag them with uofiddler.


RE: Sphere Issues - Ultima One - 01-08-2013 06:22 AM

Thanks.

What do you mean by defrag the statics? Sorry, not done it before and been 3 years since I ran Sphere


RE: Sphere Issues - darksun84 - 01-08-2013 06:29 AM

rewriting the statics mul files by removing the invalid items found in them(after the operation, your static file's size will be decreased)


RE: Sphere Issues - Ultima One - 01-08-2013 06:34 AM

You'll never guess what. I forgot to upload statics muls to the server.

Thats 2 days im not getting back