Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1] 2 3
1  Discussions / Miscellaneous Topics / Re: Crappy Graphics Drivers for Linux? on: 2013-04-28 23:52:04
Like I said, ATI stopped supporting older drivers for Linux, and as distributions evolve; more and more of them require recent drivers. So if you have an older card, your kinda boned. It may help us help you if we knew what card you have...?

As far as switching JREs, and staying true to openJDK: I absolutely love what openJDK is trying to do and I appreciate how far it has come in a relatively short time frame, but if we are talking about a way to 'instantly' solve an issue (no matter which party is to blame) and get something that is currently broken working again, which is what I thought we were talking/asked about, then I see nothing wrong with my solution.
2  Discussions / Miscellaneous Topics / Re: Crappy Graphics Drivers for Linux? on: 2013-04-25 04:31:48
This is my exact situation as well and I was able to solve it, not without headache and diligence, by installing Oracle's JRE, and the proper ATI Catalyst driver. The later is the more difficult of the two, as older drivers are no longer supported by ATI. Run 'lspci' to find out what graphics card you have



then find an apropriate driver from here

3  Game Development / Performance Tuning / Re: Speeding up Minecraft? on: 2013-04-07 16:54:42
If you are looking to get your performance back on linux playing minecraft, then you have to drop OpenJDK. If you are on Ubuntu or another Debian based distro here is a tutorial to install Oracle's JDK, which is far superior to OpenJDK. If you are using Fedora or another RPM based distro, go to java.com and simply download and install the .rpm

Switching from the default to oracle's increased my performance greatly, better than what I was getting on Windows actually.
4  Game Development / Networking & Multiplayer / Re: Does anyone know how to host your multiplayer game online? on: 2013-03-15 03:32:11
http://lmgtfy.com/?q=port+forwarding
5  Discussions / General Discussions / Re: Weirdest Practical Programming Language on: 2013-03-11 04:28:27
Whitespace... WTF   Emo
6  Game Development / Game Mechanics / Re: Making Rectangle fly in circles on: 2013-03-10 15:30:38
This should be in the Newbie & Debugging board.

As for your question, you should look into trigonometry; specifically cos, and sin equations.
7  Discussions / Miscellaneous Topics / Re: The Opus audio codec on: 2013-03-10 15:24:02
Now that the thread is officially derailed... Google Play Music anyone?
8  Java Game APIs & Engines / Tools Discussion / Re: Abundant Music: An online procedural music generator on: 2013-02-24 18:54:35
I didn't read the whole thread  Emo but from what I have read... this is amazing! The possible applications of something like this are limitless! Are there any future plans to make this into a library for games? If so, do you have anything worked up you would like tested? I would be very happy to try out some 'beta' code!
9  Games Center / Showcase / Re: Fleet Game on: 2013-02-18 01:09:41
I just downloaded the Linux version and ran it, here is the exception and stack trace:

Exception in thread "main" java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(Unknown Source)
Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738)
   at java.lang.Runtime.loadLibrary0(Runtime.java:823)
   at java.lang.System.loadLibrary(System.java:1028)
   at org.lwjgl.Sys$1.run(Sys.java:73)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
   at org.lwjgl.Sys.loadLibrary(Sys.java:95)
   at org.lwjgl.Sys.<clinit>(Sys.java:112)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
   at FourExample.main(Unknown Source)
   ... 5 more

so the libraries are not linked correctly on the build path.
10  Games Center / Showcase / Re: Fleet Game on: 2013-02-18 00:09:35
semantics, semantics.
11  Games Center / Showcase / Re: Fleet Game on: 2013-02-17 19:12:48
I am interested in playing this, but can't because I run a Linux box  Emo Could you package a Linux version, and I am sure all the Mac users here would enjoy a Mac version.
12  Games Center / 4K Game Competition - 2013 / Re: tiny_world on: 2013-02-17 19:06:50
I lost many an hour to this game! Great job. My only suggestion is to add the cost of buildings, maybe displayed on hover? Perhaps make different buildings cost different resources. If you have room. Otherwise this is an awesome game!
13  Game Development / Newbie & Debugging Questions / Re: Passing events back to Game on: 2013-02-16 15:55:38
I normally will create a ScreenManager for this kinda stuff. Your game would have the ScreenManager, and all your screens would be in an list or map of some kind within ScreenManager. All your screens would have a reference to ScreenManager and when you need to switch it may look something like this:
1  
ScreenManager.switchScreen("ScreenID");


the switch method in the manager might look like this:
1  
2  
3  
4  
5  
6  
public void switchScreen(String id)
{
currentScreen.dispose();
currentScreen = //find screen with id
currentScreen.enter();
}
14  Game Development / Newbie & Debugging Questions / Re: Changing scenes in a game (ex; from map to battle) on: 2013-02-14 00:55:28
No one else better known has jumped in and said it, so I will!  Emo

