Java-Gaming.org    
Featured games (78)
games approved by the League of Dukes
Games in Showcase (429)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (468)
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 ... 29
1  Game Development / Newbie & Debugging Questions / Re: Unable to initialize JAWT on: 2014-04-23 17:23:41
I've experienced this error with LWJGL 2.8 but upgrading to 2.9, this error vanished. Not sure about JogAmp really..
2  Discussions / Miscellaneous Topics / Re: Windows 8 - Odd HDD behaviour on: 2014-04-23 17:18:10
Hibernation sleep image? It takes almost 4 GB..
3  Games Center / WIP games, tools & toy projects / Re: Escaping Vox on: 2014-04-23 15:37:26
You are following tutorials of Benny right?? This looks like his Game Engine series.
4  Games Center / Contests / Re: Ludum Dare 29 on: 2014-04-22 16:01:23
I'm not going to participate, my mid term examinations are coming from Monday  Sad
5  Game Development / Newbie & Debugging Questions / Re: texture loading issue on: 2014-04-21 17:46:56
Textures doesn't get bound to VBOs, they are completely different (unless you use a Texture Buffer Object), they bind to the global state.
6  Game Development / Newbie & Debugging Questions / Re: texture loading issue on: 2014-04-21 17:32:10
Okay, let's trace down what you did. First you've loaded the one texture of spritesheet 1. In the method
loadTexture()
the first loaded texture is bound. Then you've loaded the one texture of spritesheet 2. Again
loadTexture()
method gets called and this time, the second loaded texture is bound. Since you are having the texture of second spritesheet is bound, even if you draw using spritesheet 1, the second spritesheet gets shown.

Thats why you need to bind the texture you are trying to use to make sure that it is the texture that needs to be drawn. Hope this helps.
7  Game Development / Newbie & Debugging Questions / Re: texture loading issue on: 2014-04-21 17:24:10
You are actually loading only one texture.

1  
2  
load = new Texture();
tex = load.loadTexture(location);

because load is just an empty texture object with no valid id and others. Then you are using
load
to load the texture. The method loads the texture into a new texture object. So you have only one texture available.
8  Game Development / Newbie & Debugging Questions / Re: texture loading issue on: 2014-04-21 16:57:16
You've to bind the other texture before using it. Add this method to the
Texture
class and call it before drawing with that texture.

1  
2  
3  
4  
public void bind()
{
    glBindTexture(GL_TEXTURE_2D, id);
}

Hope this helps.
9  Java Game APIs & Engines / Java Sound & OpenAL / Re: How to install TinySound (in Eclipse) on: 2014-04-21 15:45:07
You need to learn how to use libraries with Java. Since you are using Eclipse, you can right click on the Project, select Build Path > Add External Archives and select the JAR file you have downloaded.



Hope this helps.
10  Game Development / Newbie & Debugging Questions / Re: Game loop and rendering basics on: 2014-04-21 15:32:14
The main problem you are having is your Game-Loop. It is very inconsistent because
Thread.sleep()
is not guaranteed across platform. Here are two tutorials that helped me very much learn game-loops.

Game-Loops!!! - By Eli Delventhal
deWiTTERS Game Loop - By Keon Witters

These are the two articles that helped me jump into programming actual games.
11  Game Development / Newbie & Debugging Questions / Re: [LWJGL/Slick] How do you distribute a game without JarSplice? on: 2014-04-21 15:08:59
I also use a
NativesLoader
for my engine I made for a local competition.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
101  
102  
103  
104  
105  
106  
107  
108  
109  
110  
111  
112  
113  
114  
115  
116  
117  
118  
119  
package com.shc.silenceengine.utils;

import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import com.shc.silenceengine.exceptions.SilenceException;

public class NativeUtils
{
    // Temporary folder to store natives
   private static File tmp;
   
