Closed paris-ci closed 7 years ago
Based on the error message, it sounds like your sharedconfig.vdf file does not contain an "Apps" map where Steam-Categorizer is expecting it to be. Would you be willing to share the contents of your sharedconfig.vdf file?
Sure !
"UserRoamingConfigStore"
{
"Software"
{
"Valve"
{
"Steam"
{
"SSAVersion" "3"
"PrivacyPolicyVersion" "2"
"DesktopShortcutCheck" "0"
"StartMenuShortcutCheck" "1"
"AutoLaunchGameListCheck" "1"
"apps"
{
"440"
{
"LastPlayed" "1370442651"
"cloudenabled" "1"
"tags"
{
"0" "favorite"
}
}
"212070"
{
"LastPlayed" "1368876260"
}
"243730"
{
"tags" ""
}
"225420"
{
"cloudenabled" "1"
}
"363970"
{
"cloudenabled" "1"
}
"386940"
{
"tags"
{
"0" "favorite"
}
}
"207140"
{
"tags"
{
"0" "favorite"
}
}
"323850"
{
"tags"
{
"0" "favorite"
}
}
"368730"
{
"tags"
{
"0" "favorite"
}
}
"620"
{
"tags"
{
"0" "favorite"
}
}
}
"SteamDefaultDialog" "#app_store"
}
}
}
"Web"
{
"WebFav0_URL" "https://www.google.com/"
"WebFav0_Name" "Google"
"WebFav1_URL" "http://www.youtube.com/"
"WebFav1_Name" "YouTube"
"WebFav2_URL" "http://www.twitter.com/"
"WebFav2_Name" "Twitter"
"WebFav3_URL" "http://www.facebook.com/"
"WebFav3_Name" "Facebook"
"WebFav4_URL" "http://www.reddit.com/"
"WebFav4_Name" "Reddit"
"WebRecent0_URL" "*****"
"WebRecent0_Name" "Redirection du paiement externe"
"WebFrequent0_URL" "http://steamcommunity.com/id/newm1ne/"
"WebFrequent0_Name" "Communauté Steam :: himself [FR(EN)]"
"WebFrequent0_Access" "1"
"WebRecent1_URL" "http://steamcommunity.com/id/newm1ne/"
"WebRecent1_Name" "Communauté Steam :: himself [FR(EN)]"
"WebFrequent1_URL" "https://www.google.ca/?gfe_rd=cr&ei=YRfKV_ykFevK8geP75fYDQ"
"WebFrequent1_Name" "Google"
"WebFrequent1_Access" "1"
"WebRecent2_URL" "https://www.google.ca/?gfe_rd=cr&ei=YRfKV_ykFevK8geP75fYDQ"
"WebRecent2_Name" "Google"
"WebFrequent2_URL" "**********"
"WebFrequent2_Name" "Redirection du paiement externe"
"WebFrequent2_Access" "1"
}
"TradeInfoHint" "1"
}
In your file, it is called 'apps', whereas with my file it is called 'Apps' (upper case 'A'). I can push out a fix for this sometime today. I'll post an update when I have completed.
ok :)
Tried to replace apps by Apps in my config, but I get :
/Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.5/lib/steam/categorizer.rb:144:in `block in generate_steam_config': undefined method `each' for "":String (NoMethodError)
from /Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.5/lib/steam/categorizer.rb:142:in `each'
from /Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.5/lib/steam/categorizer.rb:142:in `generate_steam_config'
from /Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.5/exe/steam-categorizer:23:in `<top (required)>'
from /Users/arthur/.rvm/gems/ruby-2.3.1/bin/steam-categorizer:22:in `load'
from /Users/arthur/.rvm/gems/ruby-2.3.1/bin/steam-categorizer:22:in `<main>'```
I fixed both issues you reported and tested with the sharedconfig file you provided here. Please pull the latest version from master and see if it works for you.
@Lyle-Tafoya Unfortunately, it don't works for me :
/Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.7/lib/steam/categorizer.rb:150:in `block (2 levels) in generate_steam_config': undefined method `add' for #<Hash:0x007fef5b7e6308> (NoMethodError)
from /Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.7/lib/steam/categorizer.rb:147:in `each'
from /Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.7/lib/steam/categorizer.rb:147:in `block in generate_steam_config'
from /Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.7/lib/steam/categorizer.rb:142:in `each'
from /Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.7/lib/steam/categorizer.rb:142:in `generate_steam_config'
from /Users/arthur/.rvm/gems/ruby-2.3.1/gems/steam-categorizer-0.5.7/exe/steam-categorizer:29:in `<top (required)>'
from /Users/arthur/.rvm/gems/ruby-2.3.1/bin/steam-categorizer:22:in `load'
from /Users/arthur/.rvm/gems/ruby-2.3.1/bin/steam-categorizer:22:in `<main>'
Using version 5061ae12e4a6567878dba33cdbddf9dd77f88671
Sorry about that. It looks like I introduced a regression. Please try again with the latest version.
Congratulations, you fixed the bug ! Everything works perfectly.
Launched with :
$ steam-categorizer -p ~/.config/steam_categorizer.json -c ~/Library/Application\ Support/Steam/userdata/131245987/7/remote/sharedconfig.vdf
config :