How to Create a Hamachi Server

Discussion in 'Archives' started by Hitman543, Mar 8, 2007.

How to Create a Hamachi Server
  1. Unread #1 - Mar 8, 2007 at 12:13 PM
  2. Hitman543
    Joined:
    Mar 8, 2007
    Posts:
    566
    Referrals:
    1
    Sythe Gold:
    0

    Hitman543 Forum Addict
    Banned

    How to Create a Hamachi Server

    How To make a hamachi server :

    Procedure

    Step 1

    Download hamachi [ http://www.hamachi.cc/download/ ]

    Leave it now, we will learn how to use this later.

    Step 2

    You need to download JDK :

    [ http://java.sun.com/javase/downloads/index_jdk5.jsp ]

    Scroll down till you find : JDK Update 5.0 Update 11
    Code:

    Code:
    JDK 5.0 Update 11
    The Java SE Development Kit (JDK) includes: 
    the Java Runtime Environment (JRE) 
    command-line development tools, such as compilers and debuggers, that are necessary or useful for developing applets and applications

    Download it.

    Step 3 :

    Now you need a source :

    Project 16 ( Reccommended if you are good coder )
    CheezScape ( Reccommended if you have coded a bit before)
    Testscape ( Reccommended if you are starter )


    Step 4 :

    Download winrar (unless you already have it in which case DON'T!) :
    http://www.rarlab.com/download.htm


    Step 5 :

    Now we need to find compile.bat.

    1.Go to your source
    2.Look for a file called compile.bat



    You will need : Textpad

    Then Right click and chose textpad.
    Then replace everything that is there with:

    Code:
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    ::                                                        ::
    :: All of the following code is (C) Copywrited 2006-2007, ::
    ::               Grene Penguin Entertainment.             ::
    ::                                                        ::
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    @echo off
    cls
    :menu
    title Runserver + Compiler version 1.4
    echo Please choose an option below to do that function.
    echo Keep posted on the Moparscape Tutorials section for
    echo any updates that I post.
    echo.
    echo c - Compile your server.
    echo r - To run your server.
    echo e - To exit out of the program.
    echo.
    echo.
    set /p compile=Option: 
    if %compile%==c goto compile
    if %compile%==C goto compile
    if %compile%==r goto run
    if %compile%==R goto run
    if %compile%==e goto end
    if %compile%==E goto end
    if %compile%==* goto error
    goto error
    :compile
    cls
    title Compiler
    goto checkjavac
    :compile2
    if exist src (goto compile5) else (goto compile3)
    :compile3
    if exist *.java (goto compile4) else (goto compileerror)
    :compile4
    %javac% -cp . *.java
    pause
    cls
    goto menu
    :compile5
    %javac% -cp . .\src\*.java
    pause
    move .\src\*.class .\classes\
    cls
    goto menu
    :compileerror
    cls
    echo You need to have Java files for this compiler to compile.
    pause
    cls
    goto menu
    :run
    cls
    title Runserver
    goto checkjava
    :run2
    set runjava=%java% -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
    cls
    goto run3
    :run3
    if exist .\classes\server.class (goto run6) else (goto run4)
    :run4
    if exist .\server.class (goto run5) else (goto servererror)
    :run5
    %runjava%
    pause
    cls
    goto menu
    :run6
    set runjava=
    set runjava=%java% -cp .;./classes; Server
    %runjava%
    pause
    cls
    goto menu
    :servererror
    cls
    title Error
    echo You do not have a Server.class. Make sure that you have used the
    echo compiler with your server BEFORE you try running it.
    pause
    cls
    goto menu
    :error
    cls
    title Error
    echo Invalid command. Please make sure the commands you type
    echo in are correct.
    pause
    cls
    goto menu
    :end
    cls
    exit
    :checkjavac
    if exist "%programfiles%\Java\jdk1.5.0_06\bin\javac.exe" (goto setjavac) else (goto checkjavac2)
    :checkjavac2
    if exist "%programfiles%\Java\jdk1.5.0_07\bin\javac.exe" (goto setjavac2) else (goto checkjavac3)
    :checkjavac3
    if exist "%programfiles%\Java\jdk1.5.0_08\bin\javac.exe" (goto setjavac3) else (goto checkjavac4)
    :checkjavac4
    if exist "%programfiles%\Java\jdk1.5.0_09\bin\javac.exe" (goto setjavac4) else (goto checkjavac5)
    :checkjavac5
    if exist "%programfiles%\Java\jdk1.5.0_10\bin\javac.exe" (goto setjavac5) else (goto checkjavac6)
    :checkjavac6
    if exist "%programfiles%\Java\jdk1.6.0\bin\javac.exe" (goto setjavac6) else (goto checkjavac7)
    :checkjavac7
    if exist "%programfiles%\Java\jdk1.5.0\bin\javac.exe" (goto setjavac7) else (goto checkjavac8)
    :checkjavac8
    if exist "%programfiles%\Java\jdk1.5.0_01\bin\javac.exe" (goto setjavac8) else (goto checkjavac9)
    :checkjavac9
    if exist "%programfiles%\Java\jdk1.5.0_02\bin\javac.exe" (goto setjavac9) else (goto checkjavac10)
    :checkjavac10
    if exist "%programfiles%\Java\jdk1.5.0_03\bin\javac.exe" (goto setjavac10) else (goto checkjavac11)
    :checkjavac11
    if exist "%programfiles%\Java\jdk1.5.0_04\bin\javac.exe" (goto setjavac11) else (goto checkjavac12)
    :checkjavac12
    if exist "%programfiles%\Java\jdk1.5.0_05\bin\javac.exe" (goto setjavac12) else (goto javacerror)
    :setjavac
    set javac="%programfiles%\Java\jdk1.5.0_06\bin\javac.exe"
    goto compile2
    :setjavac2
    set javac="%programfiles%\Java\jdk1.5.0_07\bin\javac.exe"
    goto compile2
    :setjavac3
    set javac="%programfiles%\Java\jdk1.5.0_08\bin\javac.exe"
    goto compile2
    :setjavac4
    set javac="%programfiles%\Java\jdk1.5.0_09\bin\javac.exe"
    goto compile2
    :setjavac5
    set javac="%programfiles%\Java\jdk1.5.0_10\bin\javac.exe"
    goto compile2
    :setjavac6
    set javac="%programfiles%\Java\jdk1.6.0\bin\javac.exe"
    goto compile2
    :setjavac7
    set javac="%programfiles%\Java\jdk1.5.0\bin\javac.exe"
    goto compile2
    :setjavac8
    set javac="%programfiles%\Java\jdk1.5.0_01\bin\javac.exe"
    goto compile2
    :setjavac9
    set javac="%programfiles%\Java\jdk1.5.0_02\bin\javac.exe"
    goto compile2
    :setjavac10
    set javac="%programfiles%\Java\jdk1.5.0_03\bin\javac.exe"
    goto compile2
    :setjavac11
    set javac="%programfiles%\Java\jdk1.5.0_04\bin\javac.exe"
    goto compile2
    :setjavac12
    set javac="%programfiles%\Java\jdk1.5.0_05\bin\javac.exe"
    goto compile2
    :javacerror
    cls
    title Error
    echo You do not have JDK 5.0 or JDK 6.0. Go to Mod Taharok's tutorial
    echo on the Moparscape Tuturoials section for a direct link to download
    echo the newest JDK Update.
    pause
    cls
    goto menu
    :checkjava
    if exist "%programfiles%\Java\jdk1.5.0_06\bin\java.exe" (goto setjava) else (goto checkjava2)
    :checkjava2
    if exist "%programfiles%\Java\jdk1.5.0_07\bin\java.exe" (goto setjava2) else (goto checkjava3)
    :checkjava3
    if exist "%programfiles%\Java\jdk1.5.0_08\bin\java.exe" (goto setjava3) else (goto checkjava4)
    :checkjava4
    if exist "%programfiles%\Java\jdk1.5.0_09\bin\java.exe" (goto setjava4) else (goto checkjava5)
    :checkjava5
    if exist "%programfiles%\Java\jdk1.5.0_10\bin\java.exe" (goto setjava5) else (goto checkjava6)
    :checkjava6
    if exist "%programfiles%\Java\jdk1.6.0\bin\java.exe" (goto setjava6) else (goto checkjava7)
    :checkjava7
    if exist "%programfiles%\Java\jdk1.5.0\bin\java.exe" (goto setjava7) else (goto checkjava8)
    :checkjava8
    if exist "%programfiles%\Java\jdk1.5.0_01\bin\java.exe" (goto setjava8) else (goto checkjava9)
    :checkjava9
    if exist "%programfiles%\Java\jdk1.5.0_02\bin\java.exe" (goto setjava9) else (goto checkjava10)
    :checkjava10
    if exist "%programfiles%\Java\jdk1.5.0_03\bin\java.exe" (goto setjava10) else (goto checkjava11)
    :checkjava11
    if exist "%programfiles%\Java\jdk1.5.0_04\bin\java.exe" (goto setjava11) else (goto checkjava12)
    :checkjava12
    if exist "%programfiles%\Java\jdk1.5.0_05\bin\java.exe" (goto setjava12) else (goto javaerror)
    :setjava
    set java="%programfiles%\Java\jdk1.5.0_06\bin\java.exe"
    goto run2
    :setjava2
    set java="%programfiles%\Java\jdk1.5.0_07\bin\java.exe"
    goto run2
    :setjava3
    set java="%programfiles%\Java\jdk1.5.0_08\bin\java.exe"
    goto run2
    :setjava4
    set java="%programfiles%\Java\jdk1.5.0_09\bin\java.exe"
    goto run2
    :setjava5
    set java="%programfiles%\Java\jdk1.5.0_10\bin\java.exe"
    goto run2
    :setjava6
    set java="%programfiles%\Java\jdk1.6.0\bin\java.exe"
    goto run2
    :setjava7
    set java="%programfiles%\Java\jdk1.5.0\bin\java.exe"
    goto run2
    :setjava8
    set java="%programfiles%\Java\jdk1.5.0_01\bin\java.exe"
    goto run2
    :setjava9
    set java="%programfiles%\Java\jdk1.5.0_02\bin\java.exe"
    goto run2
    :setjava10
    set java="%programfiles%\Java\jdk1.5.0_03\bin\java.exe"
    goto run2
    :setjava11
    set java="%programfiles%\Java\jdk1.5.0_04\bin\java.exe"
    goto run2
    :setjava12
    set java="%programfiles%\Java\jdk1.5.0_05\bin\java.exe"
    goto run2
    :javaerror
    cls
    title Error
    echo You do not have JDK 5.0 or JDK 6.0. Go to Mod Taharok's tutorial
    echo on the Moparscape Tuturoials section for a direct link to download
    echo the newest JDK Update.
    pause
    cls
    goto menu
    Now you have the Compiler so you nolonger need runserver.bat

    Step 6 :

    Now we are almost done you will need people on your server though.
    Open up Your Hamachi.
    On the top of your Hamachi you will see some numbers
    These numbers are your i-p adress, people will use this to get onto your server.

    Thats what people need to get on a hamachi server

    Now on hamachi look for a button with a triangle on.



    If you see it click on it , then click on create new network
    Firstly add your network name.
    Then add your password.

    Compile and run your server in compile.bat

    Now you are done :D

    Please tell me ways I can improve my guide.

    Thanks,

    --Hitman

    All credits for the compiler go to Mod Taharok from Moparscape.org.
     
  3. Unread #2 - Mar 14, 2007 at 9:43 AM
  4. Massive Mage 333
    Joined:
    Jan 21, 2007
    Posts:
    95
    Referrals:
    0
    Sythe Gold:
    0

    Massive Mage 333 Member

    How to Create a Hamachi Server

    Very nice guide, I don't know why anyone else has posted here yet. I found it very easy to follow and understand. The only two things I would suggest are, when you make a guide, it is better to make it formal. (for example use you instead of u).

    The other thing is, perhaps, you could tell people where to go to learn how to edit the source. It seems pretty obvious, but you would be surprised at the number of people that do not know where to go.
     
  5. Unread #3 - Mar 14, 2007 at 11:53 AM
  6. Hitman543
    Joined:
    Mar 8, 2007
    Posts:
    566
    Referrals:
    1
    Sythe Gold:
    0

    Hitman543 Forum Addict
    Banned

    How to Create a Hamachi Server

    You can learn that on other guides, my guide is on learing how to get a server up, not changing things.

    Thanks for the feedback,

    --Hitman
     
  7. Unread #4 - Mar 21, 2007 at 10:53 AM
  8. nilsie
    Referrals:
    0

    nilsie Guest

    How to Create a Hamachi Server

    som1 got an hamachi server and pass for me ? cuz i got it all and stuff but no server i can get on...
     
  9. Unread #5 - Mar 21, 2007 at 11:25 AM
  10. 1337 pker
    Joined:
    Mar 18, 2007
    Posts:
    239
    Referrals:
    0
    Sythe Gold:
    0

    1337 pker Active Member
    Banned

    How to Create a Hamachi Server

    Well-done. IN the sources, add Pimpscape, its one of the best sources.
     
  11. Unread #6 - Mar 21, 2007 at 12:34 PM
  12. Hitman543
    Joined:
    Mar 8, 2007
    Posts:
    566
    Referrals:
    1
    Sythe Gold:
    0

    Hitman543 Forum Addict
    Banned

    How to Create a Hamachi Server

    This guide is generraly for quite new people and I would not advise Pimpscape... It is a PK server + I don't really like it!

    Check out my source thread for downloads.

    --Hitman
     
  13. Unread #7 - Mar 28, 2007 at 4:47 PM
  14. gamer00124
    Joined:
    Mar 28, 2007
    Posts:
    131
    Referrals:
    0
    Sythe Gold:
    0

    gamer00124 Active Member
    Banned

    How to Create a Hamachi Server

    i downloaded the 5.0 update 11 but wen i try to load my server it says
    you do not have the jdk 5.0 or jdk 6.0 go to mod taharoks tutorial on the moparscape tutorials section for a direct link to download the newest jdk update
    press any key to continue...
    what should i do email me at [email protected]
    n how do compile server in to running.bat
     
  15. Unread #8 - Mar 28, 2007 at 10:25 PM
  16. Jeff690
    Referrals:
    0

    Jeff690 Guest

    How to Create a Hamachi Server

    1 way to Improve your guide: ** GIVE CREDITS TO THE PERSRON THAT MADE THE COMPILER OR WHO YOU GOT IT FROM! **

    Buddy, I don't see any credits being givin to the person that made that compier. I know you made it, you leeched it off another forums.

    Next time give credit for whats not yours.
     
  17. Unread #9 - Mar 29, 2007 at 1:46 AM
  18. Hitman543
    Joined:
    Mar 8, 2007
    Posts:
    566
    Referrals:
    1
    Sythe Gold:
    0

    Hitman543 Forum Addict
    Banned

    How to Create a Hamachi Server

    I no where in the thread said that I made the compiler, although I did make the rest of the guide...

    --Hitman
     
  19. Unread #10 - Apr 4, 2007 at 11:30 AM
  20. Citrons
    Joined:
    Jan 31, 2007
    Posts:
    176
    Referrals:
    0
    Sythe Gold:
    0

    Citrons Active Member
    Banned

    How to Create a Hamachi Server

    Pff. This is really easy ;) Maybe try to make "No-Ip TuT" ?

    ~C.
     
  21. Unread #11 - Apr 6, 2007 at 12:00 PM
  22. o0o_Soccer_o0o
    Joined:
    Feb 1, 2007
    Posts:
    228
    Referrals:
    0
    Sythe Gold:
    0

    o0o_Soccer_o0o Active Member

    How to Create a Hamachi Server

    i need help where can i download pimpscape
     
  23. Unread #12 - Apr 6, 2007 at 12:02 PM
  24. o0o_Soccer_o0o
    Joined:
    Feb 1, 2007
    Posts:
    228
    Referrals:
    0
    Sythe Gold:
    0

    o0o_Soccer_o0o Active Member

    How to Create a Hamachi Server

    going Tkfkdoffline
     
  25. Unread #13 - Apr 6, 2007 at 12:05 PM
  26. Mohsin
    Joined:
    Mar 11, 2007
    Posts:
    143
    Referrals:
    0
    Sythe Gold:
    0

    Mohsin Active Member

    How to Create a Hamachi Server

    This guide has been done so many times. Its pointless. (how does it feel)
     
  27. Unread #14 - Apr 10, 2007 at 3:12 AM
  28. Hitman543
    Joined:
    Mar 8, 2007
    Posts:
    566
    Referrals:
    1
    Sythe Gold:
    0

    Hitman543 Forum Addict
    Banned

    How to Create a Hamachi Server

    It feels good, I posted this because people were asking and there was NO OTHER GUIDE.

    Do you feel good for annoying me?

    --Hitman
     
  29. Unread #15 - Apr 12, 2007 at 1:34 PM
  30. xxchronic2007xx
    Referrals:
    0

    xxchronic2007xx Guest

    How to Create a Hamachi Server

    Where do i found my source and that compile.bat folder plz be more specific and uh by textpad you mean notepad?
     
  31. Unread #16 - Apr 12, 2007 at 4:04 PM
  32. laserboy
    Joined:
    Feb 3, 2007
    Posts:
    182
    Referrals:
    1
    Sythe Gold:
    0

    laserboy Active Member

    How to Create a Hamachi Server

    i think you shoud get jdk 6 its the newest one
     
  33. Unread #17 - Apr 13, 2007 at 3:51 PM
  34. laserboy
    Joined:
    Feb 3, 2007
    Posts:
    182
    Referrals:
    1
    Sythe Gold:
    0

    laserboy Active Member

  35. Unread #18 - Apr 15, 2007 at 7:13 AM
  36. XTFH
    Referrals:
    0

    XTFH Guest

    How to Create a Hamachi Server

    i dont find the compile.bat, but i find only compile
     
  37. Unread #19 - Apr 20, 2007 at 2:00 PM
  38. gampu
    Joined:
    Mar 29, 2007
    Posts:
    187
    Referrals:
    0
    Sythe Gold:
    0

    gampu Active Member

    How to Create a Hamachi Server

    Good job.
     
  39. Unread #20 - Apr 24, 2007 at 5:37 PM
  40. pizzownage
    Joined:
    Mar 29, 2007
    Posts:
    198
    Referrals:
    0
    Sythe Gold:
    0

    pizzownage Active Member

    How to Create a Hamachi Server

    great guide, i even started a server but i have question.

    since i want it to be 24/7, what do i need to leave running?

    hamachi and the server?
    hamachi, server, mopar?


    please PM me with answer
     
< AtOMICscaPE!! PK SERVER!!!!! | selling lvl 82 main >

Users viewing this thread
1 guest


 
 
Adblock breaks this site