[Request] 5165 Launcher for dynamic dns that updates IP from no-ip.com

01/07/2011 11:56 FireDown#1
So the main idea is that the launcher checks the ip from an account at the site no-ip.com and replaces the ip in the server.dat.

This has been released for previous versions but for 5165 the format of the server.dat is completely different. (see attachments for previous version)

I have been trying for many days now but i can't get this thing to work.

<field name="id">101</field>
<field name="ServerName">Conquer</field>
<field name="ServerIP">xx.xxx.xxx.xxx</field> <--- ip needs to be changed
<field name="ServerPort">9958</field>
<field name="FlashName">Conquer</field>
<field name="FlashIcon">Group3/server8.swf</field>
<field name="FlashHint"></field>
<field name="Child">0</field>

Attachment for server.dat and a previous version of the launcher.

Thanks in advance.
01/07/2011 15:43 12tails#2
The spoiler down contains a little of the one that i maked to use...


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....
01/07/2011 19:36 CptSky#3
Quote:
Originally Posted by FireDown View Post
[...]
Haha, my old launcher. I lost the source, but it was very simple.

Dns.GetHostByName for getting the IP and StreamWriter.WriteLine for writing the file :rolleyes: Badly coded, but working.
01/07/2011 20:50 FireDown#4
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.
01/07/2011 22:42 12tails#5
try to use the null loader.... i think it works with 5165 client...
01/08/2011 12:00 FireDown#6
@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
01/08/2011 15:37 DePredaTe#7
may i ask why you want to do this?
01/08/2011 16:22 FireDown#8
@DePredaTe Sure, im trying to find a way for people with a dynamic ip to update the ip without the need of a patcher.
01/08/2011 23:46 Syst3m_W1z4rd#9
A server shouldn't have dynamic ip, else is fail.

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
01/10/2011 15:40 FireDown#10
Thanks all for looking at my problem but it is solved, saw a post here on elitepvpers that i did not find before. [Only registered and activated users can see links. Click Here To Register...]. It Works perfectly. :) Many thanks to the uploader felipeboladao.