Page 1 of 2

[512x - 32x] Forestry Mod - Plugins for Forestry 2 & 3 [MC1.5 -1.6]

Posted: 22 Jun 2013, 19:05
by HanFox

Plugins for Forestry

PfF's goal is to add additional interconnected content between other Forge mods and SirSengir's Forestry.

Note

The rendering for liquids in barrels and buckets isn't done yet. It requires writing co-ordinates and whatnot to a text file and doing it over 5 resolutions just sounds overly tedious. I'll get it done one day, just don't expect it any day soon.

Of course, if someone else wants to take a crack at it feel free to post the results. ;)

Download

Plugins for Forestry 3 for MC1.6
Show

Plugins for Forestry 3 for MC1.5
Show

Plugins for Forestry 2 for MC1.4.7
Show

Preview

Show
Image
Image
Image

Credits

TorakWolf for his original work on Plugins for Forestry
Sphax for the hammer (in the 1.4.7 version only)
Zernicalo for Fried Egg and Tentacle
DanniL for Cupcake

Changelog

Show
Version: 3.1.18
*Updated: File structure to MC1.6
#Added: Blacksmithing Hammer

Version: 3.0.13
#Added: 512x and 256x
!Note: Liquid overlays for cans/buckets aren't done as it's not a texture, but writing co-ords in a txt file... sooo... one day :P

Version: v26 (silent update)
*Updated: Sausage sprites were the wrong way around (cooked/uncooked)

Version: v25
#Added: Lamb, Fried Egg and Tentacle by Zernicalo, Cupcake by DanniL, Butcher Knife, Sausage, Burger, Mince, Flour

Version: v18
#Initial Release

Re: [512x - 32x] Forestry mod - Plugins for Forestry v2.25 &

Posted: 27 Aug 2013, 17:16
by TBotV63
Woooo, nice, posted in 1970!!!

Nor, honestly, great.

Re: [512x - 32x] Forestry mod - Plugins for Forestry v2.25 &

Posted: 27 Aug 2013, 17:29
by HanFox
TBotV63 wrote:
Woooo, nice, posted in 1970!!!

Nor, honestly, great.
Are you drunk? :P No idea what you're on about.

Re: [512x - 32x] Forestry mod - Plugins for Forestry v2.25 &

Posted: 28 Aug 2013, 09:04
by TBotV63
HanFox wrote:
TBotV63 wrote:
Woooo, nice, posted in 1970!!!

Nor, honestly, great.
Are you drunk? :P No idea what you're on about.
No, LOL.
It said there yesterday: Last Post x.x.1970 2:00

BTW I don't drink LOL

Re: [512x - 32x] Forestry mod - Plugins for Forestry 2 & 3

Posted: 08 Sep 2013, 15:10
by HanFox
Still haven't done the liquids in buckets, barrels, etc. because it's still a txt file where I need to write co-ordinates to... maybe I'll do them one day if I have nothing better to do.

Version: 3.1.18
*Updated: File structure to MC1.6
#Added: Blacksmithing Hammer

Re: [512x - 32x] Forestry mod - Plugins for Forestry 2 & 3

Posted: 16 Oct 2013, 18:50
by Eunomiac
HanFox, I'd be happy to tackle the coordinates for the various resolutions. It's an mcmeta file thing, right? If so, I think I have a decent handle on how they work, but would you happen to know of a Sphax patch that contains similar mcmeta files that are complete, so I have a template I can work off of?

Re: [512x - 32x] Forestry mod - Plugins for Forestry 2 & 3

Posted: 16 Oct 2013, 19:48
by HanFox
No, it's not an mcmeta file. mcmeta is easy. It's a special co-ordinates file.

PluginsforForestry.jar\denoflionsx\PluginsforForestry\Client\Render\ barrel.txt, bucket.txt and capsule.txt

I think dens explained how they work somewhere buried in the PfF thread on MCF...

Re: [512x - 32x] Forestry mod - Plugins for Forestry 2 & 3

Posted: 17 Oct 2013, 16:02
by Eunomiac
64-bit Liquid Texture Coordinate Files
(Is there a shorter name for these?)

I'm away from home for a few days, so I'm afraid I'm posting these without having tested them, but I'm pretty sure I've figured this out and hopefully this will be helpful to anyone running a 64-bit pack.
Edit Edit: ... scratch that, I tested it and it didn't work (in hilarious fashion: the bucket appeared four times bigger, not sure why). Hopefully HanFox might be able to shed some light on what I did wrong? Anyways, I'll leave the rest of my post here and correct it if I figure out where my mistake was...:
Just copy each file into Notepad and save it as the indicated name ("barrel.txt", etc.). I rant a bit about what you do next at the end, so stick around till after this exhilarating numerical interlude:

Show
barrel.txt

Code: Select all

# IconSize=64;64
30,22,4,20
28,23,8,18
25,24,14,16
23,28,18,8
22,30,20,4
24,25,16,14
bucket.txt

Code: Select all

# IconSize=64;64
25,8,6,16
22,9,14,14
19,10,22,13
16,11,31,11
13,12,3,10
11,12,2,3
12,16,1,3
29,23,6,2
35,12,13,12
48,14,1,8
49,17,1,3
39,24,8,1
40,25,6,1
41,26,4,1
42,27,3,1
43,28,1,1
42,30,3,5
41,31,5,3
capsule.txt

Code: Select all

# IconSize=64;64
26,18,12,37
17,28,30,11
22,39,19,1
30,55,4,1

