Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Why the hell cant i increase my map numbers above 999?


damian666
 Share

Recommended Posts

@[SB:

> Damian666 link=topic=55220.msg584525#msg584525 date=1260519551]
> i dont know how, or why it does that, is eclipse not used to that amount of maps?

It's a program, not a bloody woman. It doesn't stop working because it's "not used" to something. xD

Anyway, change your MAX_MAPS value, make sure everything to do with the map number is stored in an integer/long… I can't think of much else.
Link to comment
Share on other sites

Max_Maps is allready stored as a integer.

```
Sub SpawnMapItems(ByVal MapNum As Long)
    Dim X As Integer
    Dim Y As Integer

    ' Check for subscript out of range.
    If MapNum < 1 Or MapNum > MAX_MAPS Then
        Exit Sub
    End If

    ' Spawn all the mapped items on their specified tile.
    For Y = 0 To MAX_MAPY
        For X = 0 To MAX_MAPX
            If Map(MapNum).Tile(X, Y).Type = TILE_TYPE_ITEM Then
                If (Item(Map(MapNum).Tile(X, Y).Data1).Type = ITEM_TYPE_CURRENCY Or Item(Map(MapNum).Tile(X, Y).Data1).Stackable = 1) And Map(MapNum).Tile(X, Y).Data2 <= 0 Then
                    Call SpawnItem(Map(MapNum).Tile(X, Y).Data1, 1, MapNum, X, Y)
                Else
                    Call SpawnItem(Map(MapNum).Tile(X, Y).Data1, Map(MapNum).Tile(X, Y).Data2, MapNum, X, Y)
                End If
            End If
        Next
    Next
End Sub

```
ok, this is weird, i deleted my maps again, and now it loads just perfect O.o

this was a clean server to begin with, no maps or whatever…

Damian666
Link to comment
Share on other sites

heheh XD

i rather not thank you ^^

is there a place it stores the mapitems depending on max_map number or something?

because i just now tried to up the amount again, and then it errors on the same place.

so it seems its depending on what maps it saves on first run, but i cant find any place where it would store that, it should just be able to up the amount when ya want? atleast i think it should, i dont see why not…

Damian666
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...