Author Topic: Start game GUI Datablock Meter (ITS BEEN MADE)  (Read 2764 times)

EDIT 7/1/14:Thank you Advanced Bot! It is greatly appreciated!
LINK : http://forum.blockland.us/index.php?topic=261484.0


I have been trying to set up my server for a while now, and everything goes well until I spawn and see the same message over and over again...

"Datablock Limit Exceeded!"

Now I know what your thinking..."Turn off some add-ons!You don't need all those weapons, or vehicles ect."
However the problem is not I have too many vehicles or weapons, I use many server scripts and other things like support systems and slayer.

I have to constantly be starting games and toggling stuff off until I get right bellow the datablock limit...due to many add-ons having different amounts of datablocks.

A side question: What is the datablock limit?



Anyways, I had a idea, meter on the start a game gui, within custom that scans your add-ons and totals up the datablocks!It would also show you if you are under or over the limit.

That was one idea, another was have it show you the amount of datablocks each one takes(if that is even possible).

Bear with me its an idea I had in the past but at the time not many people supported the idea, now hopefully there's a guy out there that can make this possible
« Last Edit: July 01, 2014, 07:04:41 PM by ZERØ »

The limit is 4096. You can easily lower the count by disabling some songs.

This would be easy to make, but the console already gives you a datablock report.

Open the console after starting a server. It will show you how many datablocks you used in total, and if you scroll up urther to where the add-ons are loaded it will show you how much each add-on created. brown townyzing an add-on and directly figuring out how many datablocks it uses is not possible.

brown townyzing an add-on and directly figuring out how many datablocks it uses is not possible.

If you search each text for the term "datablock" it should give a rough estimation. However depending on the amount of files you have this may cause lag issues.

The limit is 4096. You can easily lower the count by disabling some songs.
What? Songs only take 1 datablock each.
An average weapon takes 7.

the problem is not I have too many vehicles or weapons, I use many server scripts and other things like support systems and slayer.
Bullstuff. The limit is 4096.
Base game uses 424.
Colorset uses 7 per color. This would be 448 for a 64 color colorset.
Slayer only uses 21.
Several support systems don't even have datablocks.



However, about the suggestion itself. This would be hard. There may be cases where the datablock count is dynamic, based on whether or not other add-ons are present, or if it creates new datablocks based on some other information. The best that could be done is an estimate, which is just a raw check for checking all absolute datablocks without regard of conditional executions.
« Last Edit: June 30, 2014, 05:07:48 PM by Chrono »

Bullstuff. The limit is 4096.
Base game uses 424.
Colorset uses 7 per color. This would be 448 for a 64 color colorset.
Slayer only uses 21.
Several support systems don't even have datablocks.
A few brick packs could contribute hugely
Wait, 7 per color? why?

Wait, 7 per color? why?
ya i thought it was like 3-4 per color

Just deactivate vehicles/weapons/items/etc. that you won't use.

A few brick packs could contribute hugely
Each brick is one datablock. The biggest brickpack that I know of is modter. It adds 133(+95 for inverted, total of 228).
I don't recall any other add-on that loads up the brick menu as much as modter.
Wait, 7 per color? why?
ya i thought it was like 3-4 per color
Image, projectile, projectile emitter, projectile particle, explosion, explosion emitter, explosion particle.

If you search each text for the term "datablock" it should give a rough estimation. However depending on the amount of files you have this may cause lag issues.

What about variable names or comments? That's a horrible idea.

You'd only count lines that say datablock *data (* [: *]) and aren't comments.

You'd only count lines that say datablock *data (* [: *]) and aren't comments.

I wouldn't search for ones with brackets. Also add the total number of songs up.

What about variable names or comments? That's a horrible idea.

Who uses Datablock as a variable?

Who uses Datablock as a variable?
When you get the datablock of something and store it?
:S

When you get the datablock of something and store it?
:S

Point taken.
Well just search the first 9 characters to match datablock.
getSubStr(String,0,8);