10-06-2019, 06:00 AM
(This post was last modified: 10-06-2019, 07:16 AM by Seadragon91.)
Doing a rework of my plugin:
Be aware, that I am still reworking this. Also this version is not compatible with the old one, to many changes.
The changes are in a own branch named rework on github: https://github.com/Seadragon91/SkyBlock/tree/rework
@xoft Would it be okay to add a function to cBlockArea that would count all blocks and return a lua table in that format?
I thought when I would get all blocks from the chunk. I could do this above, but the result was much worse then the current solution and that uses cBlockArea:CountSpecificBlocks to count all blocks, and it does that currently 147 times..
If that would be okay, how can I export a lua table that contains a lua table in c++
- Moved challenges into a inventory, every level has a own page with it's challenges
- Can be opened with command /challenges. Hover over the yellow glass to see the info of a challenge
- Copied the challenges from my old java plugin, changed them to json file and updated them
- Fixed bug in chunk generation, biome was always ocean... should be plains. Animals will now spawn
- Fixed crash in calculating the island value, when player left the server
- Improved the calculation of the island value, needless calculations done
- Fixed a bug when running /skyblock play, player would not be moved to the skyblock world
Be aware, that I am still reworking this. Also this version is not compatible with the old one, to many changes.
The changes are in a own branch named rework on github: https://github.com/Seadragon91/SkyBlock/tree/rework
@xoft Would it be okay to add a function to cBlockArea that would count all blocks and return a lua table in that format?
The format would be then: tbCountedBlocks is a table tbCountedBlocks[<id>] -> table tbCountedBlocks[<id>][<meta>] -> amount of blocks
I thought when I would get all blocks from the chunk. I could do this above, but the result was much worse then the current solution and that uses cBlockArea:CountSpecificBlocks to count all blocks, and it does that currently 147 times..
If that would be okay, how can I export a lua table that contains a lua table in c++