Page 1 of 1

a terrain + a sky+a info_player_start entity=black?

Posted: 2012-05-23, 10:08
by changhao
1 new map
2 add a terrain
3 then follow with a guide to add a sky
4 compile error because no info_player_start
5 add a info_player_start on the flat terrain
6 complie ok
7 enter the game with this very simple map
8 black

I think this is a valid map, a flat terrain closed with 5 sky brush,but why black?

Another problem when i build cafu with scons:
There are some no ascii chars in the comment line of the source code which make the build process stop like : 0xe4 0xfc 0x76

After i switch the code page of windows7 to German and restart the computer,
the build work.

Re: a terrain + a sky+a info_player_start entity=black?

Posted: 2012-05-23, 14:15
by scott
Did you add a light? Did you apply a texture to the terrain?

Re: a terrain + a sky+a info_player_start entity=black?

Posted: 2012-05-23, 15:39
by changhao
no i did not add a light,yes i add texture for the flat terrain and sky,
and it looks ok in CaWE, but black in cafu.

i also build a closed room by hollow just one brush with no light,and it works,
both in cawe and cafu

Re: a terrain + a sky+a info_player_start entity=black?

Posted: 2012-05-23, 23:24
by Carsten
Hi changhao,

About the terrain:
Did you run CaLight as part of the map compile process?
If you did, and the terrain is still black, can you please post a zip of the map here as an attachment?

About the compiler issue:
Thanks for the report!
Can you please post the exact error message?
Which compiler do you use?
What code page do you normally use?
(I'd love to fix this, but I'd need to be able to reproduce it first.)

Re: a terrain + a sky+a info_player_start entity=black?

Posted: 2012-05-24, 03:53
by changhao
no , i dit not use caLight to complie,
then i switch the caLight on
but it still black in cafu game and look good in caWE

mymap.zip is the map file,and the map is very very simple , just add a terrain then follow the guide to finish the sky and texture operation , then add a info_player_start entity on the flat terrain.

i use chinaese simplified code page and vs2010
build.zip is the text out put of scons,
the error is report in chinese, which means that:
there are invalid chars for the current code page(936),please save it with unicode
[like CaBsp/LoadWorld.cpp/Line 141 ] 0xFC


thanks for your reply and great work

Re: a terrain + a sky+a info_player_start entity=black?

Posted: 2012-05-26, 12:01
by Carsten
Hi changhao,

the problem with the map is caused by the info_player_start box (green) not being entirely "inside" the world.
It is easily solved though: Just raise the ceiling a bit and increase the heights of the four walls accordingly, recompile, and you should see the world properly in the engine as well.

About the codepage problem:
Thanks for the info!
It's clearly a problem that we should fix, though I'm not yet sure on how to do it best.

Can you please replace your file Cafu/Libs/Templates/Array.hpp with the attached one, and see if the compiler still reports warnings in this file?

(The attached file is the same as the old one, but encoded as UTF-8.)

Re: a terrain + a sky+a info_player_start entity=black?

Posted: 2012-05-26, 15:04
by changhao
yes the Array.hpp in utf8 works

Re: a terrain + a sky+a info_player_start entity=black?

Posted: 2012-05-31, 11:52
by Carsten
Thanks for your reply!

I've not yet fixed this universally, but finally came up with a helpful script that I've been pondering all along:
http://trac.cafu.de/browser/tools/check_source.py

:-)

Re: a terrain + a sky+a info_player_start entity=black?

Posted: 2012-08-11, 03:10
by zengqh
there is another chinese guy that have the same problems...ok.

Re: a terrain + a sky+a info_player_start entity=black?

Posted: 2012-08-11, 13:01
by Carsten
I've just committed a fix to this issue:
If you use Subversion, please update to SVN head revision.
If you don't use Subversion (please let me know!), I'll upload another set of archives later today.