Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (499)
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
1  Discussions / General Discussions / Mac error? on: 2014-02-11 15:01:28
Hello, I dont know where to place this topic so please if its wrong someone move it to the righ place...

I tried to run my Game Launcher on mac and for some reason it crashed... The crash error:

1  
2  
3  
4  
5  
10/02/14 11:21:09,412 ReportCrash[1474]: Saved crash report for CalendarAgent[1475] version 7.0 (174) to /Users/Paulo/Library/Logs/DiagnosticReports/CalendarAgent_2014-02-10-112109_MacBook-Pro-de-Paulo.crash
10/02/14 11:21:09,414 ReportCrash[1474]: Removing excessive log: file:///Users/Paulo/Library/Logs/DiagnosticReports/CalendarAgent_2014-02-10-111736_MacBook-Pro-de-Paulo.crash
10/02/14 11:21:09,415 ReportCrash[1474]: Failed to write crash history to file:///Users/Paulo/Library/Containers/com.apple.CalendarAgent/Data/Library/Application%20Support/CrashReporter/CalendarAgent_59AEB35F-8F4F-5A9D-B26E-AAA0F463F75A.plist.
10/02/14 11:21:19,891 com.apple.launchd.peruser.501[162]: (com.apple.CalendarAgent[1478]) Job appears to have crashed: Segmentation fault: 11
10/02/14 11:21:19,891 com.apple.launchd.peruser.501[162]: (com.apple.CalendarAgent) Throttling respawn: Will start in 10 seconds


And like this one I have +2000 lines that are the same... After this I turned off the mac and when I tried to turn it back on I had to restore from a backup because the OS X didn't want to start... does someone know why this is happening?
2  Games Center / Featured Games / Re: State of Fortune on: 2014-02-06 20:58:08
Also... I've done something that I havent for a long time.... I FOUND A BUG! Cheesy

On Login:


On Teleport:
3  Games Center / Featured Games / Re: State of Fortune on: 2014-02-06 20:51:15
I'm still waiting for some new stuff Cheesy
And people online too Cheesy
4  Games Center / Featured Games / Re: State of Fortune on: 2013-12-24 20:26:10
There is one thing left on the update... a texture change on the trees to make them christmas trees during  day 25 ...
5  Games Center / Featured Games / Re: State of Fortune on: 2013-12-24 19:53:31
First of all.... Thank you.. this is like a christmas present from u Cheesy.
Second its working just fine Cheesy

Keep up the good work!

Happy Holidays for everyone!
Joaogl.
6  Games Center / Featured Games / Re: State of Fortune on: 2013-12-10 18:36:18
Mike...That is.. Beautiful... Hope see that soon on my pc! Cheesy also... why there are no players recently? not even you?
7  Games Center / Featured Games / Re: State of Fortune - New video 11Sep on: 2013-09-15 16:46:14
The new version as some problems... its crashing... I'm playing and then Java crashes...
8  Games Center / Featured Games / Re: State of Fortune - New video 11Sep on: 2013-09-14 14:53:57
And I found a Money Bug...(I can make infinit money basicly) so Mike when u join... just join the server so I can report u the bug... Dont want to post here to avoid conflits
9  Games Center / Featured Games / Re: State of Fortune - New video 11Sep on: 2013-09-14 14:21:30
Yup its looking great for me Cheesy nice work!
There are some bugs but can be easily fixed (I think).
And I dont know if u want to but u could add something like in case someone buys two terrains side by side it should be able to get them together..
10  Game Development / Newbie & Debugging Questions / Problem with ProGuard and LWJGL on: 2013-09-14 13:34:30
Hi, I'm using ProGuard to obfuscte my code but when I try to Process it throws a bunch of errors saying:

1  
Warning: org.lwjgl.opengl.DrawableGLES: can't find referenced class org.lwjgl.opengles.PixelFormat


