Page 8 of 18

Posted: Fri Feb 14, 2014 23:18
by Novacain
rubenwardy wrote:Have you got it working yet?
not quite. I got this error message
Spoiler
/usr/bin/ld: /usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libIrrlicht.a(CIrrDeviceLinux.o): undefined reference to symbol 'XF86VidModeGetGamma'
/usr/lib/i386-linux-gnu/libXxf86vm.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [bin/NodeBoxEditor] Error 1
make[1]: *** [CMakeFiles/NodeBoxGenerator.dir/all] Error 2
make: *** [all] Error 2
and decided that, although it would be cool, I'm not really in need of it... yet.

Posted: Sat Feb 15, 2014 01:35
by BrunoMine
You are distributing virus for windows?
:o :o :o :o
Screenshot
NodeBoxEditor_0_6_2_WindowsBuild is a malicious file and has been blocked by google chrome

Posted: Sat Feb 15, 2014 09:29
by sfan5
Novacain wrote:
rubenwardy wrote:Have you got it working yet?
not quite. I got this error message
Spoiler
/usr/bin/ld: /usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libIrrlicht.a(CIrrDeviceLinux.o): undefined reference to symbol 'XF86VidModeGetGamma'
/usr/lib/i386-linux-gnu/libXxf86vm.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [bin/NodeBoxEditor] Error 1
make[1]: *** [CMakeFiles/NodeBoxGenerator.dir/all] Error 2
make: *** [all] Error 2
and decided that, although it would be cool, I'm not really in need of it... yet.
sfan5 wrote:For all people on linux that have the same problem as me:
After the "cmake ." step:
Open CMakeFiles/NodeBoxGenerator.dir/link.txt in an editor and add -lXxf86vm
and you're done, now "make" and it should compile
--viewtopic.php?pid=88908#p88908

Posted: Sat Feb 15, 2014 10:22
by rubenwardy
brunob.santos wrote:You are distributing virus for windows?
:o :o :o :o
Screenshot
NodeBoxEditor_0_6_2_WindowsBuild is a malicious file and has been blocked by google chrome
Weird. I think you should you use chrome as a web browser, not an antivirus. It is obviously bad at that.

Posted: Sat Feb 15, 2014 11:01
by Lukeking
rubenwardy wrote:
brunob.santos wrote:You are distributing virus for windows?
:o :o :o :o
Screenshot
NodeBoxEditor_0_6_2_WindowsBuild is a malicious file and has been blocked by google chrome
Weird. I think you should you use chrome as a web browser, not an antivirus. It is obviously bad at that.
- every time you download executive files with Google Chrome Browser it'll show that it's dangerous software
- test it out with e.g. cmd.exe
-> copy cmd.exe and paste it somewhere e.g. desktop, type in url-line: file:///C:/Users/%username%/Desktop/cmd.exe
--> then it'll try to download that file and then that message pops up

Posted: Sat Feb 15, 2014 18:51
by Novacain
sfan5 wrote:
Novacain wrote:
rubenwardy wrote:Have you got it working yet?
not quite. I got this error message
Spoiler
/usr/bin/ld: /usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libIrrlicht.a(CIrrDeviceLinux.o): undefined reference to symbol 'XF86VidModeGetGamma'
/usr/lib/i386-linux-gnu/libXxf86vm.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [bin/NodeBoxEditor] Error 1
make[1]: *** [CMakeFiles/NodeBoxGenerator.dir/all] Error 2
make: *** [all] Error 2
and decided that, although it would be cool, I'm not really in need of it... yet.
sfan5 wrote:For all people on linux that have the same problem as me:
After the "cmake ." step:
Open CMakeFiles/NodeBoxGenerator.dir/link.txt in an editor and add -lXxf86vm
and you're done, now "make" and it should compile
--viewtopic.php?pid=88908#p88908
well, now it's closer :P now i get:
Spoiler
novacain@Roku:~/NodeBoxEditor$ make -j2
Linking CXX executable bin/NodeBoxEditor
c++: error: lXxf86vm: No such file or directory
make[2]: *** [bin/NodeBoxEditor] Error 1
make[1]: *** [CMakeFiles/NodeBoxGenerator.dir/all] Error 2
make: *** [all] Error 2

