Git Product home page Git Product logo

dcs-scratchpad's People

Contributors

chump29 avatar lucasclucasdo avatar oloratuj avatar rkusa avatar wamwod avatar www avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dcs-scratchpad's Issues

Content not migrated

The old content is not migrated. The savePage function in the loadConfiguration() is not called, there is not log in the scratchpadlog.

So if the new content is not migrated, the new Scratchpad directory is not created, and the pageCount = 0. If the pageCount = 0, the nextPage() function doesn't load any page, and the currentPage variable stay nil.

If the currentPage variable stay nil the futur call to savePage() just crash like that :

2019-08-23 10:13:50.038 ALERT LUACOMMON: Error: GUI Error: [string "\Saved Games\DCS\Scripts/Hooks//scratchpad-hook.lua"]:331: attempt to call field 'savePage' (a nil value)
GUI debug.traceback: stack traceback:
[C]: in function 'savePage'
[string "Saved Games\DCS\Scripts/Hooks//scratchpad-hook.lua"]:331: in function 'callback'
[string "./dxgui/bind/Widget.lua"]:330: in function <[string "./dxgui/bind/Widget.lua"]:325>

Feature Request: Add images

Similar to the functionality of the kneeboard, can the ability to add images be added? This would effectively replace the kneeboard totally.

Content not persisted

I just installed this, and the content entered in the scratchpad is not persisted between restarts

Possibly relevant from dcs.log:

2019-11-16 05:07:47.568 ALERT   LUACOMMON: Error: GUI Error: [string "C:\Users\Alex\Saved Games\DCS\Scripts/Hooks//scratchpad-hook.lua"]:152: attempt to concatenate local 'path' (a nil value)
GUI debug.traceback: stack traceback:
	[C]: ?
	[string "C:\Users\Alex\Saved Games\DCS\Scripts/Hooks//scratchpad-hook.lua"]:152: in function 'savePage'
	[string "C:\Users\Alex\Saved Games\DCS\Scripts/Hooks//scratchpad-hook.lua"]:325: in function 'callback'
	[string "./dxgui/bind/Widget.lua"]:330: in function <[string "./dxgui/bind/Widget.lua"]:325>

Selecting scratchpad in VR is... iffy?

I've been able to select the scratchpad while in VR, but it seems more luck than anything else. No issues on the map, but is there some secret to grabbing it in VR?

Enter won't drop to next line

After the recent 2.7 updates I'm having a weird issue where the enter key doesn't work, but kind of does. I have to hit he enter key to proceed to the next line, but the text caret won't actually go to the next line. I have to press down arrow key to get the caret to move down.

Saving between sessions

Using the latest update was finding it didn't save between sessions.

"The changes to your Scratchpad are not saved on every keystroke anymore, instead they are only saved when hiding the Scratchpad, changing the active Scratchpad page, or removing the focus from the text field."

How to manage extensions

I'm curious about your thoughts on adding extensions to your dcs-scratchpad repo. Generally I'd like to provide more extensions to the user without further bifurcating the sourcing of scratchpad from the users perspective.

  • Are you taking submissions for upstream pushes from forks? If so, how would you want maintainenance and development of those extensions handled in your repo?
  • In particular I wonder when extensions have commits available often, how to deconflict that from your availability for review/merge. I'm aware of repo permissions or submodules as ways github addresses this type of issue.
  • Would a more sophisticated system to allow on demand download of extensions be suitable to help decouple the development of extensions from their distribution from within the main repo?

New Commit broke return nil under coordsType()

Issue is in Title.
Line in question https://github.com/rkusa/dcs-scratchpad/blob/main/Scripts/Hooks/scratchpad-hook.lua?#L291
Basically causing Aircraft not in the list under coordsType or spectator to no longer return coordinates into scratchpad window when +L/L is pressed.
I don't specifically know what's causing this issue, my temporary fix is to just use return {DMS = true, DDM = true, MGRS = true} though I don't think that's how it should be done IMO i believe there's something more elegant but I just can't think/find it.

f14 rio

idk if this is only an issue from the rio seat or from pilot seat aswell but scratchpad gives wrong format in f14 rio seat atleast

Small error in DDM lat/lon

There is a small error in the lat/lon for DDM modules such as F16. It's a result of how DCS converts DDM. I believe DCS converts at a higher order of precision and simply truncates to 3 decimal digits. scratchpad however uses format() to round floats to 3 with values rounded to the nearest thousands. This will only show up in cases where values are rounded up so its appearance is intermittent, dependent on the location for either lat or lon.

Repro:
On syria map with F16 go to F10 map and at north end of Beirut runway 16.
Center the L/L dot to
N 33°50.527, E 35°28.667

