Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optimize Your Packets!
#17
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 Smile

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)