and at the end says:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
Note: there were 11 unkept descriptor classes in kept class members.
      You should consider explicitly keeping the mentioned classes
      (using '-keep').
      (http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 2 unresolved dynamic references to classes or interfaces.
      You should check if you need to specify additional program jars.
      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Note: there were 1 class casts of dynamically created class instances.
      You might consider explicitly keeping the mentioned classes and/or
      their implementations (using '-keep').
      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclasscast)
Note: there were 11 accesses to class members by means of introspection.
      You should consider explicitly keeping the mentioned class members
      (using '-keep' or '-keepclassmembers').
      (http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclassmember)
Warning: there were 136 unresolved references to classes or interfaces.
         You may need to add missing library jars or update their versions.
         If your code works fine without the missing classes, you can suppress
         the warnings with '-dontwarn' options.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Please correct the above warnings first.


How can I fix this?

my ProGuard settings:

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  
164  
165  
166  
167  
168  
169  
170  
171  
172  
173  
174  
175  
176  
177  
178  
179  
180  
181  
182  
183  
184  
185  
186  
187  
188  
189  
190  
191  
192  
193  
194  
-injars Input\Game.jar
-outjars Output\Game.jar

-libraryjars 'C:\Program Files\Java\jre7\lib\rt.jar'
-libraryjars 'F:\Programacao\MyLibrary\Games\lwjgl.jar'

-target 1.6
-forceprocessing
-allowaccessmodification
-keeppackagenames paulscode.**,com.jcraft.**


-keep,allowshrinking class paulscode.**

-keep,allowshrinking class com.jcraft.**

# Keep - Applications. Keep all application classes, along with their 'main'
# methods.
-keepclasseswithmembers public class * {
    public static void main(java.lang.String[]);
}

# Also keep - Enumerations. Keep the special static methods that are required in
# enumeration classes.
-keepclassmembers enum  * {
    public static **[] values();
    public static ** valueOf(java.lang.String);
}

# Also keep - Database drivers. Keep all implementations of java.sql.Driver.
-keep class * extends java.sql.Driver

# Also keep - Swing UI L&F. Keep all extensions of javax.swing.plaf.ComponentUI,
# along with the special 'createUI' method.
-keep class * extends javax.swing.plaf.ComponentUI {
    public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent);
}

# Keep names - Native method names. Keep all native class/method names.
-keepclasseswithmembers,allowshrinking class * {
    native <methods>;
}

# Remove - System method calls. Remove all invocations of System
# methods without side effects whose return values are not used.
-assumenosideeffects public class java.lang.System {
    public static long currentTimeMillis();
    static java.lang.Class getCallerClass();
    public static int identityHashCode(java.lang.Object);
    public static java.lang.SecurityManager getSecurityManager();
    public static java.util.Properties getProperties();
    public static java.lang.String getProperty(java.lang.String);
    public static java.lang.String getenv(java.lang.String);
    public static java.lang.String mapLibraryName(java.lang.String);
    public static java.lang.String getProperty(java.lang.String,java.lang.String);
}

# Remove - Math method calls. Remove all invocations of Math
# methods without side effects whose return values are not used.
-assumenosideeffects public class java.lang.Math {
    public static double sin(double);
    public static double cos(double);
    public static double tan(double);
    public static double asin(double);
    public static double acos(double);
    public static double atan(double);
    public static double toRadians(double);
    public static double toDegrees(double);
    public static double exp(double);
    public static double log(double);
    public static double log10(double);
    public static double sqrt(double);
    public static double cbrt(double);
    public static double IEEEremainder(double,double);
    public static double ceil(double);
    public static double floor(double);
    public static double rint(double);
    public static double atan2(double,double);
    public static double pow(double,double);
    public static int round(float);
    public static long round(double);
    public static double random();
    public static int abs(int);
    public static long abs(long);
    public static float abs(float);
    public static double abs(double);
    public static int max(int,int);
    public static long max(long,long);
    public static float max(float,float);
    public static double max(double,double);
    public static int min(int,int);
    public static long min(long,long);
    public static float min(float,float);
    public static double min(double,double);
    public static double ulp(double);
    public static float ulp(float);
    public static double signum(double);
    public static float signum(float);
    public static double sinh(double);
    public static double cosh(double);
    public static double tanh(double);
    public static double hypot(double,double);
    public static double expm1(double);
    public static double log1p(double);
}

