nightgames mod. please help

Mei97

Well-Known Member
Aug 28, 2015
136
2
34
Hi, sorry to post this here(I'll delete it once i get help). So i downloaded the nightgames mod but I haven't been able to open it to play it at all. I downloaded the most recent java update and and have tried to use every app that came with it to open the game but none of them have worked. Would anyone be willing to tell me what to do or send me step by step pictures? Anything to help would be greatly appreciated.
 

nergantre

Well-Known Member
Aug 28, 2015
293
22
There's another thread, literally right above this one :\


I'm not sure why it's not working for you, what happens when you double click the .jar file?


You should be able to (if everything is set up correctly)


1. extract everything from the zip into a folder somewhere


2. double click on the jar to run the game


What I would try in order is

  • 1. do the above if you haven't
  • 2. look in the extracted folder, if there's something called nightgames_log.txt. If so, could you upload that or paste it in a PM to me?
  • 3. if you don't see anything, try (assuming you're on a PC),

    hold shift and right click in your nightgames folder,
  • click open command prompt here
  • type "java -version" and hit enter. Let me know what that says.

    If it says something like java version "1.8.0.somethingsomething", then you should be fine, I'm not sure what's going on
  • If it says something like java is not recognized as a internal or external command, then java is not on your path (which shouldn't be a problem normally, but it makes the test a bit more complicated).

    Go find where java is installed. Search for something called java.exe. Mine is in "C:\Program Files\Java\jre1.8.0_73\bin\java.exe", yours may be different.
  • try dragging the NightgamesMod_1_9_4.jar file onto the java.exe file, just as an experiment.

    If that makes the game work, your default jar opening application is wrong. Let me know what version of windows you're using and I can try helping you out.
  • If the game STILL doesn't work, what I would do is run this in the same command prompt you opened earlier:

    first drag the java.exe to the command prompt
  • add -jar after the filepath that appears
  • hit spacebar
  • drag the NightgamesMod_1_9_4.jar to the command prompt
  • You should see something like this:
  •  "C:\Program Files\Java\jre1.8.0_73\bin\java.exe" -jar "E:\NightgameReleases\1_9_4\NightgamesMod_1_9_4.jar"
  • Hit enter, and take a screenshot and send it to me. I'll try to see what the error you're seeing is and help you out.
 

dienso

Member
Feb 28, 2016
7
0
Hello,


I seem to be having the same problem.  Double clicking the [extracted].jar file results in something that appears to [load in .01 sec and closes in .02 seconds] - others may say 'nothing happens'. 


I've also attached a screenshot of what nergantre suggested.


From the errors it appears something is wrong on my side?
Please assist to fix.

Notes:


I'm unable to find any java application in my control panel>default programs.
I'm unable to set java as a default application for the .jar filetype.  Only javaw is an 'accepted' default application - all other programs I select as default app results in a return to the 'open with' prompt with no changes made, as if I hit cancel.
Java is up to date, attempting to update java returns up-to-date dialogue.



This game seems awesome and would appreciate all help.  Thank you for your time.

Help Needed.jpg
 

The Silver Bard

Well-Known Member
Sep 2, 2015
207
23
Looks like java is being called correctly, but it's having trouble reading in the clothing json. The folder is in a user specific directory, so I'm sure you don't have any read/write permissions issues. Possibly the file was corrupted when downloading and extracting it. Give it a try with a fresh download.
 

dienso

Member
Feb 28, 2016
7
0
Thanks for the response Silver Bard - per your suggestion I tried redownloading the file via the game thread, I also tried using a different archive util than what I used previous however the same issue seems to stick.


Edit: Tried your original game The Silver Bard and it seems to work here. I've tried running the 1.9.2 of the mod and I have a similar issue, it is basically the same however without the clothing json errors.

This Works Though.jpg
 
Last edited by a moderator:

The Silver Bard

Well-Known Member
Sep 2, 2015
207
23
I don't have a lot of ideas left, but I can suggest a couple longshots. You may have Java Settings listed in your control panel (I think it depends on your java version). If you do, try going into the security tab and turn it as low as it'll let you.


You can also also try moving the folder to a different directory. Desktop should have full permissions in theory, but I've occasionally seen apps do weird things there. Try moving it to your Documents or Downloads folder.


Lastly, try right-clicking the jar file and go to properties. You may have a security message at the bottom of the general tab indicating that the file is blocked, try unblocking it.


If none of that works, maybe try an older version of the game. You probably picked the mod for a reason, but if you're ok with the vanilla game, it doesn't use any json, so you shouldn't run into the same issue.
 

dienso

Member
Feb 28, 2016
7
0
First I want to say thank you both for your assistance thus far.  It's really awesome that the O.G's are providing support - it makes me feel like a special snowflake.


The Silver Bard - per your suggestion I tried unblocking everything, and when that didn't work I tried unblocking the archive file first before unzipping.  Didn't work however trying the experimental build of the mod version worked fine as shown in second picture.
Also tried reducing Java security settings - the lowest I can go is High vs. Very High.
I tried messing with the advanced tab with the bubble settings - I wasn't successful at finding a method to success though.  I've also moved the game folder to C:\ - after also trying users/documents.


Third picture shows what I see when I go to java CP > Java > View. IDK, looks fishy.  I'm running a Korean Windows 7 with English Language Pack. My \ becomes some W thing.


nergantre - here is the log pasted. First picture shows the game loading! But after pushing start a string of more errors spam.


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.


C:\Users\user>"C:\Program Files\Java\jre1.8.0_74\bin\java.exe" -jar C:\Nightgame
\NightgamesMod_1_9_4_path_test.jar
Could not find file data/clothing/defaults.json
java.io.FileNotFoundException: data\clothing\defaults.json (The system cannot fi
nd the path specified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at nightgames.Resources.ResourceLoader.getFileResourceAsStream(ResourceL
oader.java:41)
        at nightgames.items.clothing.Clothing.buildClothingTable(Clothing.java:3
2)
        at nightgames.global.Global.<init>(Global.java:158)
        at nightgames.global.Global.<init>(Global.java:147)
        at nightgames.global.Global.main(Global.java:1139)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Current active directory is C:\Users\user
=============================================
Night games
2016-02-28 17:58:57.321
Could not find file data/TraitRequirements.xml
java.io.FileNotFoundException: data\TraitRequirements.xml (The system cannot fin
d the path specified)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(Unknown Source)
        at java.io.FileInputStream.<init>(Unknown Source)
        at nightgames.Resources.ResourceLoader.getFileResourceAsStream(ResourceL
oader.java:41)
        at nightgames.global.Global.<init>(Global.java:183)
        at nightgames.global.Global.<init>(Global.java:147)
        at nightgames.global.Global.main(Global.java:1139)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Current active directory is C:\Users\user
java.net.MalformedURLException
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
Entity(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineD
ocVersion(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at nightgames.characters.TraitTree.<init>(TraitTree.java:91)
        at nightgames.global.Global.<init>(Global.java:183)
        at nightgames.global.Global.<init>(Global.java:147)
        at nightgames.global.Global.main(Global.java:1139)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.NullPointerException
        ... 18 more


Pathfind.jpg


Experimental.jpg


JavaCP.png
 
Last edited by a moderator:

nergantre

Well-Known Member
Aug 28, 2015
293
22
I think you're in the wrong folder before executing it.


In my original post, I mentioned you have to start the command prompt from inside your nightgames folder


So that would be  C:\Nightgame\NightgamesMod_1_9_4_path_test.jar


Then hold shift -> right click in the folder, open command prompt here


Then do the run.


Now that I look at your folder though, putting it in C could be weird. A lot of computers have permission issues with C.


Let's just try it one more time in the correct folder first.


Otherwise what you could do is


open command prompt (from anywhere)

Code:
cd C:\Nightgame

"C:\Program Files\Java\jre1.8.0_74\bin\java.exe" -jar C:\Nightgame\NightgamesMod_1_9_4_path_test.jar

Try that and see how it goes


Edit: I wouldn't worry about the blackslashes. I'm on japanese locale too, so my blackslashes are ¥ :p
 
Last edited by a moderator:

dienso

Member
Feb 28, 2016
7
0
Hory shit you guys! 5/7 perfect solution works like a boss.

Sorry for missing that part of your original post - and kudos for catching my mistake.
Again, thanks for the help to both of you and I hope the OP finds this solution to apply as well.
 

nergantre

Well-Known Member
Aug 28, 2015
293
22
Wait so it worked? o_O


That technically shouldn't have worked lol.


Looks like when you're running the jar, the working directory is wrong for some reason... Can you do me one more favor and just run the jar directly and paste the error from the nightgames_log.txt? I'd like to fix this so it wont be so annoying next time
 

dienso

Member
Feb 28, 2016
7
0
Running both the pathtest/normal jar yield the same success story - that is if I run via CMD prompt.
I see no errors on the CMD where I used to before.


If I run the jar directly (double click it) nothing happens. It looks like something loads and closes in a span of .01 seconds.
If I drag the jar to java.exe, a cmd box opens up and closes before you can read the text.
This happens with both the vanilla and the mod versions.


The nightmare log reads as follows - but it does not log any errors from my double click opening attempts.


=============================================
Night games
2016-02-28 18:52:20.939
Loaded shirt
Loaded jacket
Loaded blouse
Loaded bra
Loaded pants
Loaded skirt
Loaded panties
Loaded stockings
Loaded garters
Loaded pantyhose
Loaded boxers
Loaded underwear
Loaded briefs
Loaded thong
Loaded tanktop
Loaded Tshirt
Loaded shorts
Loaded jeans
Loaded form-fitting jeans
Loaded sweatshirt
Loaded sweatpants
Loaded sweater
Loaded miniskirt
Loaded strapon
Loaded bikinitop
Loaded bikinibottoms
Loaded cloak
Loaded labcoat
Loaded gi
Loaded chastitybelt
Loaded cup
Loaded undershirt
Loaded trenchcoat
Loaded warpaint
Loaded gothshirt
Loaded gothpants
Loaded crotchlesspanties
Loaded opencupbra
Loaded latextop
Loaded latexpants
Loaded silkShirt
Loaded blazer
Loaded dresspants
Loaded windbreaker
Loaded vinedress
Loaded leafbra
Loaded vinethong
Loaded slimebottom
Loaded slimetop
Loaded opententaclebottom
Loaded tentaclebottom
Loaded tentacletop
Loaded operagloves
Loaded heels
Loaded highheels
Loaded translucentshawl
Loaded stilettopumps
Loaded boots
Loaded thighhighboots
Loaded sneakers
Loaded shoes
Loaded socks
Loaded sandals
Using C:\Nightgame\data\clothing\defaults.json
Using C:\Nightgame\data\clothing\lexy_clothes.json
Using C:\Nightgame\data\clothing\maya_clothes.json
Using C:\Nightgame\data\clothing\samantha_clothes.json
Loaded shirt
Loaded jacket
Loaded blouse
Loaded bra
Loaded pants
Loaded skirt
Loaded panties
Loaded stockings
Loaded garters
Loaded pantyhose
Loaded boxers
Loaded underwear
Loaded briefs
Loaded thong
Loaded tanktop
Loaded Tshirt
Loaded shorts
Loaded jeans
Loaded form-fitting jeans
Loaded sweatshirt
Loaded sweatpants
Loaded sweater
Loaded miniskirt
Loaded strapon
Loaded bikinitop
Loaded bikinibottoms
Loaded cloak
Loaded labcoat
Loaded gi
Loaded chastitybelt
Loaded cup
Loaded undershirt
Loaded trenchcoat
Loaded warpaint
Loaded gothshirt
Loaded gothpants
Loaded crotchlesspanties
Loaded opencupbra
Loaded latextop
Loaded latexpants
Loaded silkShirt
Loaded blazer
Loaded dresspants
Loaded windbreaker
Loaded vinedress
Loaded leafbra
Loaded vinethong
Loaded slimebottom
Loaded slimetop
Loaded opententaclebottom
Loaded tentaclebottom
Loaded tentacletop
Loaded operagloves
Loaded heels
Loaded highheels
Loaded translucentshawl
Loaded stilettopumps
Loaded boots
Loaded thighhighboots
Loaded sneakers
Loaded shoes
Loaded socks
Loaded sandals
Loaded nursesgloves
Loaded camisole
Loaded lacepanties
Loaded samdress
Loaded lacybra
Loaded lacythong
Loaded samantha.json
Loaded rosea.json
Angel is in Quad
Checked Cunning = 5 against 18, rolled 1
Jewel is in Quad
Checked Cunning = 5 against 24, rolled 0
Cassie is in Liberal Arts Building
Checked Cunning = 5 against 17, rolled 10
Mara is in Dining Hall
Checked Cunning = 5 against 23, rolled 17
Aeric is in Student Union
 

Success.jpg
 

The Silver Bard

Well-Known Member
Sep 2, 2015
207
23
Sounds like the relative file path starts in the directory the application was launched from rather than the one the jar is in. I would not have expected that, but I guess it makes sense.
 

nergantre

Well-Known Member
Aug 28, 2015
293
22
Right, what I did want to check though is,


JUST double clicking the jar should generate a nightgames_log.txt.


Can you open that up and see what the error says?
 

dienso

Member
Feb 28, 2016
7
0
Right, what I did want to check though is,


JUST double clicking the jar should generate a nightgames_log.txt.


Can you open that up and see what the error says?

Double clicked, quad clicked, spammed Enter and the picture below shows the aftermath of executing the right click>open command 20 times.
Oh and I deleted the nightmare log before starting - to see if it would generate a new one.


The log wasn't created when I directly ran it from desktop either; first time log was observed was when it ran successfully from not long ago.
Running the pathfind jar from the [incorrect directory] also did not generate a log, though it did load the first screen.


Nolog.jpg
 
Last edited by a moderator:

Mei97

Well-Known Member
Aug 28, 2015
136
2
34
So I finally got my game to work thanks to nergantre (also thanks to every one who gave suggestions) Now should i keep this thread up in case other people need it or should i delete it?
 

dienso

Member
Feb 28, 2016
7
0
It loads and closes instantly without showing any box. Same issue as running any of the other .jars directly.
If I run via the CMD java -jar path\directory_tester.jar then the dialogue is:


Your current working directory is: C:\Nightgame


But, I don't think that was what you expected/wanted :\


Even if I try to open java.exe by ITSELF the cmd box just opens and closes - I'm not sure if that is right or not.
 

nergantre

Well-Known Member
Aug 28, 2015
293
22
aha I bet I know what's going on. Do you still have java6 or java7 installed on your machine?


I'm betting that the wrong java is being used.


This is how to fix that:


http://stackoverflow.com/questions/7325676/java-can-run-jar-from-cmd-but-not-by-double-clicking


Or if you don't feel like it, what you could do to make opening the game easier is


open notepad


paste this in it and save it as nightgames.bat

Code:
java -jar NightgamesMod_1_9_4.jar

Put it in the nightgamesmod folder and just double click the bat to run it.


Either way should work.


Anyways, thanks for your help getting to the bottom of this. I'll probably be creating bat files from now on for people like you to run the game more easily