Hi everyone,
I've played around with Pulpcore yesterday to try to write a Java
version of my current MMORPG client for TerraWorld Online
(
www.terragaming.net) This is the first result:
http://www.terragaming.net/javaclient/
I have a few problems though. My game client uses about 2.5 meg
(zipped) of tile graphics for map rendering.
- What is the best way to load these resources?
- Is it possible to cache these resources so the players don't need to
re-download them every time? (in browser cache maybe?)
I have tried to add my resources to the resource zip file, but it
seems to become to large or something. When I try loading my applet on
the production machine I get following error. When I try it out
locally it works fine though. My code is based on the pulpcore example
and loading a smaller resource zip seems to work fine.
load: class pulpcore.platform.applet.CoreApplet.class not found.
java.lang.ClassNotFoundException:
pulpcore.platform.applet.CoreApplet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass
(Applet2ClassLoader.java:117)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode
(Plugin2ClassLoader.java:445)
at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:
2880)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run
(Plugin2Manager.java:1397)
at java.lang.Thread.run(Thread.java:619)
Exception: java.lang.ClassNotFoundException:
pulpcore.platform.applet.CoreApplet.class
Then I tried Downloading all images via the Download class. This seems
to work, but takes a lot of time. That however isn't my main issue
with this method. The problem is that whenever a player closes the
browser, he needs to download the images all over again.
Any advice?
Best,
Tom