Jump to content

Doom Struct Java Library 2.0.0


MTrop

Recommended Posts

  • 6 months later...

Hello, MTrop!

 

Congratulations! I think your library is very useful! I love it! Is it possible to use it to load and render a doom level? Just to try to make a game on my own using this library.

 

Thanks in advance,

Joe

Share this post


Link to post
On 12/31/2019 at 7:12 AM, regevamoj said:

Congratulations! I think your library is very useful! I love it! Is it possible to use it to load and render a doom level? Just to try to make a game on my own using this library.

 

Load a level? Yes!

 

Render a level? Unfortunately, no. This library does not contain anything out-of-the-box for rendering, but you can still read the data.

Share this post


Link to post
  • 1 year later...

I'm interested to try this, but know next to nothing about Java. I'm on (perhaps too old) Linux and have 'java' and 'ant' commands. Running "ant compile" and "ant jar" in the extracted .tgz directory errors out:

BUILD FAILED
.../DoomStruct/build-import.xml:133: Class not found: javac1.8

How would I go about running some of the above examples?

Edited by Xymph

Share this post


Link to post

Your version of Apache Ant is out of date. You'll need at least Java 8 and a version of Ant that is also compatible with it, like version 1.9.0 or better.

Share this post


Link to post
  • 3 weeks later...
On 5/14/2021 at 9:57 AM, MTrop said:

Your version of Apache Ant is out of date. You'll need at least Java 8 and a version of Ant that is also compatible with it, like version 1.9.0 or better.

That's what I suspected, but only now I got around to booting a modern distro (finishing the transition to which got stuck in something of a migration hell a while ago). With OpenJDK 11 and Ant 1.10, the ant commands in README.md work fine and I have a .jar file in build/jar/doomstruct-2021.06.04.160511817.jar

But being a Java noob, I'm unsure how to try out any of the examples. I suspect one would need to put, e.g., the MD5 hashes example in a .java file and import the appropriate net.mtrop.doom package(s), perhaps compile it with javac while invoking the .jar, but it's all too unfamiliar to me.

 

I realize this is beyond the scope of a library README, but some more guidance and a complete practical example would be helpful, and make this library more accessible to interested Java noobs such as myself. :)

Edited by Xymph

Share this post


Link to post

You'll have to add the JAR to your classpath somehow when you compile and/or run Java programs. You can write them using the help of an IDE like VSCode or Eclipse or IntelliJ (and add the JAR to your project classpath), or from the command line using the -cp switch when you use both javac and java or javaw. All of them can do that differently, but the idea and result is the same.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...