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

Run Time error "9" - Animation Layers


troglodite
 Share

Recommended Posts

Hello! I insert this code: ["map-tile-animations-client-does-all-the-work](http://www.touchofdeathforums.com/community/index.php?/topic/127116-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

![](http://i47.tinypic.com/99qwli.gif)

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

**Please Help!!**
Link to comment
Share on other sites

> 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)
Link to comment
Share on other sites

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](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)
Link to comment
Share on other sites

> 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](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

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 ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png)
Link to comment
Share on other sites

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](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)
Link to comment
Share on other sites

> 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](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

**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:](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/unsure.png)
Link to comment
Share on other sites

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

```
Link to comment
Share on other sites

No, but I still cant get on the server.exe with the code added ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png)

And well, If you can help, I have no problem giving you the server ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)

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)
Link to comment
Share on other sites

Thx for your help mate!! but ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png) when I change to others maps, this happen:

![](http://i46.tinypic.com/acbxbs.jpg)

and I added the full graphics ![:(](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/sad.png)
Link to comment
Share on other sites

delete your client side maps ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)

it still has old ones ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

![](http://freemmorpgmaker.com/uploadfiles/b7c2edac17da0ff1f3e0d8515047cfb9.png)
Link to comment
Share on other sites

OH WELL!!

It works!!! thx you buddy!! ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)

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](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)

psd: SO the maps on client aren´t very important, the really important maps are in the server side… ![:o](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/ohmy.png)
Link to comment
Share on other sites

> no offence mate, but if you would have read, you would have seen he has 200+ maps, so thats no option ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)

sorry man, was tired when I read it so I must of missed it.
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...