rkusa / dcs-scratchpad Goto Github PK
View Code? Open in Web Editor NEWResizable and movable DCS World ingame Scratchpad for quick notes - especially useful in VR.
License: MIT License
Resizable and movable DCS World ingame Scratchpad for quick notes - especially useful in VR.
License: MIT License
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>
Similar to the functionality of the kneeboard, can the ability to add images be added? This would effectively replace the kneeboard totally.
I don't seem to be able to get the +L/L to show there is no check box in F10 Map mode.
I was using this successfully in the same map in the previous release... this is single player
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>
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?
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.
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."
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.
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.
Have updated to beta 2.8.032066 of DCS World and while scratchpad will open it wont copy any coords from the map anymore.
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
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.
Hi! Thanks for a wonderful mod!
I have two instances of DCS, an open beta and a stable one. I would like to use the same scratchpad library of txt files for both of them. This functionality doesn't seem to exist currently.
Kind regards
Playing in VR, I sometimes need to clear the scratchpad. I find myself blindly searching around my keyboard for the del key. Possibly add a button that will clear the current scratchpad or currently selected text.
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.
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 from the F10 map appears to be non-functional after the DCS 2.8 update.
To reproduce:
<- Draken35 in the forums
Harrier is showing DDM coordinates and should show DMS (no decimals on the seconds) and MGRS
When deleting Text all is fine except for two cases
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
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
it does not seem to let you go to that line ...
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.
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
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.
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?
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.
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?
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.
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.
Doesn't work for me in singleplayer mode. 2.8.1 Dcs version. Could this be the problem?
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?
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?
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.
DCS 2.8 update has broken the ability to pull coords from the f10 map
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,
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
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.
I can't understand the readme,need modiy the files?Can't add waypoint realtime?
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
This mod no longer works in DCS World version 2.8
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
start private server, load mission
add mark on F10 map
hit scratchpad L/L
coordinates are pasted, wrong, way off
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.
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 get positions anymore.
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?
I can't get the scratchpad to come up at all ?
Hi,
in DCS forum someone added a keyboard to your mod and that is great.
I added more informations to the +L/L button:
https://forums.eagle.ru/showpost.php?p=4447443&postcount=235
But for better maintenance it would be great to have one version that will to enhanced with all that stuff.
Are you maintaining this mod still?
Can you addthe changes to your mod?
If you want I can create a pull request for 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.