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

Need help with a Problem


Guest
 Share

Recommended Posts

What Constant in VB6 is the link that when server is down it says server is down please go to [?

I would like to change that link…....](?

I would like to change that link.......)
Link to comment
Share on other sites

its not a link. the client tries to connect to the ip of the client.

If you want to change the ip, go to the Client's folder and in Data Files, find Config.ini.

IP=localhost

Port= 7001

Change the ip and port to your server's ip and port. If the server is on, the ip is set up properly and you change the config values above, your client will say server is Online.

Edit: As I reread your question I realised this could not be what you mean't.

If your programming and want to know if the client is still connected use "IsConnected = True".

If I haven't answered your question please reply and try to rephrase it or explain it better.
Link to comment
Share on other sites

> its not a link. the client tries to connect to the ip of the client.
>
> If you want to change the ip, go to the Client's folder and in Data Files, find Config.ini.
>
> IP=localhost
>
> Port= 7001
>
> Change the ip and port to your server's ip and port. If the server is on, the ip is set up properly and you change the config values above, your client will say server is Online.
>
> Edit: As I reread your question I realised this could not be what you mean't.
>
> If your programming and want to know if the client is still connected use "IsConnected = True".
>
> If I haven't answered your question please reply and try to rephrase it or explain it better.

ik that but i want to change the link if the servers down
Link to comment
Share on other sites

You want to change the IP if the server is down?

You have a few options. You could:

-Set a timer. At the end of the time (say 40 secs), if the server still IsConnect = False, then connect to a diff ip.

-Create an a button in the main frm that links to a new frm: Server List. Check for all availible server ips and change the labels.

Server 1 = label1

Server 2 = label2

It will change labels to Online or Offline.
Link to comment
Share on other sites

> You want to change the IP if the server is down?
>
> You have a few options. You could:
>
> -Set a timer. At the end of the time (say 40 secs), if the server still IsConnect = False, then connect to a diff ip.
>
> -Create an a button in the main frm that links to a new frm: Server List. Check for all availible server ips and change the labels.
>
> Server 1 = label1
>
> Server 2 = label2
>
> It will change labels to Online or Offline.

lol can u show me how to do that on team viewer? ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)
Link to comment
Share on other sites

No i'm sorry you will need to program it yourself. This is not something you can just do immediatly. You will need to program it in. If you have no knowledge of programming try getting a programmer on your team. Otherwise I suggest looking through the Tutorial > Source section.

[http://www.touchofdeathforums.com/community/index.php?/forum/76-source/](http://www.touchofdeathforums.com/community/index.php?/forum/76-source/)
Link to comment
Share on other sites

This is the constant:

```

Public Const GAME_WEBSITE As String = "http://www.touchofdeathforums.com"

```

(Also, see Options.Website server-side.)

> its not a link. the client tries to connect to the ip of the client.
>
> If you want to change the ip, go to the Client's folder and in Data Files, find Config.ini.
>
> IP=localhost
>
> Port= 7001
>
> Change the ip and port to your server's ip and port. If the server is on, the ip is set up properly and you change the config values above, your client will say server is Online.
>
> Edit: As I reread your question I realised this could not be what you mean't.
>
> If your programming and want to know if the client is still connected use "IsConnected = True".
>
> If I haven't answered your question please reply and try to rephrase it or explain it better.

If you don't know the answer, please don't reply.
Link to comment
Share on other sites

> ROFL. the question was badly written. I tried to provide him with help and i asked him to make it clearer IF i didnt answer his question. He didn't say i didn't so i figure I had answered it.
>
> You don't even know the answer yourself. Why would he want the GAME_WEBSITE when his question says "when the server is offline"
>
> Maybe he wants a different ip to be availible when the server is offline.

Doesn't matter. Your help was extremely detrimental to the actual process. I had zero problem understand what he meant.

> when server is down it says server is down please go to [?
>
> This is a message that displays when the client cannot connect to the server.
>
> So we search for the default site, touchofdeathforums.com, and we find it's GAME_WEBSITE. Our initial hypothesis is verified by searching for the GAME_WEBSITE:
>
> ```
>
> Call MsgBox("Sorry, the server seems to be down. Please try to reconnect in a few minutes or visit " & GAME_WEBSITE, vbOKOnly, Options.Game_Name)
>
> ```](?
>
> This is a message that displays when the client cannot connect to the server.
>
> So we search for the default site, touchofdeathforums.com, and we find it's GAME_WEBSITE. Our initial hypothesis is verified by searching for the GAME_WEBSITE:
>
> [code]
>
> Call MsgBox()
Link to comment
Share on other sites

> Ya sure it all makes sense now that I understand what he was asking for. I even knew the answer to that question.
>
> I didn't get the initial question.
>
> I forgot about the rules that say you can't try to help others on the forums…

You are, of course, perfectly free to ask for clarification. However, I don't want people shooting around in the blind in hopes of stumbling upon the solution.

Also this rule has been in place for quite some time: refer to [this topic](http://www.touchofdeathforums.com/community/index.php?/topic/98399-dont-know-the-answer-dont-reply/).
Link to comment
Share on other sites

> I knew the answer but i wanted clarification and he gave none. I understood i had his answer.
>
> You don't need to come in here and be arrogant with me. If he would of clarified, he would of had his answer hours ago which would of saved everybody time.

This doesn't address the main point, your help, although a good attempt at addressing the issue, was wrong. I am not being so much arrogant, as being factual. I do have to come in here, because without it he would have the right answer to the wrong question.

His question was quite clear after he clarified, and understandable even before he clarified. **This rule has been in place for a long time. Your help was incorrect.**
Link to comment
Share on other sites

> This is the constant:
>
> ```
>
> Public Const GAME_WEBSITE As String = "http://www.touchofdeathforums.com"
>
> ```
> (Also, see Options.Website server-side.)
>
> If you don't know the answer, please don't reply.

lol u pwned that guy any ways i did that constant and it still says touchofdeath.com ): is there a way i can reload the client and it will not say that?
Link to comment
Share on other sites

Ecto, this is what triggers it:

```
Call MsgBox("Sorry, the server seems to be down. Please try to reconnect in a few minutes or visit " & GAME_WEBSITE, vbOKOnly, Options.Game_Name)
```

GAME_WEBSITE it loaded from the config file, Soul was right. Because if the server is DOWN how could the client receive the website data?
Link to comment
Share on other sites

> Soul don't help if you don't know the answer ;D

Didn't I mention that? ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)

> **(Also, see Options.Website server-side.)**

But to clarify for future readers: Options.Website is used when the client is not up-to-date. It wasn't strictly in the original question, but I thought it was needed. The GAME_WEBSITE constant is the one that shows when the server is down.
Link to comment
Share on other sites

> Didn't I mention that? ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png)
>
> But to clarify for future readers: Options.Website is used when the client is not up-to-date. It wasn't strictly in the original question, but I thought it was needed. The GAME_WEBSITE constant is the one that shows when the server is down.

I was right, with the way my engine handles it ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png).

I have it so it saves the last message that the server said and displays that.

My arrogance caused me to look dumb though because I didn't really look over the question before I answered or use common sense haha ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)
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...