Maxx53 / SCMBot

Steam Community Market auto-buying bot
http://scmbot.com
GNU General Public License v2.0
237 stars 116 forks source link

Feature request: Import/Export Lists #60

Open ghost opened 10 years ago

ghost commented 10 years ago

Great work with the SCMBot there. Is it possible to get an import/export function for the listings and a chance to change the position of one single item in the list (move up and down)?

For now. Where are the settings/listings of the bot stored?

Also deleting a lot of items in a row does crash SCM (at least 10+, if deleting less at the same time it works).

Maxx53 commented 10 years ago

Settings file stored in

for Windows 7 C:\Users\your_name\AppData\Local\Maxx53\

for Windows XP C:\Documents and Settings\your_name\Local Settings\Application Data\Maxx53\

l4m0r commented 10 years ago

Any idea where they are stored on Windows Server 2012 R2?

I'm using the latest version (with Settings.xml and cookies.dat) and after migrating to a new server and copying the bot from Windows Server 2008 R2 to 2012 R2 the cookie import works but the imported/copied item list doesn't work and both lists (to scan for) are empty.

There is no directory at C:\Users\your_name\AppData\Local\Maxx53\ though, as it's the new version of the bot already.

Any ideas?

Maxx53 commented 10 years ago

The lastest commit has fully-portable settings, that stored in Settings.xml. Migration of cookies.dat must work in theory. Try to Export/Import scan lists manually (right click on scanListView -> Export/Import)

l4m0r commented 10 years ago

Sorry, I did write some things wrong and edited. No problems with the cookie, just with the list. I have the first version that was supposed to have portable settings on the old server but I can't right click on scanListView (yet?). Didn't it work back then or am I doing smth wrong?

Maxx53 commented 10 years ago

To migrate settings with first version, edit Settings.xml - change computer name.

l4m0r commented 10 years ago

Worked like a charm, thanks :) Had to copy "setting name="saveTabs"" and "setting name="saveRecent"" into the lower list below "/localsettings" as well, to make it work.

My old Settings.xml didn't have "setting name="formParams"" though. What is it good for and what value should I "import" or put into that one?

Thanks a lot for the awesome support! :)

Maxx53 commented 10 years ago

I recommend to use latest version. Import/Export feature helps with back-ups or fast changing scan parameters.

l4m0r commented 10 years ago

Yeah I use latest version now with the "patched" Settings.xml. I only wasn't sure what "setting name="FormParams" does, because old Settings.xml didn't have it. You think I could run into problems because of this?

Btw I just donated to say thank you for your project and awesome help :)

Maxx53 commented 10 years ago

FormParams is not important, this section will be created after closing program.

l4m0r commented 10 years ago

Ok all perfect then, thanks a lot :P