Log In  

Cart #sorter-7 | 2022-08-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
1

This is just a little tool I've been needing recently. I know there are websites for it but I was having trouble finding them so I thought, hey, I can make this myself and have some fun in PICO8 at the same time.

Go to new list to create a list of items. Go to lists to see all current lists (there is an example list included). From there you have the option to view, sort, edit (add and delete items), or delete a list.

In sort, you are given two random items from the list and are asked to choose your favourite. This continues until all the items have been ranked. You can then view the list in this new order.

The only thing I would have liked to add is the ability to have lists persist between runs. I haven't been able to find how to save a table of tables of strings, or if it's even possible. If anyone knows how to do this please let me know, I would love to add that feature, but if not it's fine as-is.

Let me know if you find any bugs please.

P#115194 2022-08-03 14:31 ( Edited 2022-08-08 02:01)

1

Friend, i think the functions you may be looking for are CSTORE() and RELOAD(). there's a wealth of information online about it, which I'll leave to you to explore further.

I haven't any personal experience with this functionality but from what i read it seems pretty straightforward. Hope this nudges you in the right direction 😉👍

P#115209 2022-08-03 21:44

Missed a small error that made the cart unusable lol, fixed now

@r_leclair thank you, I'll have a look at it, it does seem promising.

P#115218 2022-08-04 00:37
1

I like databases, @RyanB_Dev.

Unfortunately I hit an error very early trying to add and recall an item.

P#115220 2022-08-04 01:34

@dw817 thanks! Unfortunately I can't replicate the error. If you can do it again, please let me know the exact steps you took.

P#115223 2022-08-04 02:48
1

Nice. It's a bit like a Trello. Interface could be more intuitive? I keep pressing return that brings up Pico-8 menu.

P#115240 2022-08-04 12:45

@positivefmonkey I'm not aware of how to turn that off, unfortunately. The same thing happens when you hit p. I thought it would be much more tedious to have to close the menu every single time.

P#115246 2022-08-04 17:45 ( Edited 2022-08-04 17:46)
1

It was pretty simple, @RyanB_Dev. Just add an empty item. Then try to sort it or do something else with it.

You'll either hang the system or get it to crash.

P#115280 2022-08-05 19:35

Ah, I see! I should probably make it so you can't enter empty strings lol

P#115290 2022-08-06 00:26

@dw817 thanks for the feedback! I've fixed that, as well as some other errors I ran into while testing it.

P#115291 2022-08-06 00:43
1

Apparently undocumented but you can call this every frame to suppresses the next attempt to show menu

if(btn(6)) poke(0x5f30,1)

source: https://pico-8.fandom.com/wiki/Memory


There seems to be a bug. When I go to make second new menu, it goes to 'enter next item' to list mode instead of asking for the new list's name.

P#115309 2022-08-06 12:36

@positivefmonkey thanks so much! With that, I've added the enter key as an option for entering text when making a list or adding items. I've also fixed the bug you reported.

P#115415 2022-08-08 02:02

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 19:49:06 | 0.068s | Q:30