Skip to content

Commit

Permalink
Fixing Wrong Coordinates
Browse files Browse the repository at this point in the history
USS Drops were getting the wrong coordinates. So we have changed the code to allways get the coordinates from edsm
  • Loading branch information
NoFoolLikeOne committed Sep 19, 2018
1 parent dd3cf20 commit a653739
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions load.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
this.s = None
this.prep = {}
#this.debuglevel=2
this.version="4.4.3"
this.version="4.4.4"

import re

Expand Down Expand Up @@ -480,9 +480,9 @@ def SupercruiseExit(self,cmdr, system, station, entry):
if self.uss:
#This is a USS drop set back to false
self.uss=False
if self.jumped == False:
self.sysx,self.sysy,self.sysz=edsmGetSystem(system)


self.sysx,self.sysy,self.sysz=edsmGetSystem(system)


dmerope=getDistanceMerope(self.sysx,self.sysy,self.sysz)
Expand All @@ -496,6 +496,7 @@ def SupercruiseExit(self,cmdr, system, station, entry):
url = "https://docs.google.com/forms/d/e/1FAIpQLScVk2LW6EkIW3hL8EhuLVI5j7jQ1ZmsYCLRxgCZlpHiN8JdcA/formResponse?usp=pp_url&entry.1236915632="+str(this.guid)+"&entry.106150081="+cmdr+"&entry.582675236="+quote_plus(entry['StarSystem'])+"&entry.158339236="+str(self.sysx)+"&entry.608639155="+str(self.sysy)+"&entry.1737639503="+str(self.sysz)+"&entry.413701316="+quote_plus(entry['Body'])+"&entry.1398738264="+str(dsol)+"&entry.922392846="+str(dmerope)+"&entry.218543806="+quote_plus(self.usstype)+"&entry.455413428="+quote_plus(self.usslocal)+"&entry.790504343="+quote_plus(self.threat)+"&submit=Submit"
#print url
Reporter(url).start()
self.uss=False

def v2n(v):
major,minor,point=v.split('.')
Expand Down
Binary file added widgets.pyo
Binary file not shown.

0 comments on commit a653739

Please sign in to comment.