Discuss Scratch

Jam_can
Scratcher
100+ posts

тнє ωιηтєя ѕнσρ. [Now open] [Now hiring]

friendly partner bump

No one is perfect - But always do your best on everything
Anyone on Scratch a VOCALOID/UTAU fans?
secretagent123
Scratcher
1000+ posts

тнє ωιηтєя ѕнσρ. [Now open] [Now hiring]

Jam_can wrote:

friendly partner bump
Thanks!

I don't really use this account any more.
Jam_can
Scratcher
100+ posts

тнє ωιηтєя ѕнσρ. [Now open] [Now hiring]

Hi, I'm so so sorry to say this, but please see this Important Announcement about тнε ғυηcн sнσρ - вυү & sεℓℓ ωιтн ғυη - if you want to take our shop out of your partnership down, thanks

No one is perfect - But always do your best on everything
Anyone on Scratch a VOCALOID/UTAU fans?
Smanrocks
Scratcher
100+ posts

тнє ωιηтєя ѕнσρ. [Now open] [Now hiring]

Username: smanrocks
Order: debugging
Details: my project here is a auto-tiler and it doesn't work. well it mostly works but it places dots in strange places where only dirt should be please contact me through my profile
Deadline: 9/27/2020
Have you read the terms: yes and they're nICE
Other: things you should know (assuming you don't have technical knowledge of how it work already)

my project is an auto-tiler. What that means is it takes data from a 2d array and calculates how to put a clean outline around everything. For example, if two places in the array are both 1 and they are next to each other it will pick the correct tiles to make the outline. In the case of my project, it outlines dirt with grass. how it works is each tile scans the 8 tiles around it to see if their value is 1 (there is a tile) or 0 (no tile) if it is a one it adds a number to a variable. it determines the number using this 2^x where x is the number of times the loop has gone through. it goes through tiles in this order where C is the base tile.

1, 2, 3
4, C, 5
6, 7, 8

For any tile that are corners to the base tile, they must pass another requirement if they are to be added. All 4 tiles in the cardinal directions of the corner tile must be filled if the corner tile will count. here's a demo

1, 1, 0, 1, 1
0, 1, 1, 1, 1,
0, 1, C, 1, 0
1, 0, 0, 0, 1
0, 0, 1, 1, 1,

So it would work like this. first, the b2 tile is checked if it is a 1. because it is a corner it checks the cardinal directions, however, A2 is a 0, so 0 is added instead of 1. if you continue this is the equations (2^0)*0+(2^1)+(2^3)*1+(2^4)+(2^5)=58. therefor 58 is C's tile id. then each id is matched to find the correct costume number to stamp. it does some quick calculations and stamps the tile onto the screen. I believe this error is somewhere in the script that calculates the ID. here how the error works 1=error 0=normal E=empty square.

0, 1, 0, 1, 0
1, 0, 0, 0, 1,
0, 0, E, 0, 0
1, 0, 0, 0, 1
0, 1, 0, 1, 0,

also for testing reasons, you will probably want to modify the “fill array randomly” block to swap between a more normal fill of 500 repeats and an almost full fill of 2000. just edit the second repeat until block to those values and hit r to generate.
NOTE: after generating only run script in the detect ID or script that the find ID script uses. otherwise, you may accidentally generate a new array while you are trying to test the first one.

Last edited by Smanrocks (Sept. 23, 2020 16:57:54)


—————————————————————I'm a good coder.—————————————————————-
———————————————-I hope you will agree my projects are here————————————————
—————————————–Want bugs fixed in your program? if so click here———————————————

banana
secretagent123
Scratcher
1000+ posts

тнє ωιηтєя ѕнσρ. [Now open] [Now hiring]

Smanrocks wrote:

Username: smanrocks
Order: debugging
Details: my project here is a auto-tiler and it doesn't work. well it mostly works but it places dots in strange places where only dirt should be please contact me through my profile
Deadline: 9/27/2020
Have you read the terms: yes and they're nICE
Other: things you should know (assuming you don't have technical knowledge of how it work already)

my project is an auto-tiler. What that means is it takes data from a 2d array and calculates how to put a clean outline around everything. For example, if two places in the array are both 1 and they are next to each other it will pick the correct tiles to make the outline. In the case of my project, it outlines dirt with grass. how it works is each tile scans the 8 tiles around it to see if their value is 1 (there is a tile) or 0 (no tile) if it is a one it adds a number to a variable. it determines the number using this 2^x where x is the number of times the loop has gone through. it goes through tiles in this order where C is the base tile.

1, 2, 3
4, C, 5
6, 7, 8

For any tile that are corners to the base tile, they must pass another requirement if they are to be added. All 4 tiles in the cardinal directions of the corner tile must be filled if the corner tile will count. here's a demo

1, 1, 0, 1, 1
0, 1, 1, 1, 1,
0, 1, C, 1, 0
1, 0, 0, 0, 1
0, 0, 1, 1, 1,

So it would work like this. first, the b2 tile is checked if it is a 1. because it is a corner it checks the cardinal directions, however, A2 is a 0, so 0 is added instead of 1. if you continue this is the equations (2^0)*0+(2^1)+(2^3)*1+(2^4)+(2^5)=58. therefor 58 is C's tile id. then each id is matched to find the correct costume number to stamp. it does some quick calculations and stamps the tile onto the screen. I believe this error is somewhere in the script that calculates the ID. here how the error works 1=error 0=normal E=empty square.

0, 1, 0, 1, 0
1, 0, 0, 0, 1,
0, 0, E, 0, 0
1, 0, 0, 0, 1
0, 1, 0, 1, 0,

also for testing reasons, you will probably want to modify the “fill array randomly” block to swap between a more normal fill of 500 repeats and an almost full fill of 2000. just edit the second repeat until block to those values and hit r to generate.
NOTE: after generating only run script in the detect ID or script that the find ID script uses. otherwise, you may accidentally generate a new array while you are trying to test the first one.
Taken but it may take some time.

I don't really use this account any more.
Pinkii_0w0
Scratcher
100+ posts

тнє ωιηтєя ѕнσρ. [Now open] [Now hiring]

I can support you? I have a shop and there is a section where I support shops.
lovepup3
Scratcher
100+ posts

тнє ωιηтєя ѕнσρ. [Now open] [Now hiring]

Partnership form:
Name of shop: The flying rainbow shop
Position in shopwner
Link: https://scratch-mit-edu.ezproxy.canberra.edu.au/discuss/topic/442942/?page=1#post-4484503
Banner:
Have you read the terms: yes
Other: GLACIER

Last edited by lovepup3 (Oct. 7, 2020 22:43:23)

mj1008
Scratcher
94 posts

тнє ωιηтєя ѕнσρ. [Now open] [Now hiring]

Order form


Username:mj1008
Order: Thumbnail in portrait mode. Kind of like a book cover.
Details: Background will be a sunset. On a plateau, there will be a girl standing in a red dress preferably.
Deadline:20th December 2020
Have you read the terms: Yes I have.
Other:
ICE


Thanks!!
-AAAnimator-
Scratcher
70 posts

тнє ωιηтєя ѕнσρ. [Now open] [Now hiring]

Remember the legend who is on the wall of honour


@hiddenspy2009

Hey there
AAA here
Go check out my projects
secretagent123
Scratcher
1000+ posts

тнє ωιηтєя ѕнσρ. [Now open] [Now hiring]

I am closing this shop as 2.0 is here.

I don't really use this account any more.

Powered by DjangoBB