Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (777)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 200 201 [202] 203 204 ... 207
  ignore  |  Print  
  What I did today  (Read 3011491 times)
0 Members and 3 Guests are viewing this topic.
Offline Shatterhand

Junior Devvie


Medals: 9
Exp: 5 years



« Reply #6030 - Posted 2018-07-17 19:31:45 »

Could be the way cpus often have 2 logical cores per one physical core. Your ‘number of cores’ probably gives physical cores, not logical cores.

As I said, on my CPU the physical cores are equal to logical ones. I retrieve them with
1  
Runtime.getRuntime().availableProcessors()


What are those maps exactly? How did you load them before?

They are text files with my own, custom markup language (similiar to JSON), and they essentially contain a list of objects of the same type. These objects represent Java classes, and I can define the values for the variables of a certain class etc. Now I read that file and parse it, and then I create instances of the classes and set the variables with the Java Reflection API. That is slow already, and my parser is not the fastest either.
Example for one entry in my entity template file:

[Entity] {
   name="Jumper"
   components={
      [PhysicsComponent] {
         mass=1.15
      }
      [MovementComponent] {
         maxVelo=2.2
         maxAcc=0.1
         jumpPower=1.4
      }
      [CollisionComponent] {
         box=[Hitbox] {
            width=32
            height=40
         }
         mask=All
      }
      [RenderComponent] {
         ...
      }
      ...
   }
}

Now when I had a few thousand entities in one map, the parser could only use one CPU core, which was inefficient. So I split the list of entries and and create threads of which each one parses a part of the list.
That is how I load my maps Smiley

Cheers

Micro$oft broke Volkswagen's world record: Volkswagen only made 22 million bugs!
Offline tariqbroadnax

Senior Devvie


Medals: 7
Exp: 3 years



« Reply #6031 - Posted 2018-07-18 01:07:10 »

Working on Scene Editor ...
+ Fixed Undo Bug
+ Added UndoableEdit for Layer Deletion
+ Fixed some Layer Action logic
+ Started fixing Copy Layer logic and linking Layer Creation UndoableEdit to it
Offline beeaware
« Reply #6032 - Posted 2018-07-19 00:01:10 »



New DEMO available! (july 19, 2018)

or
https://bee-aware.itch.io/bee-aware

You know you're getting old when you played Pong while it was still hot...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline orange451

JGO Kernel


Medals: 452
Projects: 7
Exp: 7 years


Your face? Your ass? What's the difference?


« Reply #6033 - Posted 2018-07-19 01:40:27 »

@beeaware
You've been a... Busy little bee  Roll Eyes

I've finally gotten around to implement my UI library into my IDE I was working on a few months ago:

Coming along well!


[edit]
Anyone know a nice source of 32x32 application icons? The ones I’m using are only 16x16 so they don’t look great on higher resolutions.

First Recon. A java made online first person shooter!
Offline beeaware
« Reply #6034 - Posted 2018-07-19 02:33:29 »

@beeaware
You've been a... Busy little bee  Roll Eyes

Lol...I really got to publish this 'vehicle' on Steam soon, time to move on to something else.

You've been busy as well, are you actually creating your own IDE?

You know you're getting old when you played Pong while it was still hot...
Offline ClaasJG

JGO Coder


Medals: 43



« Reply #6035 - Posted 2018-07-19 10:33:04 »

@orange451 Ofc free says nothing about the license.
https://commons.wikimedia.org/wiki/Crystal_Clear
https://www.iconfinder.com/icon-sets/featured/free
http://www.iconarchive.com/commercialfree.html
https://icons8.com/icon/new-icons/all
https://icons8.com/iconizer

My english has to be tweaked. Please show me my mistakes.
Offline Shatterhand

Junior Devvie


Medals: 9
Exp: 5 years



« Reply #6036 - Posted 2018-07-19 12:59:20 »

Anyone know a nice source of 32x32 application icons? The ones I’m using are only 16x16 so they don’t look great on higher resolutions.

If you have a *buntu Linux installed, you can find loads of icons in "/usr/share/icons/…", all application icon related stuff you could possibly want. I usually search for keywords in filenames in all of the folders recursively to find what I need. Otherwise have a look at e.g. the Xfce icons https://github.com/shimmerproject/elementary-xfce. I didn't find a better resource for now, but all the icons of the free desktop environments are under some kind of open license, so you could try to do some research in this direction.

Cheers

Micro$oft broke Volkswagen's world record: Volkswagen only made 22 million bugs!
Offline FabulousFellini
« Reply #6037 - Posted 2018-07-19 15:24:54 »

My friend gave me 21 PS3 games, and I assumed PS4 could play them.  Nope.  So I found a PS3 on CraigsList for 50 bucks, with 2 games included.  Great deal! (He hooked it up to show me it works first).

-FabulousFellini
www.fabulousfellini.com
Offline philfrei
« Reply #6038 - Posted 2018-07-19 15:57:12 »

The application I've been working on, ToneCircleDrone, has data files with a .tcd extension. I decided it would kind of make sense to allow clicking on those files to open the application with the associated data, before putting the app up for sale. Agreed? That's not something that should wait for a later release.

Not sure anyone needs to hear about the various mistakes made along the way. It took about a week to accomplish, with debugging.

Today, I plan to install Java on my wife's Windows 7 machine. The only way to make an x86 version apparently is on a machine with x86 Java, and my desktop and laptop are both 64-bit Windows. Am hoping the steps that I wrote for JLinking and packaging work without a problem on her machine.

music and music apps: http://adonax.com
Offline nsigma
« Reply #6039 - Posted 2018-07-19 16:03:38 »

Anyone know a nice source of 32x32 application icons? The ones I’m using are only 16x16 so they don’t look great on higher resolutions.

There's the Material Design icons which are Apache licensed - https://material.io/tools/icons/

Which makes me wonder, why are you looking specifically for 32x32?  Why not scalable?  Could use your existing font rendering?

Praxis LIVE - hybrid visual IDE for (live) creative coding
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline beeaware
« Reply #6040 - Posted 2018-07-19 17:05:40 »

@philfrei From NetBeans, I can set the Java platform to be used, wether it be 32 or 64 bits, and then create an app-bundle. (Lol without even knowing it, the first version of Bee Aware was 32 bit Java. I noticed as soon as I got 'out of memory (heap)' messages). Unless this is not what you mean, ofcourse, since you mention JLinking as well.
Anyway, how did you manage to associate your .tcd files with your app? I'm guessing an environment variable? And I agree that such an association is certainly a valuable asset.

You know you're getting old when you played Pong while it was still hot...
Offline beeaware
« Reply #6041 - Posted 2018-07-19 21:39:25 »

New gameplay video for Bee Aware!

<a href="http://www.youtube.com/v/NXHuYIr-lIo?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/NXHuYIr-lIo?version=3&amp;hl=en_US&amp;start=</a>

You know you're getting old when you played Pong while it was still hot...
Offline philfrei
« Reply #6042 - Posted 2018-07-19 23:30:53 »

Just getting back from some chores. All I want to do is nap.

@beeaware
As far as file associations, here is a thumbnail of the steps. Maybe I will go into more detail with a tutorial, later. Hard to do that now as I don't think I fully understand all the steps and am probably not doing it the best way.

The way the registry works, when you click a file with an extension, Windows searches for the extension as a key value. Associated with it is a command line, which in this case should consist of your executable and the file name of the clicked-on file as a string argument.

Thus, as far as the Java is concerned, a logical approach is to code your program so that the main() is able to handle (if one exists) an argument in the Strings[] array that is the address of a loadable file. This includes verifying that the address points to a valid file of the right type, etc.

Next challenge was having the .bat file created by the JLink process also work in this regard. For example, my .bat is named TCDLaunch.bat, so it needs to be altered so that it can work (from the command line):

    c:>TCDLaunch fileName.tcd

