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

lugime

New Member
Apr 2, 2017
2
0
32
@lugime
If you just want to run it for yourself, you don't need to explicitly build a JAR. You can go to Global.java and click the 'play' button somewhere in the top left of your Eclipse UI.
You might have to edit the run configuration to let it find the data files. The paths should point to the parent directory of the default one.
If you actually do need the jar, go to File>Export...>Java>Runnable JAR File

Thanks, i'll try that.
 

Ironfa

New Member
Jul 20, 2018
3
0
33
Your right @dndw it's was that, I have instal java in a different dd and put the folder of nightmare in another DD (with another game ^^) and now it's work.

Now I can test this game, thanks a lot ( and thank to be patient with me and my bad english ;) )
 

Crazymanwerido

New Member
Aug 21, 2018
3
0
37
You get an option to save at the start and end of every night. It is not possible to save during the night, unfortunately.
But when i try to save at the start and end of every night i don't get a file to save to.
Could it be because i have the game in my program files?
 

dndw

Well-Known Member
Aug 27, 2015
456
20
But when i try to save at the start and end of every night i don't get a file to save to.
Could it be because i have the game in my program files?
That might well be an issue, yes, though I don't think I've ever actually check it. You should run the game from an unprotected directory. That is, almost anything except Program Files and Windows. Once you get it working, you can also turn on autosaving in the option menu, to save you the trouble.
 

Crazymanwerido

New Member
Aug 21, 2018
3
0
37
That might well be an issue, yes, though I don't think I've ever actually check it. You should run the game from an unprotected directory. That is, almost anything except Program Files and Windows. Once you get it working, you can also turn on autosaving in the option menu, to save you the trouble.
Ok. I'll try, thanks for the help.
 

Bombastik

New Member
Oct 21, 2018
1
0
28
Yo, is there an official working release or do i have to pull from github for a working copy?

Thanks in advance.
 

12centDime

Active Member
Mar 16, 2017
41
5
Official is a strong word at this point. I'm not even sure that there is an official version anymore >_>

Newest base that's being used is DarkSinfulMage's 2.6 version I think.
https://mega.nz/#!UJ4FlCZb!HwsHmGUt0rdpcD2gLOrxMfMHDvTL-VLHXaX0jy6ZAZw

Pull that out, then unzip and drop in the JAR update from below and overwrite. Fixes some old bugs and crashes and has some text updates among other things
 
Last edited:
  • Like
Reactions: ThisIsMe

ThatOneJester

Well-Known Member
Nov 14, 2015
386
23
33
I'm a bit afraid to download a new version until most of the gamebreaking bugs and mess of a code is fixed up.
Currently still have version 2.5.1.2 and it works okay enough that It doesn't bother me much.
Only problems are the enemies get stuck every now and then in fights not doing anything unless you show up.
And that the plant girl isn't in this version (no idea how to put her back in).

I have complete faith in everyone working on the mod though.
Patience is one of my greatest personality traits luckily~
(Also Loyalty).
 

DarkSinfulMage

Well-Known Member
Nov 18, 2016
253
44
42
I've been around - seeing comments. There's several folks around August-September making small changes - I don't mind merging in those or implementing them myself if anyone talks to me.

I wouldn't say there's an official version of NGM at this point. Here's the TL;DR:
  • We're trying to fix the game.
  • Everyone programs here as a hobby.
  • We all try to merge and send general fixes in my direction until the overhaul is complete.
  • Feel free to try other people's forks, as some do manage to get ahead of me because that's how it works.
Anyways, last I was playing with stuff, I was playing with unrooting Rosea. I can't say I have a lot of passion or time for projects, right now. If there's good changes being made, send em my way to merge or implement myself.
 

Vanquishah

New Member
Oct 23, 2018
1
0
30
How exactly are you supposed to run this game? Never had any trouble running the official game from Silver Bard Games, where you have to open the JAR file with Java or something. But for some reason I can't get this version to work.
 

Sacredferro

Well-Known Member
Aug 26, 2015
510
45
To add the plant girl, go into the characters folder and open the included.json, then replace what's in the file with the following...
[
"samantha.json",
"rosea.json"
]
Normally, just the samanth.json exists and rosea.json is omitted which disables her.
 

maverick-2k

Member
Aug 31, 2015
7
0
is someone able to help me with eclips? Java JDK1.8.0_1.8.1

[echo] nightgamesmod: C:\Users\...\Desktop\nightgamesmod-master\nightgamesmod-master\build.xml
[javac] Compiling 1171 source files to C:\Users\...\Desktop\nightgamesmod-master\nightgamesmod-master\build\classes
[javac] C:\Users\...\Desktop\nightgamesmod-master\nightgamesmod-master\NightgamesMod\nightgames\characters\Mara.java:144: error: unmappable character for encoding UTF-8
[javac] return "{self:SUBJECT} seems to have gotten too much of the demonic juju. Despite going high tech, {self:pRONOUN}'s rig of equipment ? {self:possessive} fancy rig of various gadgets and computerized glasses seem to have "

the ? is the problem
 

12centDime

Active Member
Mar 16, 2017
41
5
...huh. There's a special character there that looks like white space.
Code:
Despite going high tech, {self:PRONOUN}'s rig of equipment – {self:possessive} fancy
Should be safe to just delete the white spaces between rig of equipment and {self:possessive} fancy and then add a real whitespace with your own spacebar. That bit of code is only supposed to be a string so deleting the character shouldn't harm anything.

Its odd though. That line is not quite the same in my game and I don't think I've ever touched those lines. Weird. Granted it's been forever since I downloaded it but it doesn't look like it was ever changed if I'm reading github's history correctly.
 

maverick-2k

Member
Aug 31, 2015
7
0
...huh. There's a special character there that looks like white space.
Code:
Despite going high tech, {self:PRONOUN}'s rig of equipment – {self:possessive} fancy
Should be safe to just delete the white spaces between rig of equipment and {self:possessive} fancy and then add a real whitespace with your own spacebar. That bit of code is only supposed to be a string so deleting the character shouldn't harm anything.

Its odd though. That line is not quite the same in my game and I don't think I've ever touched those lines. Weird. Granted it's been forever since I downloaded it but it doesn't look like it was ever changed if I'm reading github's history correctly.
te

if i delete the character (in java editor "?" is a "-"), i will get new error in other lines.
build-project:
[echo] nightgamesmod: C:\Users\...\Desktop\nightgamesmod-master1\nightgamesmod-master\build.xml
[javac] Compiling 1171 source files to C:\Users\...\Desktop\nightgamesmod-master1\nightgamesmod-master\build\classes
[javac] C:\Users\...\Desktop\nightgamesmod-master1\nightgamesmod-master\NightgamesMod\nightgames\characters\Character.java:150: error: cannot find symbol
[javac] protected CombatStats combatStats; //TODO: Finish class and implement - Constructors, clones, and being able to serialize members. - DSM
[javac] ^
[javac] symbol: class CombatStats
[javac] location: class Character
[javac] C:\Users\...\Desktop\nightgamesmod-master1\nightgamesmod-master\NightgamesMod\nightgames\characters\Character.java:219: error: cannot find symbol
[javac] public CombatStats getCombatStats() { return combatStats; } public void setCombatStats(CombatStats combatStats) { this.combatStats = combatStats; }
[javac] ^
[javac] symbol: class CombatStats
[javac] location: class Character
[javac] C:\Users\...\Desktop\nightgamesmod-master1\nightgamesmod-master\NightgamesMod\nightgames\characters\Character.java:219: error: cannot find symbol
[javac] public CombatStats getCombatStats() { return combatStats; } public void setCombatStats(CombatStats combatStats) { this.combatStats = combatStats; }
[javac] ^
[javac] symbol: class CombatStats
[javac] location: class Character
[javac] C:\Users\...\Desktop\nightgamesmod-master1\nightgamesmod-master\NightgamesMod\nightgames\characters\Character.java:212: error: cannot find symbol
[javac] this.combatStats = new CombatStats(); //TODO: Reading, writing, cloning?
[javac] ^
[javac] symbol: class CombatStats
[javac] location: class Character
[javac] 4 errors

CombatStats is the problem.

i use the DarkSinfulMage version with eclipse IDE. maybe is use a wrong JAVA version or i do something wrong? i use the build.xml in the main folder.
 

12centDime

Active Member
Mar 16, 2017
41
5
I downloaded it and it does seem to cause errors if you try to compile it. Weird, I assume it compiled before since the latest update was after the point where those changes occurred and the JAR itself still works. Maybe java updated some stuff and it no longer compiles, I dunno. Maybe someone else knows.

Still. As for actually compiling it, you can just comment out lines 150, 212, and 219. As far as I can tell that wasn't yet implemented in any way meaningful to gameplay so it shouldn't make a difference.
 

