java IDE & gradle

Only for the brave!
feder1111
Someone..
Posts: 9
Joined: Sun Apr 19, 2020 7:46 pm

java IDE & gradle

Post by feder1111 »

Hello guys, I'm using the Intellij Java IDe to check the code and see if I can learn some Java in the process(I'm a microsoft guy) you know using something productive with all these time in home due the quarentine, but I had some problems running the code, I'm using the java sdk14 however I thinks it has some problems running the gradle, am I right?

Thank you very much!!!
Massimo32
Chapman's successor
Chapman's successor
Posts: 855
Joined: Wed Dec 29, 2004 1:14 pm
Location: Turin, Italy

Re: java IDE & gradle

Post by Massimo32 »

feder1111 wrote:Hello guys, I'm using the Intellij Java IDe to check the code and see if I can learn some Java in the process(I'm a microsoft guy) you know using something productive with all these time in home due the quarentine, but I had some problems running the code, I'm using the java sdk14 however I thinks it has some problems running the gradle, am I right?

Thank you very much!!!
This page may be of some help:
https://libgdx.badlogicgames.com/docume ... gging.html
feder1111
Someone..
Posts: 9
Joined: Sun Apr 19, 2020 7:46 pm

Re: java IDE & gradle

Post by feder1111 »

Well the correct version of the SDK is de 11 to work with gradle, now im able to run the desktop, however no teams/competition are shown in the screen, when select a friendly match or a cup etc.., no music also
Massimo32
Chapman's successor
Chapman's successor
Posts: 855
Joined: Wed Dec 29, 2004 1:14 pm
Location: Turin, Italy

Re: java IDE & gradle

Post by Massimo32 »

feder1111 wrote:Well the correct version of the SDK is de 11 to work with gradle, now im able to run the desktop, however no teams/competition are shown in the screen, when select a friendly match or a cup etc.., no music also
This happens when for some reason the resource folder (android/assets) is not available.
feder1111
Someone..
Posts: 9
Joined: Sun Apr 19, 2020 7:46 pm

Re: java IDE & gradle

Post by feder1111 »

Guys I finally be able to run the code ans works fine, In my process of learning Java, I'm not understanding whats the classes FSM are used, whats their purpose SceneFSM, Match FSM etc..
Massimo32
Chapman's successor
Chapman's successor
Posts: 855
Joined: Wed Dec 29, 2004 1:14 pm
Location: Turin, Italy

Re: java IDE & gradle

Post by Massimo32 »

feder1111 wrote:Guys I finally be able to run the code ans works fine, In my process of learning Java, I'm not understanding whats the classes FSM are used, whats their purpose SceneFSM, Match FSM etc..
They are Finite State Machines.

https://en.wikipedia.org/wiki/Finite-state_machine
feder1111
Someone..
Posts: 9
Joined: Sun Apr 19, 2020 7:46 pm

Re: java IDE & gradle

Post by feder1111 »

Interesting, did not know about that concept,

Another question, why the stadium is not one single image instead of several images? is it due some performance issue or because is not possible to manage big textures?
Massimo32
Chapman's successor
Chapman's successor
Posts: 855
Joined: Wed Dec 29, 2004 1:14 pm
Location: Turin, Italy

Re: java IDE & gradle

Post by Massimo32 »

feder1111 wrote:Interesting, did not know about that concept,

Another question, why the stadium is not one single image instead of several images? is it due some performance issue or because is not possible to manage big textures?
It's both for performance and because of limits in old computers.
feder1111
Someone..
Posts: 9
Joined: Sun Apr 19, 2020 7:46 pm

Re: java IDE & gradle

Post by feder1111 »

I tried to join the images in one single image but it gave me some error of pallete

"Palette not found inside image!"

Was because the image has to be saved wit transparency?
Massimo32
Chapman's successor
Chapman's successor
Posts: 855
Joined: Wed Dec 29, 2004 1:14 pm
Location: Turin, Italy

Re: java IDE & gradle

Post by Massimo32 »

feder1111 wrote:I tried to join the images in one single image but it gave me some error of pallete

"Palette not found inside image!"

Was because the image has to be saved wit transparency?
You should use a png of the "palette" kind.
That's because the game needs to find the palette and replace the colors.
It's a very easy and fast way to "render" the image, instead of replacing every single pixel.

There're three format of png:
https://docstore.mik.ua/orelly/web2/wdesign/ch21_04.htm
feder1111
Someone..
Posts: 9
Joined: Sun Apr 19, 2020 7:46 pm

Re: java IDE & gradle

Post by feder1111 »

I used paint.net to open the png, when I save it the image looks fine exactly the same colours than the original, however when I run the game the renderization is made with bad colours, do you know why that is happening?
Massimo32
Chapman's successor
Chapman's successor
Posts: 855
Joined: Wed Dec 29, 2004 1:14 pm
Location: Turin, Italy

Re: java IDE & gradle

Post by Massimo32 »

feder1111 wrote:I used paint.net to open the png, when I save it the image looks fine exactly the same colours than the original, however when I run the game the renderization is made with bad colours, do you know why that is happening?
You should check if paint.net saves the png in the "palette" format.
feder1111
Someone..
Posts: 9
Joined: Sun Apr 19, 2020 7:46 pm

Re: java IDE & gradle

Post by feder1111 »

What image editor are u using?
Massimo32
Chapman's successor
Chapman's successor
Posts: 855
Joined: Wed Dec 29, 2004 1:14 pm
Location: Turin, Italy

Re: java IDE & gradle

Post by Massimo32 »

feder1111 wrote:What image editor are u using?
A very old one, Paint Shop Pro 5
feder1111
Someone..
Posts: 9
Joined: Sun Apr 19, 2020 7:46 pm

Re: java IDE & gradle

Post by feder1111 »

What's the concept of subframes?, i mean I understand that a frame is an image in a certain point, but whats a subframe?
Post Reply