PDA

View Full Version : [Share] L2 Server Installer v0.13 (draft updated)


Digital
20.04.2006, 02:23
http://img367.imageshack.us/img367/1954/image000082gc.th.jpg (http://img367.imageshack.us/my.php?image=image000082gc.jpg)

15mins work :p
mostly just copy n pasting from projectc2 guide

will improve on it and do more things internally when i have free time
if anything is wrong/needs to be added just leave a reply...
(which i probably left out alot... didnt have time to do a proper job :p gf)

(Edit: written in C# using VS2005, so .net 2.0 is required to run this)

Carol
20.04.2006, 04:02
Niceeeeeeeee ;)

Congratulations !

kok
20.04.2006, 04:35
Digital , when will operate time bomb in your Extra 2 ?
3) Under \System32\Drivers\Etc\
Open hosts file and add the following line into it
2xx.xx.xx.xx auth3.tfqj.com
2 years ago the similar result there was on server MuOnline

ps: /excuse me for bad english/
ps2: nice guide for noobs =)

shturm
20.04.2006, 16:01
nice

wton
20.04.2006, 17:57
^^

Megatronpt
20.04.2006, 18:26
Nice.. Will check at home! ;)

Digital
21.04.2006, 03:34
updated version... v0.11
suppose to show LAN IPs and WAN IPs on the status bar
(wan ip is buggy... if anyone have good c# code for this drop me them thanks)
button to open boot.ini to edit...

[Edit]
next up.. probably work on mssql auto detection, auto insert of DSN
if possible someone do give me a hand n make a sql script to create all databases ;)
i know u guys could do it, dun disappoint me :P
then i'll write a procedure to run the script to create all the database and data inside, it'll help us all isnt it?

RipperX
21.04.2006, 03:46
C# WAN IP (Fix) =P


string ipAddress = null;

System.Net.WebRequest webRequest = System.Net.HttpWebRequest.Create("http://ripper.net.ar/ip.php");
System.Net.HttpWebResponse webResponse = (System.Net.HttpWebResponse)webRequest.GetResponse ();

System.IO.StreamReader streamReader = new System.IO.StreamReader(webResponse.GetResponseStre am());
string response = streamReader.ReadToEnd();
streamReader.Close();
ipAddress=response;


So ipAddress have ur wan IP :D

bb, good luck

Pd: U can use the url ripper.net.ar/ip.php it's 24hs hosting, so no problem :)

[edit]

Here I created a querydb to create each db and run the script of each one.
Test it =)

Digital
21.04.2006, 04:45
i've tried that way of getting the wan ip but somehow it encounter error on webRequest.GetResponse();

System.Net.WebException was unhandled
Message="The underlying connection was closed: An unexpected error occurred on a receive."
Source="System"
StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at L2ServerInstaller.Form1.GetExternalIP()

i'll look into the database query code after lunch ;) bbl

RipperX
21.04.2006, 05:07
Maybe This ?


using System.Net;
using System.IO;

WebRequest webRequest = HttpWebRequest.Create("http://ripper.net.ar/ip.php");
webRequest.Timeout = 120000;
HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
StreamReader streamReader = new StreamReader(webResponse.GetResponseStream());
IPAddress = streamReader.ReadToEnd();
streamReader.Close();
MessageBox.Show(IPAddress);

I modified using namespaces and added Timeout property at 2min.

Try it.

rar
21.04.2006, 05:18
nice tool :)

Digital
21.04.2006, 06:03
well.. it doesnt work :S
same problem persist...

this is my code...

// Send the request and hopefully we'll get response.
// Try to parse out the IP address from the returned HTML
try
{
//http://dynupdate.no-ip.com/ip.php
//http://www.whatismyip.com
//http://www.getmyipaddress.com
//http://checkip.dyndns.org
//http://ripper.net.ar/ip.php
WebRequest myRequest = WebRequest.Create("http://ripper.net.ar/ip.php");
myRequest.Timeout = 320000;

// Send request, get response, and parse out the IP address on the page.
//HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
using (WebResponse res = myRequest.GetResponse())
{
using (Stream s = res.GetResponseStream())
using (StreamReader sr = new StreamReader(s, Encoding.UTF8))
{
string html = sr.ReadToEnd();
Regex regex = new Regex(@"\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b");
string ipString = regex.Match(html).Value;

return ipString;
}
}
}
catch (Exception ex)
{
string a = ex.Message;
return "<Unable to resolve>";
}

