Official Everybody Edits Forums

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.

#1 2015-07-21 20:02:33, last edited by Hexagon (2016-03-04 17:47:18)

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

[Beta] Squirrel: industrial strength minimap downloader

Squirrel is an application that downloads minimaps to .png files. Converting the data to a .png file takes about 2.5 seconds milliseconds (a recent performance breakthrough.)

I'm thinking about reviving Panda, and Squirrel will be a main component of it (thumb-nailing engine.) There's really no servers that it can be run from, which is an issue. We'd need to look at options for image-only hosting or something.

Any thoughts or feedback are appreciated.

Here's the GitHub link: https://github.com/Decagon/Squirrel

Offline

Wooted by: (2)

#2 2015-07-22 01:49:39

Gooberg
Member
From: Andromeda Galaxy
Joined: 2015-02-26
Posts: 81

Re: [Beta] Squirrel: industrial strength minimap downloader

Already created. EEPainter, pretty good though.


Owner of GooCrew
GooCrew Worlds:
GooCrew Art World

Offline

#3 2015-07-22 02:25:21, last edited by Hexagon (2015-07-22 02:28:01)

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Beta] Squirrel: industrial strength minimap downloader

Gooberg wrote:

Already created. EEPainter, pretty good though.

I haven't tried EEPainter (v1.7.8 crashed when loading minimap), but I have tried a few and I couldn't find any options to:
- run it via a command line (console; little or no GUI)
- use png compression
- to get the latest init data (not the BigDB data that might be out of date)
- be able to save to a file that is able to be correctly read later even if the blocks aren't updated
- load a minimap under ~5 seconds (long time to load something)
- supporting all types of authentication, including kong, mousebreaker and fb
- be able to have the application automatically update, or being able to click a button to update the application
- dynamically choose BigDB or to use init data, depending if the world is in the lobby or not

If your application does support most or all of these features, I'd be happy to work with that developer to gain some understanding into how these things work.

Offline

#4 2015-07-22 02:48:30

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Beta] Squirrel: industrial strength minimap downloader

if (layerNum == 0)
                    {
                        // background block

Shouldn't layerNum be 1? That's what I remember.

Offline

#5 2015-07-22 03:12:58

Gooberg
Member
From: Andromeda Galaxy
Joined: 2015-02-26
Posts: 81

Re: [Beta] Squirrel: industrial strength minimap downloader

f365f9aeecc4b2beb14f7b6fcc035f8f.png

It may export as a .jpeg, though .jpeg's are easily transferrable to .png's


Owner of GooCrew
GooCrew Worlds:
GooCrew Art World

Offline

#6 2015-07-22 05:12:12, last edited by Xfrogman43 (2015-07-22 05:12:56)

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Beta] Squirrel: industrial strength minimap downloader

Gooberg wrote:

f365f9aeecc4b2beb14f7b6fcc035f8f.png

It may export as a .jpeg, though .jpeg's are easily transferrable to .png's

It would be better if there was already a .png export, so you didn't have to.


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

Wooted by:

#7 2015-07-22 05:13:23

Gooberg
Member
From: Andromeda Galaxy
Joined: 2015-02-26
Posts: 81

Re: [Beta] Squirrel: industrial strength minimap downloader

Xfrogman43 wrote:
Gooberg wrote:

f365f9aeecc4b2beb14f7b6fcc035f8f.png

It may export as a .jpeg, though .jpeg's are easily transferrable to .png's

It would be better if there was already a .png conversion, so you didn't have to.

I'm still not sure, it may export as a .png //forums.everybodyedits.com/img/smilies/tongue


Owner of GooCrew
GooCrew Worlds:
GooCrew Art World

Offline

#8 2015-07-22 13:29:48

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Beta] Squirrel: industrial strength minimap downloader

capasha wrote:
if (layerNum == 0)
                    {
                        // background block

Shouldn't layerNum be 1? That's what I remember.

I switched it to layerNum == 1, and the minimaps generated look better now. From that modification that you suggested, I was able to fix some other bugs relating to parsing init data, which fixed some issues drawing background blocks after foreground blocks (it should be the opposite.) Thanks!

Gooberg wrote:

f365f9aeecc4b2beb14f7b6fcc035f8f.png

It may export as a .jpeg, though .jpeg's are easily transferrable to .png's

It is possible to convert .jpeg's to .png's, however in this scenario pngcrushed'd png's are about ~50% smaller in file size, and are losslessly compressed (100% quality). Jpeg's are larger in file size and have a lower quality.

However, when it comes to compressing larger photos, jpeg is superior over png in both file size and perceived quality.

Offline

Wooted by:

#9 2016-03-02 02:30:00

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Beta] Squirrel: industrial strength minimap downloader

