4.0 blank fields? urgent help!

For people working on the C++ code.
User avatar
azekill_DIABLO
Member
 
Posts: 6743
Joined: Wed Oct 29, 2014 20:05
Location: Inside the Box
GitHub: azekillDIABLO
In-game: azekill_DIABLO

4.0 blank fields? urgent help!

by azekill_DIABLO » Mon Jul 10, 2017 09:54

Hi, i'm working on minetest 4.0 (don't ask me why) and i have this
Image
blank text fields! why a white font, it's impossible to read anything... which source files must i change?
Attachments
blank fields.png
(11.06 KiB) Not downloaded yet
Last edited by azekill_DIABLO on Tue Jul 18, 2017 15:29, edited 1 time in total.
 

User avatar
Linuxdirk
Member
 
Posts: 1072
Joined: Wed Sep 17, 2014 11:21
Location: Germany
GitHub: 4w
In-game: Linuxdirk
 

User avatar
azekill_DIABLO
Member
 
Posts: 6743
Joined: Wed Oct 29, 2014 20:05
Location: Inside the Box
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: 4.0 blank fields?

by azekill_DIABLO » Mon Jul 10, 2017 10:38

yes sir, from the year 2055. I have good news: Minetest is better than MC! But about those blank fields sir?
 

User avatar
Linuxdirk
Member
 
Posts: 1072
Joined: Wed Sep 17, 2014 11:21
Location: Germany
GitHub: 4w
In-game: Linuxdirk

Re: 4.0 blank fields?

by Linuxdirk » Mon Jul 10, 2017 12:05

azekill_DIABLO wrote:yes sir, from the year 2055. I have good news: Minetest is better than MC! But about those blank fields sir?

Awesome! Welcome, time traveler. Let me just get my time traveling pants and let's go back to the future!

About those pesky blank fields, how did you compile Minetest and what font setting do you use in your minetest.conf file?
 

User avatar
azekill_DIABLO
Member
 
Posts: 6743
Joined: Wed Oct 29, 2014 20:05
Location: Inside the Box
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: 4.0 blank fields?

by azekill_DIABLO » Mon Jul 10, 2017 13:10

i did compile minetest with a compiler... no just kidding! It's a linux build with cmake, the font, well... it seems like the font is built in irrlicht or something like that. I appears when no font is valid :)
 

User avatar
Linuxdirk
Member
 
Posts: 1072
Joined: Wed Sep 17, 2014 11:21
Location: Germany
GitHub: 4w
In-game: Linuxdirk

Re: 4.0 blank fields?

by Linuxdirk » Mon Jul 10, 2017 13:50

When you run minetest --version it outputs the compile options.

What happens when you configure a valid font?
 

User avatar
azekill_DIABLO
Member
 
Posts: 6743
Joined: Wed Oct 29, 2014 20:05
Location: Inside the Box
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
azekill_DIABLO
Member
 
Posts: 6743
Joined: Wed Oct 29, 2014 20:05
Location: Inside the Box
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: 4.0 blank fields?

by azekill_DIABLO » Tue Jul 11, 2017 18:40

Code: Select all
irr::gui::IGUIEditBox::setOverrideColor (irr::video::SColor(255,255,0,0))

i made this code sample, it should solve the problem, but, what a surprise... it doesn't work. My c++ syntax is more than horrible, could someone make this work? thank you!
 

User avatar
azekill_DIABLO
Member
 
Posts: 6743
Joined: Wed Oct 29, 2014 20:05
Location: Inside the Box
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 

User avatar
Linuxdirk
Member
 
Posts: 1072
Joined: Wed Sep 17, 2014 11:21
Location: Germany
GitHub: 4w
In-game: Linuxdirk

Re: 4.0 blank fields?

by Linuxdirk » Thu Jul 13, 2017 19:28

Hey.

Never encountered that. Still too less information. What OS, if Linux: what theme and what WM/DE and distribution, does it happen with the latest dev version, does it happen with fresh profile?
 

User avatar
v-rob
Member
 
Posts: 352
Joined: Thu Mar 24, 2016 03:19

Re: 4.0 blank fields?

by v-rob » Fri Jul 14, 2017 01:06

Well, when I take a look at your screenshot, I can see that it is not the font that is the problem, but the places you write in. They should be light grey, not white. I don't know how to fix this in the engine, but you can look in the data file and edit fontlucida.png to have black letters. There always should be a font file. But how to fix the white backgrounds, I have no idea.
 

User avatar
Calinou
Moderator
 
Posts: 3143
Joined: Mon Aug 01, 2011 14:26
Location: Troyes, France
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: 4.0 blank fields?

by Calinou » Fri Jul 14, 2017 01:13

Just so you know, this is a bug caused in very old versions of Minetest when using Irrlicht 1.8 or later. Linking these Minetest versions to Irrlicht 1.7 instead should solve it.
 

User avatar
azekill_DIABLO
Member
 
Posts: 6743
Joined: Wed Oct 29, 2014 20:05
Location: Inside the Box
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: 4.0 blank fields?

by azekill_DIABLO » Fri Jul 14, 2017 12:02

Calinou wrote:Just so you know, this is a bug caused in very old versions of Minetest when using Irrlicht 1.8 or later. Linking these Minetest versions to Irrlicht 1.7 instead should solve it.

yes, okay. How to do that :D ?
 

User avatar
azekill_DIABLO
Member
 
Posts: 6743
Joined: Wed Oct 29, 2014 20:05
Location: Inside the Box
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: 4.0 blank fields? urgent help!

by azekill_DIABLO » Tue Jul 18, 2017 15:30

i tried linking to irrlicht 1.7.3 and it does nothing different actually :/

this code sample taken from irrlicht manual should work
Code: Select all
virtual void irr::gui::IGUIEditBox::setDrawBackground (false);


but it won't... can someone tell me what is wrong with it?
 

User avatar
azekill_DIABLO
Member
 
Posts: 6743
Joined: Wed Oct 29, 2014 20:05
Location: Inside the Box
GitHub: azekillDIABLO
In-game: azekill_DIABLO
 


Return to Partly official engine development



Who is online

Users browsing this forum: No registered users and 2 guests