joelamos / SourceRadio

Stream music from YouTube while playing games on Steam
http://steamcommunity.com/groups/source-radio
GNU General Public License v3.0
10 stars 0 forks source link

Exception in main thread. #14

Closed ghost closed 7 years ago

ghost commented 7 years ago

Exception details:

`Exception in thread "main" java.lang.NullPointerException
      at com.jeolchristopel.sourceradio.Game.getCfgPath(Game.java:96)
      at com.jeolchristopel.sourceradio.ScriptWriter.writeScripts(scriptWriter.java:39)
      at com.jeolchristopel.sourceradio.Playlist.intialize(Playlist.java:172)
      at com.jeolchristopel.sourceradio.Playlist.<init>(Playlist.java:158)
      at com.jeolchristopel.sourceradio.Playlist.getInstance(Playlist.java:139)
      at ``com.jeolchristopel.sourceradio.Playlist.main(Playlist.java:97)`

Yes, I did install it correctly. Also, why do you need 2 initialization functions? (You can tell I only know C++ can't you ;P)

joelamos commented 7 years ago

Is this the full error log? Do you have your game in a custom location?

ghost commented 7 years ago

It's everything that appeared in the console window. No I do not have the game in a custom location.

joelamos commented 7 years ago

What game are you playing?

ghost commented 7 years ago

TF2

joelamos commented 7 years ago

So then you have the directory C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\tf\cfg?

ghost commented 7 years ago

Yes

joelamos commented 7 years ago

Have you changed the steam path property in properties.txt?

ghost commented 7 years ago

Where would that be located? I didn't see anything to do with that in the installer?

joelamos commented 7 years ago

SourceRadio\properties\properties.txt

ghost commented 7 years ago

Ok, what do I need to change? ;P

joelamos commented 7 years ago

What is the value of that property?

ghost commented 7 years ago

C:\Program Files (x86)\Steam

joelamos commented 7 years ago

You definitely are using your C drive?

ghost commented 7 years ago

Yes, it is the only drive connected to my computer.

joelamos commented 7 years ago

Nothing to change in that file then.

joelamos commented 7 years ago

Actually, maybe there is. Enter your Steam profile URL here to find your SteamID3, and paste that into the properties file.

ghost commented 7 years ago

Done. ran the program again. Same exception.

joelamos commented 7 years ago

Are you sure you're running the latest update? The line numbers in the error log don't seem to match up exactly with the code.

ghost commented 7 years ago

I downloaded it from gamebanana, so, probably not. I'll be installing it from github now lol.

joelamos commented 7 years ago

GameBanana is the correct place to download it from. What version appears in the program console when you run it?

ghost commented 7 years ago

2017.02.03

joelamos commented 7 years ago

Okay, so you're running the latest version.

joelamos commented 7 years ago

I notice that you made some modifications to the error log. (e.g. my name's spelled wrong) Why was that?

ghost commented 7 years ago

Sorry! I have dyslexia :(

ghost commented 7 years ago

I'll check if I did anything else wrong like that.

joelamos commented 7 years ago

Oh so you typed it out from the console by hand rather than copying?

ghost commented 7 years ago

I was unable to copy and paste.

ghost commented 7 years ago

capture There is a screenshot of the console.

ghost commented 7 years ago

I'm just going to try reinstalling.

ghost commented 7 years ago

Ayyy! I works! Thanks for all the help :)