[Guide] Play with C4 client on a C3 modded server

Page 1 of 2 12 LastLast
Results 1 to 25 of 42
  1. #1
    Account Upgraded | Title Enabled! neutrogenik is offline
    MemberRank
    Oct 2005 Join Date
    FranceLocation
    1,091Posts

    [Guide] Play with C4 client on a C3 modded server

    La version française de ce topic est disponible ici - The french version of this topic is avariable here :
    http://forum.ragezone.com/lineage2-e...dd-113312.html


    The spanish version can be found here (thanks jpizarro) :

    http://forum.ragezone.com/lineage2-e...do-114588.html


    This guide will help you to set up on Windows (9x,NT,2k,XP) a l2j-based C3 server and tweak a Lineage2 Chronicle 4 client so as to play in it :)


    L2j (http://l2j.mookins.com/ ) is a Lineage2 server emulator that DOES NOT officially support C4 so all the bugs that you will find can't be solved at the moment, please don't ask about it and be patient it'll come in time =)


    Take a deep breath and here you go :


    I - Client Download


    Since February 8, 2006 you can download the official C4 client here :

    ftp://l2clientdownload.lineage2.com/..._Installer.zip (2.48 GB)

    I greatly advice you to use a multi-session downloading software like Reget (http://www.reget.com/) if you want to download faster.

    Once you downloaded it you'll obtain a file called "L2_C4_Installer.zip"

    Extract it and use "Setup.exe" to install the game. I advice you to install it in another folder that "/Program Files/Lineage II" so as to not run another version by mistake later.
    You can choose "/Program Files/L2C4/" for exemple.

    LineageII.exe is an auto-updater of the game that you MUSN'T RUN if you want to be able to connect to the l2j server ! Delete this file so you will not run it by mistake later.



    Now you have to delete the "/system/" folder of your game and replace it by this one so as to allow l2encdec to work later (you'll understand later what is l2encdec ). Links :

    mirror 1 : rapidshare (click on "Free" to download)

    mirror 2 : yousendit

    mirror 3 : free

    Use Winrar for extracting if you have any problems.

    Good job, 1st part done ;)


    II - Setting up the server


    A ) Downloading files

    L2J is written in JAVA language which is not included in Windows so if you don't already have it you must install the Java Runtime Environment. Link's below :

    http://www.java.com/en/download/manual.jsp



    Make sure to select the "Windows offline installation" (watch the screenshot above). After you downloaded the file run it and select "Typical installation".

    Go back on the java website and click on "Verify installation", then clic again on "Verify installation" buttom in the next page. You should get this message if everything is fine :



    If you do not you mistaked somewhere, try reinstalling it.


    Now you have to download the server file :

    Current version : Custom L2J-VN Rev. 100 Server Pack

    mirror 1 : rapidshare

    mirror 2 : free

    mirror 3 : 11Mbit

    (21 MB)

    Download the file and extract the files in a basic folder without spaces like "C:/server/"


    Here is what you should have :




    B) Edit the login & gameserver config

    gameserver config

    Now open the file "server.properties" in the "C:\server\gameserver\config" folder.

    The only things that you have to change are :

    ExternalHostname=
    Put your Internet IP in there (http://www.whatismyip.com if you don't know what is your IP)

    exemple :

    ExternalHostname=242.21.6.55
    And then change the line
    MaxProtocolRevision = ...
    by
    MaxProtocolRevision = 700
    If some of your players are also connecting throught LAN (Local Arena Network, means your home network), modify the line

    InternalHostname=......
    by adding your LAN IP adress. You can find your LAN IP adress by writing "ipconfig/all" in the windows command prompt :



    Sometimes you can also see your internet IP in there so just use the LAN IP adress this time.
    In my exemple it's giving this :

    InternalHostname=192.168.0.100
    But if none of your players are connecting throught LAN just let the line like it is.

    And for finishing, if you are running the login server on another computer that the gameserver, add the IP of the login server on the following line :

    LoginHost=127.0.0.1
    but don't touch it if you run the login and gameserver on the same computer.

    Save the file and close it.




    login server config

    If you are running the login server and the game server on the same computer, just jump to the next paragraph and don't read this one

    If you are not, open the file "loginserver.properties" in the "C:\server\login\config" folder.

    You'll have to edit these lines :

    ExternalHostname=.........
    InternalHostname=.........
    from the same way that you did with the gameserver.


    C) Run the Database and load the server info within


    Execute the file "start.exe" in C:/server/" folder for running the Apache server. If your web browser opens after running start.exe, just close it.


    Then open the file "database_installer.bat" in the folder "C:\server\l2j\tools" with a text editor like Windows Notepad and change the line

    set mysqlBinPath=................
    by
    set mysqlBinPath=C:\server\diskw\usr\local\mysql\bin
    if it's not already done.

    Save the file, run it and a script will load. It'll be asking 3 questions :

    LOGINSERVER DB install type
    write "f" and press return

    WARNING : a full install will destroy ............
    write "f" and press return

    WARNING : installing data_fix bla bla bla ...
    write "y" and press return.

    The database is now ready to go ;)


    D) Run the server

    login server

    Run the file "startLoginServer.bat" in the "C:\server\login" folder. Let the server loads and you should get something like this (depending of the IP that you used in the config file) :



    game server

    Run the file "startServer.bat" in the "C:\server\gameserver" folder. Let the server loads (it can take severals minutes) and you should get something like this :



    As soon as your game server is online, the login server should detect it :



    If you reached this point then the server side is ready too :)



    III - Connect to the server using the C4 client


    Last but not least you have to enter your server IP in the C4 client.

    The server IP adress is logged in the "l2.ini" file of the client in the /system/ folder but this file is encrypted.

    So you have to decrypt it using the l2encdec software that you can download here :

    mirror 1 : Dstuff

    Open the archive with Winrar and extract the files in a temporary folder, for exemple "C:\tmp\" and then copy the file l2.ini from your /system/ folder in there. Looks like this :




    Then open the windows command prompt (start menu > programs > accessories > command).
    Browse to the tmp folder using the command "cd c:\tmp"



    And now use the command "l2encdec -s l2.ini" to decrypt the file "l2.ini"



    Then a new file named "dec-l2.ini" is created in the "C:/tmp/" folder. This file is the decrypted version of "l2.ini"

    Open it with a text editor (Notepad is still good ^^). Change the following lines :


    L2TestServer=true
    by
    L2TestServer=false
    if it's not already done,

    and

    ServerAddr=.........
    by adding either the ExternalHostname IP adress if you are giving the file to players that are connecting throught the internet

    either InternalHostname IP adress if you are giving the file to players that are connecting thought LAN

    Or by putting 127.0.0.1 (self-reflective IP adress, your IP adress) if you are using this file to connect to the server that you are running on the same computer that the one your are playing with.

    So in my exemple it could be :

    ServerAddr=242.21.6.55
    for Internet players

    ServerAddr=192.168.0.100
    for LAN players

    ServerAddr=127.0.0.1
    for playing on the same computer.

    Save and close the file.

    You can create 3 different versions of l2.ini that you'll send to the above players regarding from where they are playing.

    Now you have to re-encrypt the file. From the command prompt use the command "l2encdec -h 413 dec-l2.ini" :



    You'll obtain an encrypted file called "enc-dec-l2.ini"

    Move this file to the client /system/ folder, delete the old l2.ini and rename "enc-dec-l2.ini" to "l2.ini"


    If you followed everything well, you can now run the game by running the file L2.exe in the /system/ folder ! :D

    (note that the very first time you launch it you must wait for gameguard to update it's file)


    IV - Have fun !


    Notice : running the server on the same computer which is running the client will make the server lag when killing mobs, picking items up and some other actions.


    Still not implemented yet :

    Heroes / Nobless system
    Wedding system
    Fishing
    Some C4 mobs


    Known bugs : //to be updated

    Can't use the Werehouse
    Can't use arrows to move
    Client sometimes crash


    See the second post below for more advanced settings ;)


    Credits


    If you enjoy playing on your own server and test cool stuff think about rewarding the L2J Dev's Team for the hundred hours of work they did by making a donation here :





    Special thanks to :


    Kadar - L2J Project admin

    GreenHope - RageZone moderator and server package creator

    DaDummy - Bla server control software creator -> check it here

    Dstuff from gamehaqs.com forum - Main programmer of l2encdec software

    DarXyde - Server pack supplier and game modder

    Cjoey19 - For providing a large support in RageZone forums


    ... and to all people that contribute to the L2 EMU scene ;-)
    Last edited by neutrogenik; 28-02-06 at 09:52 PM.


  2. #2
    Account Upgraded | Title Enabled! neutrogenik is offline
    MemberRank
    Oct 2005 Join Date
    FranceLocation
    1,091Posts

    Play with C4 client on a C3 modded server

    Advanced Configuration

    Gameserver


    You can tweak your gameserver config by editing all the "*.properties" files located in "/server/l2j/gameserver/config". I won't give details for every file because everything is explained in, you just have to open them with a text editor :)

    Here is the list of what you can change :

    Code:
    access.f
    altsettings.properties
    command-privileges.properties
    custom.properties
    GMAccess.properties
    other.properties
    pvp.properties
    server.properties
    siege.properties
    signs.properties
    spoil.properties

    Database


    The database is like the "server memory", where all the players, items & NPC informations are stored. It's using the XML files of the server to fill the specs. value of each NPC / item. Here is a small schematic of how is it working :





    You can access to it on the computer where the server is installed by opening the adress "http://localhost/a/".


    However, the database access is restricted to the IP of the server so you can't access it from another computer. If you want to do that, you must create an admin account with your computer's IP :


    - Connect to the database in local mode like described above

    - Click on "Privileges"

    - Click on "Add a new User"


    You should see something like this :





    Enter a username, a password, the IP of your computer in the "Host" area and click on "Check All" .

    For accessing throught LAN, enter the LAN IP of your computer, for accesssing throught internet enter the internet IP of your computer.

    If you have a dynamic IP, you can select "Any Host" but then everyone can connect to your database, and even if they can't access it it's not very secure :D


    When you filled all the values like discribed above, press "GO" on the right.


    Once it's done, open the file "config.inc.php" located in "server/diskw/home/admin/www/" and change the line

    $cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
    by

    $cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (config, http or cookie based)?
    Save & close.


    Then open the file ".htaccess" located in "server/diskw/home/admin/www" and add the line :

    Allow from YOUR_IP_ADRESS
    where YOUR_IP_ADRESS is the same IP that you used to create an account in phpmyadmin before.

    Save & close.


    You can now access to the database on your computer by opening "http://database_server_ip_adress/a/" in your web browser and writing your account informations down.


    Accessing the database make you able to change players inventory, name, stats, access_lvl ; NPC, weapons, armors stats but don't forget to change also this in the XML files.


    BACKUP YOUR DATABASE OFTEN SO IF SOMETHING GOES WRONG YOU WON'T LOOSE EVERYTHING !


    You can backup your database by clicking on "Export" on the main page.



    In-game Admin system


    The in-game admin system is based on an access lvl given to every character in the game. A player with access lvl "100" can use all admins commands that requires "100" and less access lvl.


    You can set the needed acces lvl for each admin command by editing the "GMAccess.properties" and "command-privileges.properties" files located in "/server/l2j/gameserver/config".


    For exemple, let's say there are 3 admin commands :

    admin_command_1 = 50
    admin_command_2 = 100
    admin_command_3 = 150

    With this configuration, a player with 150 acces lvl can use admin command 1, 2, 3 whereas a player with 50 access lvl can only use admin command 1.



    For changing the access lvl of a character, you must go in the database, browse the "characters" table and edit the one that you want :





    The most used admin commands can be seen here


    Creating - Importing new items or NPCs


    It's possible to create new weapons, armors, items or spawn new mobs like you can see it in the others topics in RageZone forums but you need to be very friendly with server and client engines (and photoshop for some specific stuff) to do such a thing so if you don't feel confortable with this just wait for the others experienced users to release their work :)

    Otherwise you can give me a PM if you need some advices about it, even if i'm far to be the best for doing this (as you can see my paint skills :D )




    Frequently Asked Questions


    Please read this section carefully before asking something ! If you don't find any answer, please discribe your problem as much as possible (including screenshots).


    Additionals infos can be found in the "readme.txt" file located in "/server/"



    How do i create an account on my server ?
    By default the account creation is automatic when you log in with the client. You can also disable this an force your users to create an account by editing the line

    AutoCreateAccounts=true
    to

    AutoCreateAccounts=false
    in the "loginserver.properties" file located in "server\l2j\login\config".


    The players can create their account by connecting to "http://your_server_ip/" with their web browser.



    I wrote a login / password in my client but when i clic on the "login" buttom nothing happens and this message is displayed on the game server :

    "Client Protocol Revision: ... is too high. Closing connection."
    You forgot to edit the line "MaxProtocolRevision" in the "server.properties" file.



    What is the ID of the super haste buff ?
    The id is 7029.


    I can't download <enter your choice here>, the link is broken !
    PM me and i'll try to fix it as soon as possible ;)


    I got a critical error message when i start the game
    Update your graphic card drivers and install directx 9.0c if you don't have it.


    I sometimes have a java.lang.nullpointerexception message from the server. What is that ?
    It's a small problem from the gameserver code, report it with a screenshot here


    I cant see chat and menu bar in the game !
    Use the "reinitialise interface" buttom in the options.


    I got a "Files are corrupted ! Please Full Check!" message when i run the game
    You mistaked when decrypting or encrypting l2.ini


    I got a "Server terminated abnormaly" message when i run the gameserver
    You didn't run the "start.exe" file before starting the server or you didn't install the database corectly.


    I got a "Client is not using latest Authentication method. (Min is 0)" message when i try to connect to the server in the game
    You can't use a Chronicle 3 client to play if the game is not fully updated


    I can connect to my server but the others players can't, what can i do ?


    Check if you gave the right IP to them and if you did, then you must forward your ports. You can find all explanations here


    I got a Gameguard error message when i run the game


    Delete your "Gameguard" folder located in "/system/" in your game folder, then launch the game and let Gameguard update it's file. If it's not working, try to check if your ports are forwared.


    Nothing happens when i use the //admin command
    You didn't set a correct access level to your character. Look the "In-game Admin system" paragraph above.


    I got a "CRC error" when i extract the archive, what can i do ?

    When i try to open the "L2_C4_installer" archive i get this message : "The archive is either unknown or damaged"
    Use Winrar and a good download manager.


    I got a "Stream error detected during decompression" error when I try to decrypt l2.ini
    You must use the l2.ini from the patched "/system/" folder (the one that you can download in the first post), not the original l2.ini

    How can i backup my database ?
    Config as shown here and click "GO" (don't forget to select all the database in the list) :



    you'll obtain a "l2jdb.sql" file that is the backup of your database.


    What means "PTS" client ?
    "Public Test Server", it's the old C4 client that was used for C4 beta test. You shouldn't download it and take the retail C4 client.


    How can I edit a shop list ?
    Go to your database, open the "merchant_buylists" and change the IDs of the items of the shop you want to edit. You can also create new lines to add new items.



    for exemple if you want to add the item that have for ID number 34 to vendor 1, add a new line and fill with values :

    34, price you want, 1, order in the shop list


    How can i become a hero and have the hero's glow ?
    Select your character name and use the command //sethero when your are admin.


    Wehn i launch "database installer.bat" i have this error : Can't connect to MySQL server on 'localhost'
    You set a wrong path to your database in "database installer.bat", edit it again :)


    When i log in i can see the server list but they have ping 9999, what can I do ?
    Use Lineage 2 Chronicle 4 client instead of Chronicle 3 :)


    Every people that connect to my server is an admin ! How can i stop that ?
    change
    Everybodyhasadminrights=false
    by
    Everybodyhasadminrights=true
    in the file "server.properties"


    How can I change the server name in the list ?
    Read the "readme.txt" file ;)



    When i launch "start.exe" i have a "diskw is busy" error, what can I do ?
    Open the windows command prompt, browse to your server directory (cd server) and use this command : "start.bat <another disk letter than w>"

    exemple :
    start.exe n
    for starting the Database on n: drive.


    I have this error when i use l2encdec : "I/O file error occured"
    You mistaked with the name of the input file.


    How can i change the buff time duration ?"
    Check here : http://forum.ragezone.com/lineage2-e...xed-96905.html


    I'm having problems with rev ***, what can i do ?
    You will only receive help for the avariable rev of this topic, if you need help for another rev post in the main topic where you get it.


    What is the ID of **** ?
    Look here : http://forum.ragezone.com/lineage2-e...es-114675.html
    Last edited by neutrogenik; 03-03-06 at 01:52 PM.

  3. #3
    Account Upgraded | Title Enabled! neutrogenik is offline
    MemberRank
    Oct 2005 Join Date
    FranceLocation
    1,091Posts
    Update done, hope you like it :D

    Post reserved for others updates.

    Latest informations :

    02.08.06 - 5 PM - fixed wrong "system" folder links of mirror 2 & 3 (thanks TheBringer)

    02.09.06 - 10 AM - added "Stream error detected during decompression" FAQ

    02.09.06 - 11 AM - added custom install pack for DarXyde and Jpizarro work here

    02.09.06 - 3 PM - link for l2encdec updated

    02.09.06 - 6 PM - added french translated topic (urgh)

    02.10.06 - 11 AM - added database backup FAQ

    02.11.06 - 12 AM - added "PTS" FAQ.

    ---------------------- Updated l2encdec link.

    ---------------------- Updated server pack link

    ---------------------- Updated system folder link

    03.02.06 - 1 PM - Updated FAQ & cleared topic from old answers.
    Last edited by neutrogenik; 03-03-06 at 01:53 PM.

  4. #4
    TitansTech / SCFMT bet0x is offline
    MemberRank
    Mar 2004 Join Date
    /dev/nullLocation
    840Posts
    Good Tutorial, i will upload some Screenshots, new city's need NPCS, and this new client use mre ram :S

  5. #5
    Apprentice sergey64 is offline
    MemberRank
    May 2005 Join Date
    IsraelLocation
    20Posts
    Thnx man!!! :) :wiggle:
    Its very good tutoial! :respect:

  6. #6
    Member fusiontres is offline
    MemberRank
    Jan 2006 Join Date
    Buenos Aires - Argentina - Oh yeah.Location
    56Posts
    IT works beautifuly, one of the BESTs guides I&#180;ve every read! THUMBS UP! And...thank you so so much for your work neutrogenik! I would like to take this chance to point you to my guide on character&#180;s face modding I&#180;ve been working on. Thanks again, bye :)

  7. #7
    Account Upgraded | Title Enabled! [Rayden] is offline
    MemberRank
    Dec 2004 Join Date
    BrasilLocation
    216Posts
    Thanks man
    Very Good Work

  8. #8
    Apprentice sunyats3n is offline
    MemberRank
    Jan 2006 Join Date
    12Posts
    nice work, very very helpful to all newbies like me.

  9. #9
    Apprentice Wahlqvist is offline
    MemberRank
    Dec 2005 Join Date
    SwedenLocation
    24Posts
    yes its woking now...al weapons the hero glow everytingDD thx man you&#180;r the best:D

  10. #10
    Apprentice Stallion is offline
    MemberRank
    Jun 2005 Join Date
    GreeceLocation
    6Posts
    I found am easier way :p
    //spawn puss_the_cat

    he sell the Quests :p

    neutro ... thnx a lot man :)
    u r the spirit of this forum
    take care!!!

  11. #11
    Apprentice ngag3 is offline
    MemberRank
    Oct 2005 Join Date
    Giran Castle...Easy to find :)Location
    10Posts
    oh!!!!!! Thanx a lot neutrogenik!! :) :) :) :) Valakas... your time has come babe!

  12. #12
    Account Upgraded | Title Enabled! DarXyde is offline
    MemberRank
    Aug 2005 Join Date
    out there...Location
    225Posts
    lol... :) ... his time has come indeed... i`m a little disapointed about him, i thought will be bigger than antharas is... i was wrong..

  13. #13
    Simplify Your Mind Lithium is offline
    MemberRank
    Jul 2005 Join Date
    Cyrodill, Anvil.Location
    1,313Posts
    I forget to thanks you ^_^", Great guide! I have posted it in my forum with credit to you and RZ :) Keep doing good work! :D

  14. #14
    Proficient Member VEGA is offline
    MemberRank
    Jan 2006 Join Date
    MLocation
    181Posts
    Good Work, Thank's for it!!!

  15. #15
    Apprentice dogofdoom is offline
    MemberRank
    Jan 2006 Join Date
    14Posts
    Its Alive!

    Thanx!!!!!!!1

  16. #16
    Apprentice GranPhilar is offline
    MemberRank
    Dec 2004 Join Date
    18Posts
    I have a problem i cant access my db page http://127.0..0.1/a/

  17. #17
    Enthusiast lazenca is offline
    MemberRank
    Nov 2004 Join Date
    39Posts
    Whenever i tried to go to my local homepage, i keep getting the "Page Not Found" error.

    I tried so many times and this thing just dosent work for me. Does anyone knows why ?
    Last edited by neutrogenik; 04-03-06 at 12:08 PM.

  18. #18
    Account Upgraded | Title Enabled! neutrogenik is offline
    MemberRank
    Oct 2005 Join Date
    FranceLocation
    1,091Posts
    filleh > give a screenshot

    lazenca > keep a correct language please. Did you run start.exe before going to your local page ?

  19. #19
    Enthusiast lazenca is offline
    MemberRank
    Nov 2004 Join Date
    39Posts
    hmm if i am not wrong. whenever i use the start.bat, it pops out a internet window and has 2 links in it. The second one which is the PHPadmin link is the one thats give me the Page Not Found thingy.

    Whats the solution for this?

  20. #20
    Apprentice GranPhilar is offline
    MemberRank
    Dec 2004 Join Date
    18Posts
    i set my acct lvl to 200 and i cant use any of the gm commands.

  21. #21
    Account Upgraded | Title Enabled! neutrogenik is offline
    MemberRank
    Oct 2005 Join Date
    FranceLocation
    1,091Posts
    lazenca > you are using a bad link or your apache server is not launched

    GranPhilar > be more precise

  22. #22
    Apprentice GranPhilar is offline
    MemberRank
    Dec 2004 Join Date
    18Posts
    Quote Originally Posted by neutrogenik
    lazenca > you are using a bad link or your apache server is not launched

    GranPhilar > be more precise

    well on the database i set my acct name to access_level 200. log in to game and try to use //admin, //buy, //gmshop, //gm and i get nothing. its like if im a regular player. now on the status webpage it shows i have 1 acct 1 char 1gm. but im not a gm cuz i cant use any gm commands.

  23. #23
    Account Upgraded | Title Enabled! neutrogenik is offline
    MemberRank
    Oct 2005 Join Date
    FranceLocation
    1,091Posts
    if you are just running a test server you can use "Everyoneisadmin=true" in "server.config"

  24. #24
    Apprentice GranPhilar is offline
    MemberRank
    Dec 2004 Join Date
    18Posts
    yea but i dont want everyone else to be admin. 4 more friends of mine are testing with me. but thats not the solution. once i get this server to play with more ppl what am i gonna do if i cant log as a gm. thats the solution im looking for. now is it possible to be gm? and how?

  25. #25
    Enthusiast lazenca is offline
    MemberRank
    Nov 2004 Join Date
    39Posts
    errr? apache server not launched? O.o.. do i have to do that so that the local host homepage works? hmm but where do i get to launch this apache server??



Page 1 of 2 12 LastLast

Advertisement