Forums - [512x - 32x] Forestry mod - Plugins for Forestry 2 & 3 : Patches - Releases for Mods

It is currently 25 Apr 2018, 06:57 (All times are UTC )




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Message
User avatar
 Profile  
Offline
BDcraft Lead Moderator

Joined: 16 Apr 2012, 00:46
Posts: 4758
Location: Hereford, England
PostPosted: 22 Jun 2013, 19:05 

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


Plugins for Forestry 3 for MC1.5


Plugins for Forestry 2 for MC1.4.7


Preview




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 Spoiler
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

BDcraft Moderator


Advertisement
Login to not show this ad


 Profile  
Offline

Joined: 05 Aug 2013, 12:38
Posts: 17
PostPosted: 27 Aug 2013, 17:16 
Woooo, nice, posted in 1970!!!

Nor, honestly, great.



User avatar
 Profile  
Offline
BDcraft Lead Moderator

Joined: 16 Apr 2012, 00:46
Posts: 4758
Location: Hereford, England
PostPosted: 27 Aug 2013, 17:29 
TBotV63 wrote:Woooo, nice, posted in 1970!!!

Nor, honestly, great.

Are you drunk? :P No idea what you're on about.

BDcraft Moderator



 Profile  
Offline

Joined: 05 Aug 2013, 12:38
Posts: 17
PostPosted: 28 Aug 2013, 09:04 
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



User avatar
 Profile  
Offline
BDcraft Lead Moderator

Joined: 16 Apr 2012, 00:46
Posts: 4758
Location: Hereford, England
PostPosted: 08 Sep 2013, 15:10 
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

BDcraft Moderator


User avatar
 Profile  
Offline

Joined: 09 Feb 2013, 20:25
Posts: 78
PostPosted: 16 Oct 2013, 18:50 
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?

Amateur dinosaur hunter and extreme weather enthusiast, whose interests include spoken mime, armchair parkour, tactical gaslighting, conspicuous ninjutsu and Schröedinger's pentameter—of which this sentence may or may not be an example.​


User avatar
 Profile  
Offline
BDcraft Lead Moderator

Joined: 16 Apr 2012, 00:46
Posts: 4758
Location: Hereford, England
PostPosted: 16 Oct 2013, 19:48 
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...

BDcraft Moderator


User avatar
 Profile  
Offline

Joined: 09 Feb 2013, 20:25
Posts: 78
PostPosted: 17 Oct 2013, 16:02 
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.

Citation: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 Spoiler
barrel.txt
# 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
# 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
# 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 ;)

Amateur dinosaur hunter and extreme weather enthusiast, whose interests include spoken mime, armchair parkour, tactical gaslighting, conspicuous ninjutsu and Schröedinger's pentameter—of which this sentence may or may not be an example.​


User avatar
 Profile  
Offline
BDcraft Lead Moderator

Joined: 16 Apr 2012, 00:46
Posts: 4758
Location: Hereford, England
PostPosted: 17 Oct 2013, 16:40 
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.

BDcraft Moderator


User avatar
 Profile  
Offline

Joined: 03 Nov 2012, 22:35
Posts: 13
PostPosted: 26 Nov 2013, 23:43 
Eunomiac wrote:
[+] Show Spoiler
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.

Citation: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
# 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
# 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
# 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 :|


Last edited by TorakWolf on 27 Nov 2013, 00:59, edited 2 times in total.

Display posts from previous:  Sort by  

Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: