Announcement

Collapse
No announcement yet.

Unreal.js

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Been trying to get this to work, i cant load the examples but i have the plugin in, i have written a test script, but how do i run it on an actor?

    Comment


      #47
      @Denaton; I have seen many people struggling with installation. I think that there should be an automated installation script. FYI, automated build script already exists in repo.
      Last edited by nako_sung; 01-06-2016, 02:35 AM.

      Comment


        #48
        @nako_sung
        I have it installed, the examples just wont load for me, the project is empty.
        I can start a new project and i have, where i can use the Javascript Component
        Click image for larger version

Name:	js.png
Views:	1
Size:	283.2 KB
ID:	1098243

        You don't wanna make a image step by step or a video?
        I really like the idea of using Javascript since i am a webb developer
        Last edited by Denaton; 01-09-2016, 07:08 AM.

        Comment


          #49
          Hello, I have problems with packaging the example project (win64).

          Building for Development win64 tells me it cannot find "UE4-DirectoryWatcher.lib" and indeed only "UE4Editor-DirectoryWatcher.lib" exists (windows D:\Epic Games\4.10\Engine\Intermediate\Build\Win64\UE4Editor\Development).

          Do you know how I could get UE4-DirectoryWatcher.lib to build so I can try to package the example project?

          Comment


            #50
            @freakhill; Why don't you try prebuilt binaries?
            @Denaton; your attachment is not visible...

            Comment


              #51
              I use the prebuilt binaries, but packaging does not work.

              Once a package is created, when trying to launch the binary it says that it cannot find "DirectoryWatcher"
              When I watch in detail the packaging logs it says that it cannot find "UE4-DirectoryWatcher.lib". And I don't know how to build it by myself.

              I started everything from a fresh UE4.10.1 so I suppose something might have been loss in the binaries on the way...
              (I also tried with a built UE4.10.1 from source).

              ---

              I'll retry from 0 and post what I get.

              ==============

              1. Git Clone

              Click image for larger version

Name:	gitclone.png
Views:	1
Size:	9.5 KB
ID:	1098065

              2. Get Prebuilt

              Click image for larger version

Name:	prebuilts.png
Views:	1
Size:	12.2 KB
ID:	1098066

              3. Unzip Unreal.js prebuilt

              Click image for larger version

Name:	unzip.png
Views:	1
Size:	16.4 KB
ID:	1098067

              4. Install the npm modules required for examples

              Click image for larger version

Name:	npmi.png
Views:	1
Size:	78.2 KB
ID:	1098068

              5. Open uproject file

              Click image for larger version

Name:	uproject.png
Views:	1
Size:	114.2 KB
ID:	1098069

              6. Activate Javascript console and test a game in the editor

              -> js console is there but for some reason i cannot see the scenes now...

              Click image for larger version

Name:	js.png
Views:	1
Size:	115.4 KB
ID:	1098070

              error
              ->
              Click image for larger version

Name:	error.png
Views:	1
Size:	11.5 KB
ID:	1098071

              well, well, that wasn't expected....

              well ... restarting again, same instructions.

              ok -> I did the same thing BUT, i did "npm uninstall" THEN "npm install", now it works

              Click image for larger version

Name:	2048.png
Views:	1
Size:	169.2 KB
ID:	1098073

              7. now packaging

              Click image for larger version

Name:	package.png
Views:	1
Size:	41.4 KB
ID:	1098074

              8. package success

              Click image for larger version

Name:	packsuccess.png
Views:	1
Size:	20.3 KB
ID:	1098075

              9. Now time to try to run the packaged project

              Click image for larger version

Name:	crash.png
Views:	1
Size:	104.2 KB
ID:	1098076

              10. Now let's add the prebuilt V8

              Click image for larger version

Name:	unzipv8.png
Views:	1
Size:	43.0 KB
ID:	1098077

              11. Creating the necessary links

              Following the instructions lead to Examples/Plugins already existing!
              so i bak it up in Examples/Plugins.bak and create the links

              Click image for larger version

Name:	links.png
Views:	1
Size:	143.6 KB
ID:	1098078

              12. We try to package again!

              ...huh... crash at launch??

              Click image for larger version

