#Spins & Stress

148 messages ยท Page 1 of 1 (latest)

torn pine
#

My side project written in Kotlin that adds spins and stress mechanics, which I'm developing to relax and gain practice for Omaloon
-# Currently in early development stage but already has basic functionality available for testing via downloading mod from the github actions

torn pine
#

currently available sprites (i.e. currently planned content)

torn pine
#

In terms of mechanics, the spin system is done btw

#

This means a fully polished and working graph system along with all the mechanics related to spin and stress behavior

#

now I only need to make good visuals and more block types

runic saffron
#

the actual create mod

torn pine
torn pine
quick vessel
#

๐Ÿ‘€
average graph usag in mindustry

torn pine
#

well, just a bit more and I'll finish what i want to implement with the interaction between blocks and graphs

#

I jast wanna to manage exactly where on the block edges it can connect to the others (i.e. where the shafts are placed).

#

I've already made it working for small blocks tho, but for large ones it's quite buggy

torn pine
# torn pine

btw, things have changed from here a bit
like its should be much smoother at not merging graphs
and now it reacts to rotation changes of already placed blocks

#

still thinking about how this mod will be playing through, tho

#

maybe there will be some interesting solutions in logistics and producing things ๐Ÿค”

#

wanna keep things cool and incredibly simple

torn pine
torn pine
#

well
multiblock blocks (i.e. blocks with size > 1) are completely fucked up
in way that i just cant make size 3 blocks actually connect to graphs

#

maybe going to rework some things to make it easier for me

runic saffron
torn pine
#

idk
here i have only SpinGraph, SpinModule and SpinBlock
this is all components of the system rn

#

I wouldn't say I need more components, but I'd like to make it to be modular instead of redeveloping vanilla block types from scratch just to have Spin in them

torn pine
runic saffron
#

ยฏ_(ใƒ„)_/ยฏ

torn pine
runic saffron
#

the closest thing to a graph that it has is the sections to fake a shared tank

#

but it does have proper connections between builds

torn pine
#

ok
but how it'll help me to solve connection positions issues?

runic saffron
#

it just works

torn pine
#

to clarify things: connection positions - are tiles around the perimeter of a block where it can interact with the graph (i.e., be connected to it)

runic saffron
#

wa

torn pine
#

look how pu spin blocks connect to each other

runic saffron
#

oh

#

yea i haven't done that to it yet

#

i did in steamworks

#

but the pressure system is a good headstart, cause it already has a way to "connect" with the nearby builds

torn pine
#

mine spin thingy also

runic saffron
#

ยฏ_(ใƒ„)_/ยฏ

torn pine
#

can't see a reason to abandon my perfected graph implementation just bc i failed the connection positions

runic saffron
#

i'm not saying that you should

mossy crater
#

For campaign, maybe need a engine that produce spins/RPM, also need a generator to convert spins/rpm to power.

runic saffron
#

anyways, my fix for that was just to have a list of different offsets that this build is allowed to connect to

#

it'll need custom ones for every block, but it works

torn pine
mossy crater
torn pine
runic saffron
#

i just do them manually

torn pine
#

1x1 is completely fine tho

runic saffron
#

you're using nearby(int)?

#

if yes then that'd make sense

#

it just offsets by 1

#

same with front() and back() and the other ones

torn pine
runic saffron
#

so if a 3x3 block calls nearby(0) it'll try to get the tile to the left of it's center(in the middle of the block) which still is in the same block

torn pine
runic saffron
#

but i think it's very likely that you did use nearby(), front(), or back()

#

cause you're making an axle

mossy crater
#

Negative spins

torn pine
#

no

#

there's either no spin direction

runic saffron
torn pine
#

gona steal unity's graph thingy just bc it's very flexible

#

dont kill me
i still need to port it to the Kotlint

runic saffron
torn pine
runic saffron
#

Better than nothing

torn pine
#

I'm keeping my implementation tho

torn pine
#

๐Ÿ’ข

quick vessel
#

@torn pineuse proximity instead

torn pine
quick vessel
#

tile position

torn pine
#

hm

quick vessel
#

and use onProximityUpdate() to update graph when block are placed or removed
and also check PowerGraph

runic saffron
#

it isn't just to get the nearby builds, it's also important to get them in the right order

quick vessel
#

๐Ÿค”

#

if need ordered then check Edges

signal voidBOT
torn pine
#

how in the hell

#

ok i need to take a break

pearl condor
# torn pine wait

Idk what's this about but even sized blocks position is the bottom left tile nearest to it's center (while odd sized blocks have the center tile as the position ofc) because they don't have a center tile so that might be affecting it

#

Just saying cause I noticed your problem only affects bottom and left directions

runic saffron
#

Again, use Edges

torn pine
#

just fixed it :D

#

Edges helped

torn pine
#

I am proud that it works

runic saffron
#

for a moment i was like: "the heck is IntArray", then i remembered it is kotlin

torn pine
#

kotlin, my beloved ๐Ÿ’ซ

#

I think I just revived this mod, lmao

quick vessel
#

average Java user fighting with boxing and unboxing
Meanwhile kotlin enjoyers:

torn pine
torn pine
#

making available for connection points display when planning

#

It definitely doesn't feel like pu because I'm copying it

flint breach
#

looking forward to it when it becomes a library mod

torn pine
#

why it should become a library mod? ranaisquish

mossy crater
#

idk man, just want to implement to other mod. put this mod as compileOnly inside build.gradle(.kts)

torn pine
#

Sounds fun, but I don't see the point

#

like having a group of mods that use spins and stress, and all of them will be compatible with each other?
why...

mossy crater
#

yeah, maybe it could make compability issue between 2 mods or more.

torn pine
#

I'll try to do it right this time

runic saffron
#

Edges

mossy crater
#

Vertices

torn pine
#

i just

#

I think I'll probably deal with sounds now and then with the visual part

runic saffron
#

Copter sound

mossy crater
#

stone breaking sound

torn pine
#

ssy names

#

SSSounds is absolutely hilarious

mossy crater
#

SnS

runic saffron
proud jewel
#

project nunityd

torn pine
#

wh ๐Ÿ˜จ

torn pine
#

Btw, maybe someone has ideas/suggestions on what I can add to this mod and how the mod should look like?

quick vessel
#

add a concrete tech tree

#

mod with another kind of energy distribution and logistic requires many content to use that

#

in this case i suggest set all vanilla factory blocks to hidden then add your own blocks with SS one

#

and also drills/unit factories and so on

dry bison
#

aboba chat

runic saffron
#

aboba

torn pine
torn pine
#

returned the flywheel, because why not
-# spin storage (a battery-like thing)

runic saffron
#

mmmmm, where have i seen that

torn pine
#

it is old asfuck

proud jewel
#

xelos youngcha faction sprites still best

torn pine
trail plank
#

is this just create mod in mindustry?

frank mason
#

MORE MODS THAT USE THE PROJECT UNITY TORQUE MECHANIC, MORE!!

torn pine
#

there is no project uinity's torque mechanic

lyric sandal
#

๐ŸงŒ project unity? how a game engine is affiliated with mindustry? ๐ŸงŒ

frank mason
torn pine
#

it is perfect for that

#

-# It's time to abandon this mod again and not touch it for another six months