Unfortunately, it has appeared that EE has updated their world format and Squirrel no longer works correctly. I'm getting a NullReferenceException on this line:

https://github.com/Decagon/Squirrel/blo … ram.cs#L94

Things that I have tried:
- dumping the data at the section (I get x1 and y1 values, and they don't appear to be bytearrays, but integers instead)
- using x1 and y1 values instead of x and y (however, I get an array out of bounds exception in the worlddata array. I have tried to increase the array size to 1000 by 1000 but it still fails with an out of bounds exception, indicating that the width and height parameters are incorrect as the maximum world size is less than 1000.)
- converting the byte arrays to int
- try to detect when xs is null, and stepping over the foreach loop (this is where the error occurs)
- changing x and y to byte[0] when they are null

Does anyone how this could be resolved?

Offline

#10 2016-03-02 03:21:24

XxAtillaxX
Member
Joined: 2015-11-28
Posts: 4,202

Re: [Beta] Squirrel: industrial strength minimap downloader

Hexagon wrote:

Unfortunately, it has appeared that EE has updated their world format and Squirrel no longer works correctly. I'm getting a NullReferenceException on this line:

https://github.com/Decagon/Squirrel/blo … ram.cs#L94

Things that I have tried:
- dumping the data at the section (I get x1 and y1 values, and they don't appear to be bytearrays, but integers instead)
- using x1 and y1 values instead of x and y (however, I get an array out of bounds exception in the worlddata array. I have tried to increase the array size to 1000 by 1000 but it still fails with an out of bounds exception, indicating that the width and height parameters are incorrect as the maximum world size is less than 1000.)
- converting the byte arrays to int
- try to detect when xs is null, and stepping over the foreach loop (this is where the error occurs)
- changing x and y to byte[0] when they are null

Does anyone how this could be resolved?

I sent a pull request with a potential fix, I cannot test due to Fody having a strange error with compiling, though it should work. Let me know if it does.


signature.png
*u stinky*

Offline

Wooted by:

#11 2016-03-02 14:21:34

capasha
Member
Joined: 2015-02-21
Posts: 4,066

Re: [Beta] Squirrel: industrial strength minimap downloader

Hexagon wrote:

Unfortunately, it has appeared that EE has updated their world format and Squirrel no longer works correctly. I'm getting a NullReferenceException on this line:

https://github.com/Decagon/Squirrel/blo … ram.cs#L94

Things that I have tried:
- dumping the data at the section (I get x1 and y1 values, and they don't appear to be bytearrays, but integers instead)
- using x1 and y1 values instead of x and y (however, I get an array out of bounds exception in the worlddata array. I have tried to increase the array size to 1000 by 1000 but it still fails with an out of bounds exception, indicating that the width and height parameters are incorrect as the maximum world size is less than 1000.)
- converting the byte arrays to int
- try to detect when xs is null, and stepping over the foreach loop (this is where the error occurs)
- changing x and y to byte[0] when they are null

Does anyone how this could be resolved?

It was a long time ago they change the database reading.
Here is an example, http://pastebin.com/Yzy06edk

Offline

#12 2016-03-02 16:08:37, last edited by Hexagon (2016-03-03 21:08:04)

Hexagon
Member
Joined: 2015-04-22
Posts: 1,213

Re: [Beta] Squirrel: industrial strength minimap downloader

XxAtillaxX wrote:

I sent a pull request with a potential fix, I cannot test due to Fody having a strange error with compiling, though it should work. Let me know if it does.

Thanks, it works now!

---

I'm getting another NullReferenceException while trying to optimize the Color class to a byte array, but I'll see if I can figure this one out...

Offline

Hexagon1456931317586383

Board footer

Powered by FluxBB

[ Started around 1732403215.7657 - Generated in 0.119 seconds, 10 queries executed - Memory usage: 1.63 MiB (Peak: 1.81 MiB) ]