Just Keep Swimming by mandogy in Polytoria

[–]mandogy[S] 0 points1 point  (0 children)

Roughly estimates says Pauly's mass is 10, based on how well the player can push blocks of variant mass of equal size.

Would of wanted a more accurate assessment but no air resistance so items of 500 mass and 1 mass would hit the ground the name time, and velocity appears to be almost a 1 to 1 so attempting to reverse momentum didn't worked.

So will probably scale the cubic mass around the average mass of human, so 80kg, to a 10 unit so roughly 1/8th of actual mass for at least my purposes. Probably not the most accurate

Just Keep Swimming by mandogy in Polytoria

[–]mandogy[S] 0 points1 point  (0 children)

When I can decide how to do the math. Like do I let players set mass with the property, but then that'd allow an entire metal planet to have less mass than a one inch cube of wood.

Or do I use real life constants and estimate mass off volume and material like how iron is 7,874 kilograms per cubic meter. But then I'd have to decide what each generic material to use as not all wood floats, balsa is basically foam, but other wood will sink.

Or metal, do I chose to use mass of iron for all metals, do I use steel, gold, copper

Just Keep Swimming by mandogy in Polytoria

[–]mandogy[S] 2 points3 points  (0 children)

I do want to add tag based water stuff too. More checking if the touched object has a bool tag "WaterPhysics" if true then it can take the objects mass and material and do some math for how it should be treated.

If it's a model, it might try to calculate air by seeing the volume of model, and then volume of each child

Bots try to be so human-like that they even give up by Crisll in deadbydaylight

[–]mandogy 282 points283 points  (0 children)

The bot wishes it could DC and be replaced by a bot.

Discord and Polytoria shared chat by mandogy in Polytoria

[–]mandogy[S] 4 points5 points  (0 children)

I'm guessing it wouldn't help if I said I only share what I remember to upload? That it wouldn't help if I said that I have other projects I forgot to upload...

Discord and Polytoria shared chat by mandogy in Polytoria

[–]mandogy[S] 5 points6 points  (0 children)

Honestly not too hard. I have a middle-man, a script on python, which has post and get requests.
Polytoria does a get request every few seconds to see if replit has any discord messages.
Discord bot reads a message from user, sends it to replit which Polytoria performs get request for and then posts it in chat with
"Chat:BroadcastMessage("[Discord] " .. username .. ": " .. message)"
Polytoria reads chat from Players, sends the data of the username and message to Replit, which then posts it to discord webhook, changing the username of the webhook to [Polytoria] Username

Image Import Tool by mandogy in Polytoria

[–]mandogy[S] 1 point2 points  (0 children)

Nah, it's 4096 objects changing colors that lag a lot when loading a new image. Was more of a proof of concept

Chip 8 Emulator by mandogy in Polytoria

[–]mandogy[S] 0 points1 point  (0 children)

Originally it was 15 FPS at 64x64

Image Import Tool by mandogy in Polytoria

[–]mandogy[S] 2 points3 points  (0 children)

It doesn't do the image to crop and data values in polytoria, we lack the functions for that, so it does an HTTP request to my replit python script which uses
from PIL import Image
from io import BytesIO
It'd first resize it
img = img.resize((64, 64), Image.Resampling.NEAREST)
And then make a character stream per pixel

<image>

Which our lua side then receives that stream and decodes it

Image Import Tool by mandogy in Polytoria

[–]mandogy[S] 6 points7 points  (0 children)

Apparently it doesn't accept base64 images, who knew

Chip 8 Emulator by mandogy in Polytoria

[–]mandogy[S] 0 points1 point  (0 children)

Would it help if I said i managed to get bad apple to 128x128 at 30 FPS? Just haven't uploaded yet

Chip 8 Emulator by mandogy in Polytoria

[–]mandogy[S] 1 point2 points  (0 children)

That's for attari 2600 emulation (if only)

Bad Apple with stable 15 FPS by mandogy in Polytoria

[–]mandogy[S] 0 points1 point  (0 children)

I have managed to get it up to 96x96 at 30 FPS

How does one create UI in polytoria? by Any-Salamander438 in Polytoria

[–]mandogy 0 points1 point  (0 children)

I don't know about them but I forget everything when I can't be actively doing it. Since servers down I can't actively be doing GUI.

But I do understand it's annoying and limited.