# Remove - String method calls. Remove all invocations of String
# methods without side effects whose return values are not used.
-assumenosideeffects public class java.lang.String {
    public static java.lang.String copyValueOf(char[]);
    public static java.lang.String copyValueOf(char[],int,int);
    public static java.lang.String valueOf(boolean);
    public static java.lang.String valueOf(char);
    public static java.lang.String valueOf(char[]);
    public static java.lang.String valueOf(char[],int,int);
    public static java.lang.String valueOf(double);
    public static java.lang.String valueOf(float);
    public static java.lang.String valueOf(int);
    public static java.lang.String valueOf(java.lang.Object);
    public static java.lang.String valueOf(long);
    public boolean contentEquals(java.lang.StringBuffer);
    public boolean endsWith(java.lang.String);
    public boolean equalsIgnoreCase(java.lang.String);
    public boolean equals(java.lang.Object);
    public boolean matches(java.lang.String);
    public boolean regionMatches(boolean,int,java.lang.String,int,int);
    public boolean regionMatches(int,java.lang.String,int,int);
    public boolean startsWith(java.lang.String);
    public boolean startsWith(java.lang.String,int);
    public byte[] getBytes();
    public byte[] getBytes(java.lang.String);
    public char charAt(int);
    public char[] toCharArray();
    public int compareToIgnoreCase(java.lang.String);
    public int compareTo(java.lang.Object);
    public int compareTo(java.lang.String);
    public int hashCode();
    public int indexOf(int);
    public int indexOf(int,int);
    public int indexOf(java.lang.String);
    public int indexOf(java.lang.String,int);
    public int lastIndexOf(int);
    public int lastIndexOf(int,int);
    public int lastIndexOf(java.lang.String);
    public int lastIndexOf(java.lang.String,int);
    public int length();
    public java.lang.CharSequence subSequence(int,int);
    public java.lang.String concat(java.lang.String);
    public java.lang.String replaceAll(java.lang.String,java.lang.String);
    public java.lang.String replace(char,char);
    public java.lang.String replaceFirst(java.lang.String,java.lang.String);
    public java.lang.String[] split(java.lang.String);
    public java.lang.String[] split(java.lang.String,int);
    public java.lang.String substring(int);
    public java.lang.String substring(int,int);
    public java.lang.String toLowerCase();
    public java.lang.String toLowerCase(java.util.Locale);
    public java.lang.String toString();
    public java.lang.String toUpperCase();
    public java.lang.String toUpperCase(java.util.Locale);
    public java.lang.String trim();
}

# Remove - StringBuffer method calls. Remove all invocations of StringBuffer
# methods without side effects whose return values are not used.
-assumenosideeffects public class java.lang.StringBuffer {
    public java.lang.String toString();
    public char charAt(int);
    public int capacity();
    public int codePointAt(int);
    public int codePointBefore(int);
    public int indexOf(java.lang.String,int);
    public int lastIndexOf(java.lang.String);
    public int lastIndexOf(java.lang.String,int);
    public int length();
    public java.lang.String substring(int);
    public java.lang.String substring(int,int);
}

# Remove - StringBuilder method calls. Remove all invocations of StringBuilder
# methods without side effects whose return values are not used.
-assumenosideeffects public class java.lang.StringBuilder {
    public java.lang.String toString();
    public char charAt(int);
    public int capacity();
    public int codePointAt(int);
    public int codePointBefore(int);
    public int indexOf(java.lang.String,int);
    public int lastIndexOf(java.lang.String);
    public int lastIndexOf(java.lang.String,int);
    public int length();
    public java.lang.String substring(int);
    public java.lang.String substring(int,int);
}



Please Help me...
11  Games Center / Featured Games / Re: State of Fortune on: 2013-09-07 00:55:43
Where's te city centers? and with that came up another idea... minimap....