Name:	crash.png
Views:	1
Size:	64.7 KB
ID:	1098079

              Oh I had forgotten, when creating the link, it is missing the binaries so copying them.

              Click image for larger version

Name:	copy.png
Views:	1
Size:	26.4 KB
ID:	1098080

              Trying to launch and package again!

              13. Fail again with same error. (V8 not found)

              Let's try to build V8 now.

              14. Adding an empty class to rebuild.

              Click image for larger version

Name:	cpp.png
Views:	1
Size:	21.4 KB
ID:	1098081

              15. Build development target

              Click image for larger version

Name:	linkerror.png
Views:	1
Size:	26.2 KB
ID:	1098082

              and this is where i get. Link error because the file UE4-DirectoryWatcher.lib can't be found.

              I checked and it is not on my harddrive.

              Packaging from the UE4 UI gives the same error.

              the libs have correctly been built

              Click image for larger version

Name:	built.png
Views:	1
Size:	57.7 KB
ID:	1098083

              but the final executable cannot be linked without UE4-DirectoryWatcher.lib, and I don't know how to get it...

              I humbly ask for your help...

              I'm trying to make a workflow from Clojurescript to UE4, and use it to develop the simulation engine of a RTS game I am building with a friend, and present it to my coworker if it works smooth.
              Last edited by freakhill; 01-06-2016, 07:24 AM.

              Comment


                #52
                I'm trying to build a package to repro.

                ---

                Everything seems fine for me. DirectoryWatcher module is located in Engine/Source/Developer/DirectoryWatcher.

                Did you build a package by clicking "Package project" under File menu?

                ---

                Maybe there is a problem with prebuilt binary. Could you try again with source code?

                ---

                http://idkudk.blogspot.kr/2015/02/ho...correctly.html

                Is this link helpful?
                Last edited by nako_sung; 01-06-2016, 07:16 AM.

                Comment


                  #53
                  I updated my post up there with the procedure up to my crash. Including trying to rebuild the plugin.

                  The UE4-DirectoryWatcher module source is there, but it does not get built...

                  Click image for larger version

Name:	files.png
Views:	1
Size:	43.0 KB
ID:	1098085
                  Last edited by freakhill; 01-06-2016, 07:31 AM.

                  Comment


                    #54
                    I could repro your problem on my environment.

                    --

                    I updated to exclude DirectoryWatcher for non editor build.
                    Last edited by nako_sung; 01-06-2016, 09:34 AM.

                    Comment


                      #55
                      thank you a lot!

                      -----

                      the packaged project starts successfully!
                      Last edited by freakhill; 01-06-2016, 10:05 AM.

                      Comment


                        #56
                        "Make sure you have UnrealEngine 4.10 canonical build."

                        it looks like that u did not change any engine source code.So I was wondering why this plugin requires a source build ?
                        Is that needed to generate reflection code for it's own purpose?
                        Need help or work to be done?
                        Contact Info

                        Comment


                          #57
                          @muzaheed No. It doesn't require engine source code.

                          Comment


                            #58
                            This looks amazing! can't wait to try it!

                            Comment


                              #59
                              For newbies to UE4 (like myself)!

                              First, Nako Sung, many thanks for this wonderful achievement ! I'm convinced that it will help some of us to do more in less time. Personally, I'm not a big fan of c++ (have enough experience in it, but just don't like it - but that is a personal flavour). It is not the pointers or the memory management as I used to work (for tens of thousands of programming hours) in Delphi (Pascal) (including ASM). It just is not my thing ...

                              During the installation procedure of Unreal.js, a newbie like myself, is likely to incorrectly install the plugin, ending up with a no working plugin and of course no working Unreal.js as a consequence

                              The plugin must be installed in the "Program Files (x86)/Epic Games/(engine version eg 4.10)/Engine/Plugins"

                              It took me a while to find that one as a "Plugin" directory exists in the unzipped "Unreal.js" file as well !

                              Cheers,

                              Geert

                              Comment


                                #60
                                @gm0124816 I agree installing Unreal.js seems tricky. I think self-executable install package would be great for 'end-user's.

                                Comment

                                Working...
                                X