Next, is the actual configuration of the Windows registry. I was following the instructions in InnoSetup5. It's all handled in the configuration file for InnoSetup5. These instructions are pretty good, only a little bit ambiguous once you have some background info about the Registry. The instructions include important clauses that ensure a proper uninstall, too!

music and music apps: http://adonax.com
Offline beeaware
« Reply #6043 - Posted 2018-07-20 01:00:49 »

I was wondering if it is possible to post non-java games on jgo? I wrote a bunch of (published) freeware games and apps back in the nineties, and would like to show them (well, and boast a bit  Grin). Point is, some are written in QuickBasic and some in Turbo-C. I don't mean posting in showcase or something, perhaps a separate topic? Maybe such a topic already exists? (haven't found it).

You know you're getting old when you played Pong while it was still hot...
Offline ral0r2
« Reply #6044 - Posted 2018-07-20 09:09:19 »

I was wondering if it is possible to post non-java games on jgo? I wrote a bunch of (published) freeware games and apps back in the nineties, and would like to show them (well, and boast a bit  Grin). Point is, some are written in QuickBasic and some in Turbo-C. I don't mean posting in showcase or something, perhaps a separate topic? Maybe such a topic already exists? (haven't found it).


I'd suggest to put them on offtopic or in case you are planning to draw a comparison between these games and java games  (or any other thing which links to java game dev) in general discussion Smiley
Offline orange451

JGO Kernel


Medals: 452
Projects: 7
Exp: 7 years


Your face? Your ass? What's the difference?


« Reply #6045 - Posted 2018-07-22 15:12:14 »

More progress on IDE. Integrating lua into it. I've created a bunch of helper classes for the lua implementation (i.e. vectors, colors, matrices). I don't think I want to let the user directly touch the java side, but I plan to expose a lot of functionality through lua so it's neater.


First Recon. A java made online first person shooter!
Offline Mad Hatter
« Reply #6046 - Posted 2018-07-23 18:21:55 »

Slowly going back.

Making game sprite and character concept
<a href="http://www.youtube.com/v/XkxWQpObsDQ?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/XkxWQpObsDQ?version=3&amp;hl=en_US&amp;start=</a>



I discovered that we have here thread like " What I drew today ", maybe I gonna next time send my stuff there?
Offline Gornova
« Reply #6047 - Posted 2018-07-23 19:08:25 »

I'm working on my evil god simulator, Infiltration here

<a href="http://www.youtube.com/v/DoIWUCElsSk?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/DoIWUCElsSk?version=3&amp;hl=en_US&amp;start=</a>

Fourth update so far an interesting experience, working only with java and swing Cheesy

Blog | Last game Drone Swarm
Offline Shatterhand

Junior Devvie


Medals: 9
Exp: 5 years



« Reply #6048 - Posted 2018-07-23 19:17:28 »

I'm working on my evil god simulator, Infiltration here

Hm, the city/god names sound like the "Elvish" language in Lord of The Rings, however the Elves usually were not evil.

Today I ironed out some hard to find bugs in my game, though there are still some left.
And now the only "big" feature left to implement are bosses. My AI system is pretty solid, but bosses pose new challenges for it. Smiley Does anyone have a few tips about what would be a good approach or pitfalls to avoid?

Cheers

Micro$oft broke Volkswagen's world record: Volkswagen only made 22 million bugs!
Offline beeaware
« Reply #6049 - Posted 2018-07-23 19:31:19 »

