ArchiSteamFarm icon indicating copy to clipboard operation
ArchiSteamFarm copied to clipboard

IPC GUI todo

Open MrBurrBurr opened this issue 8 years ago • 33 comments

IPC GUI source code is available here. Feel free to make appropriate modifications and send a PR.

Bugs

  • [Global] Load fallback strings if dynamic loaded i18n strings are empty
  • [Bots] Fix all images being showed Described here

ToDos

  • [Global] Think about NLog layout
  • [Bots] Auto detect order of keys in BGR Consider this suggestion
  • [Commands] Implement wiki parser for command descriptions Show tooltip/box with wiki info about the selected command - Consider this suggestion
  • [Config] Implement wiki parser for config properties Show tooltip/box with wiki info about the selected config property - Consider this suggestion
  • [Config] Implement Driver.js Wiki parser for Editor and Generator, Whats new?, Tips&Tricks, missing input etc.
  • [Config] Do not include default properties when updating config Current save method in ASF ignores default properties and writes whole BotConfig to file
  • [Config] Implement parsing helper to editor and generator

Suggestions

  • [Commands] Add "quick commands" feature Consider this suggestion
  • [Commands] Save last Command sent info Maybe add a button to resend last sent command
  • [Commands] Add multiple support for botsDropDown
  • [Commands] Think about adding autoComplete to commandInput
  • [Commands] Get raw .md file and parse it Consider this suggestion

Final Steps

  1. Implement style guide and coding conventions
  2. Check nightmode support
  3. Optimize and clean code
  4. Check for input/output sanitation
  5. Minimize all files

FAQ

Error 1006 when viewing Log page This is getting caused by one of the following points:

  1. Adblocker - Add IPC GUI to whitelist
  2. Windows 7 - Websockets are not supported on win7
  3. nginx - Check websocket proxying

When using nightmode and swiching between pages, lightmode is visible for a short moment Sadly I cant change that.

MrBurrBurr avatar Mar 27 '18 13:03 MrBurrBurr

Random suggestion - it'd be nice if BGR keys importer offered also a switch that would change order from name<delimiter>key into key<delimiter>name. Even better if it could automatically detect that based on regex (so "order" dropbox with 3 options - auto-detect, key-name and name-key, default to auto).

JustArchi avatar Apr 16 '18 08:04 JustArchi

BTW, #799 should also solve lack of websockets on Windows 7 - runtime uses managed implementation in this case 🙂.

JustArchi avatar May 29 '18 03:05 JustArchi

Hopefully here is the correct place to report this bug:

IPC GUI is unable to send commands to bots containing a # in their name

Sending (any) command to bots containing a # in their name fails with bot not found error. For example bot name 'x#y' The # and everything past it gets cut off in the parsing somewhere. I suppose the issue is html/http replacing symbols like # and some others to %-codes. Escaping them when sending might solve that.

Tristar7 avatar May 29 '18 05:05 Tristar7

Re Error 1006.

Using ASF on local machine on Win10 with AdBlock installed on Chrome, Firefox and Opera: only on Firefox this error occurs.

Botan626 avatar May 29 '18 14:05 Botan626

i got the error both on chrome and firefox. i think it depends on the settings you have in your adblocker (the block-lists you chose)

Abrynos avatar May 29 '18 16:05 Abrynos

Pressing "-" won't minimize the window, the "-" will turn into a "+" only.

image

Botan626 avatar May 31 '18 20:05 Botan626

I changed code of drop-down menu, cuz old was uncomfortable. I know, it's not best code, but it's simple and working.

.scrollable-menu { height: auto; max-height: 220px; overflow-x: hidden; }

.scrollable-menu { height: auto; max-height: 300px; overflow-x: hidden; top:-300px }

ASF\www\css\app.css

before 487

after 486

user777888999 avatar Jun 03 '18 07:06 user777888999

@user777888999 as you where told now several times, both on discord and github in the issue you opened: you should rather open a pull-request than copying your message from one text-box to another in hope someone does those 10 lines of work for you.

Abrynos avatar Jun 03 '18 09:06 Abrynos

I've opened a pull request #820 to fix the issue I reported above.

Tristar7 avatar Jun 21 '18 12:06 Tristar7

IPC-GUI PRs take their time @Tristar7

as you can see mine is now open for 18 days, as the people behind it also have something else to do 😉

Abrynos avatar Jun 21 '18 12:06 Abrynos

Hi I got this error when I click save. I didnt put any character in the #web proxy column. image

{"Message":"OK","Result":{"GlobalConfig":{"AutoRestart":true,"BackgroundGCPeriod":0,"Blacklist":[],"CommandPrefix":null,"ConfirmationsLimiterDelay":10,"ConnectionTimeout":60,"CurrentCulture":null,"Debug":false,"FarmingDelay":15,"GiftsLimiterDelay":1,"Headless":false,"IdleFarmingPeriod":8,"InventoryLimiterDelay":3,"IPC":true,"IPCPassword":"**REMOVED**","IPCPrefixes":["http://*:1242/"],"LoginLimiterDelay":10,"MaxFarmingTime":10,"MaxTradeHoldDuration":15,"OptimizationMode":0,"Statistics":false,"UpdateChannel":0,"UpdatePeriod":24,"WebLimiterDelay":200,"SteamOwnerID":76561198404611632,"SteamProtocols":3,"WebProxyUsername":null,"s_SteamOwnerID":"76561198404611632","WebProxy":null},"MemoryUsage":17602,"ProcessStartTime":"2018-06-24T03:25:04.59+00:00","Version":{"Major":3,"Minor":2,"Build":0,"Revision":2,"MajorRevision":0,"MinorRevision":2}},"Success":true}

blackzafiqz avatar Jun 24 '18 03:06 blackzafiqz

It would be nice when one could retrieve the keys.used and keys.unused files over the webinterface.

TrAnn3l avatar Jul 15 '18 13:07 TrAnn3l

as of now there is no API endpoint for this but if archi approves of this idea i'd be happy to implement the backend for this feature

Abrynos avatar Jul 15 '18 13:07 Abrynos

It could be done as part of GET /Api/GamesToRedeemInBackground/{BotName} and DELETE /Api/GamesToRedeemInBackground/{BotName}, both should return/delete used and unused keys files. You can send a PR if you want to.

JustArchi avatar Jul 15 '18 14:07 JustArchi

@MrBurrBurr welcome!

blackzafiqz avatar Jul 17 '18 16:07 blackzafiqz

TBH I don't know if the endpoint should return the raw-file or the data in form of a list of json-objects like following:

{
	"Message": "string",
	"Result": {
		"AAAAA-BBBBB-CCCCC": {
			"Name": "Profit",
			"Result": "NoDetail",
			"Game": "Edepth Angel: Pinocchio's Murder VN",
			"ID": 226106
		},
		"CCCCC-BBBBB-AAAAA": {
			"Name": "Profit",
			"Result": "NoDetail",
			"Game": "Edepth Angel: Pinocchio's Murder VN",
			"ID": 226106
		}
	},
	"Success": true
}

which of course would be a whole lot more of work :3

Abrynos avatar Jul 17 '18 16:07 Abrynos

You should return 2 objects of Dictionary<string, string> - one for unused keys and one for used ones.

JustArchi avatar Jul 17 '18 16:07 JustArchi

ok. i would've made two endpoints 😅 e.g. /Api/GamesToRedeemInBackground/{BotName}/used and /Api/GamesToRedeemInBackground/{BotName}/unused

Abrynos avatar Jul 17 '18 16:07 Abrynos

IMHO no need to explicitly divide it, user will want to get/delete both files 100% of time.

JustArchi avatar Jul 17 '18 16:07 JustArchi

Then i'm the exception 😂

Abrynos avatar Jul 17 '18 16:07 Abrynos