Log In  

BBS > Community Superblog
All Users | Following | GIFs | Postcarts | Off-site

I'm working on a desktop app for Picotron and I need to detect when the AltGr key is being pressed. I tried

if keyp("altgr") then

but it doesn't work. I've also tried

if key("alt") and key("ctrl") then

and its variants (like "lctrl" or "rctrl") but it also doesn't detect when I press altgr on my keyboard.

Thanks for any help!

4 comments


Cart #piconet_explorer-14 | 2024-03-31 | Embed ▽ | License: CC4-BY-NC-SA
47

HI! I thought it would be neat to have a little isolated version of the internet for the Picotron! This is a very rough start of what I think that might look like (I have no idea how web protocols or any of that stuff works). This is also serving as kind of a test, because I wrote a program to scan a BBS page for a certain word and add it to the browsing catalogue, and I haven't tested that just yet.

There's a few bugs here and there tho; I'm not sure how you're meant to sort the draw order in a GUI so things may float on top of the tabs when scrolling. Also I've noticed that the homepage of one of my demo pages occasionally causes the program to run out of memory. I'm pretty sure it has to do with the gif imitation thing, but I have no idea why that would cause that.
Edit: it may be that this memory issue is actually a picotron problem! I suppose I'll just wait for future versions. But if it's not and anyone has a way to fix, let me know!

Anyway (IT WORKS NOW!), to add a page to the browsing catalogue, you need to type a comment in this format, replacing the plus symbols with caret symbols:

+PICOSITE+ link + title + about +

Notice where the spaces are placed! this is actually important lol
an example:

^PICOSITE^ https://raw.githubusercontent.com/May0san/piconetdemo/main/home.lua ^ PicoNet Homepage ^ The homepage of the PicoNet! ^

Try to not make your "about" too long. I apologize in advance for the messy disorganized code lmao, I'll probably be working on it. If you want to download files, add a "downloads" folder to your system at the root level. If anyone wants to propose a better standard for this, feel free :)

As for writing the actual page, you can view my examples on this github repo:
https://github.com/May0san/piconetdemo/tree/main

EDIT: looks like it crashes on the webplayer so you may have to download the cart

Update: downloads will now create the downloads directory if it doesn't exist.

Features:
āœ… visit and display hosted file with gui data (a "picosite")
āœ… catalogue all the sites posted on this forum page into a browser list
āœ… allows use of a "gif" which is really just an image with multiple sprites in one and is indexed with sspr to advance the animation. (subject to modification when sitebuilder is complete, will mostly still work the same though.)
ā˜‘ļø create a "sitebuilder" site (and also corresponding cart) to graphically design and export websites as code
āŒ sort the catalogue by newest by default
āŒ allow tags on the listed sites
āŒ extract from the forum page how many stars a reply has and use that to gauge and display that on the catalogue
āŒ sort by popular, search by tags

47
49 comments


Hello,
Im very new to Pico8 and wanted to get into it and learn how to make games for it. I purchased Picotron today and I keep getting this error message whenever I try to start the application. Has anyone else had this problem before?
If anyone can provide any help on this problem it would be most appreciated. I did some searching online for the error and nothing has worked for me. I'm not sure if I installed anything wrong or something along those lines.
Thank you and have a wonderful day

1 comment


Cart #palman-2 | 2024-03-21 | Embed ▽ | License: CC4-BY-NC-SA
6

So, this is some really simple code to use in your carts to easily load .hex palette
files on the cart. Check out palman.lua on the cart to see how it works.

v1.01 Changed a value to allow reading from .hex files created in Picotron.

v1.1 Added a notify message that the file was not found if the file was not found,
without crashing the cart.

6
2 comments


Cart #particle_editor-0 | 2024-03-20 | Embed ▽ | No License
10

A small particle editor that I made while learning the Picotron API. It allows you to save particles with the .prt extension. It works like the map, gfx and sfx editors, creating the /ram/cart/particles folder and the /ram/cart/particles/0.prt default file in the current cartridge. The editor does not save the particle logic, so you must copy the particles.lua to your project and call create_emitter by passing the unpoded prt file.

How to install?

To install in the toolbar, create the file /appdata/system/startup.lua and copy the following lines.

create_process("/appdata/system/apps/particles.p64", {argv={"/ram/cart/particles/0.prt"}})

[ [size=16][color=#ffaabb] [ Continue Reading.. ] [/color][/size] ](/bbs/?pid=143962#p)
10
0 comments


Cart #tohanejoja-0 | 2024-03-20 | Code ▽ | Embed ▽ | No License

0 comments


Hello !

I'm trying to find a setup where I can edit the files inside of a cart with an external editor like VSCode.

In the filesystem documentation it's suggested that you use the following commands

mkdir /live_cart
mount /ram/cart /live_cart
folder /live_cart

However this doesn't work in the current version because you can't mount a folder that already exists (here /ram/cart)

Running rm /ram/cart then trying to mount it does work, however trying to load a cart seems to override the mount so you can't edit it.

Copying the content of the cart from ram/cart into a folder, then mounting that folder into /ram/cart, then trying to run the cart doesn't work either because the editors will save their content into ram and override the files in your cart.

Has anyone found a reliable solution for this use case ?

Thanks !

1
0 comments


Symptoms:

  • platform: Windows / Mac?
  • printh from a program yields nothing in the program output window

How to reproduce:

  • copy following code in main.lua
printh("bob")

precision: confirmed to work on Linux, text is directed to the console that launched picotron

6 comments


Symptom:

  • a program that loops (intentionnaly or not!) will not produce any print before _update or program exits.

How to reproduce:

  • paste following code in main.lua
for i=1,10 do
 print(string.format("hi world %ith",i))
end

while true do
end
1 comment


Cart #trashbin-2 | 2024-03-22 | Embed ▽ | License: CC4-BY-NC-SA
7


A simple trashbin.
Drag some files and drop them in the trashbin.
The trashbin icon uses the theme colors for icons.

Add the following lines to /appdata/system/startup.lua:

create_process("/desktop/trashbin.p64", {
	argv = {
		config_path="/appdata/trashbin.pod",
		trash_dir="/trash"
	}
})

Modify the values for config_path and the trash_dir at will.
The trash_dir will be generated and a trashbin icon will be set in the metadata.
Double-click on the trashbin will open the configured trash_dir in the filenav app.
You can drag and drop the trashbin and it is saved immediately in
the pod configured in the config_path.

changelog

1.1.1

  • fix issue with missing theme pod
    in web player

1.1.0

  • use current theme colors for icon
  • instead of right-click, a double-click
    now opens the configured trash_dir
  • more dynamic sprite for the
    trashbin (thanks to @washburnello)
  • set icon in metadata of trash_dir

1.0.0

  • drag and drop files into the trashbin
  • right-click on trashbin opens
    configured trash_dir
  • drag trashbin to change
    position (thanks to @cubee)
  • new position will be saved in a
    pod configured with config_path
7
9 comments


Clip is a clipboard manager that adds a simple clipboard to your tooltray

Maybe it's not so handy as other clipboard managers, but I think it's good enough for the first version

Feel free to comment if you find any bugs or have suggestions!

Cart #clip-0 | 2024-03-20 | Embed ▽ | License: CC4-BY-NC-SA
4

4
0 comments


function _draw()
  cls()
  print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") -- 19 newlines
end

costs 0.1 cpu according to ctrl-p.
however,

function _draw()
  cls()
  print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") -- 20 newlines
end

costs 0.47 cpu. Each additional newline after that adds around 0.46 cpu usage. This happens with seperate print calls as well. Supplying coordinates to the print call will prevent the cpu from spiking. Note that the 20th newline is when print will scroll the first line off the screen.

1
4 comments


It appears that at the moment, playing any web player in the Superblog only plays the most recent cart run on the page since loading (whether PICO-8 or Picotron, regardless of player)

This will eventually error out for Picotron webplayers attempting to load PICO-8 games.

1
0 comments


Cart #wavepaper-0 | 2024-03-20 | Embed ▽ | License: CC4-BY-NC-SA
23

Please enjoy this very necessary desktop wallpaper.

This is 0.1 and not 1.0 because performance is a major issue: this will run at 60fps if you have no windows open, but will drop to 30fps or possibly lower if anything at all is running on top of it. When that happens, (WARNING) you may get some flickering, especially if some windows overlap desktop icons.

Despite the fact that this is basically just a reskin of the other wave sim I posted - using a different rendering effect to keep it compatible with the default palette - I still think it's kind of neat. Hopefully I'll find ways to get this running more smoothly over time. Or, failing that, maybe just ways to pause it if anything else is open.

[ Continue Reading.. ]

23
3 comments


A two player TRON lightcycle game. Try not to crash before the other player does!

Cart #picotrontron-0 | 2024-03-20 | Embed ▽ | License: CC4-BY-NC-SA
5

From picotron, type "load #picotrontron-0" to load the game

On a PC, Player 1 controls are the arrow keys. Player 2 controls are WASD. The second player doesn't seem to work on the web for some reason, but should work when run within picotron itself.

5
0 comments


Cart #carrotinspectorv7-0 | 2024-03-27 | Embed ▽ | License: CC4-BY-NC-SA
11

How To Play

Click on white carrots! (don't ask me to elaborate)

Behind The Scenes

I'm really enjoying PICOTRON, and here's a little interactable demo I made in abt an hour, seeing what I can do in PICOTRON! Enjoy!

Version History

V0.7 (3/26/2024)-
-Added a new scoring system
-Added hungry bunny (top-left)
-Added icon + info

11
3 comments


Cart #picotron_wiki-11 | 2024-04-17 | Embed ▽ | No License
81

The Picotron Wiki

This is a viewer for the online Picotron wiki
(https://github.com/Picotron-Software-Developers/Picotron-Wiki)

If you'd like to contribute to the Wiki please make a pull request on the GitHub. The interface and capabilities will be updating soon!
(Just wanted to get this cart out today)

Here's a guide on how to contribute: https://www.youtube.com/watch?v=_8zS45cHeRA

Warning: This cartridge may not work in the web player

You can run load #picotron_wiki to use it inside Picotron

81
18 comments


Cart #overlyeasyrunnr-1 | 2024-03-19 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
2

  • is this game a runner? YES
  • is it easy? YES
  • is it a good game? NO
  • IS OVERLY EVEN A WORD!?!?!? NO!

idk this is literally my first game and I didn't really use any instructions.
enjoy (kinda)

2
7 comments


Cart #time_check-0 | 2024-03-19 | Embed ▽ | License: CC4-BY-NC-SA

Just checking web player timings. Please ignore.

(Just to note, this uses really crappy math for getting the seconds, so if it overlaps the current minute's seconds, the numbers will be overlap incorrectly. Just start it again near the beginning of a minute.)

But @zep, check these timings. The web player is running super fast.

2 comments


Cart #hexpop-1 | 2024-03-25 | Embed ▽ | No License
36

This is a fun, simple wallpaper. I was trying to keep it from being too annoying, but also still look cool. At some point I may have it follow the current theme colors. But for now it just uses the spritesheet. It runs idle at around 0.3% CPU and maxes out around 4% or 5% CPU.

You can add this to your Picotron wallpapers by typing this in Terminal (which assumes you've already created a /appdata/system/wallpapers folder):

load #hexpop
save /appdata/system/wallpapers/hexpop.p64.png

If you want them, I also made three other variations: Fire, Rainbow, and one that follows your theme.

Cart #hexpop_fire-0 | 2024-03-25 | Embed ▽ | No License
36

[ Continue Reading.. ]

36
4 comments




Top    Load More Posts ->