damian666 Posted December 11, 2009 Author Share Posted December 11, 2009 ok, this is really stumping me…when i tried to increase my maps above 999, it errors with runtime error 9.when looking at it in source, it highlights mapnumber 1000...i dont know how, or why it does that, is eclipse not used to that amount of maps?Damian666 Link to comment Share on other sites More sharing options...
Robin Posted December 11, 2009 Share Posted December 11, 2009 @[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. xDAnyway, 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 More sharing options...
damian666 Posted December 11, 2009 Author Share Posted December 11, 2009 lolol, i thought it worked the same as a women XDlet me ask ya this, is this known behavior on eclipse?or is this something only i experience?Damian666 Link to comment Share on other sites More sharing options...
Robin Posted December 11, 2009 Share Posted December 11, 2009 Why are you asking me? I've never used Eclipse in my life.You've got the wrong kind of mindset. ;PIf you're experiencing it, that means it's a problem with the code. Fix the code and it'll work. Link to comment Share on other sites More sharing options...
damian666 Posted December 11, 2009 Author Share Posted December 11, 2009 well, your good, so i thought you would know XDcant blame a guy for asking right? ^^Damian666 Link to comment Share on other sites More sharing options...
Robin Posted December 11, 2009 Share Posted December 11, 2009 Go through your code and make sure it's as I say.I don't understand why it'd suddenly stop working at 1000, as no data type is limited to that amount.Tell me exactly what sub it errors on and paste it in here. Link to comment Share on other sites More sharing options...
damian666 Posted December 11, 2009 Author Share Posted December 11, 2009 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 NextEnd Sub```ok, this is weird, i deleted my maps again, and now it loads just perfect O.othis was a clean server to begin with, no maps or whatever…Damian666 Link to comment Share on other sites More sharing options...
Robin Posted December 11, 2009 Share Posted December 11, 2009 Stop doing drugs? Link to comment Share on other sites More sharing options...
damian666 Posted December 11, 2009 Author Share Posted December 11, 2009 heheh XDi 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 More sharing options...
Robin Posted December 11, 2009 Share Posted December 11, 2009 Look around the source and you'll find it. Link to comment Share on other sites More sharing options...
damian666 Posted December 11, 2009 Author Share Posted December 11, 2009 i am ^^this is a weird thing, and i think it should get out of the source if posible, its much easyer if ya can up the amount any time ya want.oh well, thanx mate ^^Damian666 Link to comment Share on other sites More sharing options...
Robin Posted December 11, 2009 Share Posted December 11, 2009 It's all dynamically set in the editor in Origins, so it's much easier. Link to comment Share on other sites More sharing options...
damian666 Posted December 11, 2009 Author Share Posted December 11, 2009 yeah, origins is going to pawn all thats out now man ^^Damian666 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now