NodeBoxEditor [0.9.0] - Zooming, dynamic snap res

angjminer
New member
 
Posts: 5
Joined: Tue Jun 25, 2013 17:13

by angjminer » Sat Jul 06, 2013 18:27

I know this is your baby, but my kids are really into minetest,
i got your source and added a couple of things,
it exports to a file now,
and you can name the mod folder, and node,,,it will appear in the exported lua.
going to try to get it to let you choose where to export it to, and choose texture for the faces, (getting a list from a chosen dir in the mods folder/ or default??)
when i am done if you like ill get you the changes.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sun Jul 07, 2013 11:19

I am actually rewriting this project to have better c++ style.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Tue Jul 23, 2013 15:57

[h]0.5 Released![/h]

Because of the amount of changes I have made, I have skipped a few versions.

Features
  • Dual drag system on control (opposite sides scale at same time).
  • Node box position on shift (can move node box when shift is held).
  • Node box properties menu.
  • Tool/mode implementation (only node box tool works atm).

Visual changes
  • Lines separate the tiles.
  • Drag boxes show in full screen tile modes.

Structure changes
  • Built around a project class - more object orientated.
  • Node boxes now hold the dimensions as corner to corner, not position size.
  • Menu system allows dialogs to be controlled.
  • Relative size system - setting the foundations for multi-node.

Bug fixes
  • Cameras no longer stretch on resize.

[h]To Do[/h]

Features
  • Load/save project
  • Multi node
  • Node tool
  • Node creation tool
  • Nodebox Textures
  • Texture tool

[h]Windows Build[/h]
Version 0.5 - works with WinXP!
Last edited by rubenwardy on Wed Jul 24, 2013 15:23, edited 1 time in total.
 

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Tue Jul 23, 2013 16:19

I would love it if only it worked...

The procedure entry point cgD3D9UnbindProgram could not
be located in the dynamic link library cgD3D9.dll
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Tue Jul 23, 2013 16:27

http://irc.minetest.ru/minetest/2013-07-23#i_3214641

rubenwardy wrote:I built irrlicht with CG shader support, and I forget to use standard irrlicht for the nb generator


Just fixing it...
Last edited by rubenwardy on Tue Jul 23, 2013 16:27, edited 1 time in total.
 

User avatar
qwrwed
Member
 
Posts: 323
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Tue Jul 23, 2013 17:32

Evergreen wrote:Hey rubenwardy! I made a bash script that automatically compiles your node box generator in your desktop. Please tell me what you think.
Code:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
#!/bin/bash
echo ""
echo "********************************************"
echo "*                                          *"
echo "*  The-NodeBox-Generator Compiler          *"
echo "*                                          *"
echo "********************************************"
echo ""

sleep 2s

echo "Program made by rubenwardy, bash script automatic compiler made by Evergreen."
echo "https://github.com/rubenwardy/The-NodeBox-Generator"

sleep 4s

cd ~/Desktop
wget https://github.com/rubenwardy/The-NodeBox-Generator/tarball/master -O The-NodeBox-Generator.tar.gz
tar xf The-NodeBox-Generator.tar.gz
cd rubenwardy-The-NodeBox-Generator-*
sudo apt-get install build-essential libirrlicht-dev cmake libpng12-dev libjpeg8-dev libgl1-mesa-dev
cmake .
make -j2
cd ..
rm The-NodeBox-Generator.tar.gz
mv rubenwardy-The-NodeBox-Generator-*/ The\ NodeBox\ Generator/
cd The\ NodeBox\ Generator/
rm CMake*
rm cmake*
rm Makefile
rm -r cmake/
rm -r CMakeFiles
echo "Compilation complete."
sleep 1s


Download

Also, remember to change the extension to .sh and chmod +x it.

I am very new to Git (as in only created two repositories a couple of hours earlier new) so can someone explain or link to exactly how to run this?
Edit: I saved this into a .sh file as new.sh, put it in my Github folder, extracted the 0.5 zip file into the same place, then in Git Shell I typed
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
bash new.sh chmod +x
This ran the script, but most of the commands (wget, cmake and make) were not found, and it also said "tar:The-NodeBox-Generator.tar.gz: Cannot open: No such file or directory"
I have extracted the .zip file into the same place as the bash script, but it does not have the extension of .gz, and there was no tar file.
Last edited by qwrwed on Tue Jul 23, 2013 18:37, edited 1 time in total.
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