    public static void prepareLWJGLNatives()
    {
        try
        {
            tmp = File.createTempFile("Silence", "Engine");

            tmp.delete();
            tmp.mkdir();

            tmp.deleteOnExit();

            if (SilenceUtils.isWindows())
            {
                if (SilenceUtils.is64Bit())
                {
                    extractNative("lwjgl64.dll", tmp);
                    extractNative("OpenAL64.dll", tmp);
                    extractNative("jinput-dx8_64.dll", tmp);
                    extractNative("jinput-raw_64.dll", tmp);
                }
                else
                {
                    extractNative("lwjgl.dll", tmp);
                    extractNative("OpenAL32.dll", tmp);
                    extractNative("jinput-dx8.dll", tmp);
                    extractNative("jinput-raw.dll", tmp);
                }
            }
            else if (SilenceUtils.isLinux())
            {
                if (SilenceUtils.is64Bit())
                {
                    extractNative("liblwjgl64.so", tmp);
                    extractNative("libopenal64.so", tmp);
                    extractNative("libjinput-linux64.so", tmp);
                }
                else
                {
                    extractNative("liblwjgl.so", tmp);
                    extractNative("libopenal.so", tmp);
                    extractNative("libjinput-linux.so", tmp);
                }
            }
            else if (SilenceUtils.isMac())
            {
                extractNative("liblwjgl.jnilib", tmp);
                extractNative("openal.dylib", tmp);
                extractNative("libjinput-osx.jnilib", tmp);
            }
            else
            {
                throw new SilenceException("The Operating System you are using is not Supported by SilenceEngine.");
            }

            System.setProperty("org.lwjgl.librarypath", tmp.getAbsolutePath());
        }
        catch (Exception e)
        {
            throw new SilenceException(e.getMessage());
        }
    }

    private static void extractNative(String path, File dir)
    {
        InputStream is = NativeUtils.class.getClassLoader().getResourceAsStream("natives/" + path);

        String[] parts = ("natives/" + path).replaceAll("\\\\", "/").split("/");
        String filename = (parts.length > 1) ? parts[parts.length - 1] : null;

        try
        {
            File tmp = new File(dir, filename);
            tmp.deleteOnExit();
            FileOutputStream os = new FileOutputStream(tmp);

            byte[] buffer = new byte[1024];
            int readBytes;

            try
            {
                while ((readBytes = is.read(buffer)) != -1)
                {
                    os.write(buffer, 0, readBytes);
                }
            }
            finally
            {
                os.close();
                is.close();
            }
        }
        catch (Exception e)
        {
            throw new SilenceException(e.getMessage());
        }
    }
   
    public static void deleteNatives()
    {
        for (File f : tmp.listFiles())
        {
            f.delete();
        }
       
        tmp.delete();
    }
}

I just keep the natives in the
natives/
folder in the JAR.
12  Game Development / Newbie & Debugging Questions / Re: What kind of version control system should I use? on: 2014-04-20 08:57:46
I prefer GitHub. With it's applications for Windows & Mac, I can easily create commits and sync them online. Some terms to get by

CommitA commit is a new version. This specifies what files are changed and the changes for the files, including which files are removed.
PushA push is a command we issue to upload the commit to the repository. This command is called "Sync" in the GUI version.