Can use an object or mouse cursor to verify location. Then click +L/L button and notice the result is off by .001 for both lat and lon.
N 33°50.528', E 035°28.668'
36 S YC 29269 47413
8m, 26ft

The error of .001' can equate to upwards of 12 feet error. The proposed fix is just to increase format() precision by 1 digit and then truncate the extra digit.

Closing Window with Focus on it

If you close the window with the input-focus still on it, the input-focus is locked to the now closed window, which can lead to some very bad things -- for the user. It feels like DCS had gone crazy, bc so many things then do not work.

Suggestion: rescind the focus (emulate ) on close.

No specific support for the Anubis Hercules, add two-line insert to provide mostly correct format?

Current setup treats the Hercules Anubis mod as part of the "else" set rather than having a specific elseif module statement

None of those provide the exact format needed as it needs 3 digits for the first part of Easting or Westing, with a leading zero if you're not in the 100-180 range.

Can we get the below change to the stock version of Scratchpad to provide shorter and more accurate output for Herc drivers?

Adding in
elseif ac == "Hercules" then
return {DDM = {precision = 3, lonDegreesWidth = 3}}
in the aircraft sections Else around line 320

will provide a two-line output with
The format mostly exactly how the Herc module needs it*
The standard Metres, Feet second line.

(scratchpad paste has a space between axis letter N/E/S/W and the numbers, not sure how to change this without likely breaking other stuff)

Coordinate Grabbing in DCS 2.8+

Coordinate grabbing from the F10 map appears to be non-functional after the DCS 2.8 update.

To reproduce:

  1. Try grabbing coordinates from the DCS F10 map in the latest DCS OpenBeta version.

Harrier Coordinates format

<- Draken35 in the forums

Harrier is showing DDM coordinates and should show DMS (no decimals on the seconds) and MGRS

Deleting

When deleting Text all is fine except for two cases

  1. the use of "°" sends the whole editing into a bit of a tizzy , deleting it causes enter to fail to work correctly for example, it also resets the text input to the upper left

  2. when you delete text, using the BSP function, that was created in a previous session, it seems to lose the cursors index for the page?

Repro steps

  1. record some text in scratchpad
  2. leave dcs
  3. go back in to DCS add more text (on a new line)
  4. delete the text try and delete the text that was there in the previous session,

it does not seem to let you go to that line ...

Mission Editor problems

Scratchpad works fine in-game but if I use it in Mission Editor the buttons to interact don't show up at the bottom. I can still use it but cant get the locale data.

Feature Request: Ability to create entry from current coodinates under mouse from MapView

Hi,

This would be a killer feature, the ability for when left clicking on the map with a hotkey pressed, something like alt+left click, have the current coordinates copied over to the scratch pad at the bottom, one coordinate per line.

We would be able to go to the map, find a location and left click on it to get the coordinates into the scratchpad.

Support for this feature : https://forums.eagle.ru/showthread.php?t=216559

Where did the keyboard go?

I've been using an older version of the Scratchpad and just upgraded to the newest version (0.6.1) and Couldn't find the virtual keyboard. Where did it go?
When using VR it's the only way to actually type something on the Scratchpad other than using the L/L button.

UI simplification

Why the checkbox for +L/L it's just another step in the UI, which makes it more awkward to use. Does it fix some other bug? can we have a config option just to have +L/L available all the time?

Font/Display Issue

I stumbled across scratchpad while trawling the forums the other day, and I'm surprised I hadn't seen or heard of it before! Our wing plans to put it to good use; one already has it installed and working.

My problem arises from my choice of OS; I'm one of (the presumed) few who run DCS on Linux - my previous GitHub contributions make that rather clear! Now, DCS doesn't know this; it recognises a normal Windows file structure) but some things do require some tinkering. It seems scratchpad falls within this group, as while it loads and functions as expected (appears, can be toggled on/off and saves content), actually typing in-game doesn't change the entry field. I know it is working - the content can be viewed in 0000.txt after the fact, and the lua is loaded in the log - but the text doesn't appear. Is there a set font and/or directory that is read to style the text? If so, I can try to install it and see if the text shows as expected.

Don't worry if not; I understand I'm certainly in the minority of both scratchpad and DCS users, and bear the consequences of running in an unsupported environment. My thanks for the work that has gone into this tool.

Hotkeys for Left/Right are not respected in DCS

I set a hotkeys like this:
["hotkeyPrevPage"] = "RIGHT CTRL + RIGHT SHIFT + LWIN + A",
However, even when I press LEFT CTRL + LEFT SHIFT + LWIN + A, it still triggers the command.
Why? It should only respect RShift + RCtrl + LWin, not LShift + RShift.

