Warcraft Remake

I have always liked the old school warcraft games. This is cool. I’ll have to check it out when I am not as tired.

Mouse stuck in the upper left corner ish of screen (as if applet was in top left corner), but not even over the browser… no applet in sight. Ctrl or Esc did nothing, basically stuck. Wanted to try it again to see if console showed anything. Then it worked, until I quit, then the same thing happened again…

OS X (Lion), FF, Java 1.6

The outside browser worked fine, but would not allow changing resolution. Then game just flashed and came back to config/start menu. It also seemed to be difficult to place buildings, even though I saw a green square. Quite possibly all OS X issues.

Other than that it looked great. Looking forward to play it when I get home (to windows).

veryg ood, but I must request that I be able to move screen by going to the edge because that drives me insane :confused:

Hi

I will give it a try tomorrow but please don’t advise GNU Linux users to replace IcedTea / OpenJDK by Oracle Java.

Edit.: I get this when I try your game:
Exception in thread “main” java.lang.UnsupportedClassVersionError: com/b3dgs/warcraft/Main : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:632)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:264)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:332)
Could not find the main class: com.b3dgs.warcraft.Main. Program will exit.

I use this version of Java:
OpenJDK Runtime Environment (IcedTea6 1.7.5) (rhel-1.16.b17.el5-x86_64)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

You probably compiled your game with Java 1.7, please compile it with Java 1.6 except if you really want us to use Java 1.7.

Edit2.: I tested the version in the RAR archive (I had to use an online converter because I cannot install anything here).

No no, it is JDK 6u30

I just tried on Ubuntu 10.04 with Firefox, and it is working fine.

I really don’t know how to fix the problem with IcedTea.
What is the problem with Oracle Java ? You want to check the source code of java before execute it ? ;D

Hum, I will see what I can do.

Well, I went home to play it and it started a bit better, but I still encountered some problems. The biggest one was:

Exception in thread "com.b3dgs.warcraft.Scene" java.lang.NullPointerException
        at com.b3dgs.warcraft.gameplay.EntryHandler$Effect.access$200(EntryHandler.java:32)
        at com.b3dgs.warcraft.gameplay.EntryHandler.activateEffect(EntryHandler.java:93)
        at com.b3dgs.warcraft.building.ModelBuilding.render(ModelBuilding.java:154)
        at com.b3dgs.lionengine.game.strategy.AbstractEntryHandler.render(AbstractEntryHandler.java:350)
        at com.b3dgs.warcraft.gameplay.EntryHandler.render(EntryHandler.java:106)
        at com.b3dgs.warcraft.World.render(World.java:105)
        at com.b3dgs.warcraft.Scene.render(Scene.java:49)
        at com.b3dgs.lionengine.engine.Sequence.render(Sequence.java:165)
        at com.b3dgs.lionengine.engine.Sequence.run(Sequence.java:145)
Loader: sequence terminated !
Loader: terminated !

Happened after a few minutes of playing. Not sure if it was something I was doing.

Also for some strange reason the guys stopped extracting gold ??? They would just get out of the mine with a bag on it’s back and then immediately stop and the bag would disappear… Gold from the mine was depleting but I wasn’t gaining :frowning: They would also stop mining. It also turned impossible to build farms after a while. The green box just turned red whenever I selected a place for the farm…

Win7, Java 1.6, v0.0.3

Still looking promising, but some work left.

Yes lol, don’t worry, it is only v0.0.3, so less than alpha.
Sharing with other people is the best way to fix as much things as possible, and its also a good way to improve many things :slight_smile:

I will let this current version alive while I’m fixing these troubles.

Thanks everybody !

Try not to use Java7. You will not reach many people yet.
Compile it with 1.6 Target.
(Also does not run on my Ubuntu 11.04, JVM 1.6.0_26 in Browser or commandline)

5 posts before :wink:

Here my error message.

java -jar WarcraftRemake.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/b3dgs/warcraft/Main : Unsupported major.minor version 51.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: com.b3dgs.warcraft.Main. Program will exit.

:-X You downloaded the wrong file ;D

This is the last link I gave: http://www.b3dgs.com/v5/projects/warcraft_remake/game/index.html