@Gornova Looks nice! Any specific reason for using Swing instead of JavaFX? I think working with the JavaFX canvas is easier and faster (performance wise) than the canvas in Swing (correct me if I'm wrong). Plus, JavaFX has some nice effects, and if you combine them with a timeline you can do cool stuff (ofcourse, not AAA-quality, but cool nonetheless).

You know you're getting old when you played Pong while it was still hot...
Offline orange451

JGO Kernel


Medals: 452
Projects: 7
Exp: 7 years


Your face? Your ass? What's the difference?


« Reply #6050 - Posted 2018-07-24 05:34:28 »

Started a rendering engine to go along with my ide.



So now the user can insert meshes, write scripts to do simple modifications, and see it real-time. I don't have a way to show it as a gif at the moment, but the teapot is spinning via this lua code:

1  
2  
3  
4  
script.Parent.Rot = 0
game.RunService.Heartbeat:Connect(function()
   script.Parent.Rot = script.Parent.Rot + 3
end)

First Recon. A java made online first person shooter!
Offline tariqbroadnax

Senior Devvie


Medals: 7
Exp: 3 years



« Reply #6051 - Posted 2018-07-25 00:49:49 »



Working on Scene Editor ...
+ Started working on the ui to create the quests that npcs can give. The image above shows what I have so far.
+ Thought of some ui ideas of how I create dialogue in my editor.

Offline orange451

JGO Kernel


Medals: 452
Projects: 7
Exp: 7 years


Your face? Your ass? What's the difference?


« Reply #6052 - Posted 2018-07-25 12:30:32 »

Playing around with sandboxed asset creation



Not sure yet if this is exactly the route I want to take, but I don't mind it so far. You import textures/meshes, then you take those two data types to create models/materials. Then you create a GameObject, and set its model to one of the models in the list.

First Recon. A java made online first person shooter!
Offline Mad Hatter
« Reply #6053 - Posted 2018-07-25 19:01:57 »

<a href="http://www.youtube.com/v/-ZjtT1VZaUE?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/-ZjtT1VZaUE?version=3&amp;hl=en_US&amp;start=</a>
Results
...and some character concepts:
Offline FabulousFellini
« Reply #6054 - Posted 2018-07-27 20:14:15 »

I re-arranged my gaming area:


Edit: sorry the picture is gigantic.

-FabulousFellini
www.fabulousfellini.com
Offline SkyAphid
« Reply #6055 - Posted 2018-07-28 03:01:58 »

Oh, I forgot to mention it here, but I released JDialogue and also another basic palette swapping tool I made for my artist. I think posting them at the same time resulted in people only seeing the palette swapper, which was way lower effort than JDialogue. Anyway, both are released on github and have executable jars you can download.

JDialogue thread
Palette Swapper thread

pls gib medals

it just werks
Offline KaiHH

JGO Kernel


Medals: 650



« Reply #6056 - Posted 2018-07-28 19:26:27 »

Here's a little library I've coded last week as a helper/utility Java 8 library at work (runs under Java 8, 9, 10 and 11). It has become quite useful for us now and I think it could be useful for other people, too.

https://github.com/httpdigest/propertyname

Some small test cases: https://github.com/httpdigest/propertyname/blob/master/src/test/java/propertyname/PropertyNameBuilderTest.java

In a nutshell: It allows refactoring-safe naming of POJO properties.

What do I mean by naming of POJO properties? Certain things like JPA queries, be it either string queries or JPA criteria queries, or Hibernate Search/Lucene queries and other reflection-based libraries require that the programmer names the desired properties of one or more entity/POJO classes using simple strings.
In the early stages of a project however, there is the tendency to rename entity properties quite often, either when those properties map to an interface of an external/third-party system which is developed alongside ones own application or to reflect the business meaning of what's been modelled better.

Of course, then tooling cannot know which string literal actually refers to which class property when refactoring/renaming such class properties. This has caused a lot of errors for us in the past due to exception only being raised at runtime or in some cases no exceptions being raised at all because the property was renamed and afterwards another property with the same name re-introduced.

This little library now allows to replace something like
"customer"
(meaning the customer property of a Purchase) with
nameOf(Purchase::getCustomer)
and
"customer.name"
with
name(of(Purchase::getCustomer).getName())
and therefore helps tooling to either refactor the use of the property accordingly or generate a compile-time error when the property does not exist anymore.

Some motivations for getting to this solution:
- http://in.relation.to/2016/04/14/emulating-property-literals-with-java-8-method-references/
- https://stackoverflow.com/questions/21887358/reflection-type-inference-on-java-8-lambdas?rq=1#answer-25613179

It should be said that an alternative for JPA exists: JPA Static Metamodel. But I disliked that this requires an additional build step.
Offline orange451

JGO Kernel


Medals: 452
Projects: 7
Exp: 7 years


Your face? Your ass? What's the difference?


« Reply #6057 - Posted 2018-07-31 04:05:10 »

Started work on a PBR workflow. Though after a lot of tweeking, it doesn't seem quite right yet. I can't put my finger on it.


[Edit]
Decided to implement tone-mapping and a different lighting-equation:

I think it looks much better.

[Edit 2]
Added some IBL (or at least this is how I /think/ you do IBL...)



I like it! Smiley


If you want an example of what the IBL looks like:

I wasn't exactly sure how to apply it, so it's done by overriding the fresnel. If no IBL exists, it just does a normal white fresnel based on metalness/roughness.

First Recon. A java made online first person shooter!
Offline philfrei
« Reply #6058 - Posted 2018-07-31 18:11:33 »

I'm spending a good part of today reading about the Windows Registry and figuring out to deal with some packaging hoo-haa that arises with the use of Java 9/10 modular programs and custom runtimes.

The runtime I created with JLink results in a set of file folders and an entry point: /bin/MyProgram.bat

Packaging for Windows, using InnoSetup5, we give the entry point as a value for specifying what the StartMenu or Desktop icon will call. We also make use of the entry point when specifying what a .xyz (your extension) will call.

The issue is that InnoSetup is not expecting the entry point to be a .bat. We get unwanted behavior, such as the .bat file opening its own Window prior to the call to the Java program. InnoSetup has a provision called "runminimized" that has the .bat files run in the background rather than an open window. But the behavior is a bit flaky, as there is no way to specify if the Java program, once it is called, will have the focus or not. (I found that calling from StartMenu, it did, but from a desktop icon, it didn't, and sits behind other open Windows or opens minimized.) Also, there is no "runminimized" option for opening the program from its associated extension.

The folks at InnoSetup recommended one of two courses of action:
> inline the contents of the bat into the Registry
> recreate the bat as an exe.
(A third path to look at will be to confirm whether the JLink necessarily creates .bat, or if we can have JLink create some other executable than a .bat.)

It seems to me this is well worth figuring out, and sharing with the Java Gaming community. It would be a real plus to be able to package our games and applications as self-contained, using smaller, customized runtimes, yes?

Am wishing we had a section specifically for posting deployment related questions. I'll probably just post in "Newbie" unless there is a better suggestion. Once solved, will commit to making some sort of resource document or tutorial that summarizes the process I'm going through with deploying with a self-contained, customized runtime.

music and music apps: http://adonax.com
Offline dime26

JGO Ninja


Medals: 73
Projects: 7
Exp: 12 years


Should traffic wardens be armed?


« Reply #6059 - Posted 2018-08-01 12:02:26 »

Back to the car game Ive been tinkering with for ages, started implementing a basic engine which has a start delay when you get into a car, added some exhaust fumes and dust.

The dust takes the velocity of the car at the point of creation to add some movement to it, the dust is red while I am testing it.

Click to Play
Pages: 1 ... 200 201 [202] 203 204 ... 207
  ignore  |  Print  
 
 

 
hadezbladez (290 views)
2018-11-16 13:46:03

hadezbladez (159 views)
2018-11-16 13:41:33

hadezbladez (291 views)
2018-11-16 13:35:35

hadezbladez (72 views)
2018-11-16 13:32:03

EgonOlsen (2151 views)
2018-06-10 19:43:48

EgonOlsen (2177 views)
2018-06-10 19:43:44

EgonOlsen (1366 views)
2018-06-10 19:43:20

DesertCoockie (1984 views)
2018-05-13 18:23:11

nelsongames (1626 views)
2018-04-24 18:15:36

nelsongames (2273 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
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!