16-09-2006, 05:49 PM
phantasy Wrote:howcomei cant compile the server, as in i can but the compiled version doesnt work?
: i have XP
: and i dont know any problems at all
Same problem here. Working in IDE (your server), but when compile, it crashes the hell out of it. .. on Win XP and Server 2003.
And yes, it's registered ...
Remember guys, change your IDE settings to the following:
menu > tools > options > general > error trapping, and enable "Break on all errors"
It will provide tons of errors (mainly type mismatches), that need to be fixed for a fully working client/server

Traced the bug down to the following code
Code:
Sub ClearTempTile()
Dim tTempTileRec As TempTileRec 'Need object to obtain memory size.
Dim tLen As Long
tLen = (1 + UBound(TempTile) - LBound(TempTile)) * LenB(tTempTileRec)
Call FillMemory(ByVal TempTile(1), tLen, 0)
End Sub
Replace with the following fixes the problem in that code .. but there's another ...
Code:
Sub ClearTempTile()
Dim i As Long, y As Long, x As Long
For i = 1 To MAX_MAPS
TempTile(i).DoorTimer = 0
For y = 0 To MAX_MAPY
For x = 0 To MAX_MAPX
TempTile(i).DoorOpen(x, y) = NO
Next x
Next y
Next i
End Sub
It looks like anything that uses FillMemory breaks when its compiled. It leaves alot to be fixed. I'll see if I can post a fixed client/server once I go through all the errors.