Skip to content
This repository has been archived by the owner on Apr 22, 2019. It is now read-only.

Shift click issues with Transmutation Tablet in build 519 #1054

Closed
cylek56 opened this issue May 22, 2016 · 16 comments
Closed

Shift click issues with Transmutation Tablet in build 519 #1054

cylek56 opened this issue May 22, 2016 · 16 comments
Assignees
Labels
Milestone

Comments

@cylek56
Copy link

cylek56 commented May 22, 2016

Hello Pahimar,

Just want to report bugs:
(Win 10/ MC 1.7.10/ Java 1.8.091/ Forge 10.13.4.1614)

1-Glyph twinkles on each size (1x1, 3x3, 5x5)
2-Aeternalis blocks turn to Alchemical blocks when shift clicking the transmutation table
Same for pufferfish which turns to raw fish

Hope to help you a little
Respectfully

@pahimar
Copy link
Owner

pahimar commented May 22, 2016

  1. Twinkles?
  2. Definitely a bug with shift click, investigating

@pahimar pahimar changed the title Many bugs discovered in build 519 Shift click issues with Transmutation Tablet in build 519 May 22, 2016
@pahimar pahimar added the bug label May 22, 2016
@pahimar pahimar added this to the 0.3.* milestone May 22, 2016
@pahimar pahimar self-assigned this May 22, 2016
@cylek56
Copy link
Author

cylek56 commented May 22, 2016

glyph

Easier to show what's going wrong

@pahimar
Copy link
Owner

pahimar commented May 22, 2016

That's very odd - it should be a smooth glow effect. Hrm

@tterrag1098
Copy link

Came from twitter - I know I'm looking at the wrong part of this issue, but you might consider using a sine wave here instead of...uh...this? https://github.com/pahimar/Equivalent-Exchange-3/blob/master/src/main/java/com/pahimar/ee3/client/util/RenderUtils.java#L85

Math.sin(world.getTotalWorldTime() / 100f)

Will be guaranteed smooth and based on world time so it stops when the game pauses

@pahimar
Copy link
Owner

pahimar commented May 23, 2016

Yeah the render stuff was always fugly and wasn't going to be ported to 1.9 :) Good recommendation though!

@tterrag1098
Copy link

Ah...small mistake...obviously sin returns negative values, you'd need to interpolate on 0..1 ( (sin(...) + 1) / 2f )

@tterrag1098
Copy link

Looked into TSIS, your bug is simpler than you may think.

https://github.com/pahimar/Equivalent-Exchange-3/blob/master/src/main/java/com/pahimar/ee3/inventory/ContainerTransmutationTablet.java#L345

ItemStack#clone() exists for a reason ;)

@Texasjake95
Copy link

https://github.com/pahimar/Equivalent-Exchange-3/blob/master/src/main/java/com/pahimar/ee3/inventory/ContainerTransmutationTablet.java#L376
Shouldn't this also have the Item damage as well or I am miss reading something?

@pahimar
Copy link
Owner

pahimar commented May 23, 2016

I caught that one. Thing is when you clone it you get weird other behaviour (a item dupe exploit in fact).

@pahimar
Copy link
Owner

pahimar commented May 23, 2016

Clone/pass in the meta. The dupe exploit is there.

@pahimar
Copy link
Owner

pahimar commented May 23, 2016

Pushed the piece that fixes the meta (4fac58d) however the dupe exploit still exists. That's the thing I'm more concerned about.

@MaPePeR
Copy link

MaPePeR commented May 23, 2016

@pahimar this line drops the damage value information from itemStack.

Edit: Oh, Texasjake95 already pointed that out. I'm prettty sure thats the problem, though. Also: why does this method always return false? What is the return value supposed to indicate?

@pahimar
Copy link
Owner

pahimar commented May 23, 2016

@MaPePeR a good catch, but the dupe exploit still exists even with that change

@MaPePeR
Copy link

MaPePeR commented May 23, 2016

@pahimar what is the dupe exploit then? Can you elaborate?

@pahimar
Copy link
Owner

pahimar commented May 23, 2016

Steps to reproduce;

  1. Teach yourself an Aeternalis Fuel Block
  2. In a new Transmutation Tablet, add a full stack of Aeternalis Fuel Blocks to the input section
  3. Shift click out a full stack of Aeternalis Fuel Blocks from the output section

pahimar added a commit that referenced this issue May 27, 2016
@pahimar
Copy link
Owner

pahimar commented May 27, 2016

  1. Re: twinkles - commit 43a384a should fix that issue for you
  2. This is not a shift click issue, but rather an issue with how the transmutation tablet consumes items for EMC in order to do the transmutation (see bug Dupe bug in EE 522 #1057)

With that said, going to close this issue and track the issue with the trans tablet in #1057

@pahimar pahimar closed this as completed May 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants