Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 11 12 [13]
  Print  
  State of Profit  (Read 16987 times)
0 Members and 2 Guests are viewing this topic.
Offline Bonbon-Chan

Sr. Member
**

Posts: 417
Medals: 14



« Reply #360 on: 2011-11-14 08:13:30 »

Just tested on the intel card : it was all black with red trees... I don't know if it was intended with the night/day.

I will take a look again later.

Later  Wink :
1  
2  
3  
4  
5  
6  
7  
High quality: true
OpenGL renderer: Intel Eaglelake
OpenGL vendor: Intel
OpenGL version: 2.0.0 - Build 7.15.10.4977
VBO extension: true
3 - ERROR: 0:32: '/' :  wrong operand types  no operation '/' exists that takes a left-hand operand of type 'float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 0:34: '/' :  wrong operand types  no operation '/' exists that takes a left-hand operand of type 'float' and a right operand of type 'const int' (or there is no acceptable conversion)


Bad boy !!! You should use float / float !!! Booo, Intel card doesn't know how to divide a float by an int !
Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #361 on: 2011-11-14 13:27:28 »

Thanks, I'll have a look at it Smiley

If the game is trying to use shaders and fails the game will indeed be really weird. If you go to options and choose low quality you'll turn off the shaders.

I'll fix the issue in the next update though, thanks for testing it on another computer Smiley

Mike

Offline ra4king

JGO Kernel
*****

Posts: 3160
Medals: 196


I'm the King!


« Reply #362 on: 2011-11-14 18:33:57 »

Bad boy !!! You should use float / float !!! Booo, Intel card doesn't know how to divide a float by an int !
FAAAAAIL by Intel *facepalm* Shocked

Games published by our own members! Go get 'em!
Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #363 on: 2011-11-14 18:39:28 »

My gfx card just threw a warning (which I missed...). It is fixed and uploaded now Smiley

Mike

Offline sproingie

JGO Strike Force
***

Posts: 899
Medals: 55



« Reply #364 on: 2011-11-14 21:00:29 »

GLSL spec says int has an implicit conversion to float.  I wonder if the const qualifier is freaking it out?
Offline TheCodingUniverse

JGO n00b
*

Posts: 6



« Reply #365 on: 2011-11-15 02:40:16 »

Offtopic: Are you Dutch?
Ontopic: This game looks amazing, what a pain it must have been making it.
Offline Bonbon-Chan

Sr. Member
**

Posts: 417
Medals: 14



« Reply #366 on: 2011-11-15 02:54:06 »

Ok no more error with the shader. But depending on the position on the map, ground is green or red. Seems like there is something that my Intel don't like with your texture binding.
Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #367 on: 2011-11-15 04:01:33 »

GLSL spec says int has an implicit conversion to float.  I wonder if the const qualifier is freaking it out?

It was easy enough to fix though, just me being sloppy Smiley

Offtopic: Are you Dutch?

I'm Swedish, but I live in the Netherlands for the past 8 years, is it that obvious? Smiley

Ontopic: This game looks amazing, what a pain it must have been making it.

Thanks Smiley The biggest problem with making it was to keep the motivation up when the most difficult parts were over (like creating my own 3d engine) but it still wasn't good enough to play. When I log in nowadays and see that there are 6-7 people online it's much easier to find the motivation Smiley

Ok no more error with the shader. But depending on the position on the map, ground is green or red. Seems like there is something that my Intel don't like with your texture binding.

Red? The only thing that is red are the buses I think, no idea where that could come from...

Mike

Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #368 on: 2011-11-29 18:35:44 »

Quick update: Today I reached a milestone I've been aiming for for a very long time. I added an end game element for people with a ton of money (who want to earn even more Smiley ):

(I made the model myself using Blender, it was fun to learn some basic things and I'll definitely have use of it again in the future Smiley )

Next up are some suggestions from the community and then I'm going to focus on cartels to start some of the team work elements.

Mike

Offline Bonbon-Chan

Sr. Member
**

Posts: 417
Medals: 14



« Reply #369 on: 2011-12-05 02:45:46 »

With the lastest update and the IntelCard :
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  
High quality: false
OpenGL renderer: GDI Generic
OpenGL vendor: Microsoft Corporation
OpenGL version: 1.1.0
VBO extension: false
java.lang.IllegalStateException: Function is not supported
   at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:58)
   at org.lwjgl.opengl.ARBBufferObject.glGenBuffersARB(ARBBufferObject.java:69)
   at com.stateofprofit.client.o.f.Z(VBOHandler.java:101)
   at com.stateofprofit.client.o.f.bA(VBOHandler.java:131)
   at com.stateofprofit.client.o.d.loop(OpenGL.java:190)
   at com.stateofprofit.client.o.d.execute(OpenGL.java:1309)
   at com.stateofprofit.client.Main$b.run(Main.java:542)
