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

Error run time 9 and crash server ????!!!!! help me =(


Rizz
 Share

Recommended Posts

> Reading various issues here in the forum I found out that run time error 9 is just a bug "annoyance", appears randomly and no one knows the cause, but just restart the server or the client a couple of times and the problem is solved …
>
> This error, however, 'may, however, be affected by the same ...

A RTE 9 is not caused randomly. There's always a cause. It's easy to fix once you know the value that's out of range. In order to figure that out, you need to have the error come up while running the server in the IDE. Hover over each value in the line it shows you, and find the one that's causing the error.

> In another matter however, a member of the forum said that to solve the problem simply copy the folder and paste it mapps server instead of the client …

I'm not sure what you're saying here, but don't copy the files, **_especially the source files,_** from the client to the server, or the other way around. The client and server work differently for a reason.

As for the issue the "Need startup form or sub main", your program doesn't know where to begin the sub of code. Go into the properties of your program and select Sub Main. Now look for the sub itself. If you can't find it, then that explains why your form isn't showing up. Do exactly as Zeno said and put this sub in modGeneral.

```

public sub Main()

call initServer

end sub

```
Link to comment
Share on other sites

> As for the issue the "Need startup form or sub main", your program doesn't know where to begin the sub of code. Go into the properties of your program and select Sub Main. Now look for the sub itself. If you can't find it, then that explains why your form isn't showing up. Do exactly as Zeno said and put this sub in modGeneral.
>
> ```
>
> public sub Main()
>
> call initServer
>
> end sub
>
> ```

If that sub is missing, IMO it's far more likely that the entire module is missing. Pasting will probably just bring us to an error with the next missing sub in modGeneral. ![:mellow:](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/mellow.png) **Rizz, does modGeneral exist in your project? It should be on the right-hand column with the other modules.**

You mentioned copying the maps files from server to client. This is completely unrelated to your problem. Don't bother. In the future, keep in mind that although this could be helpful if the client had corrupted map files, it is best to just empty the client map folder.

To re-iterate: the single only solution to the specific problem you're having now is with whether modGeneral.bas is included in your project, and whether Sub Main() exists in that module. It has nothing to do with RTE9 or your client files (you said it's a **server**-side error).

[You may want to try learning the basics of VB6 if you're serious about this.](http://www.vb6.us/guides/visual-basic-6-beginners-guide)
Link to comment
Share on other sites

Nothing, it seems it is my VB6 who has trouble …

I thank everyone for the advice and the links to the guides, but apparently this project should not go into port ç_ç

In addition to my inability 'to use vb6 not even know where to find a program (vb6) that is not working either for a fee = (

EDIT :

I tried to play my game again with my friend ...

The server crash happens only when a player uses the command (button) to recall the pet (disband) ...

However, the crash does not always happen, I tried to call the pet to my friend, the first time everything goes smoothly but the second there is the crash ...

However, if the players are located in 2 different maps, there is no crash ...

I also noticed that when my pet recall, in the data of maooa (more 'precisely in the box in which, you set the npc visible on the map), the recalled pet looks like wandering npc not connected to my character ...

I think the server crash is because you call a pet, pet but that 'is read by the program as NPCs wandering the map and then there is a conflict and then the server crashes ...
Link to comment
Share on other sites

> I tried to play my game again with my friend …
>
> The server crash happens only when a player uses the command (button) to recall the pet (disband) ...
>
> However, the crash does not always happen, I tried to call the pet to my friend, the first time everything goes smoothly but the second there is the crash ...
>
> However, if the players are located in 2 different maps, there is no crash ...
>
> I also noticed that when my pet recall, in the data of maooa (more 'precisely in the box in which, you set the npc visible on the map), the recalled pet looks like wandering npc not connected to my character ...
>
> I think the server crash is because you call a pet, pet but that 'is read by the program as NPCs wandering the map and then there is a conflict and then the server crashes ...

In order to fix this, you'd have to have a decent copy of VB6\. You can't progress without it. Your last option is asking someone to fix it for you, but it might be hard finding someone to do it for free.
Link to comment
Share on other sites

I know I guess …

Another option would be to completely fill the list of map npc, so as to leave more space ...

But we are talking about 100 npc map (I use maps to 50x50) ...

If someone could help me, I'm staying still waiting, thank you the same for all the help =)
Link to comment
Share on other sites

  • 7 months later...

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