Log In  

BBS > Superblog
Posts: All | Following    GIFs: All | Postcarts    Off-site: Accounts

Hit a strange bug tonight in trying to compare some values.
Ultimately, I was being told that 0 != 0 (apparently).
In digging in further, I can reproduce the problem in one line.

> print(8.5333-3.7667-4.7667)
-0

I understand that there can be rounding issues, but -0 is not such a useful return value I think.

Edit: Another strange occurrence
I'm doing time profiling on functions in my code. Call time() at the beginning and end of a test and subtract the results.

In the test, I received 37.4667 - 35.6333 = 1.8333

but if I just ask Pico-8 to compute that in the console I get the proper 1.8334

7 comments


DEL key doesn't work when the cursor in on the first row of the tracker. This is in both the SFX editor and the pattern editor.

0 comments


I was going through my old posts, gleefully marking bug after bug "resolved" (THANKS ZEP!:D), and ran across one I hadn't actually posted in the support section.

I know the chat section sees a lot of traffic and moves quickly, so I'm worried it was never seen, and I want to try posting it again in the right section, in hopes of seeing it added to 0.2.0 or a later version:


@zep

I'm trying to write a tool that has text editing, and I find that the devkit keyboard doesn't return a lot of the special keys that it easily could.

You're returning a string, so there's no reason why it has to be just one character. So pressing the Home key could simply return the string "home". No need for special characters, escape sequences, etc., since these verbose names would all be distinct from any single regular typed character.

I'm mainly thinking of the standard navigation cluster: up, down, left, right, ins, del, home, end, pgup, pgdn, but I'm sure there are others.

[ Continue Reading.. ]

3
0 comments


The new options menu with controls documentation is so great to have in the binary exports! :)

There just seems to be a small problem where it says there are "0 joysticks" even though I have one plugged in and it is working fine:

(this is in a exported binary player on Linux)

0 comments


I made a tiny plugin that lets Tiled load .p8 cartridges, edit the map section, and save them back without breaking the code or other sections. Works great for me, so I hope you may find it interesting!

Available on GitHub: https://github.com/samhocevar/tiled-pico8

Here is what it looks like with a dark theme and the grid color set to white:

Update 2021/02/20: The plugin was ported to JavaScript for compatibility with all OSes. Requires a preview version of Tiled (1.5.0) for now.

41
11 comments


Based on MECH.p8 demo.

Cart #wekahgaka-0 | 2020-04-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

3
4 comments


On Windows, when launching a cart that uses #include, all included files get locked forever and cannot be deleted or modified by an external program unless PICO-8 is stopped. Even if another cart is loaded, the old files are still locked. This makes it really hard to work with source control because no file can be updated or merged while PICO-8 is running.

Edit: here is a screenshot of resmon.exe showing that pico8.exe acquires a new file descriptor on the same file each time I press Ctrl-R:

1
4 comments


palt(0b0111111111111111)
print(palt())

This prints "true". Isn't it supposed to print the bitfield?

On the other hand print(0b0111111111111111) prints 32767

1
1 comment


Cart #picoblackjack1-0 | 2020-04-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

Wanted to take a stab at creating blackjack in pico-8. This was surprisingly more complicated than I thought it'd be 😅. Anyhow, from what I've tested it's pretty much there despite some weirdness that might come up in scenarios where you're splitting your hand. If you do give it a spin, feel free to lmk what you think.

Cheers,
l4nk332

5
0 comments


Cart #keep_it_alive-0 | 2020-04-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

"Keep It Alive"

280 characters

p,v,t,m,z,f,s=0,0,0,64,128,circfill,sin::_::cls(0)c=3
for i=0,m do
if(i==m)c=0
x=m+9*s(i/z+p/z)y=z+4-i+4*s(i/z+t/z)-4*s(p/32)f(x,y,18+c-i/8,c)end
f(m,t%m,2,12)for i=0,m do
f(x+i/4*s((i+p*5+t)/z),y+7-i/2+i/7*s(p/z),4-i/16,8)end
flip()a=.1-rnd(.2)t+=2v=max(-1,min(1,v+a))p+=v
goto _
3
2 comments


Hi,

This is my first sort-of-finished project in pico-8, it's a fractal explorer

Cart #nipewihimi-0 | 2020-04-18 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
5

5
0 comments


This is the submission page for the no sprite sheet challenge.
For details about the challenge and all submissions or if you have a question, go to the No Sprite Sheet Challenge page.
If you have a game you would like to submit, comment the link and name of your game.

3
0 comments


Auto reload a cart if external changes are detected so we don't have to keep pressing ctrl + r, this would help for a faster workflow and help with experimentation.

0 comments


Cart #bosegizare-0 | 2020-04-17 | Code ▽ | Embed ▽ | No License
5

5
2 comments


How to reproduce:

  • switch to spritesheet
  • select pen tool
  • draw
  • middle-mouse click to pan
  • draw does nothing outside the initial zone
1 comment


Cart #rg_cityboom-1 | 2020-04-17 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


I made that one minigame from please don't touch anything as a tweettweetcart
Press (X) to drop bomb
(you can also press z, to speed up the plane, since you win by touching the lower right corner)
By the way, the whole cart is public domain.
Do whatever.

0 comments


How to reproduce:

-- outputs zero
local b=band(nil,4)
-- throws error (arithmetic on field ?)
local b=nil<<4
6 comments


How to reproduce:

  • cart with 3 includes
#include includes/bold.lua
#include includes/bigscore.lua
...
some other code
...
#include includes/tquad.lua
  • reports invalid 'printb' not found (included in bold.lua)
  • info produces random output:
  • ctrl-r clears the error and runs the cart ok
1
0 comments


how to reproduce:

for i=1,n do
  i<<5
end

Output:

or

Repro cart:

Cart #towakowibo-0 | 2020-04-17 | Code ▽ | Embed ▽ | No License
1

1
1 comment


Cart #onslaught-1 | 2020-04-17 | Code ▽ | Embed ▽ | No License
2

Onslaught

You are the pilot of a small grey craft going through space. You are being attacked by a whole host of munitions that are being flung your way, from missile volleys to plasma melters to anti-flagship beams. This wouldn't be much of a problem for such a nimble ship like the one you have, but you are running on emergency fuel that doesn't have nearly the kick of the regular fuel. No help is coming, so you must hold out for as long as possible.

CONTROLS:

Left Arrow: Go left
Right Arrow: Go right
X: Resets the game (Only works after a game over)

2
0 comments




Top    Load More Posts ->