We program in an OOP Language (JAVA) if you don't understand what OOP means, look it up (then do some serious thinking about your choice in hobby / career) We have these great things called Classes, and they allow up to group similar data and methods into a logical structure. The answer for hard to navigate, bloated, and confusing code is almost always going to be; "Lets make another class!" /rant

For your particular scenario, I would recommend making a abstract class / interface (depends on mood this time Smiley) which is a state. I am assuming you have an update method and a render method somewhere in your big, giant, monolithic, dresser drawer of a main class. So instead of all your logic and all your rendering for the whole entire game being stuffed into these two (I hope they are separate) methods, simply have these call the current states update and render methods. When you transition from Battle to FinishBattle, simply swap out the current state.

I could take another five minuets adding code examples, but honestly I believe in your intelligence, and would hate to insult you by giving you what you can already figure out. If this is not the case simply ask Smiley

BTW: Laugh with my words, and don't take offense. I am trying to help in the cheekiest way I know how.
15  Discussions / Business and Project Discussions / Online Space Game on: 2013-02-10 19:31:48
For a while now I have thought about making an online empire game set in space. The main influences are online games such as:

Cyber Nations


Cyber Nations is a text based online nation simulator, fun for what it is but lacks any real graphical aspect. The main feature of cyber nations is the alliance system which adds social interactions into the game.

Neptune's Pride


Neptune's Pride is a game about building massive fleets and conquering the galaxy! It has minimalistic research and no built in alliance system which forces players to find other ways to communicate effectively and coordinate efforts. Games can take a few days to a few months to finish depending on the players. And the combat system is simple which makes it easy to play. All in all this game is very enjoyable to play!


My idea is to sort of combine the two game concepts in some fashion. To have a persistent empire like in Cyber Nations, but also have a graphical combat system like Neptune's Pride. Perhaps more detailed planet / system management, resource gathering and the like.

If this interests you at all, and you would like to work on it reply and let me know. I want to use libGDX's html wrapper for this project, and the code and other resources will be in a BitBucket repository, most likely a public repo. Right now it is just me and my artist buddy working on this.
16  Game Development / Newbie & Debugging Questions / Re: Screen Tearing on: 2013-02-04 06:28:57
I just checked out the java docs for BufferedCapabilities, and there is no vsync option there, the only way to get vsync in Java2D that I know of is to use a GraphicsDevice and a GraphicsEnvironment, then set fullscreen and it is enabled by default (I think)

Aside from that the first thing you should do is cast your Graphics g into a Graphics2D object

1  
Graphics2D g = (Graphics2D) bufferStategy.getDrawGraphics();
17  Games Center / WIP games, tools & toy projects / Re: Pixel Zombies on: 2013-02-04 06:10:44
I love how the zombies are just little faces! haha!
18  Game Development / Newbie & Debugging Questions / Re: Null Pointer Exception when enemy tries to shoot "NEED HELP" on: 2013-02-04 06:06:33
At least you followed Pro tip #64, haha!

You need to look at the stack trace for the exception and find out where the problem occurs, add print statements if needed to discover why / what went wrong.
19  Game Development / Newbie & Debugging Questions / Re: Screen Tearing on: 2013-02-04 06:01:53
What graphics lib are you using? I am assuming it is Java2D, yes? If you are, then take a look at BufferCapabilities (off the top of my head) not sure if there is an option there or not, I haven't used Java2D in a long time. Wink

Other than than, with my quick scan of your code, I didn't find any logic errors.
20  Game Development / Game Mechanics / Re: Particle Engine Physics on: 2013-02-04 05:50:28
Pro tip #64: If you want help with code that isn't working how you expect it to work, then showing that code is very helpful.

This does two things for us, the ones helping you. First it shows us what you have already, what you still need to implement, and exposes any logic errors you may have. Second, and in my opinion the most important, showing us your progress proves that you are actually working on solving the issue on your own, and are not just posting in hopes of free copy-paste code.

Pro tip #128: Avoid at all cost the Double-Post-of-Doom  Wink


On a personal aside; expecting a lot of answers to a vague question over the course of 3 hours is a little unreasonable, given that this community if comprised of individuals from all over the World.

Edit: I don't sugar coat anything Smiley
21  Game Development / Newbie & Debugging Questions / Re: Best free Java code repository? on: 2013-02-02 00:38:52
I use BitBucket for all my repos, as my artist and I are really the only ones who work on stuff together, which makes the 5 member limit non-consequential.

BTW ra4king, thats awesome! Love it when people represent every day stuff as code.
22  Discussions / Miscellaneous Topics / Re: [RIVEN WHAT DID YOU DO XD] *answered* on: 2013-01-29 06:48:28
Summary of Gabriel this thread:


