Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (789)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (864)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2 3 ... 10
 1 
 on: 2019-05-19 18:34:08 
Started by SkyAphid - Last post by philfrei
What did you try? How did it break down?

 2 
 on: 2019-05-19 15:31:41 
Started by SkyAphid - Last post by SkyAphid
I think one of the problems is how inconsistent it feels. Like the whole reason I started this thread was out of frustration that the workflow I had made (and thought finally worked) didn't work with NNGINE/Robot Farm even though I had seemingly gotten it to work with Clear. I just don't know man.

 3 
 on: 2019-05-19 06:51:02 
Started by SkyAphid - Last post by philfrei
... even talented developers like yourself are having some issues.
I don't think that I'm much of developer compared to others here, but thanks for the compliment. I'm mostly self-taught, have a lot of knowledge holes, and have generally avoided issues pertaining to configuration. For example, even doing simple things with the dos shell was a challenge (when deciding to just try and get a simple command-line workflow going). "Some issues" is putting it mildly. Months of thrashing has included trying to work through the Oracle/Java Deployment Guide and getting quite frustrated. Very vexing about that documentation: no example of deploying a jlink project. Yes examples of jlink, yes examples of various deployments, but for some reason, no example combining both.

I'll try and test that when I get the chance with Clear since it's pretty small and might be a good way to see if that works.
Sounds good. If you can get the code to run under Java 11, and then make a jar for that using the "unnamed module", then, figure out what you would need in a module-info for the project (using jdefs). With that info it should be possible to build a custom jvm for running the project. If you run into any hitches, I'll be happy to try and help.

I'd love to see more posts like yours in the thread.
Agreed. But we may have to provide leadership here.

 4 
 on: 2019-05-19 06:48:32 
Started by orange451 - Last post by SugarBlood
Hi, I tried it, and cleared it in 30 strokes in total. I thought there is just one hole in game, but it have a little course, nice Smiley

 5 
 on: 2019-05-18 15:21:08 
Started by SkyAphid - Last post by SkyAphid
That's actually some useful information philfrei. As weird as it sounds, I'm almost glad to know that even talented developers like yourself are having some issues. I'll try and test that when I get the chance with Clear since it's pretty small and might be a good way to see if that works. I'd love to see more posts like yours in the thread.

 6 
 on: 2019-05-18 00:34:33 
Started by SkyAphid - Last post by philfrei
I am deploying ReferenceNoteKeyboard from itch.io for both Windows and MacOS, and it uses OpenFX 11 and OpenJDK 11. It was developed in Eclipse and makes use of a jlink-built jvm.

I also was able to take an old project of CommanderKeith's and build him a jlink-based version, and he has reported that he has run it successfully on multiple Windows systems. (All 64-bit, though.) I wrote about it here. I'm not sure but I think the basic approach could also work if you have your Eclipse project set up with the "unnamed module" (the default that accesses all the modules) and build a jar from that, and then go through the steps in the tutorial that is linked on that page. Should test that when I get a chance! Maybe someone else will?

The best way to set up projects on Eclipse isn't at all clear to me. What I'm doing kind of works but I don't feel like I totally understand. Anyway, here is what I've done:

For a given project, I include JavaFX11 as a Build Configurations/Library, in the ModulePath. I also make extensive use of another project (my audio engine), and put that in as a Project on the ClassPath. Neither project is set up to refer to a module-info. But I have added the following argument to the run configuration/VM arguments:

1  
--module-path "c:\Program Files\Java\javafx-jmods-11.0.1" --add-modules=javafx.controls


If the program uses more of JavaFX, then additional javafx modules have to be in the add-modules list, comma separated, e.g., javafx.media, javafx.graphics

When I export from Eclipse, I use the simple export jar option of just source code, and then work from CMD.com, i.e., build a module-info with notepad, and do command line compiling. (I'm using the basic steps written about here but these could be updated for when JavaFX is included.

I'm pretty sure there are better ways, that will make smarter use of Eclipse, but the above does work, afaik.

But I do agree that this is a lot of info scattered here and there and kind of a klooj. It would be good to have some basic guide oriented to the game programmer.

 7 
 on: 2019-05-17 23:40:36 
Started by SkyAphid - Last post by SkyAphid
We've been trying to and I've tried literally every official and open JDK from 9 and up, and every time I manage to get one aspect working another breaks. We just had to downgrade to JDK8 for like the billionth time today so that we could actually get some test programs out to other team members who needed them. This coupled with the fact that Eclipse is also progressively getting worse is really making this a bad time to be a Java developer.

Just wanted to find out how everyone else is doing and if they're running into any of these issues with their projects? Along with any personal workflows for getting past how annoying a lot of this is.

 8 
 on: 2019-05-17 22:43:43 
Started by BurntPizza - Last post by FabulousFellini
I purchased an NES action set.   Pretty cool !

 9 
 on: 2019-05-17 16:01:21 
Started by CopyableCougar4 - Last post by DesertCookie
Surely you could read a file in your jar (as a URL) to a ByteBuffer and pass it in?
I tried that but it always resulted in weird artefacts when rendering the meshes; reading it directly from a file works flawlessly. I haven't checked if the indices are scrambled or what exactly about the imported data is wrong when using the ByteBuffer read from an InputStream as a source.
The correct way to do it is to use aiImportFileEx and pass an AIFileIO that creates the appropriate AIFile instances.
I'm trying to get into them (had found your answers on the lwjgl-forums after posting here). So far I've only been looking at the AMD Tootle-examples; your link helped clarify a few things that werent clear to me from those demos.

 10 
 on: 2019-05-17 07:37:49 
Started by CopyableCougar4 - Last post by Spasi
The correct way to do it is to use aiImportFileEx and pass an AIFileIO that creates the appropriate AIFile instances. The callbacks in AIFile can be implemented however you wish, including reading everything from in-memory buffers or even streaming data from a jar file. If the root file references other files which are also contained in the archive, it will work without extracting everything to disk.

An advice if you choose this solution: log every callback invocation to get a feel of how it works, what you're supposed to do in each callback and avoid unnecessarily reading the same data again and again. You will probably need some kind of temporary cache for each aiImportFileEx call. A simple (non-streaming) implementation to get you started is available in lwjgl3-demos.

Pages: [1] 2 3 ... 10
 
hadezbladez (2595 views)
2018-11-16 13:46:03

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

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

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

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

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

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

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

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

nelsongames (4264 views)
2018-04-24 18:14:32
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

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
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!