Author Topic: List Used Brickpacks for a save  (Read 1424 times)

Need an add-on that tells you what brickpacks are used for a save. The mod quoted below tells you the brick sizes (like 2x2x5) but not what add-ons the bricks are from. RTB info was able to do it, so why don't we have this ability?

Script_UsedBricks[v.1.0.1]

Lists bricks currently in use, and can export the list to a file. Useful for when sharing builds and hosting servers. Requested by Skig and TheBrighterDark.

Features:
• Host can list all bricks currently in use with /listUsed. List appears in console for easy reading.
• Once bricks have been listed, host can use /exportList "save name" to save the list to their Blockland saves folder.

Note: Use /listUsed before attempting to export an updated list; the list does not update automatically!



This is helpful for when you want to steal saves. I like this, I don't steal saves.  :cookieMonster:

The reason being is that you need to make a database of all the bricks, and what add-on it came from.
Writing this in torque script might not be the best choice, because it could take a minute for it to generate a list.
Anyway, I might make one in both torque script, and python later, after I figure out an easy way to create a database of all the bricks.

The reason being is that you need to make a database of all the bricks, and what add-on it came from.
Writing this in torque script might not be the best choice, because it could take a minute for it to generate a list.
Anyway, I might make one in both torque script, and python later, after I figure out an easy way to create a database of all the bricks.
you mean a mod couldn't just look at the brickpacks that you have? it would have to look at every brickpack ever?

edit: nvm, I think you already meant a database of the brickpacks the person already has
« Last Edit: September 05, 2014, 11:20:20 PM by Farad »

After I figure out an easy way to create a database of all the bricks.
Take the add-on name and write in in a text file. Then search all the .cs's for datablock, or for the names of the .blb files. Move on to next add-on. Now you have a list of what brick pack has what. Not that hard to script, however it probably won't be exactly 100% accurate.

you mean a mod couldn't just look at the brickpacks that you have? it would have to look at every brickpack ever?
Well sure, it can tell you if you are missing a brick pack, but not what add-on you are missing.
Lets say you have a save that requires "Bricks_PackA", and "Bricks_PackB"
But you only have Bricks_PackA.
It wouldn't be able to tell you that you need Bricks_PackB, but it knows you are missing bricks.
If I made a database, it would be able to go through each UIName in the save file and figure out what packs has the same UIName, and tell you which add-on to download.

Take the add-on name and write in in a text file. Then search all the .cs's for datablock, or for the names of the .blb files. Move on to next add-on. Now you have a list of what brick pack has what. Not that hard to script, however it probably won't be exactly 100% accurate.
I was thinking about just starting a server up with all the brick packs, and get the UIName from the datablock, seems like it would be easier then digging through the .cs to look for the uiname.

Well sure, it can tell you if you are missing a brick pack, but not what add-on you are missing.
Lets say you have a save that requires "Bricks_PackA", and "Bricks_PackB"
But you only have Bricks_PackA.
It wouldn't be able to tell you that you need Bricks_PackB, but it knows you are missing bricks.
If I made a database, it would be able to go through each UIName in the save file and figure out what packs has the same UIName, and tell you which add-on to download.
I was actually just going to use it when I already know I have all the brickpacks needed. The problem is that I have extra brickpacks enabled that I don't need, because not all the brickpacks are used in the build. It would be nice to have a feature where it tells you the brickpacks even if you don't have them, but that feature would delay the completion of this mod so you can ignore it for now.

So if Save contains Bricks_PackA and you have Brick_PackA and Brick_PackB, it tells you that PackB is not needed?
Yeah I could do that.

So if Save contains Bricks_PackA and you have Brick_PackA and Brick_PackB, it tells you that PackB is not needed?
Yeah I could do that.
exactly

I ended up making it use a database for add-ons you might not have.
I can't figure out a good way to search through all the add-ons you have, and find the uinames of bricks right now, I might add that feature later in the future.
For now, if you have a UI that's not listed in the database, you can append the Add-on section in DB_u.txt of the compressed zip.
I'll make an online source so the database will get updated frequently, for now, it's just a text file.


It'll list add-ons that aren't being used, those that are, and those that are missing.
You can click the add-ons that aren't used in the list to disable them, the ones that are missing brings up a download link if it exists on Swollow's Archive.
The button for the GUI is located in the Custom Add-ons GUI when you start a server (to the right of the NONE button).
Enjoy.

Download Client_BrickDatabase
« Last Edit: September 06, 2014, 03:07:22 AM by Pah1023 »

I ended up making it use a database for add-ons you might not have.
I can't figure out a good way to search through all the add-ons you have, and find the uinames of bricks right now, I might add that feature later in the future.
For now, if you have a UI that's not listed in the database, you can append the Add-on section in DB_u.txt of the compressed zip.
I'll make an online source so the database will get updated frequently, for now, it's just a text file.


It'll list add-ons that aren't being used, those that are, and those that are missing.
You can click the add-ons that aren't used in the list to disable them, the ones that are missing brings up a download link if it exists on Swollow's Archive.
The button for the GUI is located in the Custom Add-ons GUI when you start a server (to the right of the NONE button).
Enjoy.

Download Client_BrickDatabase
thanks!

thanks!
No problem.
There may be an issue of you accidentally disabling an add-on if it doesn't have the UI-Name, just wanted to make that clear.

I had updated it with some more features, grab the latest version here http://forum.blockland.us/index.php?topic=266438.0