Java is a proprietary software language owned by Sun Microsystems and very popular among applications. As an example, Minecraft is written in Java.

Java has its syntax deriving from C and C++. Java is based on a class/method/object architecture. Let’s think about classes as objects containing methods can can be used to modify the contents of this objects or make it interact with other classes or objects. So, when you want to create a java program, you need first to create a class that will run as your main program. Files have the extension .java. Its code is compiled into bytecode (.class files) that can be run on java virtual machines, resolving a lot of cross-platform compatibility problems. In few words, by creating a java application, you can be sure it will run on Windows, Linux and Mac.

At the moment of this post, even I have only few hours of practice of java, but it is quite amazing how you can understand its structure quickly if you have done a bit of C++, C, or C# in your life.
What to do when studying java for the first time of your life and you know nothing about it? First you are going to need a java development environment. By working Ubuntu 10.04 LTS, just pick up the package openjdk-6-jdk in Synaptic package manager.

Once this is installed, let’s get started with a simple example.
By being a programmer, what you *need* to feel when learning a new software language is:

  1. How to code it with a simple example like “Hello World”
  2. How to make objects interact
  3. How to compile it
  4. How to run it

The example below takes everything in this list into account. Let’s take 3 class A, B and C containing each different methods.
Class A is defined in file A.java.
public class A {
  public void Hello() {
    System.out.println("Hello World, class A");
  }
  public static void static_hello() {
    System.out.println("Hello World, static class A");
  }
}

This class contains two methods, a static and a normal one. A static method can be called even if the class is not compiled (A.class file not present). A non-static method can be called only if class is compiled.
In another class, if you want to call a method inside class A, you first need to create a new object based on class A and then you can call the method:
A a = new A();
a.Hello();

This will print out the message “Hello World, class A”.

Compilation of this file is made by the command javac:
javac A.java

If you want to call the static method of class A from another object, you need to use:
A.static_hello();
This will print the message “Hello World, static class A”. You don’t need to create a new object related to this class when calling a static method. You do not even need to compile the class to use a static method. This has to be called inside another object. By trying to call a method which is not static on a class that is not compiled or not a new object, compilation returns an error tellings that non-static methods have to be used on new objects.

When trying to launch class A independently with a method (done by command java $CLASS_NAME):
~/bin/jar $ java A
Exception in thread "main" java.lang.NoClassDefFoundError: A

Java throws an exception (error message) because class A does not contain a method “main”.

Now let’s imagine two other classes B (saved) in and C.
/* Saved in B.java */
public class B {
  public void Hello() {
    System.out.println("Hello World, class B");
  }
}

/* Saved in C.java */
File Edit Options Buffers Tools Java Help
public class C {
  /* Main method that can be called independently */
  public static void main(String[] args) {
    A.static_hello();
    /* A.Hello(); */ /* Error if A not compiled with C */
    A a = new A();
    B b = new B();
    a.Hello();
    b.Hello();
  }
}

If all the java files are in same repository, compilation is done with command javac:
javac *.java

In case you want to a new class that depends on objects of an external class, you need:

  • To set up the environment variable $CLASSPATH with the full directory data to a jar file (java library). Ex: CLASSPATH=.:$FOLDER/A.jar
  • Import needed java libraries in the head of the java file of your new class. Ex: import java.A.* if this library is included in $CLASSPATH

About classes B and C, class C contains a main method, so it can be called independently.
$ java C
Hello World, static class A
Hello World, class A
Hello World, class B

It is a particular day in Japan today.
Monster Hunter Portable 3rd, the latest game where you can spend your time slaying monsters ten times bigger than you, has been released on this 1st of December.

In parallel to the game release, MHP3 Guide of Otacoo.com will be updated gradually with the game data. Don’t hesitate to refer to it, and to click on the ads. if you have time…

Yodobashi Camera decided to open their shops a little bit earlier today for this event, at 8:30 in Akihabara and 7:30 in Shinjuku.
Without surprise, there were a lot of people this morning who came to buy this game.

Even arriving at 7:00 was not a guaranty to be sure to get the game. I saw a lot of people this morning leaving Shinjuku without anything because Yodobashi staff decided to stop people coming in the queue from 8:00.
Here are a couple of pictures of today.

Queue at Yodobashi Camera
Queue at Yodobashi Camera for MHP3

Staff of Yodobashi Camera were really wonderful in their organization. Nothing has come to disturb the queue and people were also very disciplined. You could be sure that nobody was trying to go through the queue. It’s the kind of stuff you can definitely just see in Japan.
There were so many this morning that the queue also entered in Yodobashi main building.
So finally, how many copies were sold there today? It’s hard to say but possibly 5,000 or more.
Myself, I arrived at 7:00, and left at 9:30 with the game.

So… The main point is what about the game?
After the first minutes of playing, you immediately feel that old gameplay has been kept, with its pros and cons.

So experienced players of MH games won’t feel any new sensations by holding one of the 12 weapons while slaying a monster that deserved its punishment (it’s an ugly monster after all).
In the pros, gameplay is solid and has already proved it permits to have a good balance between weapons while hunting. Yukumo village has also this middle age Japanese environment that makes its charm. And new characters are nice to look at. Now also you can bring with you 2 Felynes during quests. Doesn’t it lower the difficulty??

In the cons, well it is more or less what fans are complaining about since Monster Hunter Freedom Unite. If you are not used with the camera, you are going to have a difficult time to follow rapid monsters.
There is also no lock functions that would allow to follow the monster more quickly than it is the case now.

I also saw a couple of bugs, not really disturbing, but it makes feel that the game has not been entirely polished.
For instance, take a Hammer or a Hunting Horn and stun a Kerbi. This guy will be on the ground, killed, but still with the stun stars around its head. Then you see it standing up and jumping away. And finally it disappears magically because it has been killed.
OK, Kelbi is not a major monster… But that’s not really realistic.
Graphically, you also have the sensation that this MH episode is turning the series into a cartoon as the light and blood effects are really increased compared to the last versions. This doesn’t help in the seriousness of MH…

By the way, it is always a pleasure to hunt on your psp with such a game, and be sure that it will stuck you on your psp for dozens, or hundreds of hours.

Just to finish, two pieces of advices:
1) Just after beginning, immediately do the first Hot Spring Quest. It is really easy and your Hot Spring will acquire immediately a bonus of 10 for life points.
2) Use and abuse of the delivery service at your base camp. This functionality is extremely useful.

©2010-2013 Michael Paquier All content is ©Copyright of Otacoo.com 2010-2013. Privacy Policy - Terms of Use