Unity-Resource-Pack / Unity-Modded

Mod support for the Unity resource pack.
Other
10 stars 6 forks source link

IC2 Classic #90

Closed Speiger closed 1 year ago

Speiger commented 8 years ago

Could you add IC2 Classic Support? It can be combined with IC2 Exp in Textures (it uses the same folder but differend subfolders)

Yulife commented 8 years ago

We'll keep it in mind :D

Speiger commented 8 years ago

1 Upside. Texture Sprites. You do not have to do 5000 Icons. Its all in a couple texture sprites merged together (at least in classic) xD

BBoldt commented 8 years ago

Would probably be best to use the same textures that we use for IC2-exp, just "ported" to whatever file/image structure IC2-Classic has. Then we would just need to fill in the blanks for the extra content that IC2 Classic has.

Speiger commented 8 years ago

@BBoldt Yeah but exp changed they general style and classic kept the old one

Yulife commented 8 years ago

Sprites have downsides too, for example if you do not have all textures done you either need to fill in the not textured with blanks or ship the author's textures which may conflict with some licences :P But yea, sprites are nice

Speiger commented 8 years ago

yeah that is true. But on the other hand. As long you finish your work and make it a "none constant" state it should be fine (at least from my side)

Yulife commented 8 years ago

Just curious, IC2 Classic and Tech Reborn are completly different right? Because we started on Tech Reborn! :smile:

BBoldt commented 8 years ago

They are Yulife. Tech Reborn is a rewritten version of an old version of Gregtech. IC2 Classic is an updated version of pre-experimental IC2.

Yulife commented 8 years ago

Ahhh nice :)

CyanideX commented 8 years ago

@Speiger, you still looking to get those textures for IC2C? I'm just about done with IC2 so it wouldn't be too difficult to throw something together.

Yulife commented 8 years ago

Shouldn't it use them same texture? :p

Speiger commented 8 years ago

@CyanideX well it would be great if IC2C gets texture pack support... @Yulife well thats your choice but IC2Exp did start a new Art Style while classic tries to keep the old one... So if you find something that fits for both then i am fine with that.

Yulife commented 8 years ago

Hey @CyanideX once you get IC2 done I can take a look at IC2 Classic's sprites, just tell me once it's done

Mattabase commented 7 years ago

@CyanideX @Yulife Would super dig those IC2C textures <3

CyanideX commented 7 years ago

@Mattabase, I will see what I can do. It's only 1.7.10, right?

Mattabase commented 7 years ago

<3 Love you buddy! @CyanideX =P

CyanideX commented 7 years ago

@Mattabase, don't thank me yet. I may not get to it for a while. 😖

CyanideX commented 7 years ago

Sorry, can't do it @Mattabase. I would need @Speiger to make the bottom/top face rotate with the block in order for the textures to work properly. This retexture would be a basic copy/paste from my IC2 Unity because I simply don't have the time to make adjustments for this system.

Sample

Speiger commented 7 years ago

@CyanideX the problem is i would require my full renderring for that just making the stuff work. I am using the standart renderer.... hmmmm i didnt expect that you do side awarenes...

Speiger commented 7 years ago

@CyanideX ok i will try to come up with something. But might take a couple days...

Speiger commented 7 years ago

@CyanideX keep doing the work even rotation is not applying yet. I found some interesting code... That should fix that issue very fast... (Patch will come out soon) @Mattabase notify xD

CyanideX commented 7 years ago

@Speiger, I tend to get fancy with my textures. 😉 Thanks for looking into this.

CyanideX commented 7 years ago

It's coming along: Progress!

Speiger commented 7 years ago

Cool :3 i wonder how you do the jetpacks etc xD because they have no textures on Exps Side

Speiger commented 7 years ago

@CyanideX do you want to add animations? I can do a oneliner code which allows you to make animations to IC2Classic without using the sprite system while stay still compatible^^"

CyanideX commented 7 years ago

@Speiger, the jetpacks had textures but here are some of the items from my retexture:

Items

I didn't do any animations aside from a few items so no need to worry about that.

CyanideX commented 7 years ago

Ok, @Speiger, I'm going to need some animations for a few items.

CyanideX commented 7 years ago

We're getting there:

image

Nothing a night of beer can't accomplish.

Speiger commented 7 years ago

Well I can't tell you where to put it now but, Leave the texture in the sprite that is going to be animated like it is. Make a separate file that is like vanilla Minecraft texture and do the animation there. Simply: The texture loader from class inject 2 paths into the texture. 1: the path of the sprite + coords. 2: a replacement path + name which loads if he finds the texture there. if the loader finds it there it disables classic loading kind and loads the texture normal like any vanilla mc texture. (Including mc meta files) I can tell you the name as soon as I am in my dev environment.