java.lang.IllegalStateException: Function is not supported
   at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:58)
   at org.lwjgl.opengl.ARBBufferObject.glGenBuffersARB(ARBBufferObject.java:69)
   at com.stateofprofit.client.o.f.Z(VBOHandler.java:101)
   at com.stateofprofit.client.o.f.bA(VBOHandler.java:131)
   at com.stateofprofit.client.o.d.loop(OpenGL.java:190)
   at com.stateofprofit.client.o.d.execute(OpenGL.java:1309)
   at com.stateofprofit.client.Main$b.run(Main.java:542)
java.lang.IllegalStateException: Function is not supported
   at org.lwjgl.BufferChecks.checkFunctionAddress(BufferChecks.java:58)
   at org.lwjgl.opengl.ARBBufferObject.glGenBuffersARB(ARBBufferObject.java:69)
   at com.stateofprofit.client.o.f.Z(VBOHandler.java:101)
   at com.stateofprofit.client.o.f.bA(VBOHandler.java:131)
   at com.stateofprofit.client.o.d.loop(OpenGL.java:190)
   at com.stateofprofit.client.o.d.execute(OpenGL.java:1309)
   at com.stateofprofit.client.Main$b.run(Main.java:542)
...
Games published by our own members! Go get 'em!
Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #370 on: 2011-12-05 03:52:50 »

You might want to install some graphics card drivers on there as it currently is using the windows drivers (yuck!). The game requires VBO's to work which isn't supported by the drivers.

I might look into legacy drawing if VBO's aren't present but I won't prioritize that for quite some time.

Thanks for testing it bonbon Smiley Tonight (?) an update is coming out which will fix most issues with vehicles on bigger accounts Smiley

Mike

Offline Bonbon-Chan

Sr. Member
**

Posts: 417
Medals: 14



« Reply #371 on: 2011-12-05 08:11:56 »

You might want to install some graphics card drivers on there as it currently is using the windows drivers (yuck!). The game requires VBO's to work which isn't supported by the drivers.

I might look into legacy drawing if VBO's aren't present but I won't prioritize that for quite some time.

Thanks for testing it bonbon Smiley Tonight (?) an update is coming out which will fix most issues with vehicles on bigger accounts Smiley

Mike

I DO make VBO and FBO works with this driver. I use ARBVertexBufferObject and not ARBBufferObject though.
Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #372 on: 2011-12-05 09:47:42 »

ARBVertexBufferObject and ARBBufferObject go hand in hand Smiley

Your driver returns that GLContext.getCapabilities().GL_ARB_vertex_buffer_object isn't supported so I doubt it works in other applications in  the same environment. Did you maybe run it in safe mode or over remote desktop connection or something?

If it works using another application then my only conclusion is a bug in lwjgl where it takes the wrong driver, but I doubt it (sorry for doubting you instead!)

Mike

Offline Bonbon-Chan

Sr. Member
**

Posts: 417
Medals: 14



« Reply #373 on: 2011-12-05 09:52:19 »

ARBVertexBufferObject and ARBBufferObject go hand in hand Smiley

Your driver returns that GLContext.getCapabilities().GL_ARB_vertex_buffer_object isn't supported so I doubt it works in other applications in  the same environment. Did you maybe run it in safe mode or over remote desktop connection or something?

If it works using another application then my only conclusion is a bug in lwjgl where it takes the wrong driver, but I doubt it (sorry for doubting you instead!)

Mike

I use LWGL (2.7.1) but it is true that I don't check the capability before using ARBVertexBufferObject. I should write a quick run test. Nothing special in my environnement (basic Window XP in a user session).

Edit :
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
VBO : true
VBO Creating : 1
VBO : true
VBO Creating : 2
VBO : true
VBO Creating : 3
VBO : true
VBO Creating : 4
VBO : true
VBO Creating : 5
VBO : true
VBO Creating : 6
VBO : true
VBO Creating : 7
VBO : true
VBO Creating : 8
VBO : true
VBO Creating : 9
VBO : true
VBO Creating : 10
FBO : Creating texture 2048,1024


With :
1  
2  
3  
4  
5  
6  
7  
   System.out.println("VBO : "+GLContext.getCapabilities().GL_ARB_vertex_buffer_object);

   Utils.id.rewind();
   ARBVertexBufferObject.glGenBuffersARB(Utils.id);
   id = Utils.id.get(0);
   
   System.out.println("VBO Creating : "+id);


It does display my sprites properly.
The only difference is that I use an application and not an applet.
Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #374 on: 2011-12-05 12:35:10 »

Can someone with lots of applet/lwjgl knowledge help out here? Smiley What is the reason why (on the same version of lwjgl) an application would get the correct driver and an applet wouldn't?

Mike

Offline kappa
« League of Dukes »

JGO Kernel
*****

Posts: 2360
Medals: 59


★★★★★


« Reply #375 on: 2011-12-05 12:53:36 »

Can someone with lots of applet/lwjgl knowledge help out here? Smiley What is the reason why (on the same version of lwjgl) an application would get the correct driver and an applet wouldn't?

Mike

If I was to guess, I'd say that for the application you are not using AWT and for the applet you are. AWT has its own hardware accelerated pipeline which on crappy drivers causes all sorts of issues as the same application requires two hardware accelerated pipelines (for LWJGL and AWT). Have you tried disabling all hardware acceleration for AWT?

This can be done using the following applet tag
1  
<param name="java_arguments" value="-Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false">
Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #376 on: 2011-12-05 15:20:23 »

Hi Kappa Smiley

My tag currently looks like this:
1  
<param name="java_arguments" value="-Dsun.awt.noerasebackground=true -Dsun.java2d.noddraw=true -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false -Dsun.java2d.d3d=false -Xms512M -Xmx1024M">


Except for the order and the xms/xmx it looks the same.

Seeing as it seems to work for everyone else (close to 200 accounts) I don't think it's something that I did totally wrong (but who knows Wink )

Mike

Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #377 on: 2011-12-07 17:57:41 »

Any other idea about the difference between lwjgl applet and application someone? Kappa, the lord of all things lwjgl applet? Smiley

Also, be aware of using Display.setVSyncEnabled(true); unless you know what you're doing (I clearly don't) Smiley When I removed that line and only do a Display.sync my gfx drivers got a lot happier and my cpu usage dropped with like 75%

Mike

Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #378 on: 2011-12-24 05:06:10 »

Doesn't seem like it ;-)

Also, there has been an issue with creating account for the last month, someone (finally) reported it on the forum so it's fixed. If you gave up due to not being able to create you're welcome to try again Smiley

Merry Christmas!

Mike

Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #379 on: 2012-01-05 18:23:55 »

I'm currently busy with a big update and a reset to alpha version 1.4 (aka, the Riven reset Wink).
The highlights of the reset are:
A set number of inhabitants in the world, no more infinitely growing cities and instead you need to compete for the inhabitants with the other players if you want cities to grow where you have a lot of influence.
A vehicle routing system, create routes that pass several cities and change your whole transportation business in a few clicks instead of changing each vehicle individually.
A passenger demand system, passengers now have own will and a desire to go to a specific city instead of only going where you want them to go.
A new formula for generating the map, the lighter areas being elevated land and the grey dots being cities.



I will post when the game is reset for the ones that want to try it out with the new functionality and on a clean sheet.

Kind regards,
Mike

Offline cheekymonk3y

JGO n00b
*

Posts: 18



« Reply #380 on: 2012-03-08 16:24:45 »

I don't know if it's already been suggested but you should move the folder C:\Users\Name\StateOfProfit to C:\Users\Name\Documents\My Games\StateOfProfit.

It's an often looked over feature. I think only one game I've played in the past two years (Skyrim) has done this.

Offline ra4king

JGO Kernel
*****

Posts: 3160
Medals: 196


I'm the King!


« Reply #381 on: 2012-03-08 17:14:05 »

No C:\Users\<username>\Saved Games\State Of Profit\ is a better folder Wink

Offline sproingie

JGO Strike Force
***

Posts: 899
Medals: 55



« Reply #382 on: 2012-03-08 17:24:36 »

C:\Users\<username>\AppData\Roaming\State Of Profit\Saved Games

But may FSM strike you down with his noodly appendage you if you use that path directly.  You either use System.getenv("APPDATA") or if you really want to do it properly, use the JNA code in http://stackoverflow.com/questions/585534/what-is-the-best-way-to-find-the-users-home-directory-in-java

Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #383 on: 2012-03-09 05:39:31 »

Thanks for the tip, I thought about it once or so but then left it behind. I'll change it to System.getenv("APPDATA") Smiley

I need to program something that I know exactly how to program... Doing that is so boring that I didn't touch it for almost a month, shame on me!

Kind regards,
Mike

Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #384 on: 2012-03-09 05:41:37 »

Also, what is the default sorting on the showcase topic? The last post was made in this thread but I need to sort it manually on last post to see it on top...?

Mike

Offline Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5870
Medals: 255


Hand over your head.


« Reply #385 on: 2012-03-09 06:10:07 »

Also, what is the default sorting on the showcase topic? The last post was made in this thread but I need to sort it manually on last post to see it on top...?
The Showcase and Featured boards are now by default sorted by publish date. These boards are not really forums in the general sense: they are a catalog of games, mainly a showcase for casual visitors; highlighting what the community is capable of. Each game deserves the same amount of exposure to the public. This is fair to the developers, that would otherwise see their hard work piled under a few active threads.

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Offline Mickelukas

JGO Ninja
***

Posts: 731
Medals: 25


Java guru wanabee


« Reply #386 on: 2012-03-09 06:20:22 »

Maybe add a column that says Publish date then so it makes sense Smiley

Mike

Pages: 1 ... 11 12 [13]
  Print  
 
 
Jump to:  


Add your game by posting it in the showcase section.

The first screenshot will be displayed as a thumbnail.

obsidian_golem 2012-05-23 10:14:50

Danny02 2012-05-21 17:10:34

Danny02 2012-05-21 17:07:10

Danny02 2012-05-21 16:56:12

davedes 2012-05-21 13:59:23

obsidian_golem 2012-05-20 20:28:41

darkjava55 2012-05-12 16:14:40

Ultroman 2012-05-12 09:36:05

Ultroman 2012-05-11 22:49:53

Ultroman 2012-05-11 22:20:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.186 seconds with 19 queries.