Posted: Sat Feb 15, 2014 19:21
by sfan5
Novacain wrote:
sfan5 wrote:
Novacain wrote:
not quite. I got this error message
Spoiler
/usr/bin/ld: /usr/lib/gcc/i686-linux-gnu/4.8/../../../i386-linux-gnu/libIrrlicht.a(CIrrDeviceLinux.o): undefined reference to symbol 'XF86VidModeGetGamma'
/usr/lib/i386-linux-gnu/libXxf86vm.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [bin/NodeBoxEditor] Error 1
make[1]: *** [CMakeFiles/NodeBoxGenerator.dir/all] Error 2
make: *** [all] Error 2
and decided that, although it would be cool, I'm not really in need of it... yet.
sfan5 wrote:For all people on linux that have the same problem as me:
After the "cmake ." step:
Open CMakeFiles/NodeBoxGenerator.dir/link.txt in an editor and add -lXxf86vm
and you're done, now "make" and it should compile
--viewtopic.php?pid=88908#p88908
well, now it's closer :P now i get:
Spoiler
novacain@Roku:~/NodeBoxEditor$ make -j2
Linking CXX executable bin/NodeBoxEditor
c++: error: lXxf86vm: No such file or directory
make[2]: *** [bin/NodeBoxEditor] Error 1
make[1]: *** [CMakeFiles/NodeBoxGenerator.dir/all] Error 2
make: *** [all] Error 2
You forgot the - in front of lXxf86vm

Posted: Sat Feb 15, 2014 19:59
by Novacain
sfan5 wrote:You forgot the - in front of lXxf86vm
/).- I feel like a dunce :P thanks for the help


and now it works!!

next question: is there a way to link nodeboxes?

edit: suggestion: add a "browse" to select a project to open

Posted: Sat Feb 15, 2014 22:07
by stormchaser3000
awesome dlowloaded, compiled, tested, WORKS

this shoudl have a way to do sudo make install and set the save dir and chose a texture for the nodebox

Posted: Sat Feb 15, 2014 22:54
by Evergreen
Bug Report
I cloned the latest version from the github repository, and managed to compile it with sfan5's fix

However, this is what showed up when I ran ./bin/NodeBoxEditor.

Debug log:
Spoiler
Unable to open editor.conf
Irrlicht Engine version 1.8.0
Linux 3.11.0-15-generic #25-Ubuntu SMP Thu Jan 30 17:22:01 UTC 2014 x86_64
Using renderer: OpenGL 4.2.12337
AMD Radeon HD 7700 Series : ATI Technologies Inc.
OpenGL driver version is 1.2 or better.
GLSL version: 4.3
Making 16 pixel snap grid:
>> -0.500000
>> -0.437500
>> -0.375000
>> -0.312500
>> -0.250000
>> -0.187500
>> -0.125000
>> -0.062500
>> 0.000000
>> 0.062500
>> 0.125000
>> 0.187500
>> 0.250000
>> 0.312500
>> 0.375000
>> 0.437500
>> 0.500000
Could not open file of texture: media/texture_terrain.png
Could not open file of texture: media/sky.jpg
Needed 0ms to create OctreeTriangleSelector.(1 nodes, 12 polys)
Could not load font because the file does not exist: media/fontlucida.png
Complete!
And then when I add a nodebox, it repeats this until I kill the program:

Code: Select all

Could not open file of texture: media/gui_scale.png
Image:
Image

It appears that is is not finding the textures and the font, but I don't know why.
Any ideas on why that happened?

Posted: Sun Feb 16, 2014 00:04
by rubenwardy
Does the media folder exist? It should be in the same directory as the executable.

If it does, are there files in it?

Finally, make sure you can access it by typing

$ chmod 0777 media

While in the same directory.

Edit: try

$ cd bin
$ ./NodeBoxEditor

As your way might give it the wrong working directory.

Posted: Sun Feb 16, 2014 00:14
by rubenwardy
Linking node together (ie doors) will be in 0.6.4, probably.

Node textures will be in 0.9/1.0

As for linking node boxes together, do you mean grouping them?

Posted: Sun Feb 16, 2014 00:26
by Evergreen
rubenwardy wrote:Does the media folder exist? It should be in the same directory as the executable.

If it does, are there files in it?

Finally, make sure you can access it by typing

$ chmod 0777 media

While in the same directory.

Edit: try

$ cd bin
$ ./NodeBoxEditor

As your way might give it the wrong working directory.
Oh thanks, apparently It doesn't like it when I execute it from outside the bin. :P

Posted: Sun Feb 16, 2014 17:25
by Amaz
This is great, but I can't run it on Linux which is unfortunate. I do the apt-get install, then cd into the NodeBoxEditor folder, and run cmake . This is what that command produces: (I'm presuming that is an error with the cmake . command)
Spoiler

Code: Select all

