Java-Gaming.org Hi !
Featured games (88)
games approved by the League of Dukes
Games in Showcase (679)
Games in Android Showcase (195)
games submitted by our members
Games in WIP (734)
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 ... 6
1  Game Development / Newbie & Debugging Questions / Solved: ConcurrentModificationException using KRYO on: 2016-05-11 08:15:49
I've solved problem by overriding some methods in Kryo and writing a bunch of serializers for my classes.
2  Game Development / Newbie & Debugging Questions / Re: Libgdx Json serialization of HashMap on: 2016-05-06 13:43:33
Javadoc for intMap<V>:https://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/utils/IntMap.html

Quote
So I should change the HashMap to an IntMap? I don't really see why an IntMap (never have seen this before) should be better than a simple HashMap, can somebody explain that? I am just confused because I thought that the Json serializer should be able to serialize a simple HashMap a standard java datastructure but it doesn't seem to be able to do that and it's quite strange that I should adapt my datastructures because of that....
1. please look  at the previuos post.
2. IntMap is a bit faster than HashMap (at least get operation).
3. You still might use HashMap and convert it to IntMap (and back) when serializing/deserializing.
3  Game Development / Newbie & Debugging Questions / Re: Libgdx Json serialization of HashMap on: 2016-05-06 13:17:41
It's about HashMap and IntMap:

Quote
Second issue, for HashMap it treats keys as Strings, sorry. You could write a serialzier for HashMap that tried to write out the type of the keys. You'd be better off using IntMap though, which again will need a specialized serialzier.

4  Game Development / Newbie & Debugging Questions / Re: Libgdx Json serialization of HashMap on: 2016-05-06 11:07:47
Sorry, In slightly mixed up.
Hope this is more appropriate: http://sblackwell.com/blog/2014/05/loading-intmaps-from-json-with-libgdx/
5  Game Development / Newbie & Debugging Questions / Re: Libgdx Json serialization of HashMap on: 2016-05-06 04:38:35
Answer is here : http://stackoverflow.com/questions/12468764/jackson-enum-serializing-and-deserializer.
Look at  the answer labeled with "Actual answer".
6  Game Development / Newbie & Debugging Questions / ConcurrentModificationException using KRYO on: 2016-04-26 13:05:42
Hi everyone!

I'm currently using Kryo for serialization in my project.
While serializing I got ConcurrentModificationException.

At the Kryo support forums I found that it could happen when Kryo serializes some collection that's being modified by one of the threads of my application.

I tried almost everything except making all (possible) collections synchronized.
I'm also thinking about using standard serialization more and more.

Can anybody tell if you ran across the similar problem or simply knows the answer,
how to fix?

Any help is greatly appreciated.
7  Games Center / WIP games, tools & toy projects / Re: djoom3 - Doom 3 java port[HELP WANTED] on: 2016-04-18 09:47:25
As I get you don't use md5 models ( loading ASE and FWO models are above mentioned ).
Why, If it's true, EULA issue?

What you do with EAX sound? Under Windows indirect sound library can be used.

Maybe I'm curious too much - it's just memories about I attempted to do roughly the same some time ago Smiley
 
8  Games Center / WIP games, tools & toy projects / Re: djoom3 - Doom 3 java port[HELP WANTED] on: 2016-04-18 05:46:59
Do you make your own completely different gameplay, models, etc?
Or you mostly follow original game?
9  Game Development / Newbie & Debugging Questions / Re: Using the Java port of Theora on: 2016-01-28 06:06:13
I can't recall any info about pure Java solution...

the links you probably aware of:

Quote
Play - is a Java library to play Video / Music.

It would be based on VLC or multi based on VLC / QTMovie / gstreams.

http://www.xuggle.com/downloads

https://github.com/caprica/vlcj
10  Game Development / Newbie & Debugging Questions / Re: Using the Java port of Theora on: 2016-01-27 05:54:23
Hi,

here's some links:

