When loading a file via #include, pico-8 crashes when running the program from the command line, like "run".
The code loaded is tested and used correctly and does not cause the crash. Also, running via Ctrl+R works and behaves as expected.
Editor:
Result:
#include multi.lua m=multi(0,17) m:draw(10,10) -- this works when run with ctrl+r -- it crashes when running with "run" |
multi.lua
local multi = {} multi.__index = multi setmetatable(multi,{ __call=function(cls,...) return cls.new(...) end } ) local function getxy(index) local y = flr(index / 16) local x = index - y * 16 return x,y end function multi.new(tl,br) local self = setmetatable({}, multi) local tx,ty = getxy(tl) local bx,by = getxy(br) local w = bx - tx + 1 local h = by - ty + 1 self.tx = tx self.ty = ty self.bx = bx self.by = by self.w = w self.h = h return self end local function getindex(x,y) return x + y * 16 end function multi:draw(x,y) for u=0,self.w - 1 do for v=0,self.h - 1 do local index = getindex(self.tx + u, self.ty + v) spr(index, x + u * 8, y + v * 8) end end end |
It also would be great, if the folder for includes was the same folder as the cartridges (AppData).






In ROBLOX I am also learning how to code, but one thing stands out that I feel should be necessary.

What is supposed to happen is that it runs:
function _init() cls() spr(192,20,20,4,4) wait(3) end |
But it errors with
"Runtime error line 4 tab 0
wait(3)
Attempt to call global 'wait' (a nil value)
In _init line 4 (tab 0)
At line 1 (tab 1)"
Is there a way to make the program wait a few seconds without taking too much space?
Thanks :)




Made this game over the course of 2 days. I wanted to make something simple so I could familiarise myself with Lua so I made this. The best part is no matter where it spawns it will always hit the corner! Hope you guys enjoy. (Pls leave a star, I'd appreciate that :D)
Edit: Thank you so much for leaving such nice words about my game.
Update: Fixed a bug where if it spawned at x83 and moved right then it would clip out of the map.








# Picotéras
by Fuchikoma71
Introduction:
As Eriban, fellow Pico-8 developer and code optimiser extraordinaire (very much unlike me) once observed, I have a habit of creating the completely wrong kind of Pico-8 games: slow-paced, physically accurate, complex and austere simulators. Picotéras is the latest in this slowly extending line of misfits.
I have long held the ambition of creating some sort of 4X analogue in Pico-8. However, it quickly became obvious that compromise would be necessary to make it playable. I ended up keeping the gigantic scale, every game spanning centuries (or even millenia) and dozens of star systems, but simplifying the core mechanics of the genre.




The changelog for v0.1.11c (from a year or so ago) says:
> Added: F11 to toggle fullscreen
...but F11 has never actually worked in any version of PICO-8 so far, to my knowledge. Alt + Enter is still the only way to do fullscreen.
So I'm just making a bug report to track this, and as a reminder in case a fix might make it into 0.1.12b or something ;)

Hello,
Recently grabbed the latest version 0.1.12 on macos. I noticed that after editing on an external text editor, attempting to reload the cart with cmd+r caused PICO-8 to completely crash and quit.
It seemed to only happen if the cart.p8 file had been changed in someway. cmd+r works fine without edits.
Anyone else having this issue?






As the title says; music playback is clipping and causing distortion since upgrading to 0.1.12
I've tried rectifying the problem by setting music_volume to 128 (which is what I had previously always had it set to), but the music_volume value in the config.txt file gets reset to 256 every time Pico-8 is closed.
While poking around with Pico8, I discovered a way to simulate char and unsigned char types.
-- tochar -- --[[ this function converts a value to make it emulate a char (256 max characters) it can emulate signed and unsigned chars. the value will not go beyond 0-255 if unsigned, and if signed the values will remain at -128 to 128. tochar returns a signed char and touchar returns an unsigned char. tochar(variable) touchar(variable) see sample; --]] function tochar(id) local res=id%256 return flr(res) end function touchar(id) local res=((id-128)%255)-127 return flr(res) end --sample number=1428 print(touchar(number, true)) |
Theres the code snippit, put it in and play with the sample.
info about it is in the code;
enjoy for anybody wanting to make char variables for what ever your reasons might be.
Hi,
A cart is showing up in my profile here https://www.lexaloffle.com/bbs/?uid=8336&mode=carts&sub=0#m as being created by me, but it was not - all I did was paste someone else's cart id into this post - https://www.lexaloffle.com/bbs/?pid=59639#p
Is there a way to remove it from my list?
Thanks
Anyone can climb the mountain!
EX.ULT VIDEOTAINMENT presents a mod of the Pico-8 version of Celeste Classic that replaces Madeline with everybody’s favorite hungry pink blob! Instead of dashing and wall-jumping, you’ll run, flap, float, and inhale your way up the mountain. A spring breeze is blowing flower petals across the slopes. Collect optional Maximum Tomatoes, just for fun. We made minimal edits to Celeste’s level designs to allow for 100% completion.

Controls:
Arrow Keys: Walk, Fly, and Crouch
Z: Jump / Flap
X: Inhale / Exhale
If you’ve played Celeste, you know that part of its story is about overcoming anxiety and realizing that anybody, with enough determination and the right tools, can climb the mountain. (If you haven't played Celeste, go buy it!) The scene with the feather and the breathing exercise is so memorable! Madeline’s journey to work with herself, rather than against herself, has meant a lot to us. The generous Assist Mode shows us there's no wrong way to make it, and that it's cool to play games in whatever way you like.








