funkyfranky / funkman Goto Github PK
View Code? Open in Web Editor NEWDiscord bot interface for DCS/MOOSE
License: GNU General Public License v3.0
Discord bot interface for DCS/MOOSE
License: GNU General Public License v3.0
Although there are plenty of guides on how to create a BOT. Can you include in the README the permission levels that are needed?
Hi there!
Thank you for sharing your work!
I had a look at the code in funkplot.py because I thought about adding a custom watermark style logo to the grade sheets.
Since I don't really have experience in Python coding I probably did everything wrong:
From that attempt I get:
2024-05-19 22:17:05.718 ERROR 'FunkPlot' object has no attribute 'imageCustomLogo'
Appreciate every advice :-)
Cheers
Yoshi
Getting this error once in a while. It seems to happen when a pilot gets a WO call and looks like it has something to do with AOA in the np.min(AoA)
call.
# AoA values. We skip the last values before the landing.
AoA=AOA[:-num_aoa]
# Get AC specific AoA values.
AoAmin, AoAopt, AoAmax=self._GetAoA(actype)
# Plot limit.
xmax=ax.get_xlim()[1]
# Plot AoA limits.
ax.plot([0,xmax], [AoAmax,AoAmax], 'r--', linewidth=1.2, alpha=0.6)
ax.plot([0,xmax], [AoAmin,AoAmin], 'r--', linewidth=1.2, alpha=0.6)
ax.plot([0,xmax], [AoAopt,AoAopt], 'g--', linewidth=1.2, alpha=0.6)
AoAmin=min(AoAmin, np.min(AoA))
AoAmax=max(AoAmax, np.max(AoA))
We are using DSCServerBot, but that shouldn't be a contributing factor. The FunkMan code has not been altered in any way.
File "C:\vnao\DCSServerBot\core\listener.py", line 24, in processEvent
return await getattr(self, data['command'])(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\vnao\DCSServerBot\plugins\funkman\listener.py", line 126, in moose_lso_grade
fig, _ = self.funkplot.PlotTrapSheet(data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\vnao\DCSServerBot\../FunkMan\funkman\funkplot\funkplot.py", line 593, in PlotTrapSheet
AoAmin=min(AoAmin, np.min(AoA))
^^^^^^^^^^^
File "<__array_function__ internals>", line 200, in amin
File "C:\vnao\DCSServerBot\venv\Lib\site-packages\numpy\core\fromnumeric.py", line 2946, in amin
return _wrapreduction(a, np.minimum, 'min', axis, None, out,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\vnao\DCSServerBot\venv\Lib\site-packages\numpy\core\fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: zero-size array to reduction operation minimum which has no identity
Rob Graham โ Today at 18:34
@funkyfranky noticed something tonight with the Range class, were it sends to Funkman, despite funkman saying the release heights are in Ft, they are being sent as meters and not converted.
attackAlt is stored in line 85756 of Moose.lua and at no point is a util.MetersToFeet done, nor does the bot seem to do any in funkplot.py just thought i'd let you know.
(mind my moose might be slightly out of date so if you've already noticed and fixed ignore)
having a quick look in the latest dev branch to see if the same things happening
Rob Graham โ Today at 18:42
yeah range.lua
line 2046 = local attackAlt=_unit:GetHeight() (which is returning height in meters)
that gets send to the result in weapon:setFuncImpact which doesn't seem to do any conversion. on line 2053
line 1971 result.attackAlt = attackAlt
I can't find anyplace that its converted from the _unit:GetHeight() to ft.
The README says that I need the Moose.lua file. But nowhere does it say what to do with it? Where should I put it or what should I do with this file?
Getting no scores on strafe passes following update from 0.6.5 to 0.6.6
Get these errors here in the command prompt:
Exception` occurred during processing of request from ('127.0.0.1', 57138)
Traceback (most recent call last):
File "C:\Users\Games\AppData\Local\Programs\Python\Python311\Lib\socketserver.py", line 317, in _handle_request_noblock
self.process_request(request, client_address)
File "C:\Users\Games\AppData\Local\Programs\Python\Python311\Lib\socketserver.py", line 348, in process_request
self.finish_request(request, client_address)
File "C:\Users\Games\AppData\Local\Programs\Python\Python311\Lib\socketserver.py", line 361, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "C:\Users\Games\AppData\Local\Programs\Python\Python311\Lib\socketserver.py", line 755, in __init__
self.handle()
File "C:\FUNKMAN\funkman\funksock\funksock.py", line 44, in handle
self.server.EvalData(table)
File "C:\FUNKMAN\funkman\funksock\funksock.py", line 149, in EvalData
fig, ax=self.funkplot.PlotStrafeRun(table)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\FUNKMAN\funkman\funkplot\funkplot.py", line 346, in PlotStrafeRun
ab = AnnotationBbox(offsetbox,
^^^^^^^^^
UnboundLocalError: cannot access local variable 'x' where it is not associated with a value
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.