If you rename "notes1.txt", you will also need to change this line near the top of the script, in the "State" array (line number 33):
filename = "new_filename_example_here.txt",
Lastly, if you want your current notes to go to your renamed files, you will need to rename the files within the mod folder to the new names
I also suggest to manually create any new files in the mod folder before launching the game after adding them in the "init.lua"... This will ensure that the file is created with no contents... Otherwise it will load the previously selected file's contents... Of course, you could always just delete the contents after...
Fantastic mod. Very useful for complex and expansive RPG's like Cyberpunk 2077. Alt-Tabbing for notetaking is annoying, and sometimes Steam [overlay] isn't available depending on circumstances.
Just FYI, updating Simple Notepad from version 2.5 to 2.8.7 caused my game to:
Reduce CPU usage by ~30%
Reduce GPU usage by ~30%
Reduce FPS by ~40%
I have some 300+ mods installed, so god knows if it's this mod or something else. But, just stating this info here, for whoever it could concern. Rolling back to 2.5 resolved the issue. Can't test any of the versions between 2.5 and 2.87 as I get an access denied page when trying to download them on Nexus.
no it's this mod for sure, i have an nearly vanilla game and expierenced the same issue. it kills fps a lot... DONT RECOMMEND i got a drop from 90 fps towards 50 fps with it enabled in V's first apartement for example. Cool Idea but not really usable with that loss!
I just went through the script and I did notice something that may have caused your performance hits... I was loading the settings in the draw function, which is ran every frame (I assumed it would only run while the overlay is opened, but it seems that may not be the case)... Now it only loads when you first open the overlay or switch between files...
If either of you happen to try again with the newly updated v2.9 file, please let me know if it solved the issue for you...
Edit: I should note that the old version didn't cause any performance hit for me, so I can't really test to see if it makes a difference (though I still did, and no, it didn't make any difference...lol)
My guess is that the issue is storage speed related... I just must not have gotten drops because I have a fast enough SSD to handle the continual loading with my game's settings/resolution... It's kind of the only thing that makes sense if it's decreasing CPU and GPU usage and dropping frames... Either that or RAM, but that's a lot less likely, I think...
I had the same issue and downgraded. FYI I have a M.2 Samsung 990 Pro, 128GB RAM and a 4090 so it wasn't to do with hardware - possible the amount of mods installed? Not sure. Anyway, will install 2.9 now and see if that works better. :)
Updated... I changed the order in which a lot of things happen in the script and there were still 2 load function calls in the main draw function loop, which I moved out of it... Comparing to v2.5, I can't see much of a difference other than the newer features, which I don't think are what's causing the issue...
The only other thing I can think of that has changed and could impact it is the separate menu window... I suppose it's possible that's the issue, but should only hit performance while it's opened, I would think... If this new version doesn't help, I'll try that and update again...
I tested the new file and then I downgraded to 2.5 again and finally I removed it all together. I can't notice a difference now so at least for me the last update seem to have done the trick. Though this was just a very quick test as I was on my way to bed when I saw your update. If I find any issue later on I'll let you know but for now it seems all good!
Awesome, thank you for testing and confirming once again :)
I've decided that I'm going to be updating soon to have 2 main versions anyway, though, as I think some people may prefer just the single window from v2.5... So gonna keep the current main file and add a new variant of v2.5 that removes the broken line numbers and includes the newer calculator style, but still has everything in a single window... Also adding window theme selections to both versions...
To distinguish between the 2 files, the new variant of v2.5 will be named "Simpler Notepad" (due to the simpler menu design), but both versions will share a version number and will receive any future updates at the same time...
Could you possibly test with this mod's window hidden using my Window Hider Tool mod? I have a sneaky suspicion it's something related to the windows, and if performance is improved with the window hidden, that will confirm said suspicion... If not, it'll help narrow it down, too, as I'll know for sure it's not anything to do with the windows...
Simple Notepad 2.5 caused CET Mod Window Hider to bug out; Hider's window became a tiny square with just a dropdown arrow visible, which did nothing upon clicking. Looking at the numbers, it seems your theory could be correct..
Thanks for the testing... I ended up deleting the mod page for my Window Hider Tool, as there's no point in it anymore with the new "CET Window Manager" mod by u/spiritualspirit (their mod won't reduce the performance impact of hidden mods like mine did since it doesn't actually hide them, but just moves them mostly off-screen, but otherwise is a much better mod)... I'm glad you got to download it and test before I deleted it...lol
I'll work on trying to figure out exactly what the issue is in this mod later today... Definitely helpful to know it is something with the overlay code for sure, though, so thanks again :)
Yeah, I thought of this, but I don't think there's any way to implement it unless I made another window that was like thin and tall with a bunch of checkmarks going down it that you could align next to the notepad.
Edit: I just tried this and it almost worked... Even got it to attach and resize vertically along with the notepad window... But one little issue...lol... You can't resize the checkboxes and I couldn't get them to align properly with the text lines (even at non-default window scaling)...
Gotta appreciate a mod that does simplicity so well. I have a toooon of cet codes saved as txt files in a folder on my desktop. They need this mod badly, lol.
Question about the scripting aspect; theoretically would it be possible to create a script that auto-adds items by cet code to your inventory whenever it runs? I saw the mod uploaded today that does something similar with EquipmentEX but it's not exactly what I'm looking for. If it's doable could you please recommend any guides to help explain the process? I have just a teeny bit of knowledge about creating stuff for games (mostly for No Man's Sky, at that) but would love an interesting challenge while recovering from health shit.
Thanks for sharing this! Appreciate all the manual enhancements my game has received from ya in the past.
To add items, you can just put them in a list like in this image:
Also, it will work if your list has commas at the end of each command, too (most of my lists do as they came from game files or scripts and those separate with commas)...
Just execute with either button (use the dofile button if it's not the "scripting.lua" file)... That really is the main reason I made this... I also have a bunch of lists of items...lol
Edit: If your list is formatted weirdly, Bing Chat is really good at converting lists of items... Just tell it how you want it formatted... And use "Precise" mode so you get a 4,000 character limit instead of 2,000...
Edit 2: As for the scripting capabilities... It can't really do loops... It's activate, run though everything, done... Unless you require other files or do some really crazy shit...lol
This deserves more downloads and recognition! I usually keep a running text file on my desktop that I add cet codes to so I can copy and paste them but going back forth even with a second monitor isn't fun in fullscreen mode. I am surprised somebody hasn't thought of this before. Such a cool mod and being able to execute the scripts? Good fuckin work dude.
obviously its still a work in progress my only thing I noticed is the autosave confused me on launch because I pasted a wall of text and then I was clicking each file and it was the same thing I copied so I thought the different files were not working but then I realized that it automatically copies whatever text you first put in onto each file you click so I had to go through and erase and put a 1, 2, and 3 on corresponding pages and then it saved. I think if it autosaves then the save button is redundant but I would prefer the save button over the autosave. Just my opinion of course :) cheers.
The save button is actually totally just leftover from when I first put in the scripting functionality... It was used to save the script file only (which was the 4th file), so you wouldn't need to close and reopen the interface or swap to another file and back to save it... I decided to leave it in it in so people can save at any time, just in case a script execution crashes the game or something (or just random game crashes)...
As for just having the save button, I think I could make a little toggle switch to disable autosaveing... I'll see if I can figure it out... If not, I'll make an alternate version...lol
34 comments
local items = {"notes1.txt", "notes2.txt", "notes3.txt", "scripting.lua", "new_filename_example_here.txt"}
filename = "new_filename_example_here.txt",
Just FYI, updating Simple Notepad from version 2.5 to 2.8.7 caused my game to:
I have some 300+ mods installed, so god knows if it's this mod or something else. But, just stating this info here, for whoever it could concern. Rolling back to 2.5 resolved the issue.
Can't test any of the versions between 2.5 and 2.87 as I get an access denied page when trying to download them on Nexus.
If either of you happen to try again with the newly updated v2.9 file, please let me know if it solved the issue for you...
Edit: I should note that the old version didn't cause any performance hit for me, so I can't really test to see if it makes a difference (though I still did, and no, it didn't make any difference...lol)
My guess is that the issue is storage speed related... I just must not have gotten drops because I have a fast enough SSD to handle the continual loading with my game's settings/resolution... It's kind of the only thing that makes sense if it's decreasing CPU and GPU usage and dropping frames... Either that or RAM, but that's a lot less likely, I think...
I'll redownload v2.5 and compare to see what all I've changed and see if I can spot anything...
The only other thing I can think of that has changed and could impact it is the separate menu window... I suppose it's possible that's the issue, but should only hit performance while it's opened, I would think... If this new version doesn't help, I'll try that and update again...
I tested the new file and then I downgraded to 2.5 again and finally I removed it all together. I can't notice a difference now so at least for me the last update seem to have done the trick. Though this was just a very quick test as I was on my way to bed when I saw your update. If I find any issue later on I'll let you know but for now it seems all good!
Cheers!
I've decided that I'm going to be updating soon to have 2 main versions anyway, though, as I think some people may prefer just the single window from v2.5... So gonna keep the current main file and add a new variant of v2.5 that removes the broken line numbers and includes the newer calculator style, but still has everything in a single window... Also adding window theme selections to both versions...
To distinguish between the 2 files, the new variant of v2.5 will be named "Simpler Notepad" (due to the simpler menu design), but both versions will share a version number and will receive any future updates at the same time...
Thanks so much!
FPS, 1% Low, Mod:
91, 73, None
81, 67, Simpler Notepad 3.0
81, 67, Simple Notepad 2.5
73, 63, Simple Notepad 3.0
41, 38, Simple Notepad 2.8.7
Thanks for the testing :)
Could you possibly test with this mod's window hidden using my Window Hider Tool mod? I have a sneaky suspicion it's something related to the windows, and if performance is improved with the window hidden, that will confirm said suspicion... If not, it'll help narrow it down, too, as I'll know for sure it's not anything to do with the windows...
The order of the first table was by FPS; the order of this table is by the previous table's Mod order, to make comparison easier
FPS, 1% Low, Mod:
89, 73, None
89, 73, Simpler Notepad 3.0
74, 63, Simple Notepad 2.5
89, 71, Simple Notepad 3.0
55, 49, Simple Notepad 2.8.7
Simple Notepad 2.5 caused CET Mod Window Hider to bug out; Hider's window became a tiny square with just a dropdown arrow visible, which did nothing upon clicking.
Looking at the numbers, it seems your theory could be correct..
I'll work on trying to figure out exactly what the issue is in this mod later today... Definitely helpful to know it is something with the overlay code for sure, though, so thanks again :)
If only you could add a checkmark. "Things to do" These can be used to create custom missions.
Edit: I just tried this and it almost worked... Even got it to attach and resize vertically along with the notepad window... But one little issue...lol... You can't resize the checkboxes and I couldn't get them to align properly with the text lines (even at non-default window scaling)...
Question about the scripting aspect; theoretically would it be possible to create a script that auto-adds items by cet code to your inventory whenever it runs? I saw the mod uploaded today that does something similar with EquipmentEX but it's not exactly what I'm looking for. If it's doable could you please recommend any guides to help explain the process? I have just a teeny bit of knowledge about creating stuff for games (mostly for No Man's Sky, at that) but would love an interesting challenge while recovering from health shit.
Thanks for sharing this! Appreciate all the manual enhancements my game has received from ya in the past.
Also, it will work if your list has commas at the end of each command, too (most of my lists do as they came from game files or scripts and those separate with commas)...
Just execute with either button (use the dofile button if it's not the "scripting.lua" file)... That really is the main reason I made this... I also have a bunch of lists of items...lol
Edit: If your list is formatted weirdly, Bing Chat is really good at converting lists of items... Just tell it how you want it formatted... And use "Precise" mode so you get a 4,000 character limit instead of 2,000...
Edit 2: As for the scripting capabilities... It can't really do loops... It's activate, run though everything, done... Unless you require other files or do some really crazy shit...lol
or couldve named it Notepad+++ lol
As for just having the save button, I think I could make a little toggle switch to disable autosaveing... I'll see if I can figure it out... If not, I'll make an alternate version...lol