jareddr / PoECustomSoundtrack

A companion app to Path of Exile to play a user defined soundtrack that changes as the player changes areas in game.
10 stars 6 forks source link

Can not add field to map in diablo2.soundtrack #1

Closed asetiadi001 closed 7 years ago

asetiadi001 commented 7 years ago

Hi,

I am trying to add a song during the login screen, in the map field, I added this "main": "mainMenu", //add this line "Lioneye's Watch": "rogue_encampment",

however, when I do console log in readJsonFile() it prints this map: { main: 'mainMenu', //missing quote in the key 'Lioneye\'s Watch': 'rogue_encampment', 'The Twilight Strand': 'options', hence, the getTrack() will always return false.

Is this error caused by string handling in Windows?

asetiadi001 commented 7 years ago

Hi,

Sorry I made a careless observation, turns out the worldAreas is still pointing from default.js Once I assign it to updated WorldAreas.json it can work