Nightgames Mod (v2.5.1.2) updated 2/11/17

Iloei

Member
Feb 11, 2016
6
0
A couple years ago, I submitted some minor changes for this game. They eventually got included, but I had wondered off.

I might have some time to put into this again (and maybe do a better job with my contributions), but... I forgot how to build the thing (for testing changes), and I don't see any readme explaining how to build it.

So... quick question... are there some obvious instructions somewhere that I'm overlooking?
 

Iloei

Member
Feb 11, 2016
6
0
Yes, I don't know how to build the executable.

(Yes, this used to seem obvious to me. But... I forgot...)
 

Ryplinn

Well-Known Member
Jun 13, 2016
61
14
It's been a long time since I had to do this from scratch, and I don't know your setup, so please ask more questions if you get stuck. I'm probably missing some steps.

1. Open the project in your IDE of choice. I use IntelliJ Community Edition, but Eclipse and others are fine as well. I haven't used Eclipse in over a decade, so I can't help with workflow there.
2. Find the main() function in the global/ package. In my stable branch, it's in global/Main.java. In other branches, it may be in global/Global.java.
3. Hit the play button next to the class header or main function. This should build and run things correctly. In IntelliJ it will also create a temporary build configuration for you, which you can save and edit for more permanent use.

If you want to build without running, one of the top menus should be called "Build", with a "Build Project" option. If you want to do without an IDE and run raw javac from the command line, I wish you luck.

Hope this helps/works at all!
 

redfordwhite

New Member
Jun 22, 2020
2
0
24
Hello there, how do you run this game? I've downloaded the nightgamesmod-stable.zip and unpacked it, but I don't know which .jar to open. I can play the one from Silver Bard's site just fine, though.
 

Diaraz

New Member
Jun 14, 2021
1
0
38
I could be mistaken, but I'm wanting to say that the jar file requires a specific version of java to run. Think having too new or too old a version will prevent the game from starting or working properly. But I can't be 100% on this, so don't quote me.