When do you plan to relead the version with farming and the shop?
12  Game Development / Game Play & Game Design / How to render a map... on: 2013-08-31 17:16:19
Hello,

I'm trying to think of how to load a map in to the game using LWJGL.
My goal is to some how make a 3D scene and load it into the game thats build using LWJGL.
The game is not create yet because I'm still trying to make this thing work, now my question is how to make this work...
I'm thinking in OBJ file and mtl to hold the scene but I'm not quit sure if thats the best way...
Any suggestions?
13  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Setup natives manually on: 2013-08-11 01:28:46
System.setProperty("org.lwjgl.librarypath", GameValues.dir + "\\bin\\Natives");

This is working now, for exemple I have (GameValues.dir + "\\bin") here the lwjgl and lwjgl_util jars how can I add them in code too?
14  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Setup natives manually on: 2013-08-10 23:34:09
THANKS!!!!

is that easy? I couldn't find it any where... thanks a lot.
15  Java Game APIs & Engines / Engines, Libraries and Tools / Setup natives manually on: 2013-08-10 04:17:42
Hello,

I've a game that's using lwjgl, I used JarSplice after compile to setup the natives but when I close the game it takes like 30 sec. untill it closes...

On eclipse it doesnt...
how can I setup the natives manually(in the code?)
16  Game Development / Game Play & Game Design / Re: Drawing to image. on: 2013-07-23 15:25:35
Thank you very much it worked just fine thanks Cheesy
17  Game Development / Game Play & Game Design / Drawing to image. on: 2013-07-23 13:01:27
Hello,

My question is how can I in java create a image and then save it?
Like pixel 100 = 0xFF665522 and then save it to png?


Thanks joaogl
18  Java Game APIs & Engines / OpenGL Development / LWJGL. on: 2013-07-19 11:36:11
Hello,

I need to setup the natives for the LWJGL in the code.. How can I do that?
I'm not going to use the LWJGL but the Paulscode SoundSystem needs it so I have to setup the native stuff...
19  Java Game APIs & Engines / Java Sound & OpenAL / PaulsCode SoundSystem on: 2013-07-18 00:06:34
Hello,

I'm having a problem, I just copied the example two of PaulsCode SoundSystem tutorial and its giving me this error:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
Error in class 'CodecJOgg'
    url null in method 'initialize'
Error in class 'SourceLWJGL OpenAL'
    Audio Format null in method 'play'
Error in class 'CodecJOgg'
    url null in method 'initialize'
Error in class 'SourceLWJGL OpenAL'
    Audio Format null in method 'play'

Error in class 'LibraryLWJGLOpenAL'
Unable to open file 'sounds\explosion.wav' in method 'loadSound'
Error in class 'LibraryLWJGLOpenAL'
Sound buffer was not created for sounds\explosion.wav
Error in class 'LibraryLWJGLOpenAL'
Source 'Source_-776755289_-2094588583' not found in method 'play'


My Code:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
   public static void mytest() {
      try {
         SoundSystemConfig.addLibrary(LibraryLWJGLOpenAL.class);
         SoundSystemConfig.addLibrary(LibraryJavaSound.class);
         SoundSystemConfig.setCodec("wav", CodecWav.class);
         SoundSystemConfig.setCodec("ogg", CodecJOgg.class);
      } catch (SoundSystemException e) {
         System.err.println("error linking with the pluggins");
      }
      SoundSystem mySoundSystem = new SoundSystem();
      mySoundSystem.backgroundMusic("Cool Music", GameValues.dir + "sounds\\beats.ogg", true);
      mySoundSystem.setMasterVolume(0.5f);
      sleep(2000);
      for (int x = 0; x < 15; x++) {
         if (x % 2 == 0) mySoundSystem.quickPlay(false, GameValues.dir + "sounds\\explosion.wav", false, 20, 0, 0, SoundSystemConfig.ATTENUATION_ROLLOFF, SoundSystemConfig.getDefaultRolloff());
         else mySoundSystem.quickPlay(false, GameValues.dir + "sounds\\explosion.wav", false, -20, 0, 0, SoundSystemConfig.ATTENUATION_ROLLOFF, SoundSystemConfig.getDefaultRolloff());
         sleep(125);
      }
      sleep(10000);
      mySoundSystem.cleanup();
   }



