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.

#26 2015-11-03 12:41:32

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: Everybody Edits Block ID's and Colors

Is this a possible suggestion?

http://www.codeproject.com/Articles/168 … th-the-Swf

Looked a little bit in the how-to-use and it seems rather easy to make the extraction of files from the swf automatic. Obviously you'd also have to download the swf automatically, but that should be a piece of cake.

Offline

#27 2015-11-03 19:09:26

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

Re: Everybody Edits Block ID's and Colors

Hexagon wrote:

You might give Termite a try since it's able to extract block id, layer, bmd, the shop name, description, minimap color (in hex), block package and the sprite offset of the block in the respective image file from the SWF. All you have to do is extract ItemId.as and ItemManager.as and it does the rest.

That one doesn't get the thumbnail colors. Only the color that exist.

Offline

#28 2015-11-03 23:07:51, last edited by Hexagon (2015-11-03 23:12:47)

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

Re: Everybody Edits Block ID's and Colors

capasha wrote:

That one doesn't get the thumbnail colors. Only the color that exist.

What do you mean by thumbnail colors? Termite gets the minimap color that exists, but it doesn't get the average bitmap color of the block, though. Would be a good feature to add.

Offline

#29 2015-11-03 23:26:26

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,852

Re: Everybody Edits Block ID's and Colors

den3107 wrote:

Is this a possible suggestion?

http://www.codeproject.com/Articles/168 … th-the-Swf

Looked a little bit in the how-to-use and it seems rather easy to make the extraction of files from the swf automatic. Obviously you'd also have to download the swf automatically, but that should be a piece of cake.

I only looked for 2350 ms, but it looks like a really good deal. Downloading the swf (periodically)... or I guess, when there's a config version change. The admins might have (at one point) ostensibly offered assistance to the bot community; this project would be an opportunity (among many) of making information readily available...

Offline

Wooted by:

#30 2015-11-03 23:40:36

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: Everybody Edits Block ID's and Colors

Again, if anybody would like to work on the complete automation I wouldn't mind helping.

Offline

#31 2015-11-04 01:35:10

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

Re: Everybody Edits Block ID's and Colors

den3107 wrote:

Again, if anybody would like to work on the complete automation I wouldn't mind helping.

I would really like to have it completely automated, and would like to help you with making it possible.

Offline

#32 2015-11-04 03:29:14

TiKen
Member
Joined: 2015-02-24
Posts: 298

Re: Everybody Edits Block ID's and Colors

I used to have semi-automatic Matlab script for that: you just had to feed it some script and images extracted from the .swf

Offline

#33 2015-11-04 13:17:31

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

Re: Everybody Edits Block ID's and Colors

The JPEXS Flash Decompiler appears to work very well, at least in my tests. We're just using the jar library from it and it seems to be pretty good. Not sure if there's a flaw in it such that some resources aren't there or something...

Offline

#34 2015-11-04 21:25:31

den3107
Member
From: Netherlands
Joined: 2015-04-24
Posts: 1,025

Re: Everybody Edits Block ID's and Colors

JPEXS is in Java though, you could combine it with C#, but it will greatly reduce speed and bugs are very likely.

Offline

#35 2015-11-05 02:26:07

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

Re: Everybody Edits Block ID's and Colors

den3107 wrote:

JPEXS is in Java though, you could combine it with C#, but it will greatly reduce speed and bugs are very likely.

I combined it (as in executing the jar file separately) and I haven't noticed any bugs yet (some may arise though). The speed is the same as the GUI, which is kinda slow on my virtualized windows pc. The reason why we're using it is because it works and the other solution didn't work unfortunately.

Offline

Hexagon1446686767555504

Board footer

Powered by FluxBB

[ Started around 1713554826.4898 - Generated in 0.065 seconds, 13 queries executed - Memory usage: 1.52 MiB (Peak: 1.69 MiB) ]