http://fmj-sf.net/
http://www.jcraft.com/jorbis
https://github.com/Gagravarr/VorbisJava
11  Game Development / Newbie & Debugging Questions / Re: Problem with serialization on: 2016-01-16 12:39:12
You don't  close  both DataInputStream/DataOutputStream.
It can be the cause of your problems, I think.
12  Discussions / Miscellaneous Topics / Re: Looking for a old wipeout-like game on: 2015-12-26 13:52:17
Last trial : Grand Theft Auto III ...

if not try to search here.
13  Discussions / Miscellaneous Topics / Re: Looking for a old wipeout-like game on: 2015-12-23 07:01:22
Is it "Need for Speed"?
14  Game Development / Performance Tuning / Re: Using the sun.misc.Unsafe class to do crazy stuff with the JVM on: 2015-12-19 07:15:12
Hi,

Some time ago I was inspired by Unsafe too.

But I've resisted. Smiley

Just look at this :

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  
    public static long sizeOf( Object object )
    {
        return getUnsafe().getAddress(
                normalize( getUnsafe().getInt( object, 4L ) ) + 12L );
    }

    private static long normalize( int value )
    {
        if ( value >= 0 )
        {
            return value;
        }

        return ( ~0L >>> 32 ) & value;
    }

    public static long toAddress( Object obj )
    {
        Object[] array = new Object[]{obj};
        long baseOffset = getUnsafe().arrayBaseOffset( Object[].class );

        return normalize( getUnsafe().getInt( array, baseOffset ) );
    }

    public static Object fromAddress( long address )
    {
        Object[] array = new Object[]{null};
        long baseOffset = getUnsafe().arrayBaseOffset( Object[].class );
        getUnsafe().putLong( array, baseOffset, address );

        return array[ 0 ];
    }


Isn't it wonderful?

But, try to keep away from it.
15  Discussions / Miscellaneous Topics / Adobe PhotoShop CS2 (2005) on: 2015-12-15 07:36:10
Hi,

There's an old version of Photoshop from 2005 which is now offered for free.
16  Discussions / Miscellaneous Topics / Re: How to disable the DOTA game on my LAN? on: 2015-12-10 07:53:38
God will save this lost soul   Undecided
17  Discussions / Miscellaneous Topics / Re: How to disable the DOTA game on my LAN? on: 2015-11-30 15:42:52
How old are you?

I'm too young to die.  Wink

But it sounds more like you're annoyed with the noise he makes while he's playing- maybe get a nice pair of earphones for yourself? Or a nerf gun you can shoot him with when he's being too loud?

If he's screaming he does that so loudly that no earphones save you from being hurt. If you in another room you're damaged less. Besides, he's usually playing through the night starting usually at 3-5 pm ... though playing schedule varies in wide spectrum.

I really worry about his future. I wrote above posts which you meant just while he has demonstrated his voice power and language's taboo knowledge.
 
If you really want to try blocking dota, just go to the settings page for your router...

I did this and other actions for a few years starting from Parental Control (Windows / Kaspersky IS / Parental Control Software). All this stuff good for children looking for "ANY KEY" at keyboard Smiley .

So, I've discarded any plans to block games by technical means as a main strategy.
18  Game Development / Newbie & Debugging Questions / java-object-diff library problem on: 2015-11-30 05:51:32
Hi everybody.

Did anybody play with the java-object-diff library, author Daniel Bechler?

I thought it will be an adventure for 2 hours but I'm slipping for a week and still can't tune it.
Whatever I did, it diffs all the object properties ignoring my settings and, at the end, throws:
java.lang.IllegalStateException: Couldn't find a differ for type: [Ljava.net.URL;

Can anybody help?

Thanks.
19  Discussions / Miscellaneous Topics / Re: How to disable the DOTA game on my LAN? on: 2015-11-30 05:01:45
He said he plays in Dota 2 Reborn.
20  Discussions / Miscellaneous Topics / Re: How to disable the DOTA game on my LAN? on: 2015-11-29 18:57:51
Is he play dota original?
I recommend give him link to Dota 2 reborn – its something like war 3 custom maps
There are many fun maps
+ its better to play in “DOTA 2 REBORN Overthrow”

AFAIK he plays in newest DOTA 2.

Maybe problem in "hi think become pro gamer" - BAD BAD BAD BAD.. IDEA
tournaments have crap reword system - only 5-10 first places from thousands have money reword
all else 995+ ppl receive noting

He proudly says he's DOTA pro and also told about earning money this way.


p.s
Parents pay full price for studying as well as for the re-exams.
So happy - happy man ^^

He repeats all the time that he's deep in ass. Undecided
21  Discussions / Miscellaneous Topics / Re: How to disable the DOTA game on my LAN? on: 2015-11-29 14:58:39
Hi everyone.

Thank you for your replies!

@gouessej
Stranger shouldn't treat gaming as a pure waste of time even though some practices might seem to be very destructive for the social life.

I never told that I deem the gaming is the waste of time. I rather meant that еxcessive gaming is harmful as the waste of time, as the threat for health (both for gamer (excessive irascibility) and for his family: sudden wild cries may cause increasing of the blood pressure even may trigger heart-attack) and as the threat for social life, total gaming to the detriment of real life needs.

Quote
Some state that gamers sometimes use video games to either escape from an uncomfortable environment or alleviate their already existing mental issues - both possibly important aspects on determining the psychological impact of gaming.
It's so easy to reject any responsibility.

I don't reject any responsibility.

@Gornova
If your brother is at college and he's not a genius, he need time to study, then play DOTA. I'm asking you: how good are his grades ? In Italy is not possible to continue forever college without good grades, I think same everywhere, mainly because parents cuts money Cheesy

He's spending time for college study to play (mainly DOTA).
His grades is minimal, just to allow continue studying. Parents play full price for studying as well as for the re-exams.

So? So for me your brother is not crazy. He is inside a loop, but without his will, there is no hope. He must understand what he's right for him.

I didn't say he's crazy. He's rather excessive irritable, especially when playing

@Drenius
Are you sure you can call it an addiction already? How long has he been playing the game that excessively?
If it hasn't been long yet, it might just as well (as pointed out before) fade at some point, being just a little obsession.

So excessively ~2 years .
He's playing DOTA since the fall of 2013. In beginning of 2014 he uses voice chat. Now he is more silent. I hope it's kinda fade out

22  Discussions / Miscellaneous Topics / Re: How to disable the DOTA game on my LAN? on: 2015-11-27 15:58:19
In short: stay close to your brother, try to understand his world and game, not find a way to disable DOTA

I'm trying to understand him all the time: Partial success.
What about the game ... I ain't gonna really block it. I just want to stop the gaming madness in the critical situation.

In long. I think your last message point that you have a problem with your brother, not he with DOTA. Frankly I'm not sure you try to understand (from your messages) his passions with game. Game are rewarding but also demands time. A lot!

I definitely have the problem with my brother as well as he definitely has the problem as gaming (especially Dota) addicted.
Imagine:
there's a crystal silence in the room.  it lasts half an hour, hour, suddenly:
Quote
C-r-r-rap!!! Wadda hell?!! You, son of a bitch, what you're doing?!!! Where you're going now??!!! Stupid bastard!! Get f*ck you out of here!! Bitch!!!


and so on ... Even now when I'm writing, this the similar happen again ... "his passions"... it should rather think about his mental health ...

How old is your brother?

18 years old.

He's at school? University?

He's in college.

Where the money and food come from?

From parents.

Does he have a girlfriend?

AFAIK, not. Anyways, he is at home all the time.

Does he have friends? How much real-world friends and how much in DOTA?
A friend of mine stay in WOW loop for three years before he leaves and even now talks about Wow, not the game, but about virtual friends from all over the world.
He has. One real-world friend is from the college. A few friends are from the school. The rest are the DOTA-friends.

It's hard to understand but virtual relations could be powerful and meaningful in many ways.

And we are talking right now, "wasting time" on an online forum on line game. Maybe your brother cannot understand why you ask help or wasting time here, instead to go with him and play DOTA together Cheesy

A lot of questions, I know

