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

VB.Net Map Editor problem >_>


Growlith1223
 Share

Recommended Posts

So, Development on my Map Editor has gone smoothly EXCEPT for when i use Layer….

![](http://eclipseorigins.com/community/filehost/a371863fbb887510587a11383fb1ff8a.png)

Comes up with this shiz… Everything else works fine but once it 'tries' to read Map.Tile(X, Y).Layer(i)

all hell breaks loose and errors pop up. That's really the only thing i have to fix and it's pretty much ready.

I have tried using a Class, nope. Structure, nope. tried everything i could think of, nope.

It's the only thing that's set to Nothing. it's the only thing i can't get a Tooltip from(the thing where in debug, you hover over and you get the value of it) it. If anyone can seriously help fix this, it would be GREATLY appreciated <3

Sincerely,

Growlith1223
Link to comment
Share on other sites

Well until you can be more specific I'm going to tell you the same thing, The error means SOMETHING hasn't been properly made into an object. It may not be your map, but it's SOMETHING.

That's all I can say until you print a stack trace or give better debugging information.

```

Try

Your code here

Catch exception as NullRefrenceException

exception.PrintStackTrace() ' or similar debugging statment

End Try

```
Link to comment
Share on other sites

For anyone wondering, this was the fix for layers:

```
Public Class TileRec
Public Layer(MapLayers.Fringe2) As TileDataRec
Public Type As Byte
Public Data1 As Long
Public Data2 As Long
Public Data3 As Long
Public DirBlock As Byte

Sub New()
For x As Byte = MapLayers.Ground To MapLayers.Fringe2
Me.Layer(x) = New TileDataRec
Next
End Sub
End Class

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