Coder Social home page Coder Social logo

Comments (15)

malte0811 avatar malte0811 commented on August 16, 2024 4

Sorry, I did not see the discussion on this issue until I had the Rubidium PR ready. Incompatibilities caused by Rubidium (and similar) not properly replicating Forge's API without good reason should be fixed in Rubidium. Mixins modifying other mods are nearly always a bad idea since they are very likely to break on any mod update.

from immersivepetroleum.

littlej541 avatar littlej541 commented on August 16, 2024 2

I've bashed in my own mixin fix from own mod, and everything seems to work fine, so I would say what I mentioned above is indeed the issue. I'm using an extensive mod list that includes Rubidium and I still get a working projection. I've pushed the changes to a branch in a fork linked below.

https://github.com/littlej541/ImmersivePetroleum/tree/1.18.2-rubidium-projector-mixin-compat

Again, I don't know if the Immersive Petroleum team want mixins in the project, but I can submit a pull request if wanted.

from immersivepetroleum.

TwistedGate avatar TwistedGate commented on August 16, 2024 1

@littlej541 Thanks a lot, I'm glad to see that the people using they programming skills to help other people. I'll check it soon and give you response. Thanks

I am however not gonna accept that PR for the reason malte already mentioned.
Mixins modifying other mods are nearly always a bad idea since they are very likely to break on any mod update.

from immersivepetroleum.

unilock avatar unilock commented on August 16, 2024

I'm having the same issue. I'm away from my computer right now, so I don't have access to much diagnostics info - but I think it's related to PR #134.

@MrMorgan0, try downgrading Immersive Petroleum to v4.0.0-17 - that's the latest published version that doesn't include the above PR.

EDIT: Indeed, downgrading to that version fixed the issue for me.

from immersivepetroleum.

TwistedGate avatar TwistedGate commented on August 16, 2024

What about a clean instance with just IE and IP? If it works there, then some other mod likely is causing issues.

from immersivepetroleum.

MrMorgan0 avatar MrMorgan0 commented on August 16, 2024

What about a clean instance with just IE and IP? If it works there, then some other mod likely is causing issues.

Yeah, it works well without another mods.. and I just tried to find which mod causing that issue by removing suspected mods, and I've already find it. Also I have read IE issues page on GitHub. Rubidium mod causing that issue. Rubidium 0.5.4 is not working with IE 8.4.0-161 new PR(Projector Shader).
But I found how we can fix that. Follow that steps to fix it out:

  1. Download Rubidium 0.5.5,
  2. Download latest versions of IE and IP,
  3. Install and run Minecraft
  4. Close your Minecraft and go to Config folder, find the file named rubidium-mixins.properties,
  5. Change the value of mixin.features.chunk_rendering to false.

It's should look like this mixin.features.chunk_rendering=false

After that the Projector should work correctly, but there is another issue coming from that :( Animations of Fire, Liquids, Portal and some another tile entities with animated block state WILL NOT WORK CORRECTLY such as IE Metal press, Stone cutter and other.

So, if u want Projector work correct u should try this, but u will break animations of blocks. Anyway if you want to play without any issues, just delete Rubidium and addon mods(Oculus, Rubidium Extra e.t.c) and play with OptiFine

P.S. The IE wires sometimes visually invisible, it's also caused by Rubidium

Thanks a lot for respond :) @unilock Try it also if u want to play with some new features in updated IE and IP

from immersivepetroleum.

unilock avatar unilock commented on August 16, 2024

I don't think this should be closed; downgrading a mod and entirely sacrificing animated textures isn't too good a solution imo. But it sounds like an upstream problem, and the IE developer has already deemed Rubidium support a "won't fix", so... :(
(note that using OptiFine isn't an option for me, due to it causing more issues than it would solve, in my case)

from immersivepetroleum.

littlej541 avatar littlej541 commented on August 16, 2024

Although this has been closed, I believe the issue has to do with Rubidium replacing the code that fires RenderLevelStageEvent events. You can see Immersive Petroleum relies on those events in the following locations:

public void renderLevelStage(RenderLevelStageEvent event){


public static void renderLevelStage(RenderLevelStageEvent event){

I had a similar issue with a mod I created which I solved by using mixins to call my render code directly (I didn't fire the events myself, because of possible compatibility issues) in lieu of the events and I have not noticed any particular issues. This would necessitate that Immersive Petroleum start using mixins however, something I'm not sure the devs want.

On the off chance that the devs want to use mixins for compatibilities sake, or even petition Rubidium to add Forge event calls, I found that Rubidium still calls chunk drawing in different passes similarly to the code that Forge fires events from as you can see in the following links:
Forge render passes

Rubidium render passes

Where I determined the correct place for a mixin was after this line:
Rubidium chunk render pass

In this situation, the BlockRenderPass parameter would need to be checked to see if it is equal to BlockRenderPass.TRIPWIRE for the sake of equivalency and then call the Immersive Petroleum functions I linked above in whatever way is deemed best.

from immersivepetroleum.

mindforger avatar mindforger commented on August 16, 2024

just to prevent further misconception, optifine currently shares the same fate as rubidium regarding compatibility and support

from immersivepetroleum.

MrMorgan0 avatar MrMorgan0 commented on August 16, 2024

just to prevent further misconception, optifine currently shares the same fate as rubidium regarding compatibility and support

Optifine also working not good as expected, IE Engineers Workbench crashing game, when you trying to insert blueprint to it (OptiFine issue).
IMO Rubidium devs should look at this issue, but idk when it gonna be happen.

from immersivepetroleum.

MrMorgan0 avatar MrMorgan0 commented on August 16, 2024

@littlej541 Thanks a lot, I'm glad to see that the people using they programming skills to help other people. I'll check it soon and give you response. Thanks

from immersivepetroleum.

TwistedGate avatar TwistedGate commented on August 16, 2024

Also just saying but this is only ever used by the debugger (and nobody should use it anyway)

from immersivepetroleum.

littlej541 avatar littlej541 commented on August 16, 2024

It's no biggie, I figured it wouldn't be. It was more of a proof of concept/personal fix. That's why I shared it here rather than making a pull request, on the off chance it was helpful somehow.

Hopefully the Rubidium PR gets merged since I also had the same issue in my own project. I even asked about it in the Reforged Hub discord about 4 months ago, but just impatiently hacked up my own fix several hours later since I wanted to add my mod to my own game as soon as possible lol.

from immersivepetroleum.

TwistedGate avatar TwistedGate commented on August 16, 2024

stale

from immersivepetroleum.

unilock avatar unilock commented on August 16, 2024

I think it's worth mentioning that this issue is not present with Embeddium, an alternative (better?) fork of Sodium for Forge. :)

from immersivepetroleum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.