Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (581)
Games in Android Showcase (162)
games submitted by our members
Games in WIP (632)
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 ... 22
1  Discussions / Miscellaneous Topics / Re: About Python Class and methods on: 2015-04-24 23:57:37
http://www.tutorialspoint.com/python/python_classes_objects.htm

self is called this in java, where it is normally an implicit argument, but is explicit in method declarations in python.

http://stackoverflow.com/questions/419163/what-does-if-name-main-do

if __name__ == '__main__': is querying the interpreter if this file is being run as the main program.
Basically a public static void main in java, but more of a question than a statement.

Hm, i see.
And well, why is "self" required? it doesnt make sense to me '-'
2  Discussions / Miscellaneous Topics / About Python Class and methods on: 2015-04-24 20:55:40
Hi forum! i didnt know where to post in this forum, so well.. i posted here.

Can anyone help me with a few questions on python?
Im studying with a book, but the book doesnt explain a few things.. Since im a java programmer, im obviously trying to see the differences between the two languages and i know python can be procedural language too... Anyway, can anyone help me with this simple code?


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  
class Application():

    #THis is the constructor?
    #Why it receives self?
    def __init__(self):
        print "__init__"

    #Why it receives self?
    def printText(self, text):
        print text


class Example():
    def run(self):
        print "Hello, world!"





a = Application()
#Why i dont need to pass, 'a" as a first parameter
a.printText("Hi World")


# i Dont get this :
if __name__ == '
__main__':
    Example().run()
3  Game Development / Newbie & Debugging Questions / Re: Making a Graph on a Cell of a Libgdx Table on: 2015-04-12 04:37:12
Fixed.

So what i want is to :
Instead of having that sun, once i click a button, i want to generate a graphic.
And since this graphic can be huge... i want to be able to move the graphic and zoom on it, WITHOUT CHANGING THE TABLE's CELL SIZE!
4  Game Development / Newbie & Debugging Questions / Making a Graph on a Cell of a Libgdx Table on: 2015-04-12 02:43:17
I want to make a graphic package to generate graphics with x[] and y[] arrays.

I want the graphic to be inside the planet figure , FOR EXAMPLE.

And so the user should suppose to move the graphic around and zoom in and zoom out.






Problem's :

A) You dont have a camera inside a table cell

B) You cant move  the sprite


Small Example :

This should work once the graphic ( isFocused() == on )

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  
 

        if (Gdx.input.isKeyPressed(Input.Keys.A)) {
            orthographicCamera.zoom = orthographicCamera.zoom + 0.01f;
        }

        if (Gdx.input.isKeyPressed(Input.Keys.D)) {
            orthographicCamera.zoom = orthographicCamera.zoom - 0.01f;
        }

        if (Gdx.input.isKeyPressed(Input.Keys.S)) {
            orthographicCamera.zoom = 1;
        }

        if (Gdx.input.isKeyPressed(Input.Keys.UP)) {
            orthographicCamera.position.y = orthographicCamera.position.y + 0.1f;
        }

        if (Gdx.input.isKeyPressed(Input.Keys.DOWN)) {
            orthographicCamera.position.y = orthographicCamera.position.y - 0.1f;
        }

        if (Gdx.input.isKeyPressed(Input.Keys.RIGHT)) {
            orthographicCamera.position.x = orthographicCamera.position.x + 0.1f;
        }

        if (Gdx.input.isKeyPressed(Input.Keys.LEFT)) {
            orthographicCamera.position.x = orthographicCamera.position.x - 0.1f;
        }
5  Discussions / Miscellaneous Topics / Re: What Anti-Virus are you using? on: 2015-04-07 21:36:43
 I use kaspersky total security on windows.
Nothing on Fedora.
6  Game Development / Newbie & Debugging Questions / Re: [SOLVED]Play Audio from Byte Array without distortion on: 2015-03-23 14:19:59
Thanks for the replies.
I did a bit different

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  
package br.lopes.audioann;

import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.LineUnavailableException;
import javax.sound.sampled.UnsupportedAudioFileException;

/**
 *
 * @author AndreLopes
 */

public class Main {

    public static void main(String args[]) {

        try {
            byte[] sample = test();

        } catch (IOException | UnsupportedAudioFileException | LineUnavailableException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }

    }

    public static byte[] test() throws IOException, UnsupportedAudioFileException, LineUnavailableException {

        File myFile = new File("A:/Code/MeusProjetosJava/AudioAnn/src/resources/cat10.wav");

        AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(myFile);
        DataInputStream dis = new DataInputStream(audioInputStream);

        AudioFormat format = audioInputStream.getFormat();

        byte[] sample = new byte[(int) (audioInputStream.getFrameLength() * format.getFrameSize())];

        System.out.println("Sample.length = " + sample.length);
        System.out.println("FrameLength :" + audioInputStream.getFrameLength());
        System.out.println("Frame Size :" + format.getFrameSize());
        System.out.println("SampleSizeInBits :" + format.getSampleSizeInBits());
        System.out.println("Frame Rate : " + format.getFrameRate());
        System.out.println("Sample Rate :" + format.getSampleRate());
        System.out.println("Encoding :" + format.getEncoding());
        System.out.println("Channels : " + format.getChannels());

        dis.readFully(sample);
        dis.close();

        try {
            test2(sample, format, audioInputStream.getFrameLength());
        } catch (InterruptedException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }

        return sample;

    }

    public static void test2(byte[] sample, AudioFormat format, long lengthSampleFrames) throws UnsupportedAudioFileException, IOException, LineUnavailableException, InterruptedException {
        DataInputStream dis = new DataInputStream(new ByteArrayInputStream(sample));
        AudioInputStream audioInputStream = new AudioInputStream(dis, format, lengthSampleFrames);

        Clip clip = AudioSystem.getClip();
        clip.open(audioInputStream);
        clip.start();
        while (!clip.isRunning()) {
            Thread.sleep(10);
        }
        while (clip.isRunning()) {
            Thread.sleep(10);
        }

    }
   
   
 

}
7  Game Development / Newbie & Debugging Questions / [SOLVED]Play Audio from Byte Array without distortion on: 2015-03-14 21:30:36
Hello forum , i have a problem. I must get audio from a file, print the sample and play the audio from the sample using the byte array.

I researched and arrived at this "solution" :
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  
 public static void test() throws IOException, UnsupportedAudioFileException, LineUnavailableException {

        File myFile = new File("A:/Code/MeusProjetosJava/AudioAnn/src/resources/cat10.wav");

        AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(myFile);
        DataInputStream dis = new DataInputStream(audioInputStream);

        AudioFormat format = audioInputStream.getFormat();

        byte[] sample = new byte[(int) (audioInputStream.getFrameLength() * format.getFrameSize())];

        System.out.println("Sample.length = " + sample.length);
        System.out.println("FrameLength :" + audioInputStream.getFrameLength());
        System.out.println("Frame Size :" + format.getFrameSize());
        System.out.println("SampleSizeInBits :" + format.getSampleSizeInBits());
        System.out.println("Frame Rate : " + format.getFrameRate());
        System.out.println("Sample Rate :" + format.getSampleRate());
        System.out.println("Encoding :" + format.getEncoding());
        System.out.println("Channels : " + format.getChannels());

        dis.readFully(sample);
        dis.close();

       
        //WRONG WAY TO DO IT USING SUN.*

       
        // Create the AudioData object from the byte array
        AudioData audioData = new AudioData(sample);
        // Create an AudioDataStream to play back
        AudioDataStream audioStream = new AudioDataStream(audioData);
        // Play the sound
        AudioPlayer.player.start(audioStream);

    }



The audio plays but with heavy distortion. Also i used the sun package,which i know i shouldnt.
So my question is, how do i play that byte array now?

Also, am i loading the byte array correctly? I dont want to lose quality because of the code.

8  Discussions / General Discussions / Re: Schemes to teach the masses to code on: 2015-02-02 16:41:37
I didnt meant to be non-polite, sometimes its hard to find the correct words in a foreign language.

But FYI , there are already schools ( high schools ) that allow the student to pick a certain professional area and go study it too.
For example, informatic, art,etc

