Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Guide] Setup Emulator Launcher [All Version]

Newbie Spellweaver
Joined
Jul 29, 2010
Messages
8
Reaction score
0
I redid all the steps and continue with the same problem, I wonder if the sql door of change to 61433 interfere in something in the emulator.
 
Joined
Apr 9, 2012
Messages
2,356
Reaction score
440
no, it has nothing to do with it,
just an advise,
rename your launcher to Log_RF.exe
and clear Netlog folder,
and run your launcher,
when the launcher gone, you can track from the log in netlog folder,
also you can check C:\AppServ\Apache2.2\logs : rfpatch.log, rfpatch_err.log
 
Newbie Spellweaver
Joined
Sep 12, 2011
Messages
7
Reaction score
0
I have just following your tutorial but why iam still getting error?

the logs:
configdata netlogs:
04/15/15 11:25:05: Create Log File
04/15/15 11:25:05: Config data URL :
04/15/15 11:25:05: Success download file : serverConfig.dat
04/15/15 11:25:05: Config data file name : NULL
04/15/15 11:25:05: [Not Use updatecfg.dat]Config data file URL :
04/15/15 11:25:05: Faile download file : serverConfig.dat
rferr_log
[Wed Apr 15 11:20:12 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:20:12 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:20:12 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:20:12 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:20:12 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:20:12 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:20:12 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:20:12 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:20:12 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:20:12 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:20:12 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:25:05 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:25:05 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:25:05 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:25:05 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:25:05 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:25:05 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:25:05 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:25:05 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:25:05 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:25:05 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
[Wed Apr 15 11:25:05 2015] [error] [client 127.0.0.1] File does not exist: C:/AppServ/www/emulator/NULL
What Should I do?
 
Newbie Spellweaver
Joined
Sep 12, 2011
Messages
7
Reaction score
0
because you are not following it correctly -_-"
So where is/are the error then?
I simply following the procedure over 10 times but following the same error.is the problem that the client cannot be edited to ip 127.0.0.1??
 
Newbie Spellweaver
Joined
Jan 14, 2011
Messages
57
Reaction score
7
So where is/are the error then?
I simply following the procedure over 10 times but following the same error.is the problem that the client cannot be edited to ip 127.0.0.1??

Is your setup just for a local test server?
 
Newbie Spellweaver
Joined
Jan 14, 2011
Messages
57
Reaction score
7
I tried to get your "NULL" error but was not able to. I had that problem a few months ago too and solved it with another client if i'm not wrong.
 
Joined
Apr 9, 2012
Messages
2,356
Reaction score
440
IMO your log already tell everything you need,
it's telling you that it didn't find the config file,
i use my own custom launcher tho' o_O
in update.dll i write this :
Code:
[Update]
NewVersion=0
UpdateFileNumber=2
UpdateFile1=Update/ServerConfig.dat
UpdateFile2=Download/PatchInfo.z




ServerNumber=1
Server1=http://127.0.0.1/
and then i put associated files to it's directory :
UpdateFile1=Update/ServerConfig.dat
UpdateFile2=Download/PatchInfo.z

serverconfig.dat contain :
Code:
[LoginServer]
ServerNumber = 1
Server0 = login server IP where LoginServerSD.exe running from (i usually used this config to bypass any annoying autoupdate from PS server)


[PatchServer]
ServerNumber = 1
Server0 = patch ip server where it's contain autoupdate info, i used this as 127.0.0.1 to bypass annoying autoupdate


[Notice]
Server = well, notice IP server, usually the website, i put 127.0.0.1 for me.lol

that is mine, you are not always need to followed it, and i'm not guarantee it would work.hahahaha
 
Newbie Spellweaver
Joined
Jan 14, 2011
Messages
57
Reaction score
7
Well i had to change some files on the client side to avoid that error and not on the server side. But badly i dont remmeber which one -.-
 
Newbie Spellweaver
Joined
Apr 30, 2015
Messages
8
Reaction score
0
Thanks for your tutorial! I could set up the emulator and everything is working fine

But I have one question: looks like we can't access the pages inside www folder - it just returns the error "403 - Forbidden access"
For what likertuban have said here, it looks like it is intentional:

i've learn how the emulator work before,
but with your tutorial, it should prevent people from opening 127.0.0.1
since 127.0.0.1 web browser using port 80,
and in virtualhost, root dir is redirect to C:/AppServ/www/emulator/
which mean everyone who access 127.0.0.1 will be redirected to C:/AppServ/www/emulator/ instead C:/AppServ/www/
and that root dir is view protected :/:
and people can't open open their webpage, except they change the web port?
CMIIW
and i have one more question,
is it necessary to protect C:/AppServ/www/emulator/ dir?
is it dangerous to let people see what is C:/AppServ/www/emulator/ folder contain from web pages? o_O


sticky granted (y)


But I also would like to run some simple GameCP to make it easy to create testing accounts for now. So, my question is: is there any way to allow other people to access webpages inside www folder? And would it be safe to do this?
 
Newbie Spellweaver
Joined
Apr 30, 2015
Messages
8
Reaction score
0
you could use gamecp as long as there's index.php in it..
it's just forbid people for viewing your webroot directory and files

But there's already an index.php inside www folder. Shouldn't it be enough? And even like this I still get the 403 Forbidden error
 
Joined
Apr 9, 2012
Messages
2,356
Reaction score
440
you place it on the wrong place...
if you open 127.0.0.1
because default port is 80, and your virtual host direct the root folder
so it will direct to www\emulator\
so you should put your index.php to : www\emulator\index.php
that is just the basic, you can put the rest of your files/gamecp inside emulator folder
 
Initiate Mage
Joined
Jun 21, 2015
Messages
1
Reaction score
0
When I set mine up all it does is start connecting then disappears. What am I missing, I tried everything the same in the video except the client installer files were different. I'm using the "playRF" instead of "ladies night"
 
Newbie Spellweaver
Joined
Jan 14, 2011
Messages
57
Reaction score
7
1. Rename ur client to "RF_LOG.exe"
2. Clean your log folder
3. Start the launcher
4. Take a look into the logs
 
Newbie Spellweaver
Joined
Jul 23, 2015
Messages
24
Reaction score
0
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 :
Code:
ServerName localhost
- 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
Code:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
- 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.
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/"
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.
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 )

novanakal - [Guide] Setup Emulator Launcher [All Version] - RaGEZONE Forums


Code:
dhelsaktmxj
- 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
[Guide] Make 2 Different Server in 1 Machine (2232 Version) - RaGEZONE - MMO development community

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
- 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. :D


Greeting - novanakal -

--------------------------------
Hello sir
Very good tutorial, well explained.
just a question, the hex editor you use in the tutorial where I could download :w00t::eek:tt1::eek:tt:

greetings and thanks for your tuto
 
Newbie Spellweaver
Joined
Nov 27, 2012
Messages
31
Reaction score
0
i just rented a dedicated server, i use this tut for emulator ,
i can open it in my dedicated server

but when i try to open the launcher at my home pc , it just waiting for server response .. why is it ?
 
Back
Top