by Evergreen » Tue Jul 23, 2013 18:40

qwrwed wrote:
Evergreen wrote:Hey rubenwardy! I made a bash script that automatically compiles your node box generator in your desktop. Please tell me what you think.
Code:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
#!/bin/bash
echo ""
echo "********************************************"
echo "*                                          *"
echo "*  The-NodeBox-Generator Compiler          *"
echo "*                                          *"
echo "********************************************"
echo ""

sleep 2s

echo "Program made by rubenwardy, bash script automatic compiler made by Evergreen."
echo "https://github.com/rubenwardy/The-NodeBox-Generator"

sleep 4s

cd ~/Desktop
wget https://github.com/rubenwardy/The-NodeBox-Generator/tarball/master -O The-NodeBox-Generator.tar.gz
tar xf The-NodeBox-Generator.tar.gz
cd rubenwardy-The-NodeBox-Generator-*
sudo apt-get install build-essential libirrlicht-dev cmake libpng12-dev libjpeg8-dev libgl1-mesa-dev
cmake .
make -j2
cd ..
rm The-NodeBox-Generator.tar.gz
mv rubenwardy-The-NodeBox-Generator-*/ The\ NodeBox\ Generator/
cd The\ NodeBox\ Generator/
rm CMake*
rm cmake*
rm Makefile
rm -r cmake/
rm -r CMakeFiles
echo "Compilation complete."
sleep 1s


Download

Also, remember to change the extension to .sh and chmod +x it.

I am very new to Git (as in only created two repositories a couple of hours earlier new) so can someone explain or link to exactly how to run this?
Edit: I saved this into a .sh file as new.sh, put it in my Github folder, extracted the 0.5 zip file into the same place, then in Git Shell I typed
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
bash new.sh chmod +x
This ran the script, but most of the commands (wget, cmake and make) were not found, and it also said "tar:The-NodeBox-Generator.tar.gz: Cannot open: No such file or directory"
I have extracted the .zip file into the same place as the bash script, but it does not have the extension of .gz, and there was no tar file.
I believe that this works in ubuntu only. (I think)
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

User avatar
qwrwed
Member
 
Posts: 323
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Tue Jul 23, 2013 19:10

On XP, I downloaded the 0.5 zip file and extracted from it, then extracted from that file, then clicked the .exe file, and I got an error message saying cg.dll was not found. After downloading thta, cgD3D9.dll was not found, and after downloading that, I got an error message - not saying that another .dll was not found, but that
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
procedure entry point cgD3D9UnbindProgram could not be located in the dynamic link library
Is there something else that needs to be downloaded? Edit: just realised I have the same problem as Dan Duncombe.
Dan Duncombe wrote:[...]
The procedure entry point cgD3D9UnbindProgram could not
be located in the dynamic link library cgD3D9.dll
Last edited by qwrwed on Tue Jul 23, 2013 19:21, edited 1 time in total.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Wed Jul 24, 2013 15:23

CG Problem fixed: http://ubuntuone.com/4QObcYrDKYYAe624he7uAq

This was not a problem with the code, but rather with my build. I used a CG version of Irrlicht accidentally.
Last edited by rubenwardy on Wed Jul 24, 2013 15:27, edited 1 time in total.
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Wed Jul 24, 2013 16:01

My Norton Antivirus removes the nodeboxgen.exe:

[url=http://www.symantec.com/security_response/detected_writeup.jsp?name=Suspicious.Cloud.7.F&vid=42306&product=Norton%20Internet%20Security%20CBE&version=20.4.0.40&plang=sym:GE&layouttype=Retail&buildname=Retail&heartbeatID=B48C571C-D6CA-11DF-9DD2-B482FE64E293&env=prod&vendorid=1003200&plid=441&plgid=2&skup=21271350&skum=21271350&skuf=21271344&endpointid={B48C571C-D6CA-11DF-9DD2-B482FE64E293}&partnerid=1003200&lic_type=2&lic_attr=21124114&psn=P8GWK9MJKFV8&osvers=6.1&oslocale=iso:DEU&oslang=iso:GER&os=windows]Suspicious.Cloud.7.F[/url]

And trust you and restored the file, but I wanted to inform you :)
 

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Wed Jul 24, 2013 16:02

