Jump to content

Forge one-time injection


MGlolenstine

Recommended Posts

1 minute ago, diesieben07 said:

Forge is not "injecting minecraft.jar". The game code is transformed on the fly as it is loaded from disk. That is not the slow part of starting up Minecraft. The slow part is (among other things) the model creating, which just takes a long time with a lot of mods.

Oh, ok so I misunderstood the whole concept of forge :P 

But why is it creating models at every launch?

Couldn't you just store them?

Edited by MGlolenstine
Link to comment
Share on other sites

4 minutes ago, diesieben07 said:

Not necessarily. There is no easy way for Forge to know whether something in a mod has changed that would change the generated model to change. Has this config file you changed caused the Model to change? We don't know. Is this Model download from an URL which has a different model every time? We don't know.

All this prevents from Forge "just storing models". As very often in Computer Science the obvious "just do X" answer is sadly not correct.

Ok, I was wrong and I'm sorry. :P 

Link to comment
Share on other sites

  • 1 year later...

Actually, you are not wrong. I know this is a necropost, but the reason this is not wrong, is because instead of loading all the mods into the RAM, using up CPU power (older machines don't have a lot, so it takes a long time to load mods sometimes), Forge can do a 1 time load onto the hard drive, and leave it like that, and keep an MD5 checksum of every mod, and recheck the MD5 checksum every launch, and if it remains the same, just allow the game to load as NORMAL. This is the only way I can really think of, (yes, I know you can also do an SHA256 and SHA1 checksum, but MD5 is faster to calculate) and if anyone has more idea's of ways, or a way to prove me wrong, please reply to this thread. Thank you, goodbye.

Link to comment
Share on other sites

3 minutes ago, GameGlitz said:

Actually, you are not wrong. I know this is a necropost, but the reason this is not wrong, is because instead of loading all the mods into the RAM, using up CPU power (older machines don't have a lot, so it takes a long time to load mods sometimes), Forge can do a 1 time load onto the hard drive, and leave it like that, and keep an MD5 checksum of every mod, and recheck the MD5 checksum every launch, and if it remains the same, just allow the game to load as NORMAL. This is the only way I can really think of, (yes, I know you can also do an SHA256 and SHA1 checksum, but MD5 is faster to calculate) and if anyone has more idea's of ways, or a way to prove me wrong, please reply to this thread. Thank you, goodbye.

First of all, thank you for replying to this post ?. I was thinking of the same thing, with the hashing and storing everything on the HDD, but I think that the problem with mod updates isa great one, I know you could only rebuild it when mods updare, but still... Thing that I think would be the most trouble, would have to be the different mod distinction, as some mods inject directly into the code and it's hard for Forge to determine which mod the change is coming from.

 

Thanks again, and I hope that we get something along these lines in the future ?

Link to comment
Share on other sites

I think your best shot at skipping the loading screen would be to load Minecraft in a Virtual Machine and saving it's state to disk without quitting Minecraft, instead of shutting it down.

Edited by Busti

PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.

Link to comment
Share on other sites

On 1/27/2019 at 3:08 PM, Busti said:

 

"I think your best shot at skipping the loading screen would be to load Minecraft in a Virtual Machine and saving it's state to disk without quitting Minecraft, instead of shutting it down." - Busti

 

This makes sense, as Java uses it's own Virtual Machine, called the JVM. Running another JVM inside the main JVM via the framework itself will allow us to run Minecraft once, and then save the state. Then we can launch that machine every time the game starts, but check the MD5 hash of mods and files before starting. This speeds up a LOT.

 

On 1/22/2019 at 7:10 PM, diesieben07 said:

Have you looked at how mod loading works? Probably not, because this is not feasible.

RUDE.

Link to comment
Share on other sites

  1. Forge one-time injection

    diesieben07 replied to MGlolenstine's topic in General Discussion

    Please clarify how I was rude?
  2. diesieben07

    Ore Variant Textures Not Working Properly

    diesieben07 replied to Viking 2481's topic in Modder Support

    That is literally how any programming language works...
  3. diesieben07

    Access transformers doesn't work with forge classes

    diesieben07 replied to hohserg's topic in Modder Support

    No! Don't do this. You must not be accessing the world in your model, since the model may be rendered on a different thread, so you will cause random and seemingly inexplicable crashes. Any information necessary for the model to render must be stored in the IBlockState.
  4. diesieben07

    Access transformers doesn't work with forge classes

    diesieben07 replied to hohserg's topic in Modder Support

    What are you trying to achieve? Why do you need access to this class?
  5. 1.7.10 and older are no longer supported on this forum due to their age. Update to a modern version of Minecraft to receive support. You have been told this already, consider this a warning.

 

This is a paste of all the rude things you have said, PLEASE take it down. It is very selfish.

  • Confused 1
Link to comment
Share on other sites

Updates are not required, as what I am talking about is different. If you intergrate a VM for forge to load mods, and then pass the session over to the JVM on the host computer, it is possible. I have started to experiment in Eclipse, and I have to say I am VERY close to getting this core-mod to work.

Link to comment
Share on other sites

I have actually done it. This core-mod still isn't ready for production, but it works PERFECTLY for me. What I have done is created a Linux distro that contains a very simple architecture (just Java on Arch Linux) which will boot up at Minecraft's start, and then reload mods to the drive if the MD5 hash of any files have changed (apart from the Minecraft settings and Optifine settings). Then, it will hibernate the VM, and then put the session onto a container on the main PC, which will put you on a loading screen overlaying the title screen, which will then take the session out of the container, and close Minecraft, replacing it with the loaded modded version. Then it will close the container, and leave the VM hibernated. This is a very complicated method, and if you manually delete the VM files from the .minecraft\config\GameGlitzVM\ folder, it will have to load each mod again, resulting in no difference of load times. However, when you close the game, shutdown your computer, leave it for 2 mins, and boot it back up, then launch Minecraft, it will automatically restore the session into a container, then onto the host computer.

I am now working on a re-auth system to auth you to the official Minecraft servers again, so that you can play on servers (else what is the use). I have seen a mod called ReAuth that does what I need, but it requires you to enter your account details, so I will find a way to use the account that the launcher used to start the game. Please reply with any way to help me reauth.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • OLXTOTO: Platform Maxwin dan Gacor Terbesar Sepanjang Masa OLXTOTO telah menetapkan standar baru dalam dunia perjudian dengan menjadi platform terbesar untuk pengalaman gaming yang penuh kemenangan dan kegacoran, sepanjang masa. Dengan fokus yang kuat pada menyediakan permainan yang menghadirkan kesenangan tanpa batas dan peluang kemenangan besar, OLXTOTO telah menjadi pilihan utama bagi para pencinta judi berani di Indonesia. Maxwin: Mengejar Kemenangan Terbesar Maxwin bukan sekadar kata-kata kosong di OLXTOTO. Ini adalah konsep yang ditanamkan dalam setiap aspek permainan yang mereka tawarkan. Dari permainan slot yang menghadirkan jackpot besar hingga berbagai opsi permainan togel dengan hadiah fantastis, para pemain dapat memperoleh peluang nyata untuk mencapai kemenangan terbesar dalam setiap taruhan yang mereka lakukan. OLXTOTO tidak hanya menawarkan kesempatan untuk menang, tetapi juga menjadi wadah bagi para pemain untuk meraih impian mereka dalam perjudian yang berani. Gacor: Keberuntungan yang Tak Tertandingi Keberuntungan seringkali menjadi faktor penting dalam perjudian, dan OLXTOTO memahami betul akan hal ini. Dengan berbagai strategi dan analisis yang disediakan, pemain dapat menemukan peluang gacor yang tidak tertandingi dalam setiap taruhan. Dari hasil togel yang tepat hingga putaran slot yang menguntungkan, OLXTOTO memastikan bahwa setiap taruhan memiliki potensi untuk menjadi momen yang mengubah hidup. Inovasi dan Kualitas Tanpa Batas Tidak puas dengan prestasi masa lalu, OLXTOTO terus berinovasi untuk memberikan pengalaman gaming terbaik kepada para pengguna. Dengan menggabungkan teknologi terbaru dengan desain yang ramah pengguna, platform ini menyajikan antarmuka yang mudah digunakan tanpa mengorbankan kualitas. Setiap pembaruan dan peningkatan dilakukan dengan tujuan tunggal: memberikan pengalaman gaming yang tanpa kompromi kepada setiap pengguna. Komitmen Terhadap Kepuasan Pelanggan Di balik kesuksesan OLXTOTO adalah komitmen mereka terhadap kepuasan pelanggan. Tim dukungan pelanggan yang profesional siap membantu para pemain dalam setiap langkah perjalanan gaming mereka. Dari pertanyaan teknis hingga bantuan dengan transaksi keuangan, OLXTOTO selalu siap memberikan pelayanan terbaik kepada para pengguna mereka. Penutup: Mengukir Sejarah dalam Dunia Perjudian Daring OLXTOTO bukan sekadar platform perjudian berani biasa. Ini adalah ikon dalam dunia perjudian daring Indonesia, sebuah destinasi yang menyatukan kemenangan dan keberuntungan dalam satu tempat yang mengasyikkan. Dengan komitmen mereka terhadap kualitas, inovasi, dan kepuasan pelanggan, OLXTOTO terus mengukir sejarah dalam perjudian dunia berani, menjadi nama yang tak terpisahkan dari pengalaman gaming terbaik. Bersiaplah untuk mengalami sensasi kemenangan terbesar dan keberuntungan tak terduga di OLXTOTO - platform maxwin dan gacor terbesar sepanjang masa.
    • OLXTOTO - Bandar Togel Online Dan Slot Terbesar Di Indonesia OLXTOTO telah lama dikenal sebagai salah satu bandar online terkemuka di Indonesia, terutama dalam pasar togel dan slot. Dengan reputasi yang solid dan pengalaman bertahun-tahun, OLXTOTO menawarkan platform yang aman dan andal bagi para penggemar perjudian daring. DAFTAR OLXTOTO DISINI DAFTAR OLXTOTO DISINI DAFTAR OLXTOTO DISINI Beragam Permainan Togel Sebagai bandar online terbesar di Indonesia, OLXTOTO menawarkan berbagai macam permainan togel. Mulai dari togel Singapura, togel Hongkong, hingga togel Sidney, pemain memiliki banyak pilihan untuk mencoba keberuntungan mereka. Dengan sistem yang transparan dan hasil yang adil, OLXTOTO memastikan bahwa setiap taruhan diproses dengan cepat dan tanpa keadaan. Slot Online Berkualitas Selain togel, OLXTOTO juga menawarkan berbagai permainan slot online yang menarik. Dari slot klasik hingga slot video modern, pemain dapat menemukan berbagai opsi permainan yang sesuai dengan preferensi mereka. Dengan grafis yang memukau dan fitur bonus yang menggiurkan, pengalaman bermain slot di OLXTOTO tidak akan pernah membosankan. Keamanan dan Kepuasan Pelanggan Terjamin Keamanan dan kepuasan pelanggan merupakan prioritas utama di OLXTOTO. Mereka menggunakan teknologi enkripsi terbaru untuk melindungi data pribadi dan keuangan para pemain. Tim dukungan pelanggan yang ramah dan responsif siap membantu pemain dengan setiap pertanyaan atau masalah yang mereka hadapi. Promosi dan Bonus Menarik OLXTOTO sering menawarkan promosi dan bonus menarik kepada para pemainnya. Mulai dari bonus selamat datang hingga bonus deposit, pemain memiliki kesempatan untuk meningkatkan kemenangan mereka dengan memanfaatkan berbagai penawaran yang tersedia. Penutup Dengan reputasi yang solid, beragam permainan berkualitas, dan komitmen terhadap keamanan dan kepuasan pelanggan, OLXTOTO tetap menjadi salah satu pilihan utama bagi para pecinta judi online di Indonesia. Jika Anda mencari pengalaman berjudi yang menyenangkan dan terpercaya, OLXTOTO layak dipertimbangkan.
    • I have been having a problem with minecraft forge. Any version. Everytime I try to launch it it always comes back with error code 1. I have tried launching from curseforge, from the minecraft launcher. I have also tried resetting my computer to see if that would help. It works on my other computer but that one is too old to run it properly. I have tried with and without mods aswell. Fabric works, optifine works, and MultiMC works aswell but i want to use forge. If you can help with this issue please DM on discord my # is Haole_Dawg#6676
    • Add the latest.log (logs-folder) with sites like https://paste.ee/ and paste the link to it here  
    • I have no idea how a UI mod crashed a whole world but HUGE props to you man, just saved me +2 months of progress!  
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.