[Extension] BetterSettings - Save booleans, images and string arrays!

@Sarge, just curious, do you plan on adding setting blocks for tilemaps?

Wait, let me check my todo list…

image

Yeah… I planned it a long time ago. The issue is you can’t create a tilemap of custom dimensions, so I’d have to make a 512x512 tilemap (max size) and then write to it, but that’s really inefficient. Idk, I don’t think I’ll be doing that. If I ever update bettersettings, I’ll try to add it, but I wasn’t planning to do that in the near future either.

3 Likes

Isnt this just… variables?

1 Like

Sort of, but these settings save if you reset or close your game.

4 Likes

Nope. SAVE DATA variables. It’s a better version of the original settings extension.

5 Likes

If it was this extension would not exist :wink:

3 Likes

Whenever I try to import this extension it says “network request failed” and I don’t know why. Its only this extension and I am very confused. If anyone can help me here then thanks in advance.

1 Like

Hey @Rune I don’t know of any way to fix that problem, but I also encountered it. The best solution that I can give you is that you should use this extension instead:

This is the only version I got to work, but I think that it might suit your needs.

Imporant announcement

I changed my GitHub username, so please remove this extension in any project you may have it imported, and instead import the new link under my new username (sargedev).

This is not necessary, as the extension should still work, but it would be the safest option. By importing the new link you will also get access to any new updates.

WARNING: Do not import the new link before removing the old one, as this could cause conflicts

3 Likes

Dang… that’s a lot of my games… Will it be okay if I only remove/replace the extension in projects I intend to update?

2 Likes

Yes! The extension should still work for a very long time (until someone nabs my name on github), this is just for safety. Also, published links aren’t in any danger so you don’t have to worry

4 Likes

(Technically S0m3randomguy/bettersettings will redirect to sargedev/bettersettings until someone takes my old username so you can still get updates, I think. But I’d still like to play it safe and get everyone to switch. I know it’s inconvenient but it’s for the best)

4 Likes

Quick update: I found the most efficient method to swap these extensions quickly and painlessly
To do so, simply navigate to your pxt.json file (on GitHub, or in the makecode explorer in javascript) and in the “dependencies” section change all occurences of “S0m3randomguy” to “sargedev”.

DISCLAIMER: I am currently working out some issues with this approach. Please stand by.
Also, always back your project up before doing this, obviously

4 Likes

Do you ever plan on making it so you can store tilemaps as a setting, I know it’s been over a year but I really need this or a mario maker type game.

1 Like

You could:

  1. Make an array of all the tiles you want to use in your settings tilemap
  2. Store a 2D array with each element as the index of which tile in the array should be there
  3. Use a function to create a new tile map and set each tile to the array of times at the index in the 2D array

I can make a demo of this if this isn’t explained well XD I like the Mario maker idea! :mushroom:

2 Likes