So i think this is already happening in some countries.
9  Discussions / General Discussions / Re: Anyone with knowledge on Cygwin? (+Shogun) on: 2015-02-02 13:29:59
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  
120  
121  
122  
123  
124  
125  
126  
127  
128  
129  
130  
131  
132  
133  
134  
135  
136  
137  
138  
139  
140  
141  
142  
143  
144  
145  
146  
147  
148  
149  
150  
151  
152  
153  
154  
155  
156  
157  
158  
159  
160  
161  
162  
163  
[ 73%] Building C object src/shogun/CMakeFiles/libshogun.dir/lib/external/dSFMT/                                   dSFMT.c.o
[ 73%] Building C object src/shogun/CMakeFiles/libshogun.dir/lib/external/PMurHa                                   sh.c.o
[ 73%] Building C object src/shogun/CMakeFiles/libshogun.dir/lib/external/SFMT/S                                   FMT.c.o
[ 73%] Built target libshogun
Scanning dependencies of target shogun
Linking CXX shared library cygshogun-17.dll
[ 73%] Built target shogun
Scanning dependencies of target java_modular_src
make[2]: Dependência circular src/interfaces/java_modular/swig_typemaps.i <- src                                   /interfaces/java_modular/swig_typemaps.i abandonada.
[ 73%] copying SWIG files
[ 73%] Built target java_modular_src
make[2]: Dependência circular src/interfaces/java_modular/swig_typemaps.i <- src                                   /interfaces/java_modular/swig_typemaps.i abandonada.
[ 73%] Swig source
/cygdrive/d/shogun-4.0.0/src/shogun/mathematics/Math.h:1401: Warning 314: 'byte'                                    is a java keyword, renaming to '_byte'
/cygdrive/d/shogun-4.0.0/src/shogun/mathematics/linalg/ratapprox/opfunc/Rational                                   Approximation.h:63: Warning 401: Nothing known about base class 'COperatorFuncti                                   on< float64_t >'. Ignored.
/cygdrive/d/shogun-4.0.0/src/shogun/mathematics/linalg/ratapprox/opfunc/Rational                                   Approximation.h:63: Warning 401: Maybe you forgot to instantiate 'COperatorFunct                                   ion< float64_t >' using %template.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGSparseMatrix.h:94: Warning 503: Can't                                    wrap 'operator *' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGSparseMatrix.h:94: Warning 503: Can'
t                                    wrap 'operator *' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGSparseMatrix.h:94: Warning 503: Can't                                    wrap 'operator *' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGSparseMatrix.h:94: Warning 503: Can'
t                                    wrap 'operator *' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGSparseMatrix.h:94: Warning 503: Can't                                    wrap 'operator *' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGSparseMatrix.h:94: Warning 503: Can'
t                                    wrap 'operator *' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGSparseMatrix.h:94: Warning 503: Can't                                    wrap 'operator *' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGSparseMatrix.h:94: Warning 503: Can'
t                                    wrap 'operator *' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGSparseMatrix.h:94: Warning 503: Can't                                    wrap 'operator *' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGSparseMatrix.h:94: Warning 503: Can'
t                                    wrap 'operator *' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:116: Warning 503: Can't wrap                                    'operator *=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:123: Warning 503: Can'
t wrap                                    'operator +=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:130: Warning 503: Can't wrap                                    'operator -=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:116: Warning 503: Can'
t wrap                                    'operator *=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:123: Warning 503: Can't wrap                                    'operator +=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:130: Warning 503: Can'
t wrap                                    'operator -=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:116: Warning 503: Can't wrap                                    'operator *=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:123: Warning 503: Can'
t wrap                                    'operator +=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:130: Warning 503: Can't wrap                                    'operator -=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:116: Warning 503: Can'
t wrap                                    'operator *=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:123: Warning 503: Can't wrap                                    'operator +=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:130: Warning 503: Can'
t wrap                                    'operator -=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:116: Warning 503: Can't wrap                                    'operator *=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:123: Warning 503: Can'
t wrap                                    'operator +=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:130: Warning 503: Can't wrap                                    'operator -=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:116: Warning 503: Can'
t wrap                                    'operator *=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:123: Warning 503: Can't wrap                                    'operator +=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:130: Warning 503: Can'
t wrap                                    'operator -=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:116: Warning 503: Can't wrap                                    'operator *=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:123: Warning 503: Can'
t wrap                                    'operator +=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:130: Warning 503: Can't wrap                                    'operator -=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:116: Warning 503: Can'
t wrap                                    'operator *=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:123: Warning 503: Can't wrap                                    'operator +=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:130: Warning 503: Can'
t wrap                                    'operator -=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:116: Warning 503: Can't wrap                                    'operator *=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:123: Warning 503: Can'
t wrap                                    'operator +=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/SGNDArray.h:130: Warning 503: Can't wrap                                    'operator -=' unless renamed to a valid identifier.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< char >::element(int32_t,int32_t,int32_t) ignor                                   ed,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< char >::element(int32_t,int32_t,int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< char >::element(int32_t,int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< char >::element(int32_t,int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< char >::element(int32_t,int32_t,int32_t) const                                    ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< char >::element(int32_t,int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< char >::element(int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< char >::element(int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< char >::element(int32_t,int32_t) const ignored                                   ,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< char >::element(int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint8_t >::element(int32_t,int32_t,int32_t) ig                                   nored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< uint8_t >::element(int32_t,int32_t,int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint8_t >::element(int32_t,int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< uint8_t >::element(int32_t,int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint8_t >::element(int32_t,int32_t,int32_t) co                                   nst ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< uint8_t >::element(int32_t,int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint8_t >::element(int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< uint8_t >::element(int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint8_t >::element(int32_t,int32_t) const igno                                   red,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< uint8_t >::element(int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint16_t >::element(int32_t,int32_t,int32_t) i                                   gnored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< uint16_t >::element(int32_t,int32_t,int32_t) const instead                                   .
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint16_t >::element(int32_t,int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< uint16_t >::element(int32_t,int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint16_t >::element(int32_t,int32_t,int32_t) c                                   onst ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< uint16_t >::element(int32_t,int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint16_t >::element(int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< uint16_t >::element(int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint16_t >::element(int32_t,int32_t) const ign                                   ored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< uint16_t >::element(int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< int32_t >::element(int32_t,int32_t,int32_t) ig                                   nored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< int32_t >::element(int32_t,int32_t,int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< int32_t >::element(int32_t,int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< int32_t >::element(int32_t,int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< int32_t >::element(int32_t,int32_t,int32_t) co                                   nst ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< int32_t >::element(int32_t,int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< int32_t >::element(int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< int32_t >::element(int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< int32_t >::element(int32_t,int32_t) const igno                                   red,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< int32_t >::element(int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< int64_t >::element(int32_t,int32_t,int32_t) ig                                   nored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< int64_t >::element(int32_t,int32_t,int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< int64_t >::element(int32_t,int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< int64_t >::element(int32_t,int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< int64_t >::element(int32_t,int32_t,int32_t) co                                   nst ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< int64_t >::element(int32_t,int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< int64_t >::element(int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< int64_t >::element(int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< int64_t >::element(int32_t,int32_t) const igno                                   red,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< int64_t >::element(int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint64_t >::element(int32_t,int32_t,int32_t) i                                   gnored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< uint64_t >::element(int32_t,int32_t,int32_t) const instead                                   .
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint64_t >::element(int32_t,int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< uint64_t >::element(int32_t,int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint64_t >::element(int32_t,int32_t,int32_t) c                                   onst ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< uint64_t >::element(int32_t,int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint64_t >::element(int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< uint64_t >::element(int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< uint64_t >::element(int32_t,int32_t) const ign                                   ored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< uint64_t >::element(int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< float32_t >::element(int32_t,int32_t,int32_t)                                    ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< float32_t >::element(int32_t,int32_t,int32_t) const instea                                   d.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< float32_t >::element(int32_t,int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< float32_t >::element(int32_t,int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< float32_t >::element(int32_t,int32_t,int32_t)                                    const ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< float32_t >::element(int32_t,int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< float32_t >::element(int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< float32_t >::element(int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< float32_t >::element(int32_t,int32_t) const ig                                   nored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< float32_t >::element(int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< float64_t >::element(int32_t,int32_t,int32_t)                                    ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< float64_t >::element(int32_t,int32_t,int32_t) const instea                                   d.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< float64_t >::element(int32_t,int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< float64_t >::element(int32_t,int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< float64_t >::element(int32_t,int32_t,int32_t)                                    const ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< float64_t >::element(int32_t,int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: Overloa                                   ded method shogun::CDynamicArray< float64_t >::element(int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: using s                                   hogun::CDynamicArray< float64_t >::element(int32_t) const instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:227: Warning 516: Overloa                                   ded method shogun::CDynamicArray< float64_t >::element(int32_t,int32_t) const ig                                   nored,
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DynamicArray.h:239: Warning 516: using s                                   hogun::CDynamicArray< float64_t >::element(int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/DelimiterTokenizer.h:82: Warning 822: Co                                   variant return types not supported in Java. Proxy method will return shogun::CTo                                   kenizer *.
/cygdrive/d/shogun-4.0.0/src/shogun/lib/NGramTokenizer.h:72: Warning 822: Covari                                   ant return types not supported in Java. Proxy method will return shogun::CTokeni                                   zer *.
/cygdrive/d/shogun-4.0.0/src/shogun/mathematics/Math.h:1050: Warning 516: Overlo                                   aded method shogun::CMath::random(uint32_t,uint32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/mathematics/Math.h:1030: Warning 516: using                                    shogun::CMath::random(uint64_t,uint64_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/mathematics/Math.h:1060: Warning 516: Overlo                                   aded method shogun::CMath::random(int32_t,int32_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/mathematics/Math.h:1040: Warning 516: using                                    shogun::CMath::random(int64_t,int64_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/mathematics/Math.h:1030: Warning 516: Overlo                                   aded method shogun::CMath::random(uint64_t,uint64_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/mathematics/Math.h:1050: Warning 516: using                                    shogun::CMath::random(uint32_t,uint32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/mathematics/Math.h:1040: Warning 516: Overlo                                   aded method shogun::CMath::random(int64_t,int64_t) ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/mathematics/Math.h:1060: Warning 516: using                                    shogun::CMath::random(int32_t,int32_t) instead.
/cygdrive/d/shogun-4.0.0/src/shogun/structure/FactorType.h:62: Warning 516: Over                                   loaded method shogun::CFactorType::get_w() const ignored,
/cygdrive/d/shogun-4.0.0/src/shogun/structure/FactorType.h:59: Warning 516: usin                                   g shogun::CFactorType::get_w() instead.
Scanning dependencies of target java_modular
make[2]: Dependência circular src/interfaces/java_modular/swig_typemaps.i <- src                                   /interfaces/java_modular/swig_typemaps.i abandonada.
[ 73%] Building CXX object src/interfaces/java_modular/CMakeFiles/java_modular.d                                   ir/modshogunJAVA_wrap.cxx.o
[ 73%] Building CXX object src/interfaces/java_modular/CMakeFiles/java_modular.d                                   ir/sg_print_functions.cpp.o
Linking CXX shared module cygmodshogun.dll
Compiling Java files...
javac: directory not found: /cygdrive/d/shogun-4.0.0/src/interfaces/java_modular                                   /shogun_jar
Usage: javac <options> <source files>
use -help for a list of possible options
src/interfaces/java_modular/CMakeFiles/java_modular.dir/build.make:358: recipe f                                   or target '
src/interfaces/java_modular/cygmodshogun.dll' failed
make[2]: *** [src/interfaces/java_modular/cygmodshogun.dll] Error 2
CMakeFiles/Makefile2:80: recipe for target '
src/interfaces/java_modular/CMakeFil                                   es/java_modular.dir/all' failed
make[1]: *** [src/interfaces/java_modular/CMakeFiles/java_modular.dir/all] Error                                    2
Makefile:136: recipe for target '
all' failed
make: *** [all] Error 2

André V Lopes@MasterRevan /cygdrive/d/shogun-4.0.0
$
10  Discussions / General Discussions / Re: Schemes to teach the masses to code on: 2015-02-02 04:07:06
Im not preocuppied with my career, i am with others.

If its just logic and basic basic code, its ok.

But if we are going to teach everyone C++ or programming languages... then its a different subject.

Although i like the idea, like in star wars universe, where everyone knows how to code and fix machines and stuff... we have to realize , things works different on real life.

And also, compare read/write ( basic ) to a complex activity like programming , its not. Period. Its not. ( i will leave at this ).

Also, i just used your "father" as an example.
I bet hes required a lot in his company, but imagine if tommorow we had x10 copies of him.
His employee would hire the copy that requires less payment. ( or a better cost x benefit )

Do you realize that?

~~

I really wanted to everyone to learn to code to so increase humanity intelligence and knowledge but.. We have to realize again this is capitalism.People wont care and will just use it to get more cash.

~~

Why would a lawyer hire programmers to make him a software to manage his stuff  if he can do it by himself?
Maybe lack of time, but the again, he could do it on his free time.Or have friends to help him and so on.

~~
And thats why, for now, i dont fully agree.


~~

"Again, should we stop teaching math to children, so we don't flood the market with no-skill mathematicians?"

The market is filled with people cant make medium/hard math stuff.

So as a guy said earlier.. why force people to learn something if they are not going to use it || forget it in some period of time ?

You cant teach for those who dont want to learn.

~~


11  Game Development / Newbie & Debugging Questions / Re: Would this work? GooglePlay Code on: 2015-02-01 14:34:13
If it doesn't work, then there's indeed something wrong with the code.



What did you do to narrow down the problem, apart from noticing it didn't work and dumping it on JGO.


Weird thing happened.
It worked on my tablet, but in my friends tablet didnt.
And also, GooglePlay Console claims no one unlocked that achivement.
12  Game Development / Newbie & Debugging Questions / Re: Would this work? GooglePlay Code on: 2015-02-01 00:07:27
If it doesn't work, then there's indeed something wrong with the code.



What did you do to narrow down the problem, apart from noticing it didn't work and dumping it on JGO.

I checked if the String was equal.
I re-checked the String Resources.
I changed the signIn Code.

~~
Edit :
I changed the way the thread was called
I made the Health = 10000000000f
and i let it running for 5 minutes and made a debug to allow myself to reduce the health to 10.
It seems to be working on my android device.

I hope it will work now.


By the way :
WTF IS THIS?
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
This is a notification that the minimum content level of your application, Space Escape, with package ID br.lopes.game.android, has been changed to Low Maturity (2) by the Google Play Team after a regular review.

REASON FOR CONTENT LEVEL CHANGE: Violation of the Google Play content rating policy.

These guidelines apply to your app's Play listing, the landing page of your listed developer website and all content in your app, including user generated content, in-app products, and advertisements.

After a regular review, we have determined that your app includes fantasy or graphic violence. The content rating of your app has been changed to reflect this.

Please be advised that additional content rating modifications by the Google Play Team may result in administrative action, up to and including removal of subsequent applications in violation.

All violations are tracked. Serious or repeated violations of any nature will result in the termination of your developer account, and investigation and possible termination of related Google accounts.

We appreciate your contributions towards ensuring an accurate content rating experience for Google Play users.

The Google Play Team


Since when : Destroying asteroids = Violence?

13  Discussions / General Discussions / Re: Schemes to teach the masses to code on: 2015-01-31 22:12:02
Again another point , if you arnet interested in programming , as a lot of people arnet , then trying to give them it as a continuous option will just leave you with a bunch of shoddy coders.

Which will give a bad image to good programmers and flood with no-skill coders.

14  Discussions / General Discussions / Re: Schemes to teach the masses to code on: 2015-01-31 21:58:14
I don't think Kevin is saying that everybody should be a programmer, he is just saying make it available as an option.

Even if its just Code Skill, it will still take out the value of the programmers.

I know he has good intentions but we have to realize it will ruin the life of professionals.
15  Discussions / General Discussions / Re: Schemes to teach the masses to code on: 2015-01-31 21:44:06
Your argument is like :
Alright, as long as it doesnt affect me, its not my problem.

So ok. I think we should make 10 000 KevinWorkman accounts.

And each one of them will post something.


What makes you think your post would be more relevant than the other  9 999 kevins?

If you do get my point.

Or even better.
Tell us your dad job.
So we all copy his job.
When he get unemployed you might change your opinion.
16  Discussions / General Discussions / Re: Schemes to teach the masses to code on: 2015-01-31 21:19:53
So after everyone learn to code and programmers lose their jobs and||or be paid less, what are we going to do?


*My job is not as a programmer.
17  Discussions / General Discussions / Re: Schemes to teach the masses to code on: 2015-01-31 20:45:06
"Trying to get more people of a certain group to learn a certain profession is likely to cause issues"
Agree.
18  Discussions / Miscellaneous Topics / Re: What I did today on: 2015-01-31 20:00:28
The amount of screenshots in this thread is too damn high!
Seriously, learn to resize or just link to the image...

I have a 22' monitor and it looks fine here.


19  Discussions / General Discussions / Re: Schemes to teach the masses to code on: 2015-01-31 19:55:37
If everyone on the world knew how to code... would that be good?
20  Game Development / Newbie & Debugging Questions / Would this work? GooglePlay Code on: 2015-01-31 17:48:42
Hi Guys.
Im having a problem with my achievements.
The 5 minutes and 3 minutes achievements are not working.

Is there anything wrong with this code?

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  
    @Override
    public void sendAchievement(final String achievement) {

        try {
            runOnUiThread(new Runnable() {

                @Override
                public void run() {

                    if (!isSignedIn()) {
                        signIn();
                    }

                    GoogleApiClient apiClient = _gameHelper.getApiClient();

                    if (achievement.equalsIgnoreCase("achievement_destroyed_10_asteroids")) {
                        Games.Achievements.unlock(apiClient, getString(R.string.achievement_destroyed_10_asteroids));
                    } else if (achievement.equalsIgnoreCase("achievement_destroyed_30_asteroids")) {
                        Games.Achievements.unlock(apiClient, getString(R.string.achievement_destroyed_10_asteroids));
                        Games.Achievements.unlock(apiClient, getString(R.string.achievement_destroyed_30_asteroids));
                    } else if (achievement.equalsIgnoreCase("achievement_destroyed_50_asteroids")) {
                        Games.Achievements.unlock(apiClient, getString(R.string.achievement_destroyed_10_asteroids));
                        Games.Achievements.unlock(apiClient, getString(R.string.achievement_destroyed_30_asteroids));
                        Games.Achievements.unlock(apiClient, getString(R.string.achievement_destroyed_50_asteroids));
                    }

                    if (achievement.equalsIgnoreCase("achievement_survive_the_asteroid_field_for_1_minute")) {
                        Games.Achievements.unlock(apiClient, getString(R.string.achievement_survive_the_asteroid_field_for_1_minute));
                    } else if (achievement.equalsIgnoreCase("achievement_survive_the_asteroid_field_for_3_minute")) {
                        Games.Achievements.unlock(apiClient, getString(R.string.achievement_survive_the_asteroid_field_for_1_minute));
                        Games.Achievements.unlock(apiClient, getString(R.string.achievement_survive_the_asteroid_field_for_3_minute));
                    } else if (achievement.equalsIgnoreCase("achievement_survive_the_asteroid_field_for_5_minute")) {
                        Games.Achievements.unlock(apiClient, getString(R.string.achievement_survive_the_asteroid_field_for_5_minute));
                        Games.Achievements.unlock(apiClient, getString(R.string.achievement_survive_the_asteroid_field_for_3_minute));
                        Games.Achievements.unlock(apiClient, getString(R.string.achievement_survive_the_asteroid_field_for_1_minute));

                    }

                }
            });
        } catch (Exception ex) {
            Gdx.app.log("MainActivity",
                    "Failed to unlock Achievement! " + ex.getLocalizedMessage());
            ex.printStackTrace();

        }

    }

    @Override
    public void signIn() {

        try {
            runOnUiThread(new Runnable() {

                @Override
                public void run() {
                    _gameHelper.beginUserInitiatedSignIn();

                }
            });
        } catch (Exception ex) {
            Gdx.app.log("MainActivity",
                    "Log-in Failed  " + ex.getLocalizedMessage());
            ex.printStackTrace();
        }

    }


https://play.google.com/store/apps/details?id=br.lopes.game.android
21  Discussions / General Discussions / Re: Anyone with knowledge on Cygwin? (+Shogun) on: 2015-01-31 15:03:09
Hey Cheesy


1  
2  
3  
-- Found JNI: /opt/jdk/lib
CMake Error at CMakeLists.txt:1065 (MESSAGE):
  JBlas could not be found!


How i build JBlas?
22  Discussions / General Discussions / Re: Anyone with knowledge on Cygwin? (+Shogun) on: 2015-01-30 22:34:46
As you requested on PM  :

1  
2  
3  
4  
5  
6  
André V Lopes@MasterRevan ~
$ which java
/cygdrive/c/ProgramData/Oracle/Java/javapath/java

André V Lopes@MasterRevan ~
$
23  Discussions / General Discussions / Re: Anyone with knowledge on Cygwin? (+Shogun) on: 2015-01-30 18:50:15
Ok, looks like it's still having trouble locating the includes. I have cygwin installing here to try out a few things, but it's taking a while. Let me make another "shot in the dark" suggestion. Modify the CMAKE_CXX_FLAGS line in your CmakeLists.txt file to the following:
1  
SET(CMAKE_CXX_FLAGS "-U__STRICT_ANSI__ -IC:/Program\ Files/Java/jdk1.8.0_25/include ${CMAKE_CXX_FLAGS}")

This should tell the compiler and linker to look in the JDK include directory for the jni and awt header files.

Once cygwin finishes configuring here, I'll have a crack at compiling Shogun if the above change still doesn't resolve the issue for you. Smiley

Error Sad
1  
2  
3  
4  
5  
6  
7  
8  
-- Could NOT find PROTOBUF (missing:  PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
-- NO supported backend(s) for linear algebra libraries found
CMake Error at /usr/share/cmake-2.8.11.2/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-2.8.11.2/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8.11.2/Modules/FindJNI.cmake:266 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:1055 (FIND_PACKAGE)

24  Discussions / General Discussions / Re: Anyone with knowledge on Cygwin? (+Shogun) on: 2015-01-30 18:17:14
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  
André V Lopes@MasterRevan /cygdrive/d/shogun-4.0.0
$ cmake -D_JAVA_HINTS=C:/Program\ Files/Java/jdk1.8.0_25 -DJavaModular=ON

CMake Warning at /usr/share/cmake-2.8.11.2/Modules/Platform/CYGWIN.cmake:15 (message):
  CMake no longer defines WIN32 on Cygwin!

  (1) If you are just trying to build this project, ignore this warning or
  quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
  the CMake cache.  If later configuration or build errors occur then this
  project may have been written under the assumption that Cygwin is WIN32.
  In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

  (2) If you are developing this project, add the line

    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required

  at the top of your top-level CMakeLists.txt file or set the minimum
  required version of CMake to 2.8.4 or higher.  Then teach your project to
  build on Cygwin without WIN32.
Call Stack (most recent call first):
  /usr/share/cmake-2.8.11.2/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
  CMakeLists.txt:7 (project)


-- Using system's malloc
-- Could NOT find GDB (missing:  GDB_COMMAND GDB_VERSION)
-- Could NOT find MOSEK (missing:  MOSEK_DIR MOSEK_INCLUDE_DIR MOSEK_LIBRARY)
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Could NOT find ATLAS (missing:  ATLAS_LIBRARIES ATLAS_INCLUDES)
-- Could NOT find CBLAS (missing:  CBLAS_LIBRARY)
-- Could NOT find GLPK (missing:  GLPK_LIBRARY GLPK_INCLUDE_DIR GLPK_PROPER_VERSION_FOUND)
-- Could NOT find CPLEX (missing:  CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
-- Could NOT find Eigen3 (missing:  EIGEN_INCLUDE_DIR) (Required is at least version "3.1.2")
-- Could NOT find OPENCL (missing:  OPENCL_LIBRARY OPENCL_INCLUDE_DIR)
-- Could NOT find ViennaCL (missing:  VIENNACL_INCLUDE_DIR OPENCL_INCLUDE_DIRS OPENCL_LIBRARIES) (Required is at least version "1.5.0")
-- Could NOT find NLOPT (missing:  NLOPT_LIBRARY NLOPT_INCLUDE_DIR)
-- Could NOT find LPSOLVE (missing:  LPSOLVE_LIBRARIES LPSOLVE_INCLUDE_DIR)
-- Could NOT find ColPack (missing:  COLPACK_LIBRARIES COLPACK_LIBRARY_DIR COLPACK_INCLUDE_DIR)
-- Could NOT find ARPREC (missing:  ARPREC_LIBRARIES ARPREC_INCLUDE_DIR)
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Could NOT find HDF5 (missing:  HDF5_INCLUDE_DIRS)
-- Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR)
-- Could NOT find SNAPPY (missing:  SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)
-- Lzo includes and libraries NOT found.
-- Spinlock support not found
-- Could NOT find PROTOBUF (missing:  PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
-- NO supported backend(s) for linear algebra libraries found
CMake Error at /usr/share/cmake-2.8.11.2/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-2.8.11.2/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8.11.2/Modules/FindJNI.cmake:266 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:1053 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!


JAVA_HOME=C:/Program\ Files/Java/jdk1.8.0_25 cmake -DJavaModular=ON
Also gives the same error Sad
25  Discussions / General Discussions / Re: Anyone with knowledge on Cygwin? (+Shogun) on: 2015-01-30 17:49:46
It appears that it's failing to find the jawt.lib and jvm.lib files. Looking at some postings about the issue, maybe the following will help it find what it needs:

1  
JAVA_HOME=C:/Program Files/Java/jdk1.8.0_25 cmake -DJavaModular=ON

My hunch is that it's searching for the libraries in the jre folder instead of the jdk folder. Setting the environment variable before starting the build process should cause it to look in the correct location. Tracing down compilation errors can feel like going down a rabbit hole at times. Shocked

THe guy in #shogun said this :

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
[15:21] <@besser82> AndreLopes, do you have Java SDK installed?
[15:22] <AndreLopes> yes
[15:22] <AndreLopes> It seems it finds the JDK but not JNI
[15:22] <AndreLopes> CMake Error at /usr/share/cmake-2.8.11.2/Modules/FindPackageHandleStandardArgs.cmake:108 (message):   Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY) Call Stack (most recent call first):   /usr/share/cmake-2.8.11.2/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)   /usr/share/cmake-2.8.11.2/Modules/FindJNI.cmake:266 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)   CMakeLists.txt:1053 (FIND_PACKAGE)
[15:27] == abinashm [cb6ef616@gateway/web/freenode/ip.203.110.246.22] has joined #shogun
[15:28] <@besser82> AndreLopes, no it doesn't find the JDK, because in your prior msg it complains about missing executables…  It finds the JRE, only…
[15:28] <AndreLopes> Oh
[15:28] <AndreLopes> So what should i do
[15:30] <abinashm> Hey guys, should i install OpenCL for intel or Nvidia?
[15:31] <@besser82> AndreLopes, add `-D_JAVA_HINTS=$REPLACE_WITH_FULL_PATH_TO_JDK_DIR` to your CMake-switches  ;)



Idk What he meant.

Anyway i tried what you said and got this :

1  
2  
3  
André V Lopes@MasterRevan /cygdrive/d/shogun-4.0.0
$ JAVA_HOME=C:/Program Files/Java/jdk1.8.0_25 cmake -DJavaModular=ON
-bash: Files/Java/jdk1.8.0_25: No such file or directory


26  Discussions / General Discussions / Re: Anyone with knowledge on Cygwin? (+Shogun) on: 2015-01-30 16:59:31
I Tried This :

http://pastebin.com/TCDbda5q


1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
-- Spinlock support not found
-- Could NOT find PROTOBUF (missing:  PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
-- NO supported backend(s) for linear algebra libraries found
CMake Error at /usr/share/cmake-2.8.11.2/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-2.8.11.2/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8.11.2/Modules/FindJNI.cmake:266 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:1053 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
27  Discussions / General Discussions / Re: Anyone with knowledge on Cygwin? (+Shogun) on: 2015-01-30 16:51:28
New Error :

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  
André V Lopes@MasterRevan /cygdrive/d/shogun-4.0.0
$ cmake -DJAVAMODULAR=on
CMake Warning at /usr/share/cmake-2.8.11.2/Modules/Platform/CYGWIN.cmake:15 (mes                                        sage):
  CMake no longer defines WIN32 on Cygwin!

  (1) If you are just trying to build this project, ignore this warning or
  quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or in
  the CMake cache.  If later configuration or build errors occur then this
  project may have been written under the assumption that Cygwin is WIN32.
  In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead.

  (2) If you are developing this project, add the line

    set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required

  at the top of your top-level CMakeLists.txt file or set the minimum
  required version of CMake to 2.8.4 or higher.  Then teach your project to
  build on Cygwin without WIN32.
Call Stack (most recent call first):
  /usr/share/cmake-2.8.11.2/Modules/CMakeSystemSpecificInformation.cmake:36 (inc                                        lude)
  CMakeLists.txt:7 (project)


-- Found CCache: /usr/bin/ccache.exe
-- Using system's malloc
-- Could NOT find GDB (missing:  GDB_COMMAND GDB_VERSION)
-- Could NOT find MOSEK (missing:  MOSEK_DIR MOSEK_INCLUDE_DIR MOSEK_LIBRARY)
-- Could NOT find PkgConfig (missing:  PKG_CONFIG_EXECUTABLE)
-- A library with BLAS API found.
-- A library with LAPACK API found.
-- Could NOT find ATLAS (missing:  ATLAS_LIBRARIES ATLAS_INCLUDES)
-- Could NOT find CBLAS (missing:  CBLAS_LIBRARY)
-- Could NOT find GLPK (missing:  GLPK_LIBRARY GLPK_INCLUDE_DIR GLPK_PROPER_VERS                                        ION_FOUND)
-- Could NOT find CPLEX (missing:  CPLEX_LIBRARY CPLEX_INCLUDE_DIR)
-- Could NOT find Eigen3 (missing:  EIGEN_INCLUDE_DIR) (Required is at least ver                                        sion "3.1.2")
-- Could NOT find OPENCL (missing:  OPENCL_LIBRARY OPENCL_INCLUDE_DIR)
-- Could NOT find ViennaCL (missing:  VIENNACL_INCLUDE_DIR OPENCL_INCLUDE_DIRS O                                        PENCL_LIBRARIES) (Required is at least version "1.5.0")
-- Could NOT find NLOPT (missing:  NLOPT_LIBRARY NLOPT_INCLUDE_DIR)
-- Could NOT find LPSOLVE (missing:  LPSOLVE_LIBRARIES LPSOLVE_INCLUDE_DIR)
-- Could NOT find ColPack (missing:  COLPACK_LIBRARIES COLPACK_LIBRARY_DIR COLPA                                        CK_INCLUDE_DIR)
-- Could NOT find ARPREC (missing:  ARPREC_LIBRARIES ARPREC_INCLUDE_DIR)
-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
-- Could NOT find HDF5 (missing:  HDF5_INCLUDE_DIRS)
-- Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR)
-- Could NOT find SNAPPY (missing:  SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)
-- Lzo includes and libraries NOT found.
-- Spinlock support not found
-- Could NOT find PROTOBUF (missing:  PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
-- NO supported backend(s) for linear algebra libraries found
-- Found Java: C:/Program Files/Java/jdk1.8.0_25/jre/bin/java.exe (found version                                         "1.8.0.25")
CMake Error at /usr/share/cmake-2.8.11.2/Modules/FindPackageHandleStandardArgs.c                                        make:108 (message):
  Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-2.8.11.2/Modules/FindPackageHandleStandardArgs.cmake:315 (_FP                                        HSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8.11.2/Modules/FindJNI.cmake:249 (FIND_PACKAGE_HANDLE_STAND                                        ARD_ARGS)
  CMakeLists.txt:1053 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!

André V Lopes@MasterRevan /cygdrive/d/shogun-4.0.0
$
28  Discussions / General Discussions / Re: Anyone with knowledge on Cygwin? (+Shogun) on: 2015-01-30 16:50:03
Looking at line 1052 in the file that you posted last, it would appear that cmake is referencing the FindJava.cmake file in the shogun-x.x.x/cmake folder. Editing the "set(_JAVA_PATHS ... )" section of the file should allow you to add the path where you have your copy of Java installed into its search locations. Once that's done, give the compilation process another shot.

http://pastebin.com/hKFNzs6S

Im not sure where to change...

The path is this one
C:\Program Files\Java\jdk1.8.0_31



Im trying this :

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
# Hard-coded guesses should still go in PATHS. This ensures that the user
# environment can always override hard guesses.
set(_JAVA_PATHS
  /usr/lib/java/bin
  /usr/share/java/bin
  /usr/local/java/bin
  /usr/local/java/share/bin
  /usr/java/j2sdk1.4.2_04
  /usr/lib/j2sdk1.4-sun/bin
  /usr/java/j2sdk1.4.2_09/bin
  /usr/lib/j2sdk1.5-sun/bin
  /opt/sun-jdk-1.5.0.04/bin
  /cygdrive/c/Progra~1/Java/jdk1.8.0_31/bin
   C:/Program Files/Java/jdk1.8.0_31/bin
  )
29  Discussions / General Discussions / Re: Anyone with knowledge on Cygwin? (+Shogun) on: 2015-01-30 16:04:05
I did cmake -DJavaModular=on

Could NOT find Java (missing: Java_JAR_EXECUTABLE Java_JAVAC_EXECUTABLE
  Java_JAVAH_EXECUTABLE Java_JAVADOC_EXECUTABLE) (found version "1.8.0.25")

30  Discussions / General Discussions / Re: Anyone with knowledge on Cygwin? (+Shogun) on: 2015-01-30 15:46:54
I think it worked. Although im not being able to generate the java interface.
I did this :
OPTION(JavaModular "Java Modular" ON)

then i did the instructions. But theres no java interface there.
I think its not looking for the JDK in the right place.

http://pastebin.com/7gsYShmZ
Pages: [1] 2 3 ... 22
 
MrMapcom (11 views)
2015-05-23 20:26:16

MrMapcom (14 views)
2015-05-23 20:23:34

Waterwolf (29 views)
2015-05-20 15:01:45

chrislo27 (35 views)
2015-05-20 03:42:21

BurntPizza (70 views)
2015-05-10 15:53:18

FrozenShade (55 views)
2015-05-07 09:11:21

TheLopais (217 views)
2015-05-06 13:36:48

TheLopais (202 views)
2015-05-06 13:35:14

TheLopais (206 views)
2015-05-06 13:33:39

TheLopais (226 views)
2015-05-06 13:32:48
List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

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
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!