There are so many others and they will be easy to learn and remember (If you want to learn console git, try using TryGit.
13  Games Center / WIP games, tools & toy projects / Re: GameLauncher v0.1 on: 2014-04-19 19:54:44
Version 0.1 is released. The archive contains the source code of the demo, the javadoc of the library and some instructions.

Where's the link???
14  Games Center / WIP games, tools & toy projects / Re: GameLauncher v0.1 on: 2014-04-19 16:07:44
Support for ftp sites??
15  Discussions / Miscellaneous Topics / Re: What are Anti-Virus Developers Protecting us From? on: 2014-04-18 18:24:04
Are you sure you doesn't get any viruses? I've used my USB in my friend's laptop and I've inserted into my pc. AVG detected 368 trojans ending in 'Foldername.exe' and every folder in the drive became a link to that exe file.
16  Games Center / WIP games, tools & toy projects / Re: Android : Jumpy Hoppy on: 2014-04-18 17:50:17
This is a repost right?? I've seen it before on this forum. Nice game BTW.
17  Game Development / Newbie & Debugging Questions / Re: LWJGL Invalid Enum Exception on: 2014-04-18 17:25:22
I've got this error once. Its because of outdated drivers or incapable hardware. What GPU does it use and what driver version?
18  Game Development / Newbie & Debugging Questions / Re: LWJGL Invalid Enum Exception on: 2014-04-18 16:28:26
It's interesting. Will you please post the complete error? Did that output any error codes?
19  Game Development / Newbie & Debugging Questions / Re: Faster transformation with VBOS on: 2014-04-14 18:09:42
Modern OpenGL doesn't take care of the matrices for you. You have to manage your matrices on your own and send them to the shaders and multiply them there.
20  Discussions / Miscellaneous Topics / Re: What are Anti-Virus Developers Protecting us From? on: 2014-04-14 14:19:23
I also think that we don't need any antivirus, but am scared not to use one. So I just use free AVG on Windows 8.1
21  Discussions / General Discussions / Re: What hosting do you use for your websites? on: 2014-04-14 08:38:57
Thanks guys for your recommendations. I've subscribed to my college hosting and got 30 GB space on my college servers.
22  Discussions / General Discussions / Re: What hosting do you use for your websites? on: 2014-04-13 04:14:02
Github Pages!

I think it doesn't offer PHP. Is it?
23  Discussions / General Discussions / Re: What hosting do you use for your websites? on: 2014-04-12 18:02:35
Just found GoogieHost. It's features (in free plan) are

  • 20 GB Storage
  • 200 GB Bandwidth
  • Unlimited MySQL Databases
  • Unlimited Email Accounts
  • FTP support
  • PHP 5.4 support
  • 99% uptime

This is a really good option, and moreover, its an Indian company located in Lucknow. Maybe I'll change my hosting provider tomorrow.
24  Discussions / General Discussions / Re: What hosting do you use for your websites? on: 2014-04-12 17:08:36
Hostinger.in has been added to my list. @Kefwar suggested it to me using messages.

Quote
Hello SHC,

This is the webhost I use: Hostinger.nl.
The company is Dutch but you can set the language of control panel to English, otherwise I can help you translate/find the language settings Tongue.

It is has only 2GB storage in free plan, but has some cheap plans with unlimited storage.
Why I like it: reliable, free and no ads.

Regards,
Kefwar
25  Discussions / General Discussions / What hosting do you use for your websites? on: 2014-04-12 16:53:37
Hello all, today I've purchased a new domain GoHarsha.com on GoDaddy and am looking for a cheap (affordable) hosting provider that doesn't put any ads on my website. Currently I'm using 000webhost.com's hosting, but it is showing some ads (once a day) on my site and though there is an option to disable it in it's cPanel, it warn's me that the account maybe deleted and I'm out on quest for a hosting company.

My requirements are:

  • PHP 5.2.4 & MySQL 5.1 (For WordPress)
  • Atleast 2500 MB space (Had some large files I'd like to host on my own site)
  • An e-mail account
  • Allows subdomains for my site
  • Supports FTP

And most importantly, I prefer cheap ones (doesn't mean that I don't wanna pay, but prefer). So please post what hosting you are using it and also why you like it (will ease me in taking a decision) and also it's merits and drawbacks.

Thanks.
26  Discussions / General Discussions / Re: Some Good GLSL Links on: 2014-04-08 03:11:45
Shouldn't this be in the Resources thread?
27  Discussions / General Discussions / Re: Need C programs to practice for debugging competition on: 2014-04-06 12:40:55
C preprocessor directives act even before the compulsion starts. So the result will be 42 instead of 54 which is expected.
28  Discussions / General Discussions / Re: Need C programs to practice for debugging competition on: 2014-04-06 03:18:40
It's declared as
ll
but used as
l1
.
29  Discussions / General Discussions / Re: Need C programs to practice for debugging competition on: 2014-04-05 18:11:19
Also should there be
uint8_t
instead of
uint8 t
? It took me 5 minutes to notice that. He used the same
goto
statement twice without braces on the if statement.
30  Discussions / General Discussions / Re: Need C programs to practice for debugging competition on: 2014-04-05 10:31:25
@tom_mai78101

The problem is there is no line break after the
#include
.
Pages: [1] 2 3 ... 29
 

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

The first screenshot will be displayed as a thumbnail.

theagentd (6 views)
2014-04-24 23:00:44

xsi3rr4x (83 views)
2014-04-15 18:08:23

BurntPizza (75 views)
2014-04-15 03:46:01

UprightPath (86 views)
2014-04-14 17:39:50

UprightPath (69 views)
2014-04-14 17:35:47

Porlus (86 views)
2014-04-14 15:48:38

tom_mai78101 (109 views)
2014-04-10 04:04:31

BurntPizza (169 views)
2014-04-08 23:06:04

tom_mai78101 (265 views)
2014-04-05 13:34:39

trollwarrior1 (217 views)
2014-04-04 12:06:45
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!