Giter Club home page Giter Club logo

Comments (18)

Lecrapouille avatar Lecrapouille commented on May 25, 2024 1

@PiCode9560 do not worry I'll create what you want, just give me a couple of days

from gdcef.

Lecrapouille avatar Lecrapouille commented on May 25, 2024 1

@PiCode9560 yesterday I made what you wanted. I've not tested on demo yet

from gdcef.

PiCode9560 avatar PiCode9560 commented on May 25, 2024 1

I tested the Windows version on the 2d demo. Just drop the build folder into the project folder and run the project, it worked well as expected.

Thanks!

from gdcef.

Lecrapouille avatar Lecrapouille commented on May 25, 2024 1

Ah ok I understand now! It used to work when I worked for the main project using CEF ~1 year ago. So it should work normally (expect if merge requests made it no longer working). The Windows portage was made by my coworker. I'm not a Windows user, but I'll give a try

from gdcef.

Lecrapouille avatar Lecrapouille commented on May 25, 2024 1

@PiCode9560 cool! You can update the gd script to indicate the path you want.

from gdcef.

Lecrapouille avatar Lecrapouille commented on May 25, 2024 1

I'll release the godot-4 you'll have the assets too. I'll create a ticket for Godot assets lib

from gdcef.

Lecrapouille avatar Lecrapouille commented on May 25, 2024

@PiCode9560 sorry for the long delay GitHub did not notice me about your ticket ;(

To be sure: by module do you mean: forking Godot and adding code inside the module folder, right ?

Yes you can do that, but I do not recommend you to go this way. I initially tried what you said before switching development with a second CEF process. I wrote a note concerning this https://github.com/stigmee/doc-internal/blob/master/doc/tuto_modif_godot_fr.md (in French sorry). It worked for Linux but I do not recommend it because:

  • this is not simply drag-and-code code into the modules folder. You have to modify Godot main() function guts too. You have to modify Godot so fork it and you will no longer track Godot evolutions.
  • the command line (main(argc, argv)) is both used by Godot and CEF (CEF passes information to forked CEF process). Fortunately, this does not make collisions (since you have made a Godot-CEF hybride process).
  • What you request is more a request for Godot developers and they do not desire to modify their code for a third-part tool that few users need and can add lot of issues, so more dev for them. See godotengine/godot-proposals#960

from gdcef.

PiCode9560 avatar PiCode9560 commented on May 25, 2024

Other than adding it directly into godot. User need to compile the add-on to use it. Is it possible for you to give the compiled version, so that anyone it without installing external programs?

from gdcef.

Lecrapouille avatar Lecrapouille commented on May 25, 2024

@PiCode9560 do you mean artefacts (the build folder ?). With the CI I can, I guess, but artefacts size are ~1 GB

from gdcef.

PiCode9560 avatar PiCode9560 commented on May 25, 2024

But if the user build it themself, the total project size are 1GB anyway.

I'm not an expert on gdnative/c++/cef, but is it necessary for the user to build it themself?

from gdcef.

Lecrapouille avatar Lecrapouille commented on May 25, 2024

Yes the build.py will compile and create some artifacts that are needed. My CI is already testing the compilation so I have to extend the script to store them somewhere

from gdcef.

PiCode9560 avatar PiCode9560 commented on May 25, 2024

Sorry but I don't really understand what you are saying.

Yes the build.py will compile and create some artifacts that are needed.

So it is necessary for the user to build it themself?

My CI is already testing the compilation so I have to extend the script to store them somewhere

Are you doing something right now?

from gdcef.

PiCode9560 avatar PiCode9560 commented on May 25, 2024

Hmm, the cef didn't load on Windows exported version. I export it like you would normally do with other Godot project.

from gdcef.

Lecrapouille avatar Lecrapouille commented on May 25, 2024

@PiCode9560 I'm not sure to understand your two messages that seem to contradict themselves.

from gdcef.

PiCode9560 avatar PiCode9560 commented on May 25, 2024

Well, it only worked in the editor, but when I exported it to Windows executable file the cef didn't load. Any idea why?

from gdcef.

Lecrapouille avatar Lecrapouille commented on May 25, 2024

@PiCode9560 where have you exported your application binary ? For Linux you have to place it in the same folder holding CEF artifacts. I do not remember why I have made like this.

from gdcef.

Lecrapouille avatar Lecrapouille commented on May 25, 2024

Remembering now: paths are configurable. See in .gd files comments in func _ready()::

resource_path := {"artifacts", CEF_ARTIFACTS_FOLDER}
resource_path := {"exported_artifacts", application_real_path()}

When running, you have logs. In my case:

[GDCEF][GDCEF::initialize] Launching CEF from your executable
[GDCEF][GDCEF::initialize] Path where your application files shall be located:"/home/Lecrapouille/gdcef/addons/gdcef/demos/2D"

In case artifacts are not in the correct folder, you'll see:

[GDCEF] [are_valid_files] File "/home/Lecrapouille/gdcef/addons/gdcef/demos/2D/gdcefSubProcess" does not exist and is needed for CEF

from gdcef.

PiCode9560 avatar PiCode9560 commented on May 25, 2024

@Lecrapouille I drop all the things from the build folder into the folder that contain the exported executable file. Now it worked!
That's all I need to do, right?

from gdcef.

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.