[Request] 5165 Launcher for dynamic dns that updates IP from no-ip.com
Discussion on [Request] 5165 Launcher for dynamic dns that updates IP from no-ip.com within the CO2 Private Server forum part of the Conquer Online 2 category.
private void button1_Click(object sender, EventArgs e)
{
string MyIP = "";
try
{
try
{
IPHostEntry serverHE;
try
{
serverHE = Dns.GetHostByName("HOST NAME FULL HERE");
Console.WriteLine("Trying...");
}
catch (Exception)
{
MessageBox.Show("Host not found"); // fail
Environment.Exit(1);
return;
}
IPAddress IP = serverHE.AddressList[0];
MyIP = IP.ToString();
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
if (File.Exists(System.Windows.Forms.Application.StartupPath + @"\ConquerS.dat"))
{
string[] content = new string[1] { MyIP };
File.WriteAllLines(System.Windows.Forms.Application.StartupPath + @"\ConquerS.dat", content);
try
{
Process p = new Process();
p.StartInfo.FileName = "ConquerLoader.exe";
p.StartInfo.CreateNoWindow = true;
p.StartInfo.Arguments = "/r";
p.Start();
Environment.Exit(-1);
}
catch
{
MessageBox.Show("Loader not found!");
}
}
else
{
MessageBox.Show("Server.dat not found!");
}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
Environment.Exit(1);
}
}
btw your pproblem should be that you have to re-write the entire server dat or just make it read and serach where it calls the IP and update that line....
Thanks for both ur replies.
@12tails thanks i appreciate the effort, yes i try to let it change only the ip address and leave the rest alone cuz there is alot of information in this server.dat.
But thats where my problem lies i cant just change the ip, i tried many ways but just doesnt work for me.
@CptSky yea indeed these are the 2 head commands needed for doing this.
@12tails tried all versions and with few dyndns and no-ip domains on different ports but it wasn't a succes. This is such a little thing but gives me so much problems. xD
You could convert server.dat to html.
Get html element as you see the server.dat is using tags like xml etc. <field name="ServerIP">
(In that case elementid = "ServerIP")
Get the new ip.
Change element to new ip.
Save it as server.dat
Thanks all for looking at my problem but it is solved, saw a post here on elitepvpers that i did not find before. . It Works perfectly. Many thanks to the uploader felipeboladao.
[Release]Dynamic Maps(5165 Houses) 07/28/2019 - CO2 PServer Guides & Releases - 60 Replies Alright well I found this on another forum and I got the creator's permission to post here with all credits towards him.
100% credits to pringle, you may know him.
DO NOT PRESS THANKS!
THIS IS NOT MY WORK!
After following my guide previous guide, then proceed with the following.
in DMaps.cs under:
public static ArrayList MapsNeeded = new ArrayList() { 601, 700, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1018, 1020, 1021,...
[RELEASE] Conquer Online Launcher (Run your conquer server on a Dynamic IP!) 07/09/2013 - Conquer Online 2 - 6 Replies http://i37.tinypic.com/2053uok.png
Small application i created, Basically its for people who want to run a private server and they have a dynamic IP and because Conquer doesn't accept hostnames such as (No-ip.org) i have created this. It simply gets the hostname from config.ini and gets the ip address then writes the ip address to server.dat then runs conquer.
How to use:
Open config.ini,
1. Edit the darkviper.servegame.org to your hostname (etc blahblah.no-ip.org)
2. Edit...
[Request] CO 5165 Launcher 01/08/2011 - CO2 Programming - 7 Replies Hello, I'm Looking For SomeOne Who Can Do This
Program Demonstration:
Window : 500X300 pixels
A Webpage : 180X180 pixels That shows a website (a download page of the server , ex: www.elitepvpers.com/downloads), like this Everyone Will Be Able To Know/see If There is new patchs/events or not
3Buttons :
1-To Run Start The Game (private server 5165)