The project page is not yet updated.
So I hope it will work for you with that one (it is Warcraft_Remake.jar, not WarcraftRemake.jar, so I’m sure you get the wrong file, as it is a ZIP, not a RAR)

Ah, ok.
Runs now, thanks.

I used the link on the top of the topic.
Maybe you make a link there to the most recent version.

Really nice and addictive.

One thing that is a bit annoying is the mouse grab, it should only be grabbed when in game (to allow scrolling) other than that there is no real reason it should be grabbed. It should therefore be released when on the menu’s or when pausing the game. It should most importantly be released if the applet doesn’t have focus (alt+tab) or on another tab in the browser.

You can unlock mouse using CTRL.
To handle again, just click inside the frame.

I’m searching how to avoid Robot class… because it not perfect on Unix system (including Mac).
I don’t know how to enable a free mouse move without having the one from the operatign system (basically, locking the mouse at the center and hidding it while I have the game cursor)

Is is possible to make a FPS game on java working fine on Mac & Lunix ? (without any mouse issues)

Do you really plan to ask GNU Linux users to switch to Oracle Java just to play with your game? I remind you that only OpenJDK is available in official repositories. Moreover, encouraging GNU Linux users to switch to Oracle Java harms the reputation of OpenJDK and Java under this operating system because they will believe that OpenJDK is crappy whereas maybe a small effort could allow your game to work fine with it (like mine).

I have no problem with java.awt.Robot on Mac and GNU Linux, I don’t see what you mean.

Edit.: It works fine with this:
java version “1.6.0_22”
OpenJDK Runtime Environment (IcedTea6 1.10.4) (fedora-24.b22.6.1.mga1-i386)
OpenJDK Client VM (build 20.0-b11, mixed mode)

its a luckgame to run Applets and other stuff in OpenJDK.
Therefore its crappy.

Whats the advantage to the Enduser to have a free, but non working virtual machine.

Unity is also the official choice in the Ubuntu Repository, wich does not mean its any good.

Oracle has chosen OpenJDK as the official reference implementation of the Java platform starting with Java 7.

I’ve also seen some differences when running my game between Sun/Oracle JDK and OpenJDK, but I’d really like OpenJDK to become the prominent Java environment, because it means that the community can contribute much more directly to improving the Java user experience (where Sun had, IMO, always dropped the ball). Then again, too many chefs…

Nonetheless, at the present time, I agree with Damocles.

Ah, really ?
Perhaps it is because of vmware uses (I use vmware to try quickly my deploy on Linux, and the mouse is very strange when using Robot class to fix the mouse at the center)
So, I won’t waste my time with that if its ok on your side !

About IcedTea, I would really appreciate if you told me how to make it work perfectly :slight_smile:
I’m not restricted with open source or non open source. I just use what is working perfectly and what is available.

Anyway, thanks for the try !

Just don’t grab it, instead change mouse cursor image to the in game cursor image. No Robot needed then (except for grabbing).

I have used OpenJDK for several years even in commercial applications and I have no problem with it (or at least no problem that I don’t already have with Oracle Java). The main differences between OpenJDK and Oracle Java are the handling of fonts and the high-level part of the JavaSound API. I don’t want to dirty this thread but if something works bad with OpenJDK, write some bug reports as I did when I realized that exclusive full screen mode was (anew) broken in AWT under GNU Linux. Just show me at least one applet not working with OpenJDK as it seems obvious for you, I can give it a try immediately. You’re right, packages in the Ubuntu Repository are not all fine but OpenJDK passed the TCK and has become the reference implementation of Java, it would not be the case if it was crappy. As I already said, the use of applets adds another “layer” between the operating system and the JVM, it has some consequences on the reliability, I have the same problems in applets with OpenJDK and Oracle Java. Saying that OpenJDK does not work is completely exagerated.

Edit.: Cave4k works fine here ;D

It’s ok for me and I can even test it under several distros if you want. I don’t advise you to use VMWare to perform your tests. Rather use dual boot.

[quote=“DjThunder,post:38,topic:37523”]
You’re welcome. Thank you for your great game. I feared that your sound system would work bad with OpenJDK but there is no problem yet. You should not have to modify your source code to allow OpenJDK to support your game.