Guest Posted August 22, 2012 Share Posted August 22, 2012 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 More sharing options...
Greendude120 Posted August 22, 2012 Share Posted August 22, 2012 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=localhostPort= 7001Change 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 More sharing options...
Guest Posted August 22, 2012 Share Posted August 22, 2012 > 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 More sharing options...
Greendude120 Posted August 22, 2012 Share Posted August 22, 2012 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 = label1Server 2 = label2It will change labels to Online or Offline. Link to comment Share on other sites More sharing options...
Guest Posted August 22, 2012 Share Posted August 22, 2012 > 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 More sharing options...
Greendude120 Posted August 22, 2012 Share Posted August 22, 2012 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 More sharing options...
Ruins of Hell Posted August 23, 2012 Share Posted August 23, 2012 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 More sharing options...
Greendude120 Posted August 23, 2012 Share Posted August 23, 2012 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. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted August 23, 2012 Share Posted August 23, 2012 > 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 More sharing options...
Greendude120 Posted August 23, 2012 Share Posted August 23, 2012 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… Link to comment Share on other sites More sharing options...
Ruins of Hell Posted August 23, 2012 Share Posted August 23, 2012 > 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 More sharing options...
Greendude120 Posted August 23, 2012 Share Posted August 23, 2012 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. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted August 23, 2012 Share Posted August 23, 2012 > 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 More sharing options...
Guest Posted August 23, 2012 Share Posted August 23, 2012 > 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 More sharing options...
Ruins of Hell Posted August 23, 2012 Share Posted August 23, 2012 > 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?Have you compiled the client in VB6? (File > Make Eclipse Origins.exe) Link to comment Share on other sites More sharing options...
Ecto Posted August 23, 2012 Share Posted August 23, 2012 Soul don't help if you don't know the answer ;DHe needs to edit it in the server.server > data > options (and or config, depending on what version of Eclipse you have)Website is located their. Link to comment Share on other sites More sharing options...
Link Posted August 23, 2012 Share Posted August 23, 2012 Or he could literally added the website link in the news section using vb. Link to comment Share on other sites More sharing options...
Ecto Posted August 23, 2012 Share Posted August 23, 2012 > Or he could literally added the website link in the news section using vb.That's not his problem and not what he wants.He wants to change the site name whenever he connects to the server and it's down. Link to comment Share on other sites More sharing options...
Joyce Posted August 23, 2012 Share Posted August 23, 2012 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 More sharing options...
Ruins of Hell Posted August 23, 2012 Share Posted August 23, 2012 > Soul don't help if you don't know the answer ;DDidn'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 More sharing options...
Ecto Posted August 23, 2012 Share Posted August 23, 2012 > 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now