fperegrinvs / swproxy-plugins Goto Github PK
View Code? Open in Web Editor NEWplugins for the SW Proxy
License: GNU Lesser General Public License v3.0
plugins for the SW Proxy
License: GNU Lesser General Public License v3.0
It will be really helpful to see what monsters were used for a specific run, so as to measure individual time taken by a team for a specific dungeon. If RunLogger.py
could, also, return the monsters used for the run, it will be really easy to use this information, and decide a team for a particular dungeon.
Should we use the "Wizard ID" by SWParser for the filenames instead of "myruns.csv"?
For example: "xxxxxx-runs.csv"
Maybe that should make the filenames more consistent throughout.
I have both the SWPRoxy-plugins and SWProxy running on my machine (not at the same time). I was wondering why the swproxy-plugins doesn't write out any files. I enabled full logs and I can see it grabbing all the json , but I can't figure out where it's writing the optimizer and swafarm files out too. Is there a setting I need to change to enable this? I'm using the cli version of the code. And I'm downloading it directly from github vs downloading the releases.
Hi. I consistently use SWProxy (plugins) for my Swarfarm info, and I very consistently run into issues with events.
1st) Often, when I tap the Events icon in SW, nothing happens. At all. It just sits there. Occasionally the events screen will come up.
2nd) When I get into the events screen, tapping an event usually opens its details. Sometimes it fails.
3rd) If I get into an event detail, tapping on an event action either does nothing, or returns a parse error in SW. Very rarely does the action complete correctly.
All of these issues are resolved by swapping networks and bypassing SWProxy.
Just FYI.
I would suggest adding rune['rune_id'] to the csv line. It will help keep track of new runes, at the end of the day I can never remember all the runes I kept and which ones might be sellable now due to additional ones found. With the rune_id I can quickly check the wizard_id.json file and see if it is still in my possession.
The cleanest way I could think of doing it was check the run_logger file for the existence of the header, say ",ID," and if it doesnt exist update file by adjusting the header and adding ",0," to each line right after the drop type column entry.
I do not see any print, file or write statements in the .py file. Nor any references to the swconfig file.
hi im just want to start using this swproxy
but why when i start the proxy my ip address is 127.0.0.1
and i cant connect from my phone to that ip address?
usualy i see other people ip is not like that so i think its something wrong with my pc the program?
im runing in on windows 8
thx
The swarfarm run logger doesn't log the failed battle with error message like:
SwarfarmLogger - Error: ['null value in column "dungeon_id" violates not-null constraint\n', 'DETAIL: Failing row contains (392560, 2899748, 2016-07-09 01:23:30+00, 1, null, null, null, f, 00:00:39.218, 963, 0, null, null, null, null, 27541, 0).\n', ' null value in column "dungeon_id" violates not-null constraint\n', 'DETAIL: Failing row contains (392560, 2899748, 2016-07-09 01:23:30+00, 1, null, null, null, f, 00:00:39.218, 963, 0, null, null, null, null, 27541, 0).\n']
When I use this, with the latest version of SW, and Windows 10 (latest version) on iOS, I am now unable to connect.
Turning off firewall, antivirus, giving the program admin rights, turning on Proxy after "Getting friends list" all have proven to be ineffective.
Has anyone else ran into this issue with this combo? Has anyone had success on another OS? I have a Mac
I Can't extract data. Have any1 same problem ?
I guess we should write one file per user ut also have a config option that would write data to a unified csv. Its worth noting that extra columns should be appended to file's end to maintain retro-compatibility
The summonlogger only recognize the first monster of the x10 batch
2016-05-17 10:20,Unknown Scroll,Mimick,Water,1,No
2016-05-17 10:20,Unknown Scroll,Mushroom,Water,1,No
Time, Score, mobs
So its easier to save the logs in other formats
The arena logger plugin doesn't log revenge arena, don't know if is a known issue
Every action will generate a json file that will be stored on a predetermined folder
Got everything set up with the latest version and the proxy is running fine, no errors and the .csv logs are all created, but no logs are showing up at swarfarm personal logs.
I can't start the latest SWProxy.exe. There is an error I can't rly read, because the consle window is closing so fast.. somethin with python27 dll missing?
I never had problems before.
Hi,
Would it be possible to have a template of the Google Sheet used by the GoogleSheetWriter plugin ?
Thanks
Hi,
The GWLogger.py plugin doesn't seem to have enough time to fully populate the Google Sheet before the next event is triggered.
I have never managed to get the full data on the "Log" sheet and thus all subsequent sheets are not written correctly.
Is there a way to fill it from the cached file "guildwar-xx.json" ?
ERROR:root:Exception while executing plugin "Arena Logger": [Errno 2] No such file or directory: '12234369-optimizer.json' Traceback (most recent call last): File "SWPlugin.py", line 42, in call_plugins File "....\SWProxy\plugins\ArenaLogger.py", line 60, in process_request return self.log_end_battle(req_json, resp_json, config) File "....\SWProxy\plugins\ArenaLogger.py", line 90, in log_end_battle user_mons = self.build_unit_dictionary(wizard_id) File "....\SWProxy\plugins\ArenaLogger.py", line 63, in build_unit_dictionary with open('%s-optimizer.json' % wizard_id) as f: IOError: [Errno 2] No such file or directory: '123456789-optimizer.json'
I got this by starting the proxy while already logged in, so the optimizer didn't generate the files on HubUserLogin.
Hello!
I've been trying to figure out of an error I've been having as of late with GoogleSheetWriter.
2016-04-06 12:58:26,528: yapsy - ERROR - Unable to import plugin: C:\Users\Konamiya\Desktop\SWProxy\plugins\GoogleSheetWriter Traceback (most recent call last): File "site-packages\yapsy\PluginManager.py", line 488, in loadPlugins File "C:\Users\Konamiya\Desktop\SWProxy\plugins\GoogleSheetWriter.py", line 2, in <module> import gspread ImportError: No module named gspread
I've not noticed this error before but at the end of the file it's clearly able to connect to google anyway?
2016-04-06 13:07:54,565: proxy - INFO - 192.168.0.163:59801 - CONNECT android.googleapis.com:443 2016-04-06 13:07:54,957: proxy - INFO - 192.168.0.163:59802 - CONNECT www.google.no:443
I'm not sure what's going on with it.
I'm using 64-bit version though, but I don't think that should matter. Image of python/gspread version.
http://i.imgur.com/2kqCA19.png
Any idea what's going on here?
Hi,
SWProxy.exe runs fine but when I try to run it from the python source code, events are not logged at all.
The source code is the one from the same release as the exe.
They both run on the same address and port and use the same swproxy.config file.
On both instances, i get this error, but the exe version still works and detects every event, but not when running from source. It is not blocked by the firewall as I tried after disabling it.
ERROR:proxy:Exception while receiving from connection client <socket._socketobject object at 0x039AEF80> with reason error(10053, 'Une connexion \xe9tablie a \xe9t\xe9 abandonn\xe9e par un logiciel de votre ordinateur h\xf4te') Traceback (most recent call last): File "D:\Downloads\SWProxy-plugins-7\proxy.py", line 272, in recv data = self.conn.recv(bytes) error: [Errno 10053] Une connexion établie a été abandonnée par un logiciel de votre ordinateur hôte
Enable user to write logs on google sheet
Some errors have started showing up in the log the last couple of days. Just wanting to inform in case there is an issue.
INFO:SWProxy:Found Summoners War API request : BattleScenarioStart
INFO:SWProxy:Found Summoners War API request : BattleScenarioResult
WARNING:SWProxy:SwarfarmLogger - Error: ['null value in column "dungeon_id" violates not-null constraint\n', 'DETAIL: Failing row contains (316752, 17017589, 2016-07-01 16:15:58+00, 0, null, null, null, f, 00:01:26.026, 330, 0, null, null, null, null, 28328, 2).\n', ' null value in column "dungeon_id" violates not-null constraint\n', 'DETAIL: Failing row contains (316752, 17017589, 2016-07-01 16:15:58+00, 0, null, null, null, f, 00:01:26.026, 330, 0, null, null, null, null, 28328, 2).\n']
INFO:SWProxy:Found Summoners War API request : BattleScenarioStart
INFO:SWProxy:Found Summoners War API request : BattleScenarioResult
Exception in thread Thread-1212:
Traceback (most recent call last):
File "threading.py", line 810, in bootstrap_inner
File "threading.py", line 763, in run
File "C:\Users\offic\Desktop\SW\plugins\SwarfarmLogger.py", line 67, in process_data
resp = urllib.urlopen(url, data=urllib.urlencode({'data': data}))
File "urllib.py", line 89, in urlopen
File "urllib.py", line 215, in open
File "urllib.py", line 443, in open_https
File "httplib.py", line 1049, in endheaders
File "httplib.py", line 893, in _send_output
File "httplib.py", line 855, in send
File "httplib.py", line 1274, in connect
File "ssl.py", line 352, in wrap_socket
File "ssl.py", line 579, in __init
File "ssl.py", line 808, in do_handshake
IOError: [Errno socket error] [Errno 10054] An existing connection was forcibly closed by the remote host
INFO:SWProxy:Found Summoners War API request : SellRune
INFO:SWProxy:Found Summoners War API request : BattleScenarioStart
INFO:SWProxy:Found Summoners War API request : BattleScenarioResult
INFO:SWProxy:Found Summoners War API request : SellRune
Exception in thread Thread-1223:
Traceback (most recent call last):
File "threading.py", line 810, in bootstrap_inner
File "threading.py", line 763, in run
File "C:\Users\offic\Desktop\SW\plugins\SwarfarmLogger.py", line 67, in process_data
resp = urllib.urlopen(url, data=urllib.urlencode({'data': data}))
File "urllib.py", line 89, in urlopen
File "urllib.py", line 215, in open
File "urllib.py", line 443, in open_https
File "httplib.py", line 1049, in endheaders
File "httplib.py", line 893, in _send_output
File "httplib.py", line 855, in send
File "httplib.py", line 1274, in connect
File "ssl.py", line 352, in wrap_socket
File "ssl.py", line 579, in __init
File "ssl.py", line 808, in do_handshake
IOError: [Errno socket error] [Errno 10054] An existing connection was forcibly closed by the remote host
INFO:SWProxy:Found Summoners War API request : BattleScenarioStart
INFO:SWProxy:Found Summoners War API request : BattleScenarioResult
WARNING:SWProxy:SwarfarmLogger - Error: ['\r\n', '<title>405 Not Allowed</title>\r\n', '\r\n', '
hello.
I am not good at English but please forgive me.
I used swproxy until last month.
But I tried to use it yesterday but it did not move.
I tried the latest version but did not start up.
I compiled from the source but started up, but various data are not generated.
Data is not generated but the game starts.
os windows7Ult
phone GalaxyS5(AOS6)
Create a screen of logs when executed.
Is it possible to take more detailed logs?
I would appreciate it if you let me know if you know.
time,match duration, win/loss (2R), teams
Hello
I'm sorry to open an issue for this, but nowhere is mentioned where to get this file and all other plugins just mention that the file is missing. I tried accessing several places with my account, but the file doesn't show up
where/how do I get it?
Heho,
could we also bump this to the actual state of the main Fork?
Greetings
time, stage, difficulty, win-loss clear time, team, final boss
I noticed that there is a difference in the values of the Barion's Rune efficiency, current and max potential. There are some where Barion's, which i would assume would be the lowest value because its how it is currently is higher than the current potential, and some where the current potential is higher than the max potential.
This may be correct and I am not understanding the values properly. If it is correct could someone explain what the values mean exactly? I was about to sell all under a 70% potential but noticed the differences.
I'm on SWProxy master, to get the plugins to load i had to remove
"plugins" parameter from process_request i.e fulllogger.py,
and change import SWPlugin to from SWPlugin import SWPlugin
without doing this, the plugins just wouldnt load, any clues why? I've got them loading now, considering issuing a pull request.
Are they working locally for your SWProxy? Have you backported from master into your fork?
gspread
oauth2client
I get a Failed to connected with the network. Please try again later. Error.
Here's my stats: Laptop on home, private network. Router is a Netgear Nighthawk R7000 (one of those $150+ routers with the 3 antennaes)
I right clicked the Norton Icon in my system tray and clicked Disable Auto-Protect and Disable Smart Firewall.
I have Windows 10, upgraded from windows 7 I am the only user on this laptop.
I right clicked SWProxy file and ran it normally and also ran it as administrator.
I typed in the IP address and port 8080 exactly into my iphone 6 WiFi settings (most up to date version of iOS).
I hit Start Proxy. Nothing changes on the black dos screen.
I open the game on my phone.
It says tap to start I tap It shows Checking For Updates Then immediately shows the Failed to connect error.
I have reset my router and tried turning the wifi on and off on my phone. I do not get any messages that lead up to a friend list. It just stops.
I have also noticed that no internet connections at all work on my phone now. However, the WifI icon still shows on my phone.
Hi, it seems that there is something wrong with the last release for some people. They get error 140001 if they want to start SWProxy. Her eis a reddit thread about this issue: https://www.reddit.com/r/summonerswar/comments/5jambp/global_swproxy_error_140001/
https://github.com/lstern/SWProxy-plugins/releases/tag/7 seems to work. I dont have the problem for any version so I cant really test it.
I'm not sure if this is an issue with the parser or just being on the proxy, but while I am running the parser, which is all the time now because logging the runs is awesome, I am unable to load the events page or the notices/dev notes. As soon as I turn off the proxy it loads fine. Not sure if you were aware of that or not.
hello..
i run sw proxy latest release in windows 10..after insert all of proxy setting in my phone n started the program, nothing happened,sw proxy cant get sw data from my phone..how to fix this? thanks
Just want to say that v0.100 works fine
But everything since up to v0.102 does not, when dragged onto an admin CMD:
C:\Windows\system32>C:\Users\User1\Downloads\SWProxy-windows-3\SWProxy.exe Error loading Python DLL: C:\Users\User1\AppData\Local\Temp\_MEI24922\python27.dll <error code 14001>
Tested from things I've found online - this is not a permissions issue on my side.
In addition to #23
Actually I've meant to generate .csv log from Guild Battle Log
for all guildmates battles (not only mine) together with GuildPoints Acquired.
Preferably in the following format:
Date, Enemy Guild, Opponent, Round 1 (Loss/Win), Round 2 (Loss/Win), Opponent Bonus GP (individual rank 0-3), Guild Points Acquired.
Hello there
I've seen that there is an option to change the port for the proxy, but what about the network interface?
I have several interfaces vmbox and so on, and the proxy ist listening on the wrong one.
How about an option to change the listening ip address?
Cheers
At this time I reject all logs server-side from the old plugin. Would you mind re-releasing with the updated plugin?
Time, match duration, win-loss, opponent name, teams,
I have some code that I have been using and converting it to plugins so I can continue to pull from main line SWProxy. Can someone post a cheatsheet of git commands to contribute new files, etc.
If it matters I am developing on a mac and have the git tools installed.
"clear_time": 136631
"stage_id": 10
"dungeon_id": 6001
Hi
i would like to run SWProxy-plugins on a the raspberry pi. The normal version works well. But Version needs some more packages:
Thats no problem. But win32api, win32con breaks the hole plan :/. Is this needed in any case?
Greetings
Has the newest build of SWProxy been merged in with this build? Seems like the old connection issues are back when I try and use this.
I am getting Invalid Format errors while running the parser.
Hi there.
First of all, i appreciate everything you guys have done.
Now lets go for my issue.
I downloaded the last release for android, not the Asia Server because i play on EU server.
All right, everything set, proxy on swproxy, phone and wifi. Then i started the game and nothing happend. All i see is the message "proxy is running".
How to fix it?
Thanks in advance.
Sry if its a repeated question. But i really didnt see it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.