Run Time error "9" - Animation Layers

Hello! I insert this code: "map-tile-animations-client-does-all-the-work" to my game

I read that I have to delete maps, but searching I found the Erwin Map Convertor,

so I try to convert the maps for dont delete them (I have 200+)

I edit the MapConvertor code for insert new data into the new maps

In Mod Enumeration I paste this


' Layers in a map

Public Enum MapLayer

Ground = 1

Mask

Mask2

Fringe

Fringe2

MaskAnim

FringeAnim

' Make sure Layer_Count is below everything else

Layer_Count

End Enum

(I added MaskAnim and FringeAnim)

I compile, I convert the old maps, I reemplace the new maps, and when I run the server.exe, it gives me a run time error

! ```
ResourceCache(mapnum).ResourceData(Resource_Count).cur_health = Resource(Map(mapnum).Tile(x, y).Data1).health


**Please Help!!**

Run within the IDE. (Press ctrl+f5)

Let the error occur. A box is shown. Click on debug. The line erroring is highlighted. Paste that line here.

Run within the IDE. (Press ctrl+f5)

Let the error occur. A box is shown. Click on debug. The line erroring is highlighted. Paste that line here.

Yeah I forget, Its a very know error when you add new layers, but I guessed that the Map convertor can fix it

(Added the line in the first post, in spoiler)

i believe that there was a easy solution, you keep the loading of maps to the old way, but save the maps with the new way, then you shut it down, and also make the loading the new way, then it should work, you let the server convert it sort of speak :P

i believe that there was a easy solution, you keep the loading of maps to the old way, but save the maps with the new way, then you shut it down, and also make the loading the new way, then it should work, you let the server convert it sort of speak :P

HUM O_O I can not understand at all… and the big problem is that when I run the new server.exe

with the code of the animation layers it gives me the error, so… aww :(

well, if you still have a OLD server, i could try for you, no promises though…

i need old server with old maps, and source code ofcourse, else i cant get it done period .

basicly what you do, is load the old maps with the old way, because that doesnt error, but you modify the server to store the maps in the new way.

then you turn it off, modify the loading also to the new way, and in theory, it should work :P

well, if you still have a OLD server, i could try for you, no promises though…

i need old server with old maps, and source code ofcourse, else i cant get it done period .

basicly what you do, is load the old maps with the old way, because that doesnt error, but you modify the server to store the maps in the new way.

then you turn it off, modify the loading also to the new way, and in theory, it should work :P

is load the old maps with the old way = turn on the server (doble click on server.exe)?

but you modify the server to store the maps in the new way = what??

then you turn it off = turn of server.exe (close server.exe)?

modify the loading also to the new way = uh??

This is what I dont get :unsure:

yeah sorry, but if you dont get that, i cant explain it either xd

my offer stands, but if you dont wanna give out your files, i understand :)

Erase ur map folder files then it should work.

no offence mate, but if you would have read, you would have seen he has 200+ maps, so thats no option :P

hmm, i just went ahead and took a looksie at the converter, did you make this?


' Layers in a map

Public Enum OldMapLayer

    Ground = 1

    Mask

    Mask2

    Fringe

    Fringe2

    ' Make sure Layer_Count is below everything else

    Layer_Count

End Enum

' Layers in a map

Public Enum MapLayer

    Ground = 1

    Mask

    Mask2

    Fringe

    Fringe2

    MaskAnim

    FringeAnim

    ' Make sure Layer_Count is below everything else

    Layer_Count

End Enum

No, but I still cant get on the server.exe with the code added :(

And well, If you can help, I have no problem giving you the server :)

But you want the server with animation layers coded? Or clean?

(I guess that you want client+server, I can give you both, clean or coded)

clean, so i can try myself, no offence, but that way i know what has been done or not :)

Nice, I send to you a PM :)

and done, i send it in pm :)

Thx for your help mate!! but :( when I change to others maps, this happen:

and I added the full graphics :(

delete your client side maps :)

it still has old ones :P

OH WELL!!

It works!!! thx you buddy!! :)

I´ll try to add more mask anim for make better animations on map n_n coz: I see that I can make

an animation with 2 frames (Mask+MaskAnim), so do you think that with another MaskAnim will work

like an animation with 3 frames? (Mask+MaskAnim1+MaskAnim2) ? :D

psd: SO the maps on client aren´t very important, the really important maps are in the server side… :o

fine on my end…

i would’nt do that, maps get bigger with more layers.

client are just copies.

Log in to reply