Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?
You are not logged in.
Heyyo, is there a file with the minimap colours of EEM?
Cannot seem to find it my self.
In ItemManager.as, block color is written at the end of the line of code for each new block. It would be a huge hassle for someone adding new assets to have to pick out every color individually, so most assets, including almost all of the Project M ones, use "-1" instead of a hex code. This makes the client pick a color automatically, a summation of all of the pixels in the asset.
So, unfortunately, this all means that the hex codes aren't in a list, and in order to get them, they have to be extracted by hand.
Click the image to see my graphics suggestions, or here to play EE: Project M!
Offline
So, unfortunately, this all means that the hex codes aren't in a list, and in order to get them, they have to be extracted by hand.
Nope, this can be made with programming. Loop through the list and grab minimap colors.
I could make a tool for this, but for what use is it?
Edit:
I think I can do it much more advanced, but this is easier.
Offline
In ItemManager.as, block color is written at the end of the line of code for each new block. It would be a huge hassle for someone adding new assets to have to pick out every color individually, so most assets, including almost all of the Project M ones, use "-1" instead of a hex code. This makes the client pick a color automatically, a summation of all of the pixels in the asset.
So, unfortunately, this all means that the hex codes aren't in a list, and in order to get them, they have to be extracted by hand.
Yeah definitely not going through that by hand
If the client can do it programmatically so can we!
Nope, this can be made with programming. Loop through the list and grab minimap colors.
I could make a tool for this, but for what use is it?
Edit:
I think I can do it much more advanced, but this is easier.
That looks rather convenient. Mind sharing the tool or the exported list? Format doesn't really matter as long as it it's from block-id -> color values.
As for why this is useful, I want to recreate the image in C# for a bot I am developing. It works for the normal EE worlds but not yet for the PmLvls.
Edit: I'm trying to find the (project M) source code. Is it somewhere on Github?
Offline
The source code can be found in the download drop down. If you want the code for converting images into color. I write it below.
private static uint GetBlockColor(Bitmap bmd) {
uint r = 0, g = 0, b = 0;
for (int x = 0; x < bmd.Height; x++){
for (int y = 0; y < bmd.Width; y++){
uint color = ColorToUInt(bmd.GetPixel(x, y));
r += (color & 0xff0000) >> 16;
g += (color & 0x00ff00) >> 8;
b += (color & 0x0000ff);
}
}
r /= (uint)(bmd.Width * bmd.Height); //256
g /= (uint)(bmd.Width * bmd.Height); //256
b /= (uint)(bmd.Width * bmd.Height); //256
return 0xff000000 | (r << 16) | (g << 8) | (b << 0);
}
private static uint ColorToUInt(Color color) => (uint)((color.A << 24) | (color.R << 16) | (color.G << 8) | (color.B << 0));
Offline
This might come off as incredibly stupid and not worth the gravedig, but would it be okay for this to get uploaded on Flashpoint by any chance? Other Flash emulators tend to be wonky.
2015-2018 - Beginning of the brain's decomposition.
2019 - Not knowing any better.
2020 - A disasterous return.
2021 - OW THE EDGE OW OW STOP IT HURTS
2022 - Actual redemption!
2023 - Remorse. Lots of it.
Offline
This might come off as incredibly stupid and not worth the gravedig, but would it be okay for this to get uploaded on Flashpoint by any chance? Other Flash emulators tend to be wonky.
Flash emulators? What OS are you using?
There's a flash projector for each of the 3 major OS, and it was actually given from Flashpoint iirc, but you could find them from EEO discord > #how-to-play
Offline
TowerOfDustAndDecay wrote:This might come off as incredibly stupid and not worth the gravedig, but would it be okay for this to get uploaded on Flashpoint by any chance? Other Flash emulators tend to be wonky.
Flash emulators? What OS are you using?
There's a flash projector for each of the 3 major OS, and it was actually given from Flashpoint iirc, but you could find them from EEO discord > #how-to-play
11. What, am I supposed to be on something earlier?
2015-2018 - Beginning of the brain's decomposition.
2019 - Not knowing any better.
2020 - A disasterous return.
2021 - OW THE EDGE OW OW STOP IT HURTS
2022 - Actual redemption!
2023 - Remorse. Lots of it.
Offline
[ Started around 1701844711.7528 - Generated in 0.037 seconds, 10 queries executed - Memory usage: 1.49 MiB (Peak: 1.65 MiB) ]