Thanks so much for this!

A thankyou song:

This is so great,
It is so helpful,
I just made a model plate,
Of tomatoes (a bowlful!)

I hope you appreciate this amazing song. Thankyou for listening, ladies and gents. (Nice app by the way!)
Last edited by Dan Duncombe on Wed Jul 24, 2013 16:03, edited 1 time in total.
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Wed Jul 24, 2013 16:07

Weird.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Wed Jul 24, 2013 16:08

Last edited by rubenwardy on Wed Jul 24, 2013 16:11, edited 1 time in total.
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

by VanessaE » Mon Jul 29, 2013 22:46

Current git of this project fails to build in Linux (Debian 7):

In file included from /home/vanessa/Minetest-related/The-NodeBox-Generator/Editor.h:4:0,
from /home/vanessa/Minetest-related/The-NodeBox-Generator/main.cpp:3:
/home/vanessa/Minetest-related/The-NodeBox-Generator/Project.h: In constructor ‘Project::Project(irr::io::path)’:
/home/vanessa/Minetest-related/The-NodeBox-Generator/Project.h:12:20: error: cannot call constructor ‘Project::Project’ directly [-fpermissive]
/home/vanessa/Minetest-related/The-NodeBox-Generator/Project.h:12:20: error: for a function-style cast, remove the redundant ‘::Project’ [-fpermissive]

EDIT: This commit from kaeza fixes it:

https://github.com/kaeza/The-NodeBox-Generator/commit/1cabd787436816ae166c7e45236bd67a73930558
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
PenguinDad
Member
 
Posts: 122
Joined: Wed Apr 10, 2013 16:46
GitHub: PenguinDad
IRC: PenguinDad GhostDoge
In-game: PenguinDad

by PenguinDad » Tue Jul 30, 2013 21:09

When I try to compile it I get this error.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libIrrlicht.a(CIrrDeviceLinux.o): undefined reference to symbol 'XF86VidModeGetGamma'
/usr/bin/ld: note: 'XF86VidModeGetGamma' is defined in DSO /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 so try adding it to the linker command line
/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1: could not read symbols: Ungültiger Vorgang
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [NodeBoxGenerator] Fehler 1
make[1]: *** [CMakeFiles/NodeBoxGenerator.dir/all] Fehler 2
make: *** [all] Fehler 2

I'm using Xubuntu 13.04.
<Cyndra> Programming properly in C++ feels like putting together a jigsaw puzzle
<Cyndra> where the peices don't fit and the picture doesn't matter.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Wed Jul 31, 2013 01:31

PenguinDad wrote:When I try to compile it I get this error.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libIrrlicht.a(CIrrDeviceLinux.o): undefined reference to symbol 'XF86VidModeGetGamma'
/usr/bin/ld: note: 'XF86VidModeGetGamma' is defined in DSO /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 so try adding it to the linker command line
/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1: could not read symbols: Ungültiger Vorgang
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [NodeBoxGenerator] Fehler 1
make[1]: *** [CMakeFiles/NodeBoxGenerator.dir/all] Fehler 2
make: *** [all] Fehler 2

I'm using Xubuntu 13.04.

Same as this error it seems: https://forum.minetest.net/viewtopic.php?pid=88770#p88770
Last edited by kaeza on Wed Jul 31, 2013 01:39, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

User avatar
PenguinDad
Member
 
Posts: 122
Joined: Wed Apr 10, 2013 16:46
GitHub: PenguinDad
IRC: PenguinDad GhostDoge
In-game: PenguinDad

by PenguinDad » Wed Jul 31, 2013 16:44