-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- IRRLICHT_SOURCE_DIR = 
-- IRRLICHT_INCLUDE_DIR = /usr/include/irrlicht
-- IRRLICHT_LIBRARY = /usr/lib/i386-linux-gnu/libIrrlicht.a
-- Found IRRLICHT: /usr/lib/i386-linux-gnu/libIrrlicht.a  
-- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found version "1.2.7") 
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/i386-linux-gnu/libGL.so  
-- Found JPEG: /usr/lib/i386-linux-gnu/libjpeg.so  
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
  Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindBZip2.cmake:47 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!
Then when I run make -j it comes up with:

Code: Select all

make: *** No targets specified and no makefile found.  Stop.
I think this is before sfan5's fix will work, as the file that he says to put the line of text/code into does not exist...

Posted: Sun Feb 16, 2014 17:40
by sfan5
Amaz wrote:This is great, but I can't run it on Linux which is unfortunate. I do the apt-get install, then cd into the NodeBoxEditor folder, and run cmake . This is what that command produces: (I'm presuming that is an error with the cmake . command)
Spoiler

Code: Select all

-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- IRRLICHT_SOURCE_DIR = 
-- IRRLICHT_INCLUDE_DIR = /usr/include/irrlicht
-- IRRLICHT_LIBRARY = /usr/lib/i386-linux-gnu/libIrrlicht.a
-- Found IRRLICHT: /usr/lib/i386-linux-gnu/libIrrlicht.a  
-- Found ZLIB: /usr/lib/i386-linux-gnu/libz.so (found version "1.2.7") 
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Found OpenGL: /usr/lib/i386-linux-gnu/libGL.so  
-- Found JPEG: /usr/lib/i386-linux-gnu/libjpeg.so  
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
  Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-2.8/Modules/FindBZip2.cmake:47 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:12 (find_package)


-- Configuring incomplete, errors occurred!
Then when I run make -j it comes up with:

Code: Select all

make: *** No targets specified and no makefile found.  Stop.
I think this is before sfan5's fix will work, as the file that he says to put the line of text/code into does not exist...
Read what cmake says at least:
cmake wrote: Could NOT find BZip2
Just use apt-get install libbz2-dev

Posted: Sun Feb 16, 2014 17:52
by Amaz
Thanks! I did think it might have something to do with that, but wasn't sure if it was something in the file, or a library. I wouldn't have worked out the name of the library though... Thanks!

Posted: Sun Feb 16, 2014 18:45
by flux
Suggestion: The texture coordinates should me mapped correctly. They are stretched in your tool and cropped in the game.

PS: Confused the heck out of me when I tried to understand nodeboxes today =)

Posted: Sun Feb 16, 2014 20:53
by rubenwardy
Texture mapping is on the to do list.

Posted: Sun Feb 16, 2014 21:31
by rubenwardy
Added bzip2 to the apt get list.

Posted: Sun Feb 16, 2014 21:36
by stormchaser3000
can some system-wide install directorys be added i want to be able to do sudo make install

Posted: Sun Feb 16, 2014 21:37
by rubenwardy
I don't know what you mean.

Posted: Sun Feb 16, 2014 21:45
by stormchaser3000
rubenwardy wrote:I don't know what you mean.

what i mean is when i compile using cmake . and make -j3 i want to be able to use sudo make install to install it system-wide

Posted: Sun Feb 16, 2014 21:47
by rubenwardy
Ah, I see. I will look into it.

Posted: Sat Apr 05, 2014 07:16
by mimilus
Hello

Could you add a texture selector ?

Posted: Sat Apr 05, 2014 07:37
by Krock
mimilus wrote:Hello

Could you add a texture selector ?
Textures are set in the node definition, in Lua.

Code: Select all

minetest.register_node("my:nodebox", {
    description = "My Nodebox",
>>>>tiles = {"default_wood.png"},
    drawtype = "nodebox",
    paramtype = "light",
    node_box = {
        type = "fixed",
        fixed = {
            --NodeBox1,2,3,4...
        }
    },
EDIT: Found some nice box codes:

Code: Select all

node_box = {
        type = "fixed",
        fixed = {
            {2.45,-1.5,-2.5,    2.5,3.5,2.5}, --NodeBox1
            {-2.5,-1.5,2.45,    2.5,3.5,2.5}, --NodeBox2
            {-2.5,-1.5,-2.5,     -2.45,3.5,2.5}, --NodeBox3
            {-2.5,-1.5,-2.5,     2.5,3.5,-2.45}, --NodeBox4
            {-2.5,3.45,-2.5,    2.5,3.5,2.5}, --NodeBox5
            {-2.5,-1.5,-2.5,     2.5,-1.45,2.5}, --NodeBox6
        }
    },