How to make a webclient!
Firstly i would reccomend Downloading EyreScape open client, as it's the most basic and easy to work from.
MegaUplaod For Eyerscape! http://www.megaupload.com/?d=01SH1FJJ
RapidShare. http://rapidshare.com/files/14966631...OpenSource.rar
Creds to Skating On Java
Secondly
Find the compiler in eyrescape, edit it and replace with this.
Code:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: ::
:: All of the following code is (C) Copywrited 2006-2007, ::
:: Grene Penguin Entertainment. ::
:: ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
color 0e
cls
:menu
title Your server name compiler
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.
echo.
set /p compile=Option:
if %compile%==c goto compile
if %compile%==C goto compile
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
I have removed the run and end so it's only compile, better for your source!
Now to make and change the background open google, find and edit your picture and save in "my pictures" then open up your paint program.
Now that paint is open, before you do anything click "image" then go to "attrbutes" and change it to "Width to = 766 // Height to = 503" and click OK"
Now Load your chosen picture and widen it to the size of your paint program!
Now starting from the bottom right corner, drag the select tool via the centre of your image , making sure the VERY bottom right numbers are 383, 503.
Now that half of your chosen image is highlighted Right-click, highlight and click "flip/rotate" and flip it horizontally, and save it to your pictures as "YOUR SERVER NAME HERE" <---Not literally, just save it with the name as your server.
Now go into "my pictures" Copy your picture just made, open eyrescape source folder and paste it in there, that will automatically save it as a .jpg file as shown.
Now right click that .jpg file and click rename, rename it to your server's name (example "FoshizzleScape")
Now thats done, go into EyreScape server folder again and find
Code:
Class30_Sub2_Sub1_Sub1
JAVA FILE!!
One in there search for this
Code:
Image image = Toolkit.getDefaultToolkit()
Nearby that you will see
Code:
.getImage("servername.jpg")
change the "servername" To the what you renamed and saved your .jpg image as, (example FoshizzleScape, so it now looks like this.
Code:
.getImage("FoshizzleScape.jpg")[/
You have just created your client!
Now, to rename your client!
Goto your clients client.java and press ctrl+H, search and replace eyrescape's name/ Do the same in Frame_Sub1.java, Then compile!
================================================== ===============================
Optional tutorials/Downloads(The following steps are optional but recommended)
================================================== ===============================
Numero one ==Changing Textures
This will change textures of walls and floors. Note: There are more things you can change, you just have to figure them out.
Editing Texture http://www.moparscape.org/smf/index....,127844.0.html
Credz = Billysmither
Numero two == Changing Npcs
This allows you to change Npc names, Examine, level and menu options[/b
Changing NPC's http://www.moparscape.org/smf/index....c,24506.0.html
Credz = Slysoft
Numero Three == Item Masking
To change the names and description of items
Item masking! http://www.moparscape.org/smf/index....,127855.0.html
For future reference please look into the tutorials section, they are the three main ones!
NOW HOW TO FIX THE MAIN ERROR, THE EGUI ERROR!
Firslty create a new text document and name it EGUI.
Inside paste this
Code:
import java.awt.BorderLayout;
import java.awt.Cursor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class EGUI
implements ActionListener
{
private JFrame guiFrame;
private JButton tutButton;
private JButton tuButton;
private JButton tu2Button;
private JPanel guiPanel;
private JProgressBar bar;
private EGUI()
{
JFrame.setDefaultLookAndFeelDecorated(true);
guiFrame = new JFrame("EyreScape Client");
guiPanel = new JPanel(new BorderLayout());
guiFrame.setResizable(false);
ClassLoader classloader = getClass().getClassLoader();
java.net.URL url = classloader.getResource("icon.jpg");
if(url != null)
{
ImageIcon imageicon = new ImageIcon(url);
guiFrame.setIconImage(imageicon.getImage());
}
tutButton = new JButton("Start EyreScape Client");
tutButton.setActionCommand("Pressed");
tutButton.addActionListener(this);
guiPanel.add(tutButton, "North");
tutButton.setCursor(Cursor.getPredefinedCursor(12));
tuButton = new JButton("Exit EyreScape GUI");
tuButton.setActionCommand("Pressed2");
tuButton.addActionListener(this);
guiPanel.add(tuButton, "South");
tuButton.setCursor(Cursor.getPredefinedCursor(12));
guiFrame.add(guiPanel);
guiFrame.pack();
guiFrame.setDefaultCloseOperation(3);
guiFrame.setVisible(true);
}
public static void main(String args[])
{
new EGUI();
}
public void actionPerformed(ActionEvent actionevent)
{
String s = actionevent.getActionCommand();
if(s.equals("Pressed"))
{
client.main(new String[] {
"", "", ""
});
}
if(s.equals("Pressed2"))
{
System.exit(0);
}
}
}
Then right click your run client and edit it.
Where it says
<----Or something like that
Change it to
Code:
JAVA -Xmx500m -cp . EGUI
Credits:
Teric6
Me
moparscapeHelp
dz0r
and those ppl who make tuts on clients!