montoyo / mcef

Minecraft ChromiumEF (based on JCEF)
Other
191 stars 83 forks source link

"downloading jcef.dll" keeps poping back... #4

Open pelikhan opened 9 years ago

pelikhan commented 9 years ago

I'm wondering why it keeps poping back when running Minecraft again. isn't it cached?

montoyo commented 9 years ago

Ah... it seems one of my mirror is not up-to-date. I'll fix this asap. Thanks!

pelikhan commented 9 years ago

Could you give more details about your mirrors? Is there a way to avoid them?

montoyo commented 9 years ago

The DLLs that requires MCEF are downloaded from websites (aka mirrors), and right now there are two available mirrors: my website (http://montoyo.net/jcef) and a friend's website (http://montoyo.iroas.fr/jcef). MCEF parses config.json (which contains the checksums of every DLLs) and downloads the corresponding DLLs depending on the client's OS (win64/win32). The config.json also contains informations such as the latest MCEF version, the resources to extract, etc... There's no way to avoid them right now, but I can add an option in the config file if you wish. JCEF.dll is being downloaded again and again because I need to manually update all mirrors and I couldn't update montoyo.iroas.fr because my friend's proftpd server was down.

pelikhan commented 9 years ago

Is there a way to avoid your mirrors and download the jcef.dll from the official drop location?

Sent from Outlookhttp://taps.io/outlookmobile

On Wed, Apr 8, 2015 at 7:06 AM -0700, "Nicolas" notifications@github.com<mailto:notifications@github.com> wrote:

The DLLs that requires MCEF are downloaded from websites (aka mirrors), and right now there are two available mirrors: my website (http://montoyo.net/jcef) and a friend's website (http://montoyo.iroas.fr/jcef). MCEF parses config.json (which contains the checksums of every DLLs) and downloads the corresponding DLLs depending on the client's OS (win64/win32). The config.json also contains informations such as the latest MCEF version, the resources to extract, etc... There's no way to avoid them right now, but I can add an option in the config file. JCEF.dll is downloading again and again because I need to manually update all mirrors and I couldn't update montoyo.iroas.fr because his proftpd server was down.

Reply to this email directly or view it on GitHubhttps://github.com/montoyo/mcef/issues/4#issuecomment-90927570.

montoyo commented 9 years ago

Excuse me; by "official drop location", you mean the JCEF google code? As far as I know, they don't provide the latest DLL. Anyway, MCEF requires a modified version of it to work, because MinecraftForge does weird things with classloaders which I fix by using CefApp.N_SetClassLoader() (see https://github.com/montoyo/mcef/blob/master/java/org/cef/CefApp.java#L489).

Otherwise, the official drop location is my own website.

pelikhan commented 9 years ago

I see. Do you have instructions to build your modified jcef files?

Have you thought about using github releases to store your compiled files?

Sent from Outlookhttp://taps.io/outlookmobile

On Wed, Apr 8, 2015 at 7:29 AM -0700, "Nicolas" notifications@github.com<mailto:notifications@github.com> wrote:

Excuse me; by "official drop location", you mean the JCEF google code? As far as I know, they don't provide the latest DLL. Anyway, MCEF requires a modified version of it to work, because MinecraftForge does weird things with classloaders which I fix by using CefApp.N_SetClassLoader() (see https://github.com/montoyo/mcef/blob/master/java/org/cef/CefApp.java#L489).

Otherwise, the official drop location is my own website.

Reply to this email directly or view it on GitHubhttps://github.com/montoyo/mcef/issues/4#issuecomment-90933036.

montoyo commented 9 years ago

Let me push what I modified on github. To compile JCEF, you can follow the instructions here: https://bitbucket.org/chromiumembedded/java-cef/wiki/BranchesAndBuilding When it was hosted on google code, I took the revision 113, but now that they moved to bitbucket... I have no idea.

montoyo commented 9 years ago

You can still access the old SVN to get the revision 113 from http://javachromiumembedded.googlecode.com/svn/trunk/

pelikhan commented 9 years ago

http://google-opensource.blogspot.com/2015/03/farewell-to-google-code.html?m=1

Sent from Outlookhttp://taps.io/outlookmobile

On Wed, Apr 8, 2015 at 7:44 AM -0700, "Nicolas" notifications@github.com<mailto:notifications@github.com> wrote:

Let me push what I modified on github. To compile JCEF, you can follow the instructions here: https://bitbucket.org/chromiumembedded/java-cef/wiki/BranchesAndBuilding When it was hosted on google code, I took the revision 113, but now that they moved to bitbucket... I have no idea.

Reply to this email directly or view it on GitHubhttps://github.com/montoyo/mcef/issues/4#issuecomment-90936933.

montoyo commented 9 years ago

Yea... that's sad

montoyo commented 9 years ago

Okay, I pushed the modified JCEF native files and added the custom mirror option (see the config file).

pelikhan commented 9 years ago

Sweet, is it possible to setup the configure MCEF programmatically?

Sent from Outlookhttp://taps.io/outlookmobile

On Wed, Apr 8, 2015 at 8:34 AM -0700, "Nicolas" notifications@github.com<mailto:notifications@github.com> wrote:

Okay, I pushed the modified JCEF native files and added the custom mirror option (see the config file).

Reply to this email directly or view it on GitHubhttps://github.com/montoyo/mcef/issues/4#issuecomment-90952586.

montoyo commented 9 years ago

Well you may change net.montoyo.mcef.MCEF.FORCE_MIRROR but it has to be done after MCEF's pre-init and before MCEF's initialization. There's no API function to change this field, but you can use reflection.

pelikhan commented 9 years ago

Would you be so kind to document how you sync and build all this in the readme.md file? I'd like also to repro the build process locally.

Also, what file structure do you expect on your mirrors?

Sent from Outlookhttp://taps.io/outlookmobile

On Wed, Apr 8, 2015 at 8:34 AM -0700, "Nicolas" notifications@github.com<mailto:notifications@github.com> wrote:

Okay, I pushed the modified JCEF native files and added the custom mirror option (see the config file).

Reply to this email directly or view it on GitHubhttps://github.com/montoyo/mcef/issues/4#issuecomment-90952586.

pelikhan commented 9 years ago

Is config.json in the repo?

Sent from Outlookhttp://taps.io/outlookmobile

On Wed, Apr 8, 2015 at 8:34 AM -0700, "Nicolas" notifications@github.com<mailto:notifications@github.com> wrote:

Okay, I pushed the modified JCEF native files and added the custom mirror option (see the config file).

Reply to this email directly or view it on GitHubhttps://github.com/montoyo/mcef/issues/4#issuecomment-90952586.

q187415157q2345q commented 3 years ago

需要MCEF的DLL是从网站(又称为镜像)下载的,现在有两个可用的镜像:我的网站(http://montoyo.net/jcef)和朋友的网站([http://montoyo.iroas.fr) / jcef](http://montoyo.iroas.fr/jcef))。MCEF解析config.json(其中包含每个DLL的校验和),并根据客户端的操作系统(win64 / win32)下载相应的DLL。config.json还包含诸如最新的MCEF版本,要提取的资源等信息。 目前无法避免它们,但是如果您愿意,我可以在配置文件中添加一个选项。正在一次又一次下载JCEF.dll,因为我需要手动更新所有镜像,而由于朋友的proftpd服务器已关闭,因此无法更新montoyo.iroas.fr。

需要MCEF的DLL是从网站(又称为镜像)下载的,现在有两个可用的镜像:我的网站(http://montoyo.net/jcef)和朋友的网站([http://montoyo.iroas.fr) / jcef](http://montoyo.iroas.fr/jcef))。MCEF解析config.json(其中包含每个DLL的校验和),并根据客户端的操作系统(win64 / win32)下载相应的DLL。config.json还包含诸如最新的MCEF版本,要提取的资源等信息。 目前无法避免它们,但是如果您愿意,我可以在配置文件中添加一个选项。正在一次又一次下载JCEF.dll,因为我需要手动更新所有镜像,而由于朋友的proftpd服务器已关闭,因此无法更新montoyo.iroas.fr。

Can you share the source code with me? I want to open a mirror station