Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  [Slick2D] JavaRA - Command&Conquer: Red Alert with taste of Java  (Read 6433 times)
0 Members and 1 Guest are viewing this topic.
Offline Cr0s
« Reply #30 - Posted 2014-07-16 08:36:13 »

According to a Stack Trace I only can say, for some reason there is no cursor texture was loaded into Sequence. I think there is some another exceptions with access to game asset files.

Can you tell me, how do you launch JavaRA? Are you build it manually from repository or use a test release (which sort of outdated btw)?
Offline danieldean

Senior Devvie


Medals: 5
Projects: 1



« Reply #31 - Posted 2014-07-16 09:01:05 »

It's the old release, I've now cloned your repository and I'm trying to build it. I get stuck as I only use Eclipse for leJOS, usually use NetBeans, and I can't workout how to build it to a JAR... sorry this probably isn't very helpful.

I get similar errors from Eclipse if I try to run but I don't know if it should work this way?
Offline GNecro1
« Reply #32 - Posted 2014-07-16 09:23:53 »

I love it! I when i was younger i played Red Alert 2 a lot, this reminds me of the fun i had!

Java freak! Cheesy
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cr0s
« Reply #33 - Posted 2014-07-16 09:44:25 »

It's the old release, I've now cloned your repository and I'm trying to build it. I get stuck as I only use Eclipse for leJOS, usually use NetBeans, and I can't workout how to build it to a JAR... sorry this probably isn't very helpful.

I get similar errors from Eclipse if I try to run but I don't know if it should work this way?

I just created a new release: https://github.com/Cr0s/JavaRA/releases/tag/1.0.3a
Try it. Hope it helps.
Offline danieldean

Senior Devvie


Medals: 5
Projects: 1



« Reply #34 - Posted 2014-07-16 12:27:27 »

I just created a new release: https://github.com/Cr0s/JavaRA/releases/tag/1.0.3a
Try it. Hope it helps.

I got both your new and old release going. It seems to be a capitalisation issue:

1  
java.io.FileNotFoundException: /home/danieldean/javara/assets/scores.mix (No such file or directory)


Is the error that first pops up, there are more like it. What stands out to me is that the path should be:

1  
/home/danieldean/JavaRA/assets/scores.mix (No such file or directory)


I think I'm right to say Windows isn't case sensitive but Linux is. If I rename the directory from 'JavaRA' to 'javara' it works.

Thanks for doing the new release.  Cheesy
Offline danieldean

Senior Devvie


Medals: 5
Projects: 1



« Reply #35 - Posted 2014-07-16 16:52:01 »

I see you made a change a few hours ago, it seems like it was to solve this but it doesn't. I think you also have:

1  
2  
--randomAccessFile = new RandomAccessFile(f.toString().toLowerCase(), "r");
++randomAccessFile = new RandomAccessFile(f.toString(), "r");


In 'cr0s.javara.resources.ResourceManager' at line 113 to fix:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
java.io.FileNotFoundException: /home/danieldean/workspace/javara/assets/scores.mix (No such file or directory)
   at java.io.RandomAccessFile.open(Native Method)
   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:241)
   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:122)
   at cr0s.javara.resources.ResourceManager.loadMixes(ResourceManager.java:113)
   at cr0s.javara.resources.ResourceManager.<init>(ResourceManager.java:74)
   at cr0s.javara.resources.ResourceManager.getInstance(ResourceManager.java:79)
   at cr0s.javara.ui.cursor.CursorManager.loadCursors(CursorManager.java:37)
   at cr0s.javara.ui.cursor.CursorManager.<init>(CursorManager.java:25)
   at cr0s.javara.ui.cursor.CursorManager.getInstance(CursorManager.java:30)
   at cr0s.javara.main.StateMainMenu.enter(StateMainMenu.java:210)
   at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:175)
   at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:393)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:317)
   at cr0s.javara.main.Main.main(Main.java:92)


And also:

1  
2  
--try (RandomAccessFile randomAccessFile = new RandomAccessFile(Paths.get(PAL_FOLDER + name).toString().toLowerCase(), "r")) {
++try (RandomAccessFile randomAccessFile = new RandomAccessFile(Paths.get(PAL_FOLDER + name.toLowerCase()).toString(), "r")) {


To fix 'cr0s.javara.resources.ResourceManager' at line 285:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
java.io.FileNotFoundException: /home/danieldean/workspace/javara/assets/pal/temperat.pal (No such file or directory)
   at java.io.RandomAccessFile.open(Native Method)
   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:241)
   at java.io.RandomAccessFile.<init>(RandomAccessFile.java:122)
   at cr0s.javara.resources.ResourceManager.getPaletteByName(ResourceManager.java:285)
   at cr0s.javara.resources.ShpTexture.remapShpFrame(ShpTexture.java:67)
   at cr0s.javara.resources.ShpTexture.getAsImage(ShpTexture.java:58)
   at cr0s.javara.render.Sequence.render(Sequence.java:85)
   at cr0s.javara.ui.cursor.CursorManager.drawCursor(CursorManager.java:132)
   at cr0s.javara.main.StateMainMenu.render(StateMainMenu.java:319)
   at org.newdawn.slick.state.StateBasedGame.render(StateBasedGame.java:199)
   at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:688)
   at org.newdawn.slick.AppGameContainer.gameLoop(AppGameContainer.java:411)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:321)