Speiger commented 7 years ago

@CyanideX well ok i did add the code for the Texture Replacing into my dev invioment (will be with the next release) So the Textures you want to replace with special Properties you need to place into this path: "ic2:textures/(blocks or items)/replacements/(SpriteID)X(XPosition)Y(YPosition).png" for example you want to replace a the Nightvision Goggles the file of the texture has to be called like this: "i2X2Y2.png" (its a weird name i know but thats the best system i came up with)

Now working on the Rotation part and last the Second Texture for the Nuke. Also here is a list of Sprite to ID:

"b0" = "ic2:textures/sprites/block_0.png"
"bc" = "ic2:textures/sprites/crops_0.png"
"bgen" = "ic2:textures/sprites/block_generator.png"
"bmach" = "ic2:textures/sprites/block_machine.png"
"bmach2" = "ic2:textures/sprites/block_machine2.png"
"bpersonal" = "ic2:textures/sprites/block_personal.png"
"bcable" = "ic2:textures/sprites/block_cable.png"
"belec" = "ic2:textures/sprites/block_electric.png"
"i0" = "ic2:textures/sprites/item_0.png"
"i1" = "ic2:textures/sprites/item_1.png"
"i2" = "ic2:textures/sprites/item_2.png"
"i3" = "ic2:textures/sprites/item_3.png"
"batBox" = "ic2:textures/sprites/Batbox.png"
"mfe" = "ic2:textures/sprites/MFE.png"
"mfsu" = "ic2:textures/sprites/MFSU.png"
"bBox" = "ic2:textures/sprites/BatteryBox.png"
"triggers" = "ic2:textures/sprites/bc_triggers.png"
"conv" = "ic2:textures/sprites/block_Converter.png"
"CPad" = "ic2:textures/sprites/block_pads.png"
Speiger commented 7 years ago

@CyanideX version is out. You find it on github... Version 1.2.1.2.3

CyanideX commented 7 years ago

Hey @Speiger, I downloaded the new version, created the replacements directory, adding the animation .png as well as the meta file, named it i3x3y1.png to target the overclocked heat vent, but it doesn't appear to do anything.

dir

Speiger commented 7 years ago

@CyanideX i made a mistake... Its not ic2/textures/replacements. its ic2/replacements.

Speiger commented 7 years ago

it should not colide with ic2Exp at all.. So i think i can leave it like that^^"

CyanideX commented 7 years ago

@Speiger, moved them to ic2/replacements and it still doesn't seem to be working. 😖

Speiger commented 7 years ago

@CyanideX i make a hotfix for my derpiness...

Speiger commented 7 years ago

put them back to the ic2/textures/replacements

Speiger commented 7 years ago

found another bug with plugins so i can make a fast release.... Third today xD

Speiger commented 7 years ago

its now out @CyanideX

Speiger commented 7 years ago

https://github.com/TinyModularThings/IC2Classic/releases/tag/1.2.1.2.4.1

Speiger commented 7 years ago

As soon you say its ok i put it on curse....

Speiger commented 7 years ago

(dont want a forth release today xD

CyanideX commented 7 years ago

@Speiger, that's a lot of posts you've done! 😉 Maybe editing one post would be better.

Also, I tried the new version and the animations still don't seem to be working. I put them back into ic2/textures/replacements.

Edit: It also seems to be replacing the wrong item.

item

Speiger commented 7 years ago

i2X2Y2.png everything has to be typed big.

CyanideX commented 7 years ago

@Speiger:

dir

ingame

Oops, I see it should be i3X2Y0. Still doesn't work though.

Speiger commented 7 years ago

@CyanideX could you join the IRC channel then i do not have to do releases.... (now its try and errors) (IC2-Classic is the channel)

Yulife commented 7 years ago

@Speiger you use JSONs? Also why the weird PNG names?

Speiger commented 7 years ago

@Yulife Nope. Why the weird name? Because thats how the Sprites are loaded. Its cutting the Textures into pieces ingame so that do not have to place 1k Textures into my folder... It makes replacing basic stuff very easy while keeping special stuff like animations in a special area and allow you to remove/edit them very easy.

CyanideX commented 7 years ago

@Speiger, I love working with sprite sheets because it allows me to make changes to all of the textures with a single adjustment layer instead doing them to 256 individual textures; however, the one downside is trying to figure out what the items are without seeing their filename. I found myself going in game trying to match the texture with some of the items/blocks to know what I should be drawing. :P

Speiger commented 7 years ago

hehehe xD