From what I understand, and someone please correct me if there's an easier way to do this because I'm pretty sure there must be: You have to place each of these files (barrel.txt, bucket.txt and capsule.txt) into the "...\.minecraft\config\denoflionsx\PluginsforForestry\" folder itself for it to work; it won't (unless I've missed something which is likely because this is silly) work if placed in a resource pack itself. (I think. Again, unless I've missed something. Which, honestly, I must have.)

Edit: For those wanting to do the same for other resolutions, here's how it works: Each line describes a rectangle within the texture that will be filled in by the liquid. The first two numbers are the X and Y coordinates of the pixel at the top-left corner of the rectangle, and the second two numbers are the Width and the Height. By listing a bunch of these rectangles, you define the area you want the liquid to cover/fill. (I'm pretty sure they can overlap.)

E.g. For "barrel.txt", the first line describes a rectangle that is 4 pixels wide and 20 pixels tall (the 3rd and 4th numbers), positioned 30 pixels in from the left (the 1st number) and 22 pixels down from the top (the 2nd number) of the 64x64 grid the barrel texture is drawn on. The next line describes an 8x18 rectangle that overlaps the first one, and so on. Basically, you can describe any shape by listing a bunch of overlapping rectangles that, taken together, cover the desired area---this total area will be filled in with whatever liquid texture the barrel (or bucket, or capsule) contains.

I have no idea if I over-complicated or under-explained that, but it took a lot out of me all the same and I don't have it in me to clarify it further ;)

Re: [512x - 32x] Forestry mod - Plugins for Forestry 2 & 3

Posted: 17 Oct 2013, 16:40
by HanFox
I appreciate the effort, but I literally have no idea about it nor strength to look in to it.

Make textures? Sure! Mess around with a weird propriety overlay system? It's unlikely.

If you present your attempts in the PfF thread on MCF dens will likely respond himself with help, but he's said before and suggested last night on Twitter, that he may be adding overlay support back in.

Re: [512x - 32x] Forestry mod - Plugins for Forestry 2 & 3

Posted: 26 Nov 2013, 23:43
by TorakWolf
Eunomiac wrote:
Show
64-bit Liquid Texture Coordinate Files
(Is there a shorter name for these?)

I'm away from home for a few days, so I'm afraid I'm posting these without having tested them, but I'm pretty sure I've figured this out and hopefully this will be helpful to anyone running a 64-bit pack.
Edit Edit: ... scratch that, I tested it and it didn't work (in hilarious fashion: the bucket appeared four times bigger, not sure why). Hopefully HanFox might be able to shed some light on what I did wrong? Anyways, I'll leave the rest of my post here and correct it if I figure out where my mistake was...:
Just copy each file into Notepad and save it as the indicated name ("barrel.txt", etc.). I rant a bit about what you do next at the end, so stick around till after this exhilarating numerical interlude:

barrel.txt

Code: Select all

# IconSize=64;64
30,22,4,20
28,23,8,18
25,24,14,16
23,28,18,8
22,30,20,4
24,25,16,14
bucket.txt

Code: Select all

# IconSize=64;64
25,8,6,16
22,9,14,14
19,10,22,13
16,11,31,11
13,12,3,10
11,12,2,3
12,16,1,3
29,23,6,2
35,12,13,12
48,14,1,8
49,17,1,3
39,24,8,1
40,25,6,1
41,26,4,1
42,27,3,1
43,28,1,1
42,30,3,5
41,31,5,3
capsule.txt

Code: Select all

# IconSize=64;64
26,18,12,37
17,28,30,11
22,39,19,1
30,55,4,1
From what I understand, and someone please correct me if there's an easier way to do this because I'm pretty sure there must be: You have to place each of these files (barrel.txt, bucket.txt and capsule.txt) into the "...\.minecraft\config\denoflionsx\PluginsforForestry\" folder itself for it to work; it won't (unless I've missed something which is likely because this is silly) work if placed in a resource pack itself. (I think. Again, unless I've missed something. Which, honestly, I must have.)

Edit: For those wanting to do the same for other resolutions, here's how it works: Each line describes a rectangle within the texture that will be filled in by the liquid. The first two numbers are the X and Y coordinates of the pixel at the top-left corner of the rectangle, and the second two numbers are the Width and the Height. By listing a bunch of these rectangles, you define the area you want the liquid to cover/fill. (I'm pretty sure they can overlap.)

E.g. For "barrel.txt", the first line describes a rectangle that is 4 pixels wide and 20 pixels tall (the 3rd and 4th numbers), positioned 30 pixels in from the left (the 1st number) and 22 pixels down from the top (the 2nd number) of the 64x64 grid the barrel texture is drawn on. The next line describes an 8x18 rectangle that overlaps the first one, and so on. Basically, you can describe any shape by listing a bunch of overlapping rectangles that, taken together, cover the desired area---this total area will be filled in with whatever liquid texture the barrel (or bucket, or capsule) contains.

I have no idea if I over-complicated or under-explained that, but it took a lot out of me all the same and I don't have it in me to clarify it further ;)



Thanks, Thanks!

P.S.: You all still use my wooden bucket sprite :o ? lOl, when I did it I thought it was bad... Self-esteem is something complicated for me... :-/

Edit: didn't work on 1.5.2 ( test build 229 ) so sad :cry:

Appears that the code doesn't include one size option in 1.5.2, but if you know other solution... :| 8D :|