#Losing My Marbles!

1 messages · Page 1 of 1 (latest)

true mauve
#

we started with jbullet, then bullet, then ODE, and finally settled on Jolt

keen plaza
#

yeah damn

true mauve
#

both bullet and Jolt have modern java bindings (both by the same guy (also the same guy who has a usable jbullet fork ioa)) but jolt just seems better and more modern

keen plaza
#

thats wild for a single item modfest like this

true mauve
#

Rayon used bullet, but it's no longer updated

keen plaza
#

yeah

#

patbox updated rayon to 1.21.8 but its still not amazing and it switched hands so much nobody really knows the full workings of it

narrow dagger
#

Usually our fest mods get to like 75% of where we want them to be before dev time ends, and somehow despite the horrors™ required for this one we’re like 90% there and still have a day lmao

abstract grove
#

Enough time to make it server side

keen plaza
narrow dagger
#

Lmao

keen plaza
#

rewrite physics tools

#

I am curious on the perf of this tho

true mauve
#

I went all in on data for marbles, I really like how it turned out

keen plaza
#

the geometry of the marbles is quite a bit more complex than the cubes of physics toys with rayon and it seems to perform better

narrow dagger
#

Insane data formats my beloved

true mauve
#

you can do any of these things any time a marble bounces

narrow dagger
#

Any number and combination*

true mauve
#

@ember trench if you want to make the hama marble real it's fully data driven

narrow dagger
#

^

#

Soon™ we’re gonna have marble rendering that supports a single texture that rotates as the marble moves, it’d be perfect

keen plaza
#

this is fine

paper forge
#

does windburst activate redstone that sounds like it could be problematic for the fest

true mauve
#

"marble types are basically just a component map" - statements dreamed up by the utterly deranged

narrow dagger
#

We won’t be giving those out in the fest

#

But yes, they’re just normal wind bursts

#

Same for explode

#

No tnt marbles in the fest, but they do in fact explode

true mauve
#

post-fest I'll likely split the physics into an independent library

keen plaza
#

what would the process for loading 3d models like a cube into a system like this be?

keen plaza
true mauve
#

not possible, all marbles are a single quad

keen plaza
#

I dont mean within the datagen constraints, I mean within jolt to jvm bindings.

abstract grove
#

Any?

true mauve
keen plaza
#

yeah I think I have a lot of reading ahead of me

abstract grove
#

You would just need to render it right

keen plaza
#

thats easier said then done, especially when I have zero clue how mc rendering actually works

abstract grove
#

Well, assuming you have item model just use that

keen plaza
#

2400 marbles before lag got unbearable, pretty good, think it was also more render than physics too

#

I was only getting ~400 on rayon

#

with basic cubes and that was server before client

abstract grove
#

Client lag or server lag

keen plaza
#

id have to do further testing but it seems quite interesting

true mauve
#

we're also hoping to add flywheel compat if that port is done in time

keen plaza
#

for create?

abstract grove
#

For rendering

#

Flywheel is a rendering library

keen plaza
#

oh I only know its part of create

#

I havent looked into it

#

ok yeah that would be very interesting

sonic osprey
#

noooo my marblesss!

narrow dagger
#

is your marble running? yes? you better go catch it then.

fringe smelt
#

is there a way to push marbles?

narrow dagger
#

there's an item tag for items that add more velocity when punching, too. sticks, blaze rods, breeze rods, and swords do more

fringe smelt
#

what about when used?

narrow dagger
#

right clicking picks them back up. they spawn with no velocity, but we're gonna have a solution for automating marble runs

fringe smelt
#

mm ok

#

maybe my idea isnt possible

narrow dagger
#

what are you thinking

fringe smelt
#

when using the confetti gun it would push marbles, like add force to them

narrow dagger
#

is the confetti gun purely a visual effect or does it do physical things when you use it too?

#

we could probably add compat for that either way

fringe smelt
#

the base gun just shoots particles, but there are 2 enchants, 1 recoils you back and the other shoots a firework

narrow dagger
#

ah. just checked and right now fireworks dont interact with marbles at all

abstract grove
#

Your gradle thing doesn't seem to work hm (wanted to check how much was needed to make it a ProjectileEntity )

regal bramble
narrow dagger
latent hemlock
#

How to make the marbles?

true mauve
#

the marble maker

ember trench
#

I think the crafting is bugged rn

narrow dagger
#

Yeah another mod was breaking certain datapack things, I think it’s been fixed now though

abstract grove
#

Btw should I look into my own implementation for compat or do you think using you coukd move to projectile entity

true mauve
#

projectiles come with a lot of implications that I don't think make sense for marbles

abstract grove
#

"Bare bones" projectile entity doesn't do much

#

And some things you already have (like owner)

#

Default hit detection can be ignored

#

But will look into handling it on my side then

abstract grove
#

And since it's final, I can't hijack the interaction

#

Hm

paper forge
#

cant you set the pickup delay to whatever you want

abstract grove
#

MarbleEntity has no code for that

true mauve
#

the funny

true mauve
narrow dagger
#

Nice

autumn river
#

and physics errors shouldn't crash

narrow dagger
#

we're gonna make them have an expiration timer so they don't just build up everywhere

true mauve
narrow dagger
true mauve
autumn river
true mauve
#

and that number is in the multiple thousands from my testing

#

user error

narrow dagger
#

jay doesn't that happen if enough unique geometry is being used for marble collision too

#

again, it shouldn't be low enough to ever run into during the fest, but we had that happen when debugging that leak

autumn river
#

whatever it is we just hit it

true mauve
#

oh you actually crashed the test server with this

#

how many did you spawn

narrow dagger
#

yeah :ioa:

minor burrow
#

About 2000 and counting

#

It was some ridiculously high number

true mauve
narrow dagger
#

yeah don't do that

#

why would you think thats a good idea

true mauve
#

2000 is lower than I thought but still two orders of magnitude more than there should've been

hazy shale
#

Spawning 2000 of any entity is going to cause problems

narrow dagger
#

yeah

true mauve
narrow dagger
#

should we do something about that, like making it so that if more than 10 marbles share a block space they don't collide with each other until they leave it

true mauve
#

not an easy thing to check

hazy shale
#

The most that realistically would be at the fest is like 100 marbles

true mauve
#

we need to see what the actual limit is and maybe turn up the cache if it's low

narrow dagger
#

lets say we have 30 marbles in our booth showcase, everything else is uncertain

keen plaza
#

Broke the client but server was still fine