AmosNimos [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=54252 Need a mod option <p><strong>Feature Suggestion: Cart Forking and Collaboration</strong></p> <p>I wish there was a way to track when a cart from the BBS is improved or modded or altered, linking it back to the original in some way. This could function like a &quot;fork,&quot; showing all variants and allowing users to see the evolution of a cart over time.</p> <p>With this feature, we could collaboratively work on adding features and fixing bugs, even through small individual contributions. Over time, these efforts would add up, leading to polished and feature-rich games and software.</p> <p>Isn&rsquo;t that the beauty of open-sourcing carts? A system like this would make it easier for the community to come together and create something truly amazing!</p> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/54252/phoenix_picotron-0.p64.png" alt="" /> <p>Feature added:</p> <ul> <li>Added more shading on sprites</li> <li>Added &quot;wasd&quot; + &quot;e&quot; + &quot;space&quot; as optional keyboard control</li> </ul> <p>source: <a href="https://www.lexaloffle.com/bbs/?pid=151689#p">https://www.lexaloffle.com/bbs/?pid=151689#p</a></p> https://www.lexaloffle.com/bbs/?tid=146538 https://www.lexaloffle.com/bbs/?tid=146538 Sun, 12 Jan 2025 04:50:41 UTC Update /system/lib/ <p>This Lua script is designed to copy files from a directory in /appdata/system/lib to the corresponding destination in /system/lib. The key functionality of this script allows the user to modify the system libraries (e.g., gui_ed.lua in this case) in /appdata/system/lib and have those modified versions persist even after a reboot.<br /> Key Features:</p> <p>Directory Syncing:<br /> The script checks for files in the /appdata/system/lib directory.<br /> It copies each file to the matching location in /system/lib based on the filenames. For example, if gui_ed.lua is modified in /appdata/system/lib, it will be copied to /system/lib/gui_ed.lua replacing the original.</p> <p>Persistence of Edits:<br /> Any changes made to files in /appdata/system/lib will persist after reboot, ensuring that the customized libraries remain intact and are used when the system restarts.</p> <p>Works with Any /system Directory:<br /> The script can be adapted to copy files from any directory within /appdata/system to the equivalent directory in /system, not just /lib. It can be used to update any files in the /system/ directories by making minor changes.</p> <p>Usage:</p> <p>Modifying Default Libraries: For example, you can modify the gui_ed.lua file in /appdata/system/lib and, when the script is run, it will copy this modified file to /system/lib/gui_ed.lua. This ensures that your changes are preserved across reboots and will be loaded at startup.</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>-- Function to check if a file exists in a directory local function exists(path) -- Handle the case where path is just a file name (without a directory) local dir = &quot;&quot; local file_name = path if path:find(&quot;/&quot;) then for i = #path, 1, -1 do if sub(path, i, i) == &quot;/&quot; then dir = sub(path, 1, i - 1) file_name = sub(path, i + 1) break end end else -- If no directory, treat the whole path as the file name and current directory as default dir = &quot;.&quot; end -- List files in the directory local files_in_dir = ls(dir) -- Check if the file exists in the directory for _, file in ipairs(files_in_dir) do if file == file_name then return true end end return false end -- Function to replace a file in the target directory local function replace(source_file, target_dir, source_dir) if source_file == nil or source_file == &quot;&quot; then return -- Return early if the source file is nil or empty end local target_file = target_dir .. source_file -- Only remove the file from the target directory if it already exists in the source directory if exists(source_dir .. &quot;/&quot; .. source_file) then if exists(target_file) then rm(target_file) --print(&quot;removing: &quot; .. target_file) end end -- Copy the file from the source to the target directory cp(source_dir .. &quot;/&quot; .. source_file, target_file) --print(&quot;copy: &quot; .. source_file) end -- Function to clone a directory local function clone_directory(source_dir, target_dir) local files_in_source = ls(source_dir) -- Replace each file in the target directory for _, source_file in ipairs(files_in_source) do replace(source_file, target_dir, source_dir) end end -- Example usage -- feel free to add other directory here local source_directory = &quot;/appdata/system/lib&quot; local destination_directory = &quot;/system/lib/&quot; clone_directory(source_directory, destination_directory) -- Example adding more directory to the update list: --local source_directory = &quot;/appdata/system/apps&quot; --local destination_directory = &quot;/system/apps/&quot; --clone_directory(source_directory, destination_directory)</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>Update Other Directories: The script is easily extendable to work with other directories in /appdata/system/, ensuring that other parts of the system, such as configuration files or additional libraries, can also be edited and preserved.</p> <p>Put the content of the main.lua inside the cart into /appdata/system/startup.lua for it to work on boot.</p> <p> <table><tr><td> <a href="/bbs/?pid=160439#p"> <img src="/bbs/thumbs/pico64_kudesurowo-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=160439#p"> kudesurowo</a><br><br> by <a href="/bbs/?uid=54252"> AmosNimos</a> <br><br><br> <a href="/bbs/?pid=160439#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=146513 https://www.lexaloffle.com/bbs/?tid=146513 Fri, 10 Jan 2025 00:35:06 UTC We need some sort of sudo <p>I often want to modify the core utilities located in the /system directory, but they always get reset when the system is rebooted or shut down. This includes default apps, tooltray, utilities, and other system files that I wish I could edit and save permanently. However, I keep getting the error &quot;Can't save changes to disk,&quot; which is quite frustrating.</p> <p>Am I the only one who would appreciate a way to make these changes permanent? Is there a way to modify these files and save the changes to disk, or is it even possible? Any help would be greatly appreciated!</p> https://www.lexaloffle.com/bbs/?tid=146503 https://www.lexaloffle.com/bbs/?tid=146503 Thu, 09 Jan 2025 05:14:47 UTC Picotron Luncher V3 <p><strong>Picotron Launcher v3.0</strong> </p> <img loading="lazy" style="margin-bottom:16px" border=0 src="/media/54252/luncher_v3.p64.png" alt="" /> <p><em>Inspired by <a href="https://www.lexaloffle.com/bbs/?tid=141037">EZEN's NewCarts Viewer</a>.</em></p> <p>As far as I&rsquo;m aware, this is the first launcher ever created for Picotron! While other luncher displays new carts uploaded to the online repository, or a fix selection of carts, this launcher focuses on local content. It scans the <code>/appdata/bbs/</code> directory on your Picotron machine, lists all <code>.p64</code> files, and lets you launch them instantly with a click&mdash;making it easy to access and run your locally stored projects. I like to keep it on my desktop for quick cart access. and I put all new cart I aquire from the bbs into that /appdata/bbs/ directory making it very convenient. if you have any suggestions let me know.</p> <p><strong>NOW WITH SOUNDS</strong></p> https://www.lexaloffle.com/bbs/?tid=146502 https://www.lexaloffle.com/bbs/?tid=146502 Thu, 09 Jan 2025 03:36:38 UTC go_2_hell <p> <table><tr><td> <a href="/bbs/?pid=91951#p"> <img src="/bbs/thumbs/pico8_go_2_hell-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=91951#p"> go_2_hell</a><br><br> by <a href="/bbs/?uid=54252"> AmosNimos</a> <br><br><br> <a href="/bbs/?pid=91951#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=42884 https://www.lexaloffle.com/bbs/?tid=42884 Fri, 14 May 2021 20:22:22 UTC