- Feb 28, 2005
- 886
- 32
- 135
found my old HD , found pretty much all my old projects might aswell release them
download : www.oldskoolgaming.net/Hany/ServerLauncher.rar
couple of notes though
some ideas i had to do on this is to have an announcement bit which can be either retrieves info from vbulletin announcement forum or have an mysql/sql database set up for it, and a process list dump to check for cheats, could work on these later on if u need them
You'll need Visual studio 10
.Net Framework 4
I really don't have much time to explain every bit of code, just reply if u found ne problems ill try and assist
just open the project in vs10 and see what every button does and replace what ever u want
if i were u id remove every bit of text reader function and replace it with proper ini's functions or even use xml
download : www.oldskoolgaming.net/Hany/ServerLauncher.rar
couple of notes though
- This works with launcher.ini , u can always get rid of this **** and make it work with xml its better infact i didn't even use the ini library hah
- This was designed for three heroes server u can adjust the Highrate.exe bit to whatever ur exe is called
- I had intentions to upgrade it now that my coding is pretty much better than when i started doing this but i have no time, feel free to upgrade/manipulate whatever u want just leave the oldskoolgaming copyright please!.
- Remove GameID buttons/functions from the codes ,replace mir2.ini functions with the mir2.ini u have as our mir2.ini is probably different than most files i dunno.
some ideas i had to do on this is to have an announcement bit which can be either retrieves info from vbulletin announcement forum or have an mysql/sql database set up for it, and a process list dump to check for cheats, could work on these later on if u need them
You'll need Visual studio 10
.Net Framework 4
Code:
The text that you have entered is too long (29330 characters). Please shorten it to 20000 characters long lol
Well ill put some functions that u need to change for ur server to work on here
#region GameServer
string hostname = "YOUR SERVER IP HERE"; // <<<<<<<<<<<<
int portno = 7200;
IPAddress ipa = (IPAddress)Dns.GetHostAddresses(hostname)[0];
try
// Put your autopatcher dl link here
MessageBox.Show("AutoPatcher.exe Doesn't Exist In the current directory \nYou'll be redirected to AutoPatcher Download Link");
Process.Start("www.4heroes.net/3HPatcher.rar");
private void btnHomePage_Click(object sender, EventArgs e)
{
Process.Start("http://www.fourheroes.net"); //<<<<<<<<<<<<<
}
public void Mir2reset()
{
// PUT YOUR MIR2.INI IN HERE!!!
string dir = Directory.GetCurrentDirectory() + "\\mir2.ini";
string[] lines = {"[Setup]"
,"ServerAddr=0"
,"ServerPort=7000"
,"DisableFlip=1"
,"FullScreen=1"
,"FontName=ËÎÌå"
,"ForceAddr=0"
,"SelectServerAddr=0"
,"SelectServerPort=7100"
,"GameServerAddr=0"
,"GameServerPort=7200"
,"[Auto]"
,"AutoLogin=0"
,"AutoForumID="
,"AutoGameID="
,"AutoPassword="
,"AutoServer=1"
,"AutoServerName=FourHeros"
,"[Positions]"
,"Left=0"
,"Top=0"
,"[Option]"
,"SkillKeyMode=0"
,"SkillBarNum=1"
,"SkillBarView=0"
,"ViewEffect=1"
,"Sound=0"
,"DropItemView=1"
,"ViewAllName=0"
,"ViewHPType=2"};
System.IO.File.WriteAllLines(dir, lines);
}
// Listen the above function is ur mir2.ini u need to replace every bit of code with this set up if
//u have a different ini since i didn't use the ini library it could get abit repetitive and boring replacing this ****
I really don't have much time to explain every bit of code, just reply if u found ne problems ill try and assist
just open the project in vs10 and see what every button does and replace what ever u want
if i were u id remove every bit of text reader function and replace it with proper ini's functions or even use xml