- Joined
- Nov 1, 2009
- Messages
- 842
- Reaction score
- 276
So many people got an error for Setup Emulator, bcause...
- Never Understand and never learn how to setup Webserver Config
- Only begging to other members
now, ill explain about emulator for Launcher RF Online
for global setup, we use 3 Port for that
Port 80 for Launcher Update
Port 8080 for update Login Server IP
Port 10007 for update Patchinfo.z for Auto Update
here we Go for Setup Webserver for Emulator.
1. Download Appserv or anything else you know.
( In this case, ill use Appserv 2.5.9 )
2. After Download Install Appserv on your machine.
- Up to you, you want to install in Drive C or D or E or whatever
( here, i install in Drive C )
- untick Mysql Database. no need that..!!!
- ServerName with ip or Localhost ( Be better is localhost )
- port 80
3. After Install
- Open C:AppServApache2.2conf
- Open File httpd.conf with Notepad ( Be better use Notepad++, i use that )
Now we need to setup DocumentRoot, ServerRooot and ServerName
- Find Text ServerName or go to Line 233. and change it with this :
- and Above you will see the DocumentRoot, and leave it. dont edit if you not understand
- Find Listen 80 or go to line 67. Delete that text ( Listen 80 )
- SAVE IT and DONT CLOSE ( continue for Step 4 )
4. Now We Need to make a vhost or Virtual Host. we need 3 Port for vhost launcher emulator
- Find text again in httpd.conf = Find httpd-vhosts.conf
- Delete the #, and will like this
- SAVE AND CLOSE
this is the file config for setup virtualhost
5. Open Folder Extra and open httpd-vhosts.conf with notepad++
- Delete all Text theres
- and now we need to Listening Port and make an Virtualhost Directory
- write like this.
- SAVE IT AND CLOSE
Setup Webserver for Vhost emulator now DONE. and now, we need to create some directory for put the file for make this launcher work.
you can see the virtualhost directory in extra config. it mean
and now you need to go to folder C:/AppServ/www, and make new folder with the name is "emulator"
7. now Go inside Emulator Folder, Create new Document with extention .dll. not .txt
and Rename to update.dll
and open it with notepad++, write this text there.
- SAVE But dont CLOSE...!!!!
and now, i want to explain about this file ( update.dll )
see here
it mean
$main_launcher_file_path = 'Launcher'; <-- Need to create new Folder with Name "Launcher"
$LPServerInfo_file_path = 'Config'; <-- Need to create new Folder with Name "Config"
$PatchInfo_path = 'Update'; <-- Need to create new Folder with Name "Update"
and this
$main_launcher_ver = 10; <-- Need to rename "Launcher" Folder with Name "Launcher10"
$LPServerInfo_ver = 10; <-- Need to rename "Config" Folder with Name "Config10"
$PatchInfo_ver = 10; <-- Need to rename "Update" Folder with Name "Update10"
for 127.0.0.1 Replace with your IP, ( local or Public )
now we have done for this one. Next Step
8. Make Sure your have 3 Folder in "C:/AppServ/www/emulator/"
a. Config10
b. Update10
c. Launcher10
and then, First
- Open Folder Config10
- Make New File with Name "LPServerInfo.dat" ( use .dat extention )
- Open LPServerInfo.dat with notepad++, and write like this
replace 127.0.0.1 with your IP
- SAVE and CLOSE
- Open Folder Update10
- Download This Text
Download Here
- Zip text file with Password ( Remember, ZIP not Rar or 7Zip )
- Rename the Extention with .z not .zip or .rar or .7z
- now Open Folder Launcher10
Download This Launcher from Here, and Use this STRS for edit the Launcher IP
http://forum.ragezone.com/f480/guide-2-server-1-machine-948909-post7737880/#post7737880
If you have done with the launcher. Make a Copy Launcher with name RF with .lc Extention. Put RF.lc in Launcher10 Folder
9. now is Last Step.
- Make new File with .bat Extention
Example Run.bat, and Open with Notepad++ with this text
- SAVE it and Close
- Make Sure your folder Launcher10 with 2 files there
a. RF.lc
b. Run.bat
Double Click "Run.bat". and will shown the CMD window,.
and will automatic creating new File with name newRF.cab
and now RUN your appserv with Apache Monitor.exe from Start Menu -> AppServ -> Control Server By Services.
see the right bottom appserv is appeared. Right Click And Start.
Now, Run Your Launcher from your Client installer...
This for Video TUtorial
TUTORIAL is DONE
I think mod need to sticky this post.
Greeting - novanakal -
- Never Understand and never learn how to setup Webserver Config
- Only begging to other members
now, ill explain about emulator for Launcher RF Online
for global setup, we use 3 Port for that
Port 80 for Launcher Update
Port 8080 for update Login Server IP
Port 10007 for update Patchinfo.z for Auto Update
here we Go for Setup Webserver for Emulator.
1. Download Appserv or anything else you know.
( In this case, ill use Appserv 2.5.9 )
You must be registered to see links
2. After Download Install Appserv on your machine.
- Up to you, you want to install in Drive C or D or E or whatever
( here, i install in Drive C )
- untick Mysql Database. no need that..!!!
- ServerName with ip or Localhost ( Be better is localhost )
- port 80
3. After Install
- Open C:AppServApache2.2conf
- Open File httpd.conf with Notepad ( Be better use Notepad++, i use that )
Now we need to setup DocumentRoot, ServerRooot and ServerName
- Find Text ServerName or go to Line 233. and change it with this :
Code:
ServerName localhost
- Find Listen 80 or go to line 67. Delete that text ( Listen 80 )
- SAVE IT and DONT CLOSE ( continue for Step 4 )
4. Now We Need to make a vhost or Virtual Host. we need 3 Port for vhost launcher emulator
- Find text again in httpd.conf = Find httpd-vhosts.conf
- Delete the #, and will like this
Code:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
this is the file config for setup virtualhost
5. Open Folder Extra and open httpd-vhosts.conf with notepad++
- Delete all Text theres
- and now we need to Listening Port and make an Virtualhost Directory
- write like this.
Code:
Listen 80
Listen 8080
Listen 10007
NameVirtualHost *:80
NameVirtualHost *:8080
NameVirtualHost *:10007
####################################################################################
<VirtualHost *:80 *:8080 *:10007>
ServerAdmin hidden
ServerName hidden
DocumentRoot "C:/AppServ/www/emulator/"
CustomLog logs/rfpatch.log combined
ErrorLog logs/rfpatch_err.log
<Directory "C:/AppServ/www/emulator/">
Options -Indexes MultiViews FollowSymLinks IncludesNoExec
AllowOverride None
AddOutputFilter Includes html
Order allow,deny
Allow from all
AddType application/zip .tmp
AddType application/zip .cab
AddType application/zip .z
<Files update.dll>
AddType application/x-httpd-php .dll
</Files>
</Directory>
</VirtualHost>
####################################################################################
- SAVE IT AND CLOSE
Setup Webserver for Vhost emulator now DONE. and now, we need to create some directory for put the file for make this launcher work.
you can see the virtualhost directory in extra config. it mean
Code:
DocumentRoot "C:/AppServ/www/emulator/"
7. now Go inside Emulator Folder, Create new Document with extention .dll. not .txt
and Rename to update.dll
and open it with notepad++, write this text there.
Code:
<pre>
<?php
/////////////////////////////////////////////////////////////////////////////////////
//
// Update.dll For RF Online Emulator
//
// novanakal@RageZone
//
/////////////////////////////////////////////////////////////////////////////////////
$PatchInfo_ver = 10;
$LPServerInfo_ver = 10;
$main_launcher_ver = 10;
$main_launcher_file_path = 'Launcher';
$LPServerInfo_file_path = 'Config';
$PatchInfo_path = 'Update';
$use_archive_three = true;
$main_launcher_host = '127.0.0.1';
$LPServerInfo_host[0] = '127.0.0.1';
$PatchInfo_host[0] = '127.0.0.1';
function terminate_script() {
header('Connection: close');
header('Content-Length: 0');
exit;
}
if (!isset($_SERVER['HTTP_USER_AGENT'])) {
// terminate_script();
} elseif (!$_SERVER['HTTP_USER_AGENT']=='HTTP') {
// terminate_script();
} else {
// terminate_script();
}
if (!isset($_SERVER['QUERY_STRING'])) {
// terminate_script();
}
$query_ver=$_SERVER['QUERY_STRING'];
if (!is_numeric($_SERVER['QUERY_STRING'])) {
// terminate_script();
}
$user_launcher_ver = intval($_SERVER['QUERY_STRING']);
if ($user_launcher_ver < $main_launcher_ver && $user_launcher_ver > 0) {
$streamtxt = "[Update]\n";
$streamtxt .= "NewVersion=$main_launcher_ver\n";
$streamtxt .= "UpdateFileNumber=1\n";
if ($use_archive_three) {
$streamtxt .= "UpdateFile1=$main_launcher_file_path$main_launcher_ver/newRF.cab\n";
} else {
$streamtxt .= "UpdateFile1=$main_launcher_file_path/newRF.cab\n";
}
$streamtxt .= "ServerNumber=1\n";
$streamtxt .= "Server1=http://$main_launcher_host/\n";
$streamtxt .= "[Launcher]\n";
$streamtxt .= "LauncherVersion=$main_launcher_ver";
echo $streamtxt;
exit;
} elseif ($user_launcher_ver >= $main_launcher_ver) {
$streamtxt = "[Update]\n";
$streamtxt .= "UpdateFileNumber=0";
echo $streamtxt;
exit;
} elseif ($user_launcher_ver == 0) {
if ($_SERVER['SERVER_PORT']==8080) {
$streamtxt = "[Update]\n";
$streamtxt .= "NewVersion=$LPServerInfo_ver\n";
$streamtxt .= "UpdateFileNumber=1\n";
if ($use_archive_three) {
$streamtxt .= "UpdateFile1=$LPServerInfo_file_path$LPServerInfo_ver/LPServerInfo.dat\n";
} else {
$streamtxt .= "UpdateFile1=$LPServerInfo_file_path/LPServerInfo.dat\n";
}
$streamtxt .= "ServerNumber=".sizeof($LPServerInfo_host);
for ($i=0; $i<sizeof($LPServerInfo_host); $i++) {
$streamtxt .= "\nServer".($i+1)."=http://".$LPServerInfo_host[$i]."/";
}
echo $streamtxt;
exit;
} elseif ($_SERVER['SERVER_PORT']==10007) {
$streamtxt = "[Update]\n";
$streamtxt .= "NewVersion=$PatchInfo_ver\n";
$streamtxt .= "UpdateFileNumber=1\n";
if ($use_archive_three) {
$streamtxt .= "UpdateFile1=$PatchInfo_path$PatchInfo_ver/PatchInfo.z\n";
} else {
$streamtxt .= "UpdateFile1=$PatchInfo_path/PatchInfo.z\n";
}
$streamtxt .= "ServerNumber=".sizeof($PatchInfo_host);
for ($i=0; $i<sizeof($LPServerInfo_host); $i++) {
$streamtxt .= "\nServer".($i+1)."=http://".$PatchInfo_host[$i]."/";
}
echo $streamtxt;
exit;
} else {
terminate_script();
}
}
?>
</pre>
- SAVE But dont CLOSE...!!!!
and now, i want to explain about this file ( update.dll )
see here
Code:
$PatchInfo_ver = 10;
$LPServerInfo_ver = 10;
$main_launcher_ver = 10;
$main_launcher_file_path = 'Launcher';
$LPServerInfo_file_path = 'Config';
$PatchInfo_path = 'Update';
$use_archive_three = true;
$main_launcher_host = '127.0.0.1';
$LPServerInfo_host[0] = '127.0.0.1';
$PatchInfo_host[0] = '127.0.0.1';
it mean
$main_launcher_file_path = 'Launcher'; <-- Need to create new Folder with Name "Launcher"
$LPServerInfo_file_path = 'Config'; <-- Need to create new Folder with Name "Config"
$PatchInfo_path = 'Update'; <-- Need to create new Folder with Name "Update"
and this
$main_launcher_ver = 10; <-- Need to rename "Launcher" Folder with Name "Launcher10"
$LPServerInfo_ver = 10; <-- Need to rename "Config" Folder with Name "Config10"
$PatchInfo_ver = 10; <-- Need to rename "Update" Folder with Name "Update10"
for 127.0.0.1 Replace with your IP, ( local or Public )
now we have done for this one. Next Step
8. Make Sure your have 3 Folder in "C:/AppServ/www/emulator/"
a. Config10
b. Update10
c. Launcher10
and then, First
- Open Folder Config10
- Make New File with Name "LPServerInfo.dat" ( use .dat extention )
- Open LPServerInfo.dat with notepad++, and write like this
replace 127.0.0.1 with your IP
Code:
[LoginServer]
ServerNumber = 1
Server0 = 127.0.0.1
[PatchServer]
ServerNumber = 1
Server0 = 127.0.0.1
[Notice]
Server = 127.0.0.1
- SAVE and CLOSE
- Open Folder Update10
- Download This Text
Download Here
- Zip text file with Password ( Remember, ZIP not Rar or 7Zip )
Code:
dhelsaktmxj
- now Open Folder Launcher10
Download This Launcher from Here, and Use this STRS for edit the Launcher IP
http://forum.ragezone.com/f480/guide-2-server-1-machine-948909-post7737880/#post7737880
If you have done with the launcher. Make a Copy Launcher with name RF with .lc Extention. Put RF.lc in Launcher10 Folder
9. now is Last Step.
- Make new File with .bat Extention
Example Run.bat, and Open with Notepad++ with this text
Code:
makecab.exe RF.lc newRF.cab
- Make Sure your folder Launcher10 with 2 files there
a. RF.lc
b. Run.bat
Double Click "Run.bat". and will shown the CMD window,.
and will automatic creating new File with name newRF.cab
and now RUN your appserv with Apache Monitor.exe from Start Menu -> AppServ -> Control Server By Services.
see the right bottom appserv is appeared. Right Click And Start.
Now, Run Your Launcher from your Client installer...
This for Video TUtorial
TUTORIAL is DONE
I think mod need to sticky this post.
Greeting - novanakal -
Attachments
You must be registered for see attachments list
Last edited: