#what is the largest list you can search through with a for each chip?

1 messages · Page 1 of 1 (latest)

loud ingot
#

for the record i am checking if a VERY large list of vector3s meet certain location based requirement this also means it does not run any executions unless the requirements are met and if they are it would only apply once

1 because this is local it is not sending any data to other players meaning there is nothing going over the network aka this would not effect net

2 although i am running the for each a lot it is not running any other executions within the loop except sometimes 1 so the CPU should be fine

3 thing is i am having the game run by 2000-3000 or more vector3s at a time so i was wondering if there was any hidden limit to it because I don't wanna go with the system then have it fail and start over

4 if there is a really low limit like 30 or something id like to find another way to single out points within a rotated cube [without trigger zones]
because the [LIST ANY TRUE] chip only works in bools because i can detect if a point is in a cube but i can't apply those detectors to a mass of options

5 if you know more on 4 id like a bit of help on a alternative option

6 btw the icon is there cuz it inspired me to make the game i currently need help with

quiet cedar
#

You would not be able to use a for each chip with a list that size

#

what exactly are you checking for are you trying to find points in an area

loud ingot
quiet cedar
#

yeah if you need to actually iterate over all items in a list you would want to make your own for chip like from scratch

loud ingot
quiet cedar
#

no like i mean like make your own circuit board

#

so you have 2000 vectors and your trying to tell if all of them are in a certain like bounds?

loud ingot
#

i have many cubes in a room and i need to tell if 1 cube is overlapping any other cube

quiet cedar
#

oh i see are the cubes all the same size

loud ingot
#

no then my life would be easy

#

and by cubes they can also be rectangles

#

mb i said that earlyer

#

in short the problem isn't checking

quiet cedar
#

okay i see there is actually a way to find out the measurements of a cube are they physical or decoration

loud ingot
#

ok i am calling them cubes/rectangles but they really are 8 vector3s and a center point

#

there aren't any "soild" objects

quiet cedar
#

okay i see thats kinda cool to store the data

loud ingot
#

in short if i check the wrong cube
aka a cube that isn't colliding while another one is

#

things will break fast

quiet cedar
#

are they in a dictionary or just like one vector list

loud ingot
#

but i also learned the closest center or corner doesn't work

loud ingot
#

1 sec

#

1 list of cv1 trigger zones objects that hold the corners in tags and the related rotations in more tags

quiet cedar
#

you use the get closest chip to start at the nearest cubes and then keep iterating until you either found a collision or the list runs dry

quiet cedar
#

wait so what exactly happens when a collision happens

quiet cedar
#

if yk what that means

loud ingot
#

in game contexts fire ball breaks

#

and other bigger fire ball breaks past

loud ingot
quiet cedar
#

so are the center points in one list and the bounds in another list or is it all in a list together

loud ingot
#

the cv1 trigger volumes are in a list [and the centers because they are the centers]

#

then i have a clambed extra object carrying tags of all the corners next to it

#

or 0.1 meters forward from it

quiet cedar
#

do you need that extra object to carry the tags

#

couldn't you have a dictionary that carries all the info needed instead and have the keys be the elements of each center

loud ingot
#

yea due to the fact the inital object carrys other game/attack facts like power level element type etc

quiet cedar
#

Have you tried out rec rooms dictionaries they are super useful

#

I think they are still in beta if you don't have it turned on

#

dictionaries are like a way of holding data

#

it would be like perfect for this

loud ingot
#

i mean that could be nice but how would that help with knowing what cube/rectangle would be the first one over lapping

#

i technicly have all the info [i just don't know which one to check ]

#

and i can't check all of them because yk over 2k object/vectors points etcs

quiet cedar
#

so if you check the wrong cube it will break or can you still check like 100 cubes

#

to see which are colliding

loud ingot
#

ok by break it be like this firball A is checking fireball B but if C is flying past it attacks would clip past one another having another fireball fly through your and hit you randomly is unfair and something i want to prevent

#

and check which 100 cubes?

#

if they are all from certian coordinates i would cost ALOT of chips

#

and if it was from a list then theres a chance it could still happen if i don't check all 2000

quiet cedar
#

you check the closest cubes first

#

using the get closest chip

loud ingot
#

i tryed that but closest chip can only get the closest point

quiet cedar
#

yeah so you get the closest point that isn't owned by the cube

#

and you could you that by using a list except chip and just have the exception be the current cube and its points

loud ingot
#

hey so i really gtg as its past my curfew ill be back tmrw

quiet cedar
#

bet

loud ingot
#

alr thanks

quiet cedar
loud ingot
#

i was busy yesterday but here are so pictures for explaination

1 the big cube is the hit box and the smaller ones in front are it's extra data and they are an exact distance away

lone isle
#

I believe the biggest list is like 64 or 70-sum

#

For list create

loud ingot
#

by using clambed objects to store data i can access the exact data i need without extra chips or local pov

loud ingot
lone isle
#

It'll keep going until there's nothing left

#

But it might raise heat a bit

loud ingot
#

ok but the list ill have will be upward of 2000s objects

#

[ik its alot even though i am optmizing it the best i can

lone isle
#

Damn typos

loud ingot
loud ingot
lone isle
#

You can remove or add things to that list using circuits

#

But it runs localy

loud ingot
#

in short

lone isle
#

Get all with tag?

#

Maybe

#

Add to that list

loud ingot
#

i am using get all with tag to gather all the objects

lone isle
#

Ah

#

I apologies

loud ingot
#

but i don't know if looping with 2000 objects rapidly is a good idea

lone isle
#

Also apologies again, I didn't read a whole lot at the start of this Convo, but what exactly are you making? I wanna try to replicate it

lone isle
#

👀

loud ingot
#

ok i to try and not over go in detail

magic game
everyone got magic

but that means item banks [banks that hold mutiply attacks and lets people borrow them locally]
it works and i am good at using them

problem because i want more than like 7 players aiming for 15-20 i need larger banks but the hitboxes cost chips

i used cv1 as a replacement [it worked] but the problem with cv1 is that it can't run locally so with more players it would get to slow

now i tryed to run hit boxes with vectors all corners and the center
and do math to see if there overlapping

i learned i could but if i ran code checking something the wasn't overlapping when something else was attacks would fly past one another

this leading me to have to check All 2000 or so objects

#

yea i failled this is long mb

#

but it does get the point across

#

for example

#

the closest cube

#

isn't clashing but it is the closest

lone isle
#

Item banks? Like money banks?

loud ingot
#

no its a term me and a couple other people use

lone isle
#

Ah

loud ingot
#

it means a box of items

lone isle
#

What's it mean?

#

Ohh ok

loud ingot
#

the game hands out

#

fire balls

#

like you would use it for random gear in a doors copy [flash lights etc]

lone isle
#

Ah, like borrowing gear

#

And you can lend it to another player

loud ingot
#

from a bigger total or bank

#

yea exactly

#

so even with 20 players i could get away with only having like 15 sheild spells or fire balls etc [thing is they still cost chips]

lone isle
#

So like these banks, are they in your world? Or

#

They're like physical pockets

#

?

loud ingot
#

phyiscal

lone isle
#

Where do they go exactly?

#

Or like you grab stuff and physically put it in there

loud ingot
#

ok fire ball in a box out side the map

#

player 1 casts fire ball

lone isle
#

Ahh

#

Okay

loud ingot
#

the thing is i don't want the amount of items to cost chips

lone isle
#

So if a player shoots fireball, another player cant

loud ingot
#

IF there arent any left

lone isle
#

Yeah

#

And your issue is it's projectile hitting objects?

#

Colliding with like a box or sum

loud ingot
#

yea it projectiles hiting projectlies

#

for example

lone isle
#

Ahh like another fireball hitting another one (something happens)

loud ingot
#

yea i did all that and it works and all but having 15 of every attack each having a trigger zone

lone isle
#

Sorry if I'm asking a billion questions, I'm trying to understand it all

loud ingot
#

ik its all good

lone isle
#

Ahh, so you don't want trigger volumes on them?

loud ingot
#

game needs collison but trigger zones are costly on them yea

lone isle
#

You can use Box collider

loud ingot
#

ohh yea been there done that

#

overlap box right

lone isle
#

Lol

#

Yeah (my bad)

#

Thinking unity..

loud ingot
#

so thing is it's perfect BUUUUUT

lone isle
#

Uhuh?

#

But? (Lol)

loud ingot
#

it can only detect phycail objects

lone isle
#

Invisible collision don't cost that much and clamp them onto your projectile

loud ingot
#

well if i have is not collide with players or objects the overlap box dont work

#

and if it does

#

firing projectlies at the ground gets weird

lone isle
#

Hmm

loud ingot
#

funny thing is

#

they do work if you have your maker pen out

lone isle
#

Okay well I'll come back later, rn I'm on lunch. When I get out I'll see if I can help more on that

loud ingot
#

alr

lone isle
#

Alr cool, I'll be out in like 6 hours ..

loud ingot
#

1 thing'

lone isle
#

Hope that's not too long

loud ingot
#

see the to hit box things i sent

#

green and purple boxes up there

#

thats the more direct problem

#

thats all

lone isle
#

I'll see what I can do

#

Later

lone isle
#

U awake?

#

Just @ me when you're free or so

loud ingot
#

im here

#

oh wait

#

@lone isle

#

awaken

#

you here?

#

because i think i was only 2 mins off

#

i shallnt spam at but one more should be fine @lone isle

#

hello from some where?

lone isle
#

Alr what's your name

lone isle
loud ingot
#

ok yea

#

@lone isle

#

@name123321

#

user display XD

lone isle
#

Okay

loud ingot
#

i crashed

loud ingot
#

the answer is the larger the list being ran the more cpu it takes

#

so there is not "limit" but you will run out of CPU

solar bobcat
#

Btw know this isn't really the question being asked but the limit for list size is 4096 if that's helpful