Code Editor GUI Component.

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: Code Editor GUI Component.

Post by netpipe »

200,000 dogecoin reward for fixing
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: Code Editor GUI Component.

Post by christianclavet »

Hi, Tecan. Check the IRB Web site, and check the SVN version of IRB. The code editor is working on Linux (no modification). I don't know why you got problems with the virtual functions errors, but it work. If you check our Linux version (C::B project), perhaps you will find what was missing. The latest version of the project run on Irrlicht 1.9SVN.

You can check this thread, Soganatsu-Julien was able to make it work for his project "community play": http://irrlicht.sourceforge.net/forum/v ... =6&t=49383. His project run on Windows and Mac.

Here is a screen from IRB on Ubuntu:
Image
In this screen, the GUI component is the same as the last one distributed so the code was not changed to work on Linux. So the most probable causes:
- Wrong settings in your C::B Irrlicht project
- Using a old version of Irrlicht (Was tested only from 1.8.0 and up, edit checked demo was from 1.7.2!)
- You are not instantiating the object correctly and/or modified the source

EDIT: It seem you used the first old source code I released. I checked it on Ubutu and it did exactly what you said. Using the last source I had of the GUI component (.cpp + .h) I replaced yours and it compiled fine.
Here is the project if you want to check (just replace the path to your Irrlicht distribution so it compile correctly)
http://irrrpgbuilder.sourceforge.net/fi ... Editor.tar
NOTE: This was compiled on Ubuntu 64 bit version. And in the .TAR there is the demo compiled.
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: Code Editor GUI Component.

Post by netpipe »

it compiled here aswell, did the demo segfault for you too ?
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Re: Code Editor GUI Component.

Post by christianclavet »

No, I compiled it for Ubuntu 64 bit, it run perfectly here. On what Linux version are you trying to run it?
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: Code Editor GUI Component.

Post by netpipe »

i switched from svn to irrlicht 1.8.1 and it worked, thanks. something was weird in the current libpng
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9923
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Code Editor GUI Component.

Post by CuteAlien »

When you get libpng troubles it often helps to do a clean rebuild. I don't know why, but I did run into this a few times already when there had been libpng updates.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply