Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 9 10 [11]
  ignore  |  Print  
  State of Fortune  (Read 44689 times)
0 Members and 1 Guest are viewing this topic.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 742
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #300 - Posted 2014-01-07 21:52:48 »

My rusty TNT2 supported it. Pointing

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Danny02
« Reply #301 - Posted 2014-01-07 23:18:46 »

To use DXT with a texture atlas I think you have to add a 1 pixel border to the single textures, but better do a bit of a search on that topic.
Here a blog post describing the problem with mipmaps of alphamaps:
http://the-witness.net/news/2010/09/computing-alpha-mipmaps/

The thing about normal maps is, that the represent vectors no colors. And when you do you normal bilinear scaling to create your mipmaps, you get wrong normal values. On the other hand there is no problem with scaling a bump-map, because it only holds scalar values.
Offline Mike

JGO Ninja


Medals: 71
Projects: 1
Exp: 5 years


Java guru wanabee


« Reply #302 - Posted 2014-01-14 10:12:09 »

I just finished uploading the higher quality textures. Thanks to the dds compression I'm now using 4 times as high resolution textures while using a quarter of the space Smiley Thanks! Here is a picture of how the new blocks look like.


Click for a bigger picture

There are still textures to be improved like the shop, shopkeeper, grain and the machines, but that will come at a later time.

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Zeke

Junior Member


Medals: 1



« Reply #303 - Posted 2014-01-16 01:48:43 »

Really wanted to try the game.

But it won't let me login.

Here is my user: Zeke

I don't know if my password is the problem. It is 30 chars long and has a lot of symbols, upper case, and numbers... etc.

Could that be an issue? I really want to try this out!!!
Offline Mike

JGO Ninja


Medals: 71
Projects: 1
Exp: 5 years


Java guru wanabee


« Reply #304 - Posted 2014-01-16 09:58:14 »

Hi Zeke,

Thanks for the interest! Smiley

I see your account but for security reasons I cannot see passwords. Maybe you could try to reset it by clicking on "Forgot password?" in the launcher and see if that is the problem indeed.

Maybe you can let me know whether or not it works in a PM or on the forum of the game Smiley

I currently encode the password to md5 before submitting it from the launcher, maybe my function doesn't handle all cases that well? Does anyone have a piece of code that they know work and give the same answer as PHP?

This is how it currently looks like and it always worked until now:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
    public static String encrypt(String input) {
        String result = input;
        if (input != null) {
            MessageDigest md;
            try {
                md = MessageDigest.getInstance("MD5");
                md.update(input.getBytes("UTF-8"));
                BigInteger hash = new BigInteger(1, md.digest());
                result = hash.toString(16);
                while (result.length() < 32) {
                    result = "0" + result;
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return result;
    }


Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 742
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #305 - Posted 2014-01-16 13:40:52 »

Be strict! (and limit variable scopes) Pointing

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  
 byte[] passwordHash = hash(password.getBytes("UTF-8"));

-    public static String encrypt(String input) {
+    public static String hash(byte[] input) {
-        String result = input; // no longer needed

-        if (input != null) {
+        if (input == null) throw new IllegalArgumentException(); // early out!

-            MessageDigest md;
            try {
-                md = MessageDigest.getInstance("MD5");
+               MessageDigest md = MessageDigest.getInstance("MD5");
                md.update(input);
-               BigInteger hash = new BigInteger(1, md.digest());
-               result = hash.toString(16);
-               while (result.length() < 32) {
-                   result = "0" + result;
-               }
+               return toHex(md.digest());
            } catch (Exception e) {
               // so when something goes wrong, we return the original password!? no way!

-               e.printStackTrace();
+               throw new ShouldNeverHappenException(e);
            }
-        }
-        return result;
    }


   private static final char[] hex_lookup_table = "0123456789abcdef".toCharArray();

   public static String toHex(byte[] data)
   {
      char[] hex = new char[data.length * 2];
      for(int i = 0, p = 0; i < data.length; i++)
      {
         hex[p++] = hex_lookup_table[(data[i] >> 4) & 0xF];
         hex[p++] = hex_lookup_table[(data[i] >> 0) & 0xF];
      }
      return new String(hex);
   }


My $0.02 persecutioncomplex

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Mike

JGO Ninja


Medals: 71
Projects: 1
Exp: 5 years


Java guru wanabee


« Reply #306 - Posted 2014-01-16 14:34:48 »

Awesome as always Riv Smiley I'll try it out and see how it works with weird passwords.

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline matheus23

JGO Kernel


Medals: 106
Projects: 3


You think about my Avatar right now!


« Reply #307 - Posted 2014-01-16 15:15:21 »

Please, don't only hash your passwords with md5. That's still a security problem.

If someone knows the password of one of the users, he is able to crack all other user's accounts that have the same hash. Please use salting, so this doesn't happen.

Also, there is stuff like Rainbow Tables, which make it easier / possible to brute-force md5 hashed passwords with today's amount of memory and computation speed.

I suggest you to look into the 'Blowfish' algorithm. I have just quickly googled about what your options are. It looks like JCE is the best option.

Wait a minute, I'll try to write up a simple function and test it Smiley

See my:
    My development Blog:     | Or look at my RPG | Or simply my coding
http://matheusdev.tumblr.comRuins of Revenge  |      On Github
Offline Zeke

Junior Member


Medals: 1



« Reply #308 - Posted 2014-01-16 19:26:47 »

@Mickelukas

Ya, Matheus23 and Riven are pretty spot on.

Here are two links you may want to read.

http://www.php.net/manual/en/faq.passwords.php

http://security.stackexchange.com/questions/211/how-to-securely-hash-passwords

Also, it is working now... password is now only 12 chars after reset. (Idc about this pass, it is strickly for this game)

-- Break --

On a separate note, how do I build things in the game??? I wana make a building. Smiley
Offline Mike

JGO Ninja


Medals: 71
Projects: 1
Exp: 5 years


Java guru wanabee


« Reply #309 - Posted 2014-01-17 10:21:19 »

In playground simply click 'b' and go nuts Smiley

In game, buy a piece of land by clicking on a for sale sign (land gets cheaper further away), click 'b' and go nuts until you run out of money ;-)

You might want to plant some grain to get a bit of income. To open the inventory you can click 'i' or 'e'.

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mike

JGO Ninja


Medals: 71
Projects: 1
Exp: 5 years


Java guru wanabee


« Reply #310 - Posted 2014-01-25 12:38:27 »

Adding bump maps without passing the tangent doesn't make it look as nice as when the tangent is passed. I'll have to add that somewhere down the road. For now it's done in the fragment shader.

Here are a couple of screenshots of how the game scales with the lowest and highest settings (my laptop runs the lowest settings in 200-300fps, and the highest in 30-40 for a comparison).



I've also passed 170 registered accounts Smiley

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline joaogl

Junior Member


Medals: 1



« Reply #311 - Posted 2014-02-06 20:51:15 »

I'm still waiting for some new stuff Cheesy
And people online too Cheesy
Offline joaogl

Junior Member


Medals: 1



« Reply #312 - Posted 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:
Offline Mike

JGO Ninja


Medals: 71
Projects: 1
Exp: 5 years


Java guru wanabee


« Reply #313 - Posted 2014-02-07 11:30:48 »

There are some 5-6 people that log in every day at the moment, but unluckily not at the same time Smiley

I'll fix the issue in the weekend, didn't have any time this week due to long working days.

In other news I've added blurring of objects far away instead of trying to display every leaf of every tree Smiley


Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline Slyth2727
« Reply #314 - Posted 2014-02-07 22:01:38 »

Ever thought of adding a DOF?

Was I before Chuang Tzu who dreamt about being a butterfly, or am I now a butterfly who dreams about being Chuang Tzu?
Offline Gibbo3771
« Reply #315 - Posted 2014-05-02 13:21:48 »

Is this project dead? Caught it at the side of the forum, logic service seems to be down.

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline Mike

JGO Ninja


Medals: 71
Projects: 1
Exp: 5 years


Java guru wanabee


« Reply #316 - Posted 2014-05-02 14:30:31 »

Hi,

It's currently in the freezer, due to personal reasons I don't have any time at all in the evenings to spend on it.

I just tried to log in and it worked for me? There was a problem yesterday though (power outage).

I'll drop a message once things at home calm down again.

Kind regards,
Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline ags1

JGO Ninja


Medals: 46
Projects: 2
Exp: 5 years


Make code not war!


« Reply #317 - Posted 2014-06-07 16:58:38 »

Sorry to hear you are having difficulties - I hope you come back to this game, it looks very slick.

Offline Mike

JGO Ninja


Medals: 71
Projects: 1
Exp: 5 years


Java guru wanabee


« Reply #318 - Posted 2014-06-08 21:10:49 »

Thanks!

I see that there still are 4-7 people online every day, which is very nice considering I didn't do anything for a couple of months.

If all goes well the coming couple of months I'll never ever have to worry about money again, in which case I'll have more time to program for fun Smiley

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline cylab

JGO Ninja


Medals: 38



« Reply #319 - Posted 2014-06-09 00:49:51 »

Don't believe the stuf they write in mails - it's a lie!

Also don't kill relatives for life ensurances - they'll find out!

Wink

Mathias - I Know What [you] Did Last Summer!
Pages: 1 ... 9 10 [11]
  ignore  |  Print  
 
 

 

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

The first screenshot will be displayed as a thumbnail.

ctomni231 (32 views)
2014-07-18 06:55:21

Zero Volt (28 views)
2014-07-17 23:47:54

danieldean (24 views)
2014-07-17 23:41:23

MustardPeter (25 views)
2014-07-16 23:30:00

Cero (40 views)
2014-07-16 00:42:17

Riven (42 views)
2014-07-14 18:02:53

OpenGLShaders (29 views)
2014-07-14 16:23:47

Riven (29 views)
2014-07-14 11:51:35

quew8 (27 views)
2014-07-13 13:57:52

SHC (63 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!