RipperX
21.04.2006, 06:12
well.. it doesnt work :S
same problem persist...

this is my code...

// Send the request and hopefully we'll get response.
// Try to parse out the IP address from the returned HTML
try
{
//http://dynupdate.no-ip.com/ip.php
//http://www.whatismyip.com
//http://www.getmyipaddress.com
//http://checkip.dyndns.org
//http://ripper.net.ar/ip.php
WebRequest myRequest = WebRequest.Create("http://ripper.net.ar/ip.php");
myRequest.Timeout = 320000;

// Send request, get response, and parse out the IP address on the page.
//HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
using (WebResponse res = myRequest.GetResponse())
{
using (Stream s = res.GetResponseStream())
using (StreamReader sr = new StreamReader(s, Encoding.UTF8))
{
string html = sr.ReadToEnd();
Regex regex = new Regex(@"\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b");
string ipString = regex.Match(html).Value;

return ipString;
}
}
}
catch (Exception ex)
{
string a = ex.Message;
return "<Unable to resolve>";
}

The code is totally fine, that can't be wrong. Works fine 4 me.
Add me to ur messenger and we will see how to fix this sh*t.

bb

Digital
23.04.2006, 16:29
oh well... didnt have much time to finish up the dsn coding... so those wont work for now... (same for datagridview controls)
hopefully the create databases would work... :P

will work on it more when i'm free...
so in the meantime it'll look like this... have fun :P

GriffiN
26.04.2006, 03:22
can't run the program... either version dies on me...
i have .net framework 2.0 installed... what can it be?

Digital
26.04.2006, 12:14
simple reason.. it's just a draft..
i'm still coding it.. lol... so far havent got time to move on with it

GriffiN
28.04.2006, 03:23
take as long as you want... though not too long xD
hehehehe

GriffiN
28.04.2006, 03:23
take as long as you want... though not too long xD
hehehehe

Digital
29.04.2006, 11:57
updated v0.13
should work this time round... (hope)
if possible help me check out the sql script and odbc.reg making sure they all work out... (if possible fix them for me.. seriously no time)

[Edit] attachment on first post.
-out

GriffiN
01.05.2006, 09:31
so.... how do i try it to c all the stuff mentioned, cause even though its still beta-alpha-beta-beta-version and stuff... i c that ppl can run it and check stuff... but i still cant... do i need something special? T_T

Digital
01.05.2006, 15:05
this is indeed a odd problem... hmmm
basically all u need is .net 2.0 installed
and extract the .rar contents into your base l2 folder and run the l2serverinstaller.exe

nothing else is required :o
do give it another try, if u cant report the error/screenshot of what happened

GriffiN
03.05.2006, 17:20
ok, i put it in the l2server folder... [see image]
http://usera.imagecave.com/Gr1ff1N/icth_installationdir.jpg.jpg (http://usera.imagecave.com/Gr1ff1N/installationdir.jpg)

and i get this...
http://usera.imagecave.com/Gr1ff1N/icth_error.jpg.jpg (http://usera.imagecave.com/Gr1ff1N/error.jpg)

i cant copy the whole error report

GriffiN
03.05.2006, 17:20
ok, i put it in the l2server folder... [see image]
http://usera.imagecave.com/Gr1ff1N/icth_installationdir.jpg.jpg (http://usera.imagecave.com/Gr1ff1N/installationdir.jpg)

and i get this...
http://usera.imagecave.com/Gr1ff1N/icth_error.jpg.jpg (http://usera.imagecave.com/Gr1ff1N/error.jpg)

i cant copy the whole error report

Digital
04.05.2006, 04:07
hmm.. really weird.. it works fine for me :S
(same way it is for me)
as well for a couple of other ppl...

and from the error log.. there isnt anything much i could use to pinpoint where the error was occurring from...

it died on u when u tried to run it right?
u didnt even saw any of the main screen?

GriffiN
08.05.2006, 21:20
yep... did not show anything... it died before it even showed anything

could be because i did not have mssql installed... cause cant find an installer for windows xp x64... gonna install windows 2003 server in vmware... so as to try before i format xD

MoNoXiDe
14.05.2006, 05:54
i got the same error as u also a friend of mine got the error.

darkarax
03.06.2006, 16:38
a download link plz ?

Met45
03.06.2006, 17:02
a download link plz ?
atm we are improving the installer, but here u got the latest installer:
http://rapidshare.de/files/22115101/L2ServerInstallerV0.13.rar.html