kaeza wrote:
PenguinDad wrote:When I try to compile it I get this error.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libIrrlicht.a(CIrrDeviceLinux.o): undefined reference to symbol 'XF86VidModeGetGamma'
/usr/bin/ld: note: 'XF86VidModeGetGamma' is defined in DSO /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 so try adding it to the linker command line
/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1: could not read symbols: Ungültiger Vorgang
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [NodeBoxGenerator] Fehler 1
make[1]: *** [CMakeFiles/NodeBoxGenerator.dir/all] Fehler 2
make: *** [all] Fehler 2

I'm using Xubuntu 13.04.

Same as this error it seems: https://forum.minetest.net/viewtopic.php?pid=88770#p88770

Yes it's the same error but I don't know how to fix that.
<Cyndra> Programming properly in C++ feels like putting together a jigsaw puzzle
<Cyndra> where the peices don't fit and the picture doesn't matter.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Wed Jul 31, 2013 21:34

PenguinDad wrote:
kaeza wrote:
PenguinDad wrote:When I try to compile it I get this error.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libIrrlicht.a(CIrrDeviceLinux.o): undefined reference to symbol 'XF86VidModeGetGamma'
/usr/bin/ld: note: 'XF86VidModeGetGamma' is defined in DSO /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 so try adding it to the linker command line
/usr/lib/x86_64-linux-gnu/libXxf86vm.so.1: could not read symbols: Ungültiger Vorgang
collect2: Fehler: ld gab 1 als Ende-Status zurück
make[2]: *** [NodeBoxGenerator] Fehler 1
make[1]: *** [CMakeFiles/NodeBoxGenerator.dir/all] Fehler 2
make: *** [all] Fehler 2

I'm using Xubuntu 13.04.

Same as this error it seems: https://forum.minetest.net/viewtopic.php?pid=88770#p88770

Yes it's the same error but I don't know how to fix that.

https://forum.minetest.net/viewtopic.php?pid=88908#p88908 may help
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Thu Aug 01, 2013 15:31

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


Do you know how to add this to cmakelists.txt, in a way I can push to mainstream?
 

User avatar
PenguinDad
Member
 
Posts: 122
Joined: Wed Apr 10, 2013 16:46
GitHub: PenguinDad
IRC: PenguinDad GhostDoge
In-game: PenguinDad

by PenguinDad » Thu Aug 01, 2013 19:38


Yes now I can use it.
<Cyndra> Programming properly in C++ feels like putting together a jigsaw puzzle
<Cyndra> where the peices don't fit and the picture doesn't matter.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Fri Aug 02, 2013 06:51

rubenwardy wrote:
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


Do you know how to add this to cmakelists.txt, in a way I can push to mainstream?

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if(UNIX)
    target_link_libraries(
        Xxf86vm
    )
endif(UNIX)

This may work
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
Strikeboba
Member
 
Posts: 19
Joined: Fri May 18, 2012 01:31

by Strikeboba » Fri Aug 02, 2013 11:08

Ruben, Congrats! ^^ I always knew you would and could do it! Thanks for bringing this great tool to the community. :D
I live for peace,building and friends My Mods:Upgrade Mod 1.0
 

User avatar
Element
Member
 
Posts: 269
Joined: Tue Jun 11, 2013 00:27
IRC: Elementwing4962
In-game: Elementwing4962

by Element » Sun Sep 01, 2013 07:23

where do i put the file
Join Me And My Team - thornfyregaming-mc.noip.me:25565

My Server Is 1.7.9
 

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Sun Sep 01, 2013 09:26

Element wrote:where do i put the file

Extract it, then put all the files in a folder anywhere. then click on NodeBoxGen.exe
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 

User avatar
Element
Member
 
Posts: 269
Joined: Tue Jun 11, 2013 00:27
IRC: Elementwing4962
In-game: Elementwing4962

by Element » Mon Sep 02, 2013 18:02

can i edit other stuff...if so...can you tell me what to do
Join Me And My Team - thornfyregaming-mc.noip.me:25565

My Server Is 1.7.9
 

User avatar
tima_gt
Member
 
Posts: 22
Joined: Mon Jun 10, 2013 13:19

by tima_gt » Fri Sep 06, 2013 20:22

Very good program!
 

User avatar
Neuromancer
Member
 
Posts: 793
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