DarkSinfulMage

Well-Known Member
Nov 18, 2016
253
44
42
Was actually playing whatever latest JAR I had compiled before taking a break last night - I'll look into it. I'm unsure of why CombatStats is missing when I recall working on it.

Just comment it out and references to it. I'll see if I can get myself back up and running between fresh IDE and GIT.

EDIT: It's fixed. Also, caught a mistake with SizeMod, so I fixed that, too.
 
Last edited:

aattss

New Member
Dec 16, 2017
3
1
27
So, I've been following this thread off and on since when it was still getting updates. How's the update going? Just curious.
 

ThatOneJester

Well-Known Member
Nov 14, 2015
386
23
33
Lurks around, looking for life~
 

Ryplinn

Well-Known Member
Jun 13, 2016
62
14
I've managed to find some spare brainpower recently! Here's where I'm at:
  • All parts of the core game logic (the day/night cycle, daytime activities, moving around the map at night, and combat) operate as an explicit loop. This eliminates certain classes of bugs and makes the game way easier to reason about.
  • Errors are much noisier than they used to be. If you get kicked out of a running game to the character creation menu, it's because something went wrong (programmer error) and you should send us the nightgames_log.txt file.
  • Buttons should not randomly stop working anymore.
  • My build is stable enough for me to level a character up to 70ish (so far). Last time I posted, I typically ran into a game-breaking bug by the end of the second night.
  • The code is organized sensibly enough for me to spot bugs masquerading as game balance issues, and vice versa.
Of course, I haven't fixed everything. Known issues:
  • I recognize that errors kicking you out of the game without telling you why isn't the most helpful thing ever.
  • There are some inconsistencies in how the UI displays (where newlines are and how many, when do the meters and statuses refresh, when does the text clear, etc.)
  • I had to disable button font resizing due to a weird error I couldn't track to its source, so the button text is small.
  • Some initial addiction messages show up multiple times. Haven't figured out why.
  • I haven't incorporated any changes that were made after v2.5.1.2.
  • I haven't updated any changelogs.
You can download the latest build here: https://drive.google.com/open?id=1dOYRLWaWN822QGT0n2lM_gYXsoUCic1O

You can also get the source from https://github.com/Ryplinn/nightgamesmod/tree/stable.
 
Last edited:

Atlas1965

Well-Known Member
Aug 28, 2015
64
6
Found a bug that needs squashing. I found a few, actually, didn't remember to save the logs from them unfortunately. Still, are you sure you shared the right version? This one seems to be crashing to main menu before I can even complete night 1.
 

Attachments

  • nightgames_log.txt
    4.3 KB · Views: 2

Ryplinn

Well-Known Member
Jun 13, 2016
62
14
I've updated the build. I should have mentioned that I hadn't tried out the level drain challenge. I have now, and ran into the same bug you found.
 

Atlas1965

Well-Known Member
Aug 28, 2015
64
6
New bugs, seemingly issues with loading saves causing crashes. Admittedly, this might have been my fault, but considering that there is no "saves from previous version are not compatible warning" and there's no warning that editing save files with Notepad++ (which worked in previous iterations just fine) could make save files useless, so I'm not sure what's wrong.
 

Attachments

  • nightgames_log.txt
    10.4 KB · Views: 1

Ryplinn

Well-Known Member
Jun 13, 2016
62
14
The save files themselves should be fine, as long as they're still valid JSON. The crashes I'm seeing in your log are from the game state not clearing itself correctly while loading when currently in a game, I think. For now, a workaround is to close and reopen the program when you want to reload a save.
 

Zermelane

New Member
Jun 16, 2017
2
0
38
Okay, I gave this (the most recent code on stable) a quick run, and... I've never worked with Swing before, so this might be a really stupid question, but: Isn't access to GUI.textPane supposed to be happening in the event dispatch thread? Because the game freezes as soon as I click on "Start the match", and as far I understand Swing, it should freeze immediately, on any platform, as soon as you do basically anything in the game. Simply tossing the few accesses to textPane inside SwingUtils.invokeLater makes it work perfectly. I'd send a pull request if I had even the slightest idea why the game is working at all for anyone.

(that said, that confusing detail aside this is looking like good work - NGM can be so annoying sometimes when you try whatever's the most recent code you can find and it turns out to be even more of a total mess than the last time you saw it. This work seems to be taking the game in the right direction for a change.)