Oh, and another question.
I should not share the same hotkeys I assign other sim functions, correct?

Feature request: Hotkey for "+ L/L" button

To add a hotkey for the "+ L/L" button, in VR moving the mouse to the right GPS location plus then moving it to the "+ L/L" is a bit troublesome, and a feature like this will help.

Feature request: mouse click to remove focus

Similar to how a mouse click in the scratchpad window transfers focus to the scratchpad , it would be very convenient if a mouse click anywhere outside of the scratchpad -so in the game world- would transfer focus back to the game as opposed to having to use Esc. Somehow hitting Esc to achieve this (in part because Esc is the default key to bring up the options/close menu in DCS) is less intuitive than quickly clicking anywhere.

Coordinates in usable format for armament

In F-18 we need coordinates in a particular format to be input for preplanned targets. It is usually reached on the F10 map by pressing "Alt+Y" several times. The coordinates format is supposed to be XX-XX-XX.XX YYY-YY-YY.YY <- with these dashes between. But when I copy it from F10 Map it doesn't use this type of coordinates. Can it be added somehow?

L/L in DDM format?

Hi! Loving your mod, but I'm finding the L/L input command to not be very useful in most of the Western jets since they require a precise format of DDM and (last I remember using it) the L/L command imports plain DMS format. Would it be possible to change the format to DDM (or any other L/L format) via a line in the lua files, or are we stuck with what we have?

Feature Request: ability to assign specific modifiers (e.g. L_CTRL, R_SHIFT) to hotkey

Brilliant plugin for DCS. I was wondering if it would be feasible to be able to specify specific modifiers such as left control or right shift to the hotkey. For people who use different key combinations for programmable controllers or full cockpits, this would be huge for flexibility.

Additionally, I wouldn't mind seeing the ability to assign DirectX buttons to the hotkey, though due to the keyboard nature of the plugin this is may not be worth the effort.

Numpad hotkeys not working

I have changed the hotkey to "back" so i can use the back button on my numpad i use for VR, however this does not appear to work? In fact i think the only button on my numpad that does work is "Tab", but with tab you cant press to close the window. Am i doing something wrong?

Cheers,

Feature Request: add coords in DMS, DM and DD

Love scratchpad. Ideal for VR.
A feature request. DCS uses 3 different L/L formats:

DMS - For the F/A-18C, coordinates are formatted as DD°MM'SS.ss"
DM - For the F-16C, coordinates are formatted as DD°MM.mmm'
DD - For the M2000C, coordinates are formatted as DD.MM.mm

Currently only DMS. Could the other 2 formats be included?
Thanks,
Wraith

Not seeing box in VR but box is visible in non-vr

I recently wanted to use this awesome little tool you created.

I tested in in standard (non-VR) and it worked fine. On then loading the game in VR mode I was unable to see the box. When I press the button I am seeing the the cursor shift but the box is either injvisible or so small i cant see it.

I am running an Oculus Rift S.

Request to pull from .txt file via a hotkey.

Hello, was hoping for a feature.
I'm using Scratchpad for DCS in VR, utilizing VoiceAttack.
I have VoiceAttack writing directly to a .txt file that the Scratchpad than picks up and displays in game.
The problem seems that the scratchpad does not pull new content of the .txt file once it is changed via VoiceAttack, so I am not seeing new content that VoiceAttack writes into the file.

Was hoping for a way to refresh Scratchpad in game, to pull new content from the .txt

Thank you

can't open in VR (quest2) [close]

Hi,
i love this mod and in classicle game there is no problem.
But when i play in VR (with a quest2), nothing happens when i press ctrl+shift+ => the window doesn't open :s

Any idear why ?

thanks

Issue with MP chat and keyboard focus

Bug when opening the Multiplayer chat to type into chat with Shift-Tab, if you have scratchpad open the keyboard inputs get lost somewhere, I can't tell where and you can no longer close the chat box and you can't use the keyboard for any binds or to even open the menu to quit the server, this forces a full game restart annoyingly.

Steps to reproduce.

  • Have DCS Scratchpad open.
  • Have the Tab text chat open.
  • Press Shift-Tab to type into Multiplayer chat.

I think Scratchpad and DCS are typing to take keyboard inputs at the same time which is what causes this, I've noticed it really only works when you hit tab in scratch pad while scratch pad isn't actively being edited.

Cant move window

Ages ago i accidentally moved the scratchpad window to the top of my screen. I just deleted and replaced the files for scratchpad but the position still persists. Is there a config file i can delete to reset the position to defaults?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.