#Mini map

1 messages ยท Page 1 of 1 (latest)

sand jungle
#

wouldn't it be laggy?

jaunty lichen
#

Nope

#

I'm working on a per-chunk database system which is only loaded once and updated only with events that interact with blocks, so I only make the changes in the db

#

Btw, It's scripting api, not player.json

#

The only part of rp is to make the map ui

#

And to add the block icons xd

dim wigeon
#

Wow that's great!

jaunty lichen
#

ty bao_foxxo_smile

sand jungle
#

did you use Map() for each block typeId for their texture icon?

From my understanding, the hard part of your approach is probably the block updates that aren't done by players.

liquid flowing, commands, or any world mechanic in the game that is undetectable with the current script API, are probably the only obstacles you have.

#

Also, it seems like the minimap is in a static position... I guess it only changes if the player moves to another chunk?

kindred mauve
#

Cool

bitter siren
#

That's the only thing I really seen that was out of place with it

#

Great job with it

jaunty lichen
#

For the icons I am using a dictionary, to assign the icon I have another dictionary with the blocks with an icon identifier

#

For example:
Blocks.js

{
    'minecraft:grass': 'g'
}

Icons.js

{
    'g': '[]' 
}
cyan thicket
#

@real gale

solid dust
#

Te quedo god alecs

jaunty lichen
#

Ty my luv

jaunty lichen
#

Chunk reading optimization + New icons

#

Now I could add 2-3 extra layers to make it more realistic, and add some engines to find structures like trees and graph them without reading the entire chunk

spice cedar
jaunty lichen
#

Ty! If you have a house on one side you will see the roof of it

spice cedar
#

Nice, will it be public?

jaunty lichen
#

idk, I have to optimize some things in the script

jaunty lichen
sand jungle
#

It has the potential to be exploited lol. This indirectly becomes an Xray for mining

real gale
#

what about using rays from script api to get the top block?

sand jungle
real gale
#

obviously lol

torn comet
torn comet
bitter siren
jaunty lichen
#

So, I can do 3-4 runs to the chunk in the y layer, capturing 256 blocks for each chunk in the y layer, I can get a total of 1024 in the same 16gt xd

#

Although I can also track specific blocks to get blocks above these

jaunty lichen
jaunty lichen
#

0.4s per chunk

real gale
jaunty lichen
#

Maybe 3*3

#

I have to adjust several things in the UI to make it possible haha

#

At the moment it's just a chunk

real gale
#

Nice
Good luck with that

jaunty lichen
#

Ty! bao_bee_happy

jaunty lichen
#

Layers system

#

4 layers but... ~6ms spike

#

XD

#

I need to optimize that

#

I'll probably add the nested block read inside the first read lol

#

So, 16gt for 4 layers in total, 0.8s

real gale
#

6ms spike ๐Ÿ—ฟ
all my addons have 150~250ms spike lol

jaunty lichen
#

Nah, I'll leave it at that, nesting the block reading reaches ~10ms spikes

warped mica