Why is this?

I have:
lwjgl_util
lwjgl
SoundSystem
SoundSystemJPCT
SoundSystemUtils
imports...

Do I need them all? do I need more?

What I want is a 2D Sound Engine for a 2D Game...

Please help?

PS: Can it be something on the buildpath?
20  Game Development / Newbie & Debugging Questions / What is wrong??? on: 2013-04-25 23:48:47
Hello,

I have this code:
System.out.println(((((25 * 1) / 100)) + 1) * 64);

it's returning 64 but it should return 80...

Why?


Tks, Joaogl
21  Games Center / Featured Games / Re: State of Fortune on: 2013-03-26 21:34:04
Are u stupid right? If u are making a project and want to show to the community is to get the feed back... His running a full time server and his paying for it his working hard on this and u are screwing it! stop and think... would u like to have a person like u on your work?!
22  Games Center / Featured Games / Re: State of Fortune on: 2013-03-26 21:24:15
Griefer attack again..... the same stupid... Pauler...

Ban him! if u dont have that in the game yet just use the server firewall to block any connections from his IP and add somehting very easy.. if the playername is pauler dont download the game or dont let him connect to the game....
23  Game Development / Newbie & Debugging Questions / Re: How to start with LWJGL physics. on: 2013-03-26 16:26:21
Thanks... Cheesy

I just sad 3D because I'm making a 3D game.. I've already made the basic movement stuff and the obj import with textures now to move on I need the physics so u guys recommended to start with 2D I will Cheesy

One more time thanks
24  Game Development / Newbie & Debugging Questions / How to start with LWJGL physics. on: 2013-03-26 15:38:41
Hello,

I'm thinking in start learning physics... I started to search stuff and I found lots of engines but I dont know that.... I want to make my own physics....

So if someone is able to tell me some guide lines to start learning... btw using 3D lwjgl...

Thanks.
25  Game Development / Newbie & Debugging Questions / Re: Files and resorces... on: 2013-03-26 15:27:28
Actually.. its working... thanks for the help guys!
26  Game Development / Newbie & Debugging Questions / Re: Files and resorces... on: 2013-03-26 15:26:11
I've already used or tryed to use the url and it works untill the method its called error: NullPointerException
27  Game Development / Newbie & Debugging Questions / Re: Files and resorces... on: 2013-03-26 15:22:41
using this method tells me "The constructor FileReader(InputStream) is undefined".

28  Game Development / Newbie & Debugging Questions / Files and resorces... on: 2013-03-26 15:04:48
Hello,

1  
2  
3  
4  
String objFilename = "/test.obj";
objFile = new File(objFilename);
fileReader = new FileReader(objFile);
bufferedReader = new BufferedReader(fileReader);


So with this is working.. but the File is in the res folder So e think I have to use something like getClass().getResource(objFilename);

but When I do that tells me "The constructor File(URL) is undefined" ... so how can I set this to work?
29  Java Game APIs & Engines / Engines, Libraries and Tools / Re: lwjgl textures on: 2013-03-25 16:06:30
Thanks I will.
30  Java Game APIs & Engines / Engines, Libraries and Tools / lwjgl textures on: 2013-03-25 14:48:52
Hello,

I'm trying to start a 3D game just for fun... And I've made a 3D model and load into Java using the LWJGL but I don't know how to set textures to this...
I've made a few testing projects where I added textures and I know how to do it but because this is a 3D model(btw made in Blender) how can I apply textures?

U can see my code here: https://github.com/joaogl/3DGameTextur/


Thanks Joao.
Pages: [1] 2
 

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

The first screenshot will be displayed as a thumbnail.

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

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

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

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

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

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

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

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

trollwarrior1 (187 views)
2014-04-04 12:06:45

CJLetsGame (194 views)
2014-04-01 02:16:10
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!