|
||
|
|||||||
| Custom Script Release Archive This is a pre-script database archive of what our users had released. |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) | |
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
Updated: 02-09-2006
Code now includes another configuration options to make it so that it can use EITHER DynDNS or No-IP. I figured I'd accomodate XxSP1DERxX since he was nice enough to accomodate me with his Currency System, might as well right. If someone else knows another free IP update site I'd be happy to try and mod it to support that one as well, as long as the give their update protocol like these two sites do. The No-IP update doesnt support as many options cause the Additional Options are not free, so if you edit them they wont do anything anyway. Code:
private static bool Enabled = false; //activate expiramental AutoUpdate by changing this to true.
private static bool m_NoIP = false; // set this to true if you are using No-Ip
private static string m_Username = "YOUR ACCOUNT NAME HERE"; //Edit this to your DynDNS account name or NO-IP login email.
private static string m_Password = "YOUT ACCOUNT PASSWORD HERE"; //Edit this for your DynDNS or NO-IP password.
// Since both DynDNS and No-IP offer mutiple free domains essentially just make it
// look something like whats below my example is using DynDNS.org
private static string m_Domain = "MyShard.dyndns.org"; //Your fully designated address
1) Must have a DynDNS or No-IP account (Its free for a basic account which is all thats needed) 2) Must edit the above lines of Code What It Does: Uses your Shard as a DynDNS update program by using the command "IPUpdate" removing the quotes and preceeding it with your command prefix OR by doing me a favor and testing my Expiramental AUTOUPDATE by changing Enabled = false; to Enabled = true; This in effect will eliminate the need to run another program to keep your IPAddress updated with DynDNS so your players can use an address like myshard.dyndns.org instead of 123.234.21.1 to connect to your shard or your web page. PS: When are they going to enable the Uploading of .cs files?
__________________
Quote:
Just a Simple Staff Tool You can leave me messages. Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else." Last edited by Greystar; 02-10-2006 at 03:37 AM. |
|
|
|
|
|
#3 (permalink) | |
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
Possibly adding an in game announcement in the near future, need to test it first so just use this one for now and updates I'll just add the mods to the first post. Since you have to edit the info to change things.
__________________
Quote:
Just a Simple Staff Tool You can leave me messages. Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else." |
|
|
|
|
|
#4 (permalink) |
|
Forum Novice
Join Date: May 2005
Age: 36
Posts: 222
|
Well don't know about anybody else, but this script would have been easier on my part, if it had worked. Every time I impliment it, I get errors that the shard won't start because of my existing ServerList.cs file in Scripts/Misc. When I remove that one the shard compiles the scripts fine, but right after it starts to load the Reports, I get a dialogue box that says "Application has generated an exception that could not be handled - Click OK to terminate the application - Click CANCEL to debut the application".
|
|
|
|
|
#6 (permalink) | ||
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
Quote:
for XxSp1derxX (untested) Code:
public static string HttpGetRequest( )
{
// Syntax: http://www.no-ip.com/integrate/request/
string httpUpdate =
@"http://" + m_Username + ":" + m_Password + "dynupdate.no-ip.com/nic/update?" +
"hostname=" + m_Domain + "&" +
"myip=" + m_MyIP;
return httpUpdate;
}
EDIT: I just made a no-ip account havent tried updating with this script yet, but the format I have should work, only thing is it may not show the proper update message. I'll have to edit that and change a couple more things. The next update with include a bool for m_NOIP and if no-ip is true then it will use no-ip instead of Dyndns so it will be usable by either. it appears that No-IP uses a numeric code instead of a string. I might just add an extra interp in there so it will return the same messages... no real big deal. may also change it to a case instead of that if statement im using now. will mess with things in the near future. EDIT2: Found a way to make it so it uses the same codes I already use so it will save me a bit of coding to make it compatible. If it doesnt work with the above code then let me know and i'll get it working. Shouldnt be that big of a deal and i'll keep messing with it till its right. I figure if i can manually type in the URL then when the script submitts the HTTP request it will submit it exactly the same as I type it, so in theory there shouldnt be a problem. It seems the No-IP doesnt use half the stuff I have defined at the top but im still leaving it cause it will support it if you are using a "premium" no-ip account, but users who want the extra stuff will have to figure out in what order it needs to go.
__________________
Quote:
Just a Simple Staff Tool You can leave me messages. Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else." Last edited by Greystar; 02-09-2006 at 02:35 AM. |
||
|
|
|
|
#7 (permalink) | |
|
Forum Expert
Join Date: Mar 2004
Location: NorthCentral IL, USA
Age: 35
Posts: 3,848
|
New Updated in first post.
Updated: 02-09-2006
I know bumping is bad, but since I updated it I figured I needed to show that I did it. Mr. Fixit's serverlist is no longer required or included. However I strongly suggest adding it anyway cause it makes it so that you don't HAVE to know your internet IP address since it will get it for you.
__________________
Quote:
Just a Simple Staff Tool You can leave me messages. Ernest Gary Gygax - Quote "I would like the world to remember me as the guy who really enjoyed playing games and sharing his knowledge and his fun pastimes with everybody else." |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|