Hopefully this doesn't break any other OS. After this the my modified clone works.  Grin I'm not sure how I'd 'merge' the changes or whatever if you'd want to do that but let me know if you do.
Offline Cr0s
« Reply #36 - Posted 2014-07-17 01:46:45 »

Hopefully this doesn't break any other OS. After this the my modified clone works.  Grin I'm not sure how I'd 'merge' the changes or whatever if you'd want to do that but let me know if you do.

Thank you for this report, I pushed a fix and hope it will work on Linux now.
Offline danieldean

Senior Devvie


Medals: 5
Projects: 1



« Reply #37 - Posted 2014-07-17 21:51:26 »

It works nicely.  Grin I've been enjoying getting destroyed by the AI...  Tongue
Offline danieldean

Senior Devvie


Medals: 5
Projects: 1



« Reply #38 - Posted 2014-07-25 21:04:40 »

Hi

I've been playing this some more, still not been able to beat the AI though. One thing I found annoying was that I couldn't tell what was what in the sidebar so I added some tool-tips, I notice you have that as an enhancement. Maybe you want to take a look and see if it's what you're after:

Tool-tips

I've added a singleton for the tool-tip, a method to sidebar page to get a button given its coordinates and a bit to your update logic. I couldn't workout if your start page has descriptions for the buttons so couldn't make the tool-tips work for that. If it's okay I'll fork, spread the changes over a few commits and tidy it then create a pull request?

I've not used Slick2D before but I think I may have to try it next, seems a good next step.  Cheesy
Offline Cr0s
« Reply #39 - Posted 2014-07-25 22:41:55 »

I've added a singleton for the tool-tip, a method to sidebar page to get a button given its coordinates and a bit to your update logic. I couldn't workout if your start page has descriptions for the buttons so couldn't make the tool-tips work for that. If it's okay I'll fork, spread the changes over a few commits and tidy it then create a pull request?

Thanks for it, but I already has implemented tooltips tonight. :3


If you wish to help, you may look on another issues.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cero
« Reply #40 - Posted 2014-07-25 23:05:48 »

One thing that came up when I played it was the controls actually: in the actual PC game you would select and execute command with the left mouse button.
You chose to do it like starcraft with right mouse button. That alone would be ok but using the menu designed for PSX was kinda confusing: left mouse this, right mouse button that, how do I get out and in ?

There should be a back arrow and stuff... in short it wasnt that easy to use

Offline danieldean

Senior Devvie


Medals: 5
Projects: 1



« Reply #41 - Posted 2014-07-26 09:56:11 »

Ah nicely done.  Tongue

I want to help as I think it's a big project to get done and polished by yourself and I want to play it but I'm quite limited with what I can do at the moment. If you raise issues I think I can help with I'll have a go but I think your other ones are beyond me at the moment, It took a fair while to find out where bit and pieces were.

Out of interest what's the issue with Slick2D's A*, it seems to work fairly well?

I kind of agree with Cero about the buttons to use on the sidebar. I quite often click the wrong ones. I find the left click to open a page and select an item fine, and then the right click to close a page but then when you have a building selected  it right click to open a page. I can't really think of a better way to do it though.
Offline Cr0s
« Reply #42 - Posted 2014-07-26 13:50:24 »

Out of interest what's the issue with Slick2D's A*, it seems to work fairly well?
It works too well for me. Grin
A* is being slow for big number of units and frequent path searching. Also it causes freezes when trying to find path into blocked area. I think we need another pathfinding algorithm which may be less precise but fast. And also I think it could be bi-directional to be able to determine freezing situation described above.
Offline Cr0s
« Reply #43 - Posted 2014-09-27 00:01:23 »

Bump!
Offline BurntPizza

« JGO Bitwise Duke »


Medals: 289
Exp: 5 years



« Reply #44 - Posted 2014-09-27 00:04:01 »

If you're still on the case of path finding, might take a look at jump point search. If you have an 8-way unweighted grid (looks like it), it's often cited as an order of magnitude faster than A*.
Pages: 1 [2]
  ignore  |  Print  
 
 

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (30 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (50 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (57 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!