by Neuromancer » Sat Sep 28, 2013 21:03

Why don't I see the textures? It's just black, white, and shades of grey.
Edit: I didn't see the textures on Vista, I did on windows 7.

But I noticed that I can't save my progress. If I'm half finished with a a set of nodeboxes, I can't quit and resume where I left off as there is no save or import function. Please implement soon! Would you be ok with it if I helped?

This http://www.cplusplus.com/doc/tutorial/files/
kind of says how to read/write a file in c++. Does anyone know where the code to convert the objects to the nodebox text is?


I got this to build and run in Visual Studio 2012. Here what I did.
Pulled down the code from github.

Followed these instructions:
http://msdn.microsoft.com/en-us/library/vstudio/754c3hy7.aspx
To create a project from existing code files

On the File menu, click New, and then click Project From Existing Code.

The Create New Project from Existing Code Files wizard opens.

Use the wizard to specify the details of the existing code files that will be added to the project and the application that will be created when you build the project.

I think I chose windows32 app (and probably should have chosen console app as you will see below)

Then I followed some of my own irrlicht tutorial (but see below as it is different):
https://forum.minetest.net/viewtopic.php?id=4819


-First you need to download the irrlicht SDK. You can do that here:
http://irrlicht.sourceforge.net/downloads/
-Next, take the folder from the zip file (irrlicht-1.8) and put it in your projects folder (C:\Users\x\Projects)
-To let the compiler find the irrlicht.h header file, right click the project> Properties>Configuration Properties>C++
-Click on: Additional Include Directories, <click on down arrow>, Edit, Folder with star (new line), "..."
-navigate to the include folder inside the IRRLICHT folder C:\Users\x\Projects\irrlicht-1.8\include.
-click ok.
-click on linker> Additional Library Directories>, , <click on down arrow>, Edit, Folder with star (new line), "..."
-navigate to your equivalent of C:\Users\x\Projects\irrlicht-1.8\lib\Win32-visualStudio
Even though I have a 64 bit operating system (the 64 folder caused errors for me), select folder> OK> OK
-Then go ahead and paste the code from the tutorial webpage into your irrLichtTutorial1.cpp file.
-you may get the following errors:
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup
http://stackoverflow.com/questions/6626397/error-lnk2019-unresolved-external-symbol-winmain16-referenced-in-function
Thats a linker problem.

Try to change Properties -> Linker -> System -> SubSystem

from Windows (/SUBSYSTEM:WINDOWS) to Console (/SUBSYSTEM:CONSOLE)


-it will compile, but when you try to run you will get the following error:
"The program can't start because Irrlicht.dll is missing from your computer. Try reinstalling the program to fix this problem."
-Copy C:\Users\x\Projects\irrlicht-1.8\bin\Win32-VisualStudio\Irrlicht.dll to
C:\Users\x\Documents\Visual Studio 2010\Projects\irrLichtTutorial1\Debug

and it works!
Last edited by Neuromancer on Sun Sep 29, 2013 16:41, edited 1 time in total.
 

User avatar
Neuromancer
Member
 
Posts: 793
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

by Neuromancer » Sun Sep 29, 2013 17:36

If you want to mess with this using a Visual Studio solution:

https://github.com/Neuromancer56/NodeBox

Any enhancements will just be sent as cpp & .h file pull requests to Ruben Wardy's main repository. But if you don't want to deal with make files and have something that just builds out of the box in Visual Studio you can use this.
Last edited by Neuromancer on Sun Sep 29, 2013 17:36, edited 1 time in total.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Mon Sep 30, 2013 08:05

I used Visual Studio to develop this :P
 

User avatar
Neuromancer
Member
 
Posts: 793
Joined: Tue Jun 12, 2012 22:28
GitHub: Neuromancer56

by Neuromancer » Mon Sep 30, 2013 23:46

rubenwardy wrote:I used Visual Studio to develop this :P

Yep, I saw that but couldn't get it to build. It it as simple as running a make file? Or if not, do you have instructions to build on Windows? Do you have any project or solution files?
 

PreviousNext

Return to Minetest-Related

Who is online

Users browsing this forum: No registered users and 32 guests

cron