Log In  
Follow
Nonexdog

I'm Nonex, an artist, musician and game developer !!


I was following the Picotron manual example provided under sock:accept(), found here, and whenever I use it it will invariably start detecting hundreds of new clients in that port. I have tested it in a cartridge with a counter as well to confirm that it is, in fact, hundreds of clients (around 300-500 before stopping on its own in the "listening" stage). The problem isn't just tied to the port "8899" since using any other ports will yield the same results. When my partner tested it, this didn't happen.

Furthermore, whenever this happens, I am also unable to create a socket in a different terminal. Typing in a = socket("tcp://localhost:8899") will not do anything while the listener terminal is up. Typing it in a terminal without having opened a listener will freeze up Picotron for a few seconds. In both cases, doing ?a prints nothing and doing ?a != nil prints "false".

My antivirus (Bitdefender) doesn't detect it as a threat and I've added Picotron into the allowed firewall rules, so at this point I am at a loss.

1
4 comments



I was reading the Pico 8 manual and I was surprised to see that the pack() and unpack() functions aren't in the manual. I understand that they are Lua functions and not necessarily a Pico 8 API thing but it still feels like they're important enough to add here, especially since they are a great alternative to use a for loop to manually unpack these elements. Just here to ask if they could be added so more people can be aware of them please !! Especially the small percentage of people who do want to download the manual (hi) haha

2
4 comments



I would like to preface this is an issue in version 0.2.6b, both in my downloaded executable of Pico 8 and Pico 8 Education Edition

So I have been reading and re-reading the pico 8 manual for the past weeks now and I have noticed that there is a really big discrepancy in the way that sub() works vs how it is presented. The manual establishes that:

When POS1 is specified, but not a number, a single character at POS0 is returned.
PRINT(SUB(S,5,TRUE)) --> "Q"

This does not seem to be the case, however, as using non-numerical values such as a boolean, nil or a string all still will return a string from the index all the way to the end of the string. I tried looking information about this in the forums and it seems like at some point this behavior was indeed implemented, but in another update it seems to have been removed. I don't know if this was intentional or if this is the product of a bug/oversight but it would be nice if the change was reflected in the manual.

[ Continue Reading.. ]

1
2 comments



Cart #pattern_shifter_nonexdog-3 | 2024-12-19 | Code ▽ | Embed ▽ | No License
3

Small disclaimer: You are free to use these in your projects, free of charge !! Only thing I ask in return is attribution by crediting me somewhere in the project.

Here are two little code snippets to shift patterns!! The token cost is 55 tokens for the vertical shifting code and 76 tokens for the horizontal shifting code. These code snippets also account for additional settings on bits 0b0.111 of the pattern (to learn what the hell that is, check this part of the manual). I am choosing to leave the snippets as they are in the cartridge in here to people can see (and try to understand if they want to) what is going on under the hood without reading something that looks like a keysmash.

[ Continue Reading.. ]

3
1 comment



Cart #nonexdog_ilo_toki_pona-5 | 2023-06-16 | Code ▽ | Embed ▽ | No License
10

toki pona


nasin ni li tawa ni: musi sina li lon la, sina ken pana e toki lawa ni lon insa ona. sina wile lon e musi sin la, sina ken jo e toki lawa pi kepeken lon ale!!
Cart #nonexdog_ilo_sitelen_template-0 | 2023-12-14 | Code ▽ | Embed ▽ | No License
10

lipu 1

toki!!
sina wile ala wile kepeken sitelen pona lon ilo Pikowe?
ni li nasin pona!!

kepeken ilo ni la sina ken toki kepeken sitelen pona anu nimi
lon lipu poka la sina ken lukin e sitelen ale
sina luka e nena 🅾 la sina ken lukin e lipu nasin
toki lawa ilo li lon anpa pi ilo ni

lipu 2

lipu 3

lipu 4

nasin kepeken
kepeken toki pona la o kepeken e nimi ilo "toki"
ilo ni li sama ilo print

toki(toki pona,x,y,kule)

sina wile kepeken nimi la o kepeken "-" lon monsi nimi

toki("mi olin e kalama musi tan jan -toby -fox")

lipu 5

suli!!
sina wile kepeken nimi la o kepeken nimi punyfont!
o luka e nena ctrl+p
(sina ken kepeken nimi suli, taso ni li ken ike lukin)

nimi li lon ala la, sina lukin e "x"

sina wile lon e nimi " " la o nimi e " " tu

lipu 6

sona suli
nimi pi mute lili la sina ken kepeken nimi ante

sitelen pi wile sina li lon ala anu seme. sina ken pali e ona!
sina lukin e toki sona lon anpa pi ilo ni la sina ken lukin e nasin tawa ni
nasin lon li lon ni kin. toki lawa ilo li pali pona la sina wile pali e ni

nasin ante:

1 - o kepeken e ilo pi sitelen One-off. mi kepeken e ilo ni. sitelen One-off la, sina ken kama sona lon lipu ni
2 - o pali e sitelen. suli!! sitelen li lon ala insa sitelen kipisi 7x7 la, lon poka open lon anpa la, sitelen li ken ike lukin.

3 - o jo e nanpa. o pana e nimi "\^:" lon monsi nanpa ni.

4 - sina ken jo e toki lawa lon anpa nasin ni, li ken tawa lipu Pastebin. sina ken kepeken ilo lipu ale tawa ni (sama ilo Notepad): o ante e toki lawa ilo. lon monsi nimi en nanpa la, sina wile kepeken e nimi "-".

'a-\^.\0⁸⁸⁸\0、⁘<-akesi-\^.\0!゛□?□?゛-ala-\^.\0A""A-alasa-\^:00060A527F520A06-ali-\^:0000003649360000-ale-\^:0000003649360000-anpa-\^.\0\0\0AA\0-ante-\^.\0A6\06A-anu-\^.\0A"-awen-\^.\0""c-e-\^.\0	$H$	-en-\^.\0-esun-\^:0038293E083E4A0E-ijo-\^.\0、"AAA"、-ike-\^.\0\0\0、"AA\0-ilo-\^.\0III-insa-\^.\0\0\0IA\0\0-jaki-\^.\0□+6J/V]-jan-\^.\0""""A-jelo-\^.\0⁸⁸6⁸⁘"○-jo-\^:00382C3A0179423C-kala-\^.\0\0=BjB=\0-kalama-\^:00492A007F41221C-kama-\^:0002060A12224263-kasi-\^.\0cU6-ken-\^.\0""□ᵉ□""-kepeken-\^.\0○I○⁸、⁘◀-kili-\^.\06AAA>-kiwen-\^.\0\0>AA"-ko-\^.\0、"B!AF8-kon-\^.\0D""DDD"-kule-\^.\0"A-kulupu-\^.\0\0wUw-kute-\^.\0!$$-la-\^.\0-lape-\^.\0\0\0p_p\0\0-laso-\^.\0cU6"-lawa-\^.\0゛!○!!!゛-len-\^.\0○AAA○II-lete-\^.\0A""A-li-\^.\0 -lili-\^.\0\0\0\0⁘⁸\0\0-linja-\^:00000000314E0000-lipu-\^.\0AAAAA-loje-\^.\0A>"-lon-\^.\0\0\0\0\0\0-luka-\^:0000384444444546-lukin-\^:00003E4149413E00-lupa-\^.\0!!!!!□ᶜ-ma-\^.\0、*I○I*、-mama-\^.\0>AAA>"、-mani-\^.\0\0A""">-meli-\^.\0、"]U]AA-mi-\^.\0「$$、⁴⁴⁴-mije-\^.\0"""AA-moku-\^.\0~B<\0<%&-moli-\^.\0\0U"U\0>\0-moli2-\^.\0\0U"U\0*U-monsi-\^:001808080A080818-mu-\^.\0\0c""*>-mun-\^.\0゛"DHD"゛-musi-\^.\0wUw"""、-mute-\^.\0\0******-nanpa-\^.\0"○"""○"-nasa-\^.\0}EUU]A-nasin-\^.\0*-nena-\^.\0ᶜ□!!!!!-ni-\^.\0*-nimi-\^.\0\0>AAA>\0-noka-\^.\0			yAA○-o-\^.\0\0-olin-\^:003649774941221C-ona-\^:00003048483f0000-open-\^.\0AAAAA-pakala-\^.\0IEIQI-pali-\^.\0「$$「<%&-palisa-\^.\0ᶜ□□□□□ᶜ-pan-\^.\0□ᶜ\0□ᶜ□ᶜ-pana-\^.\0T\0|DDEF-pi-\^.\0-pilin-\^:000036494141221C-pimeja-\^.\06*U-pini-\^.\0>>-pipi-\^.\0"⁸>⁸>⁸>-poka-\^.\0\0\0\0Q\0\0-poki-\^.\0AAAAAA-pona-\^.\0\0\0AA"\0-pu-\^.\0○kA]U]○-sama-\^.\0\0\0\0\0\0-seli-\^.\0III**\0-selo-\^.\0\0UUUU\0-seme-\^.\0>AA0⁸\0⁸-sewi-\^.\0@@PPPZU-sijelo-\^.\0IIIIII-sike-\^.\0、"IUI"、-sin-\^.\0\0⁸⁸\0c\0\0-sina-\^.\0⁴⁴⁴、$$「-sinpin-\^.\0ᶜ⁸⁸(⁸⁸ᶜ-sitelen-\^.\0AAkAA-sona-\^.\0I*\0○AA○-soweli-\^.\0@h@@UU-suli-\^.\0AA""-suno-\^.\0"c"-supa-\^.\0\0\0"""\0-suwi-\^.\0\0"U\0\0\0-tan-\^.\0\0\0#G\0\0-taso-\^.\0-tawa-\^.\0 0($"!c-telo-\^:0000314E00314E00-tenpo-\^.\0、"IYA"、-toki-\^.\0I*\0>AA>-tomo-\^.\0⁸⁘"AAA○-tu-\^.\0"""""""-unpa-\^:0036495D361C141C-uta-\^.\0\0A"\0-utala-\^.\0\0A"Uc-walo-\^.\0U""A-wan-\^.\0-waso-\^.\0⁴⁸▮*@|⁴-wawa-\^.\0AAA]66、-weka-\^.\0A"\0"A-wile-\^.\0\0"AAAI6-epiku-\^.\0I*\0AA"、-jasima-\^.\09N9N-kijetesantakalu-\^.\0"Vc!*-kin-\^.\0\0-kipisi-\^.\0\0F&db-kokosila-\^.\0*\0>b>#>-ku-\^.\0~RJZjJ~-lanpan-\^.\0b""">\0I-leko-\^.\0A]U]A-meso-\^.\0"""*"""-misikeke-\^.\0、"">""、-monsuta-\^.\0\0**U\0-n-\^.\0\0-namako-\^.\0I*\0""-namako2-\^.\0\0c\0-oko-\^:0020182631261820-soko-\^.\0、"A○⁸⁸⁸-tonsi-\^.\0A>""">⁸-apeja-\^.\0\0"⁸6A⁸\0-isipin-\^.\0‖\0ᵉ■?■ᵉ-kapesi-\^.\0⁸、、*>I○-kiki-\^.\0\0⁸⁘⁘"Iw-konwe-\^.\0、⁘|P_A○-linluwi-\^.\0I*\0○I[m-majuna-\^.\0\0\0c\0⁸⁸\0-melome-\^.\0、"IUAIU-mijomi-\^.\0\0A-misa-\^.\0<bK#。¹ᵉ-nimisin-\^.\0\0⁸⁸>c>\0-oke-\^.\0 p;゜ᵉ⁴\0-pake-\^.\0○⁸⁸⁸⁸⁸⁸-powe-\^.\0\0⁘⁸⁘\0○\0-puwa-\^.\0""6A>\0-soto-\^.\0<$$%$$<-taki-\^.\0>A]U6\0-teje-\^.\0ᶠ		)		ᶠ-unu-\^.\0、▮、⁸⁘"○-usawi-\^.\0I\0}E]A○-wa-\^.\0⁸⁸⁸\0"*⁘-yupekosi-\^.\0"""<  、-te-\^.\0○¹¹¹¹¹¹-to-\^.\0@@@@@@-!-\^.\0\0-!!-\^:0036363636360036-?-\^.\0>>0<<\0ᶜ-,-\^.\0\0\0\0\0-.-\^.\0\0\0\0\0\0-:-\^.\0\0\0\0-"1-\^.\0PP\0\0\0\0\0-"2-\^:000a0a0000000000-...-\^.\0\0\0\0\0\0‖‖-(-\^.\0  -)-\^.\0²⁴⁴⁴⁴⁴²-[-\^:0038080808080838-]-\^.\0ᵉ⁸⁸⁸⁸⁸ᵉ'

nasin kepeken lon insa toki lawa ilo:

suli!! o lon e ni lon monsi ilo Function ale!!
1 - o toki e nimi tpall=split(,'-')
2 - o pana e ni:

tp={}

for i=1,#tpall,2 do
	local key=tpall[i]
	local val=tpall[i+1]
	add(tp,key)
	tp[key]=val
end

function toki(t,... )
 local txt=""
 local t=split(t," ",false)
 for i in all(t) do
 	if tp[i] then
 		txt=txt..tp[i]
 	elseif sub(i,1,1)=="-"then
 		txt=txt..sub(i,2,#i)
 	elseif i=="" then
 		txt=txt.." "
 	else
 		txt=txt.."𝘹"
 	end
 end
 print(txt,...)
end

3 - kepeken nimi Punyfont la (ni li suli a!!), kepeken nena ctrl+v la, o pana e toki lawa lon sinpin nimi "("

4 - ni li wile lukin sama ni:

5 - sina wile ante e nimi lon insa poki ilo "tpall" la, sina wile lon ala e poki li wile pali sin e nasin wan e nasin tu wan

lipu 7

sina lukin e sewi la, sina ken kute e kalama musi tan suno lili
jan en soweli en monsuta pi tenpo pini li pana e nimi tawa ni: "mu walo"
mu walo li tawa musi lon insa lawa ale
mu walo li pana e telo lon oko ale
mu walo li pilin nasa li pilin usawi e sina
taso mu walo li lon ala
ona li pilin seli lili tan sona pi tenpo pini
ona li awen sona. ona li olin
ona li misikeke tawa kon sina. ona li ma kulupu sina
sina sona e mu walo, anu seme

lipu 8

mi ilo kiwen. mi sama leko. mi tan kiwen walo.
mi sona ala e jan pali mi. mi alasa lon lon ale, taso ona li sama kon.
...
sitelen pi taki pimeja li taki lon selo mi.
ni li pilin pona e mi tan ni: mi pona lukin.

tenpo mute lili la, mi lukin e jasima mi lon selo telo.
sinpin sama li awen e tawa mi.

kasi linja li linluwi lon selo mi. kasi kule li kama suli.
ko jelo li tawa anpa lon mi.
mi tawa la, lon li kama lon ale.

[ Continue Reading.. ]

10
10 comments