So tempted to Appreciate just for the lolz... and Gabriel's reaction. (sorry g)
23  Discussions / General Discussions / Re: Super Linux Expert Help Required! on: 2013-01-26 21:44:12
It seems that all you need is the correct version of java (64 bit version) what Linux distribution are you using? Ubuntu? Mint? Fedora? If your on an RPM based distribution like Fedora, then Oracle provides a 64 bit version as an .rpm. If you are an a DEB system like Ubuntu or Mint, then you have to do it the long way and extract and set up the tar.gz yourself. Which isn't really that hard, but may be confusing for n00bs. Here is a good walk through if your on DEB.

https://sites.google.com/site/easylinuxtipsproject/java
24  Game Development / Newbie & Debugging Questions / Re: Character Creation on: 2013-01-24 00:57:58
paper doll it, it should be fine.

...this is where Spine2D would be perfect...
25  Games Center / 4K Game Competition - 2013 / Re: [WIP] 4096 A.D. on: 2013-01-09 15:40:25
It must be just you. I can see all of its pixelly goodness! Really cool game. Though, if you can fit it within the size requirement, you should add keyboard input to move the player. Using the mouse to move is really annoying and anti-intuitive. But I love the particle effects and the destructible planet! Very pretty.
26  Game Development / Newbie & Debugging Questions / Re: File loads in eclipse but not in a runnable .jar [unsolved] on: 2013-01-09 05:52:26
This might not help at all, as you said the images loaded fine, just not the midis; but...

Did you add your res folder as a class folder? (java build path, libraries, add class folder)

Did you tell eclipse to export your res folder to the jar? (java build path, order and export, check res folder)

Finally did you tell eclipse to bundle libraries with your jar when it generated it? If not users would need your jar file, plus a resources folder in the same directory.

Like I said, might not help (or you already did these) just didn't want something simple to be overlooked on accident.
27  Discussions / Miscellaneous Topics / Re: Linux and Dev? on: 2012-12-09 05:08:02
it is easier to install the oracle JVM with RPM based distros (Fedora, Red Hat, OpenSUSE), but here is a great tutorial for installing any java version on a deb system (Debian, Ubuntu, Mint)

https://sites.google.com/site/easylinuxtipsproject/java
28  Discussions / Miscellaneous Topics / Re: Linux and Dev? on: 2012-12-08 16:13:49
I have been using various Linux Distros as my main system for years now. When I saw this post, and your mention of the AMD graphics card I feel I must give some advice.

AMD and Linux go together like balloons and tacks... I have an AMD HD Mobility 4200 discrete graphics card in my laptop (primary computer) and finding stable drivers for it has been a nightmare! ATI/AMD have dropped support for this card, as it has been fully optometry (their words) and only release patches for there old driver. This older driver only officially supports Linux Kernel version 3.4.x.x and Xorg 6.9 (I hope you know what both of those are) So to use their driver you have to keep your system honorably out of date. (Current Kernel version is 3.6, and Xorg is 11) or use a rebuilt driver for your kernel version. Which is kinda unstable. I will say from experience that, for AMD cards, Ubuntu and Linux Mint are the only major distros that the AMD driver will work with. Fedora and OpenSUSE are completely out.

I would check what card you have and look around to make sure it works on the Linux distro your thinking of installing. I wish you more luck than I had.

I currently use Linux Mint 13 Maya, and I have the AMD 12.6 Legacy Driver working. I don't know if I am daring enough to upgrade to Mint 14 yet...
29  Game Development / Newbie & Debugging Questions / Re: making button on: 2012-12-08 03:53:24

I don't care about making a button, I just want to know how you made that automatic Google search link!!! That is killer!

Here is a tutorial on makeing those fancy links:  http://bit.ly/vXtvlP
30  Discussions / General Discussions / Re: Plan out or Dive In? on: 2012-10-24 01:55:25
I just got a whiteboard for my 'office' and I don't know what I ever did without it! My next game is all drawn out in diagrams and trees... helps me stay focused and on task, scope creep has always been an issue with me!
Pages: [1] 2 3
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (126 views)
2013-05-17 21:29:12

alaslipknot (134 views)
2013-05-16 21:24:48

gouessej (164 views)
2013-05-16 00:53:38

gouessej (157 views)
2013-05-16 00:17:58

theagentd (169 views)
2013-05-15 15:01:13

theagentd (154 views)
2013-05-15 15:00:54

StreetDoggy (198 views)
2013-05-14 15:56:26

kutucuk (222 views)
2013-05-12 17:10:36

kutucuk (221 views)
2013-05-12 15:36:09

UnluckyDevil (225 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.203 seconds with 20 queries.