Well, Excuse my familiarity but It seems to me that I speaking with a preacher ... "play DOTA together" ... Do you repeat this after all I posted here?
23  Discussions / Miscellaneous Topics / Re: How to disable the DOTA game on my LAN? on: 2015-11-26 17:28:15
Frankly, my worry is not only about his playing.
The worry is also about the fact that I'm forced to hear all his bla-bla-bla (chat) as well as wild screams like in jungles (gameplay) since I have to be in one room with him for a some time.
After that I leave the room with strong headache. 
24  Discussions / Miscellaneous Topics / Re: How to disable the DOTA game on my LAN? on: 2015-11-26 12:13:31
Quote
up2:
Irs not only adrenaline addiction,
its also communication addiction – like Stay all day in some Chat, Forum, social network
(and social network also have “find something new” addiction)
One-to-one, my case. They call themselves 'cyber-generation'.
25  Discussions / Miscellaneous Topics / Re: How to disable the DOTA game on my LAN? on: 2015-11-26 11:45:31
Thank you for your сompassion, CommanderKeith.

It was quite plausible that he will be programmer until he discarded all the such thoughts and decided to go to 'commercial/management/sales' college.
It is very good that he make his choice himself, not like a puppet.
26  Discussions / Miscellaneous Topics / How to disable the DOTA game on my LAN? on: 2015-11-26 08:30:11
Gentlemen! (and Ladies, of course)

First and foremost I must admit that most likely I came to the wrong place with my question and it is strange to read this post from the person who has close enough (so far) relation to the gaming.

Nevertheless, with pain in the heart I'm knocking in all the doors asking for help to solve my problem which name is DOTA and, maybe. all the online (multiplayer) computer video games.

One guy ( which is my, say, brother ) is abandoned all his life, including learning in the college for playing in DOTA up to 14 hours per day ( sometimes even more )

I tried different technical means to prevent him from over-playing but they give no result by different reasons.

In short, can anybody give a hint how to block DOTA in LAN in such way that my participation in that will be hide? otherwise all the efforts is lost...

Thanks in advance
27  Java Game APIs & Engines / Engines, Libraries and Tools / Re: Java Universal Model Importer (JUMI) - Early Alpha on: 2015-10-16 12:41:13
The most I can do for you now it's to upvote your S/O question Smiley
28  Discussions / Java Gaming Wiki / Re: Math: Inequality properties on: 2015-10-01 11:07:25

addition/subtraction
If we add or subtract a value from both sides, it's equivalent to translating the pair and it does not effect the relation.  Given: a >= b, then:
  • a+c >= b+c

Given the previous we can convert to comparing against zero (subtract b from both sides):
  • a-b >= 0

subtract b+c from both sides (?)
29  Discussions / Miscellaneous Topics / Re: What is your opinion about ... on: 2015-06-02 07:43:42
Sometimes it's not enough power of both logging and debugging tools.

Recently I just drowned under the tons of logs and no longer was able to realize what's going on with my code, so I had to write the visualization tool.

It really helped me and, fortunately, it is the part of the production code. Smiley
30  Discussions / Miscellaneous Topics / Re: What is your opinion about ... on: 2015-06-01 11:54:11
Thank you for your replies!

Frankly, I hoped somebody will try DDJ to run and play... No matter.
I tried it with the toy examples and I may say I've got no complete opinion.

I think the tool may be useful for debugging recursive programs though it's not the typical task for java.
Pages: [1] 2 3 ... 6
 
DarkCart (28 views)
2016-05-29 02:30:33

Hydroque (43 views)
2016-05-26 14:45:46

Mac70 (55 views)
2016-05-24 21:16:33

theagentd (58 views)
2016-05-14 18:38:35

theagentd (90 views)
2016-05-10 22:37:41

theagentd (98 views)
2016-05-10 22:33:46

IanParcs (121 views)
2016-04-18 14:18:53

KaiHH (116 views)
2016-04-18 08:35:41

KaiHH (138 views)
2016-04-15 12:43:58

theagentd (145 views)
2016-04-14 02:16:17
FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50
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!