[b42] Blackscreen on Arch linux x64

Moderator: Moderator

Post Reply
Message
Author
l0ser18q
Posts: 2
Joined: Fri Aug 31, 2012 12:55 am

[b42] Blackscreen on Arch linux x64

#1 Post by l0ser18q »

Hello, I compiled TiME from sources successful, but have black screen when launch t-engine.
Console logs here:

Code: Select all

[CPU] Detected 2 CPUs
OpenAL device available: OpenAL Soft (default OpenAL Soft)
Available video driver: x11
Available video driver: dummy
NO SELFEXE: bootstrapping from CWD
Booting T-Engine from: /home/loser/aur-packages/tome4/src/t-engine4-src-1.0.0beta42/bin/Debug/t-engine
SelfExe gave us app directory of:	/home/loser/aur-packages/tome4/src/t-engine4-src-1.0.0beta42/
LuaVM:	LuaJIT 2.0.0-beta8	x64
Creating particles thread 0
LuaVM:	LuaJIT 2.0.0-beta8	x64
[DO RESIZE] 800x600 (0)
OpenGL max texture size: 8192
OpenGL max texture size: 8192
===fbo 1
Running lua loader code...
Reboot using	te4	LATEST	boot	player	false
[ENGINE LOADER] available from teae: 	te4-0.9.42
[ENGINE LOADER] found engines	te4={[1]={[1]=0.000000 , [2]=9.000000 , [3]=42.000000 , [4]="te4" , [5]=17.000000 , ["load_teae"]="/engines/te4-0.9.42.teae" , } , } __byname={["te4-0.9.42"]=true , } 
[ENGINE LOADER] looked in:
	/home/loser//.t-engine/4.0
	bootstrap
	/home/loser/aur-packages/tome4/src/t-engine4-src-1.0.0beta42//game/thirdparty
	/home/loser/aur-packages/tome4/src/t-engine4-src-1.0.0beta42//game
[ENGINE LOADER] sorted:	te4	0	9	42
[ENGINE LOADER] loading engine:	0	9	42	te4
[ENGINE LOADER] using archived engine:	/engines/te4-0.9.42.teae
Available resolutions: 1920x1440x32
Available resolutions: 1920x1200x32
Available resolutions: 1920x1080x32
Available resolutions: 1600x1200x32
Available resolutions: 1280x1024x32
Available resolutions: 1280x720x32
Available resolutions: 1024x768x32
Available resolutions: 800x600x32
Available resolutions: 640x480x32
[KEYBINDER] Loaded keybinds: move
[KEYBINDER] Loaded keybinds: hotkeys
[KEYBINDER] Loaded keybinds: inventory
[KEYBINDER] Loaded keybinds: actions
[KEYBINDER] Loaded keybinds: interface
[KEYBINDER] Loaded keybinds: debug
Switching resolution to	1440x1080	1440	1080	false
Setting resolution to 1440x1080 (windowed)
[DO RESIZE] 1440x1080 (0)
OpenGL max texture size: 8192
[RESOLUTION] changed to 	1440	1080	from	1440	1080
Creating profile thread
[PROFILE] mounted 	online	on /current-profile
[PROFILE] unmounted 	online	from /current-profile
[ENGINE] Setting requested FPS to 30 (33 ms)
[ENGINE] Switching to turn based
LuaVM:	LuaJIT 2.0.0-beta8	x64
TE4Online starting...
Creating module	boot-te4-0.9.42.team	:: (as dir)	false	:: (as team)	16	
Module mismatch engine version boot-0.9.40 using engine te4-0.9.40
Loaded module definition for boot-0.9.40 using engine te4-0.9.40
Creating module	example	:: (as dir)	true	:: (as team)	nil	
Loaded module definition for example-1.0.0 using engine te4-0.9.42
Creating module	example_realtime	:: (as dir)	true	:: (as team)	nil	
Loaded module definition for example_realtime-1.0.0 using engine te4-0.9.42
Creating module	tome-0.9.42.team	:: (as dir)	false	:: (as team)	12	
[PROFILE] Thread connected to te4.org
[ONLINE PROFILE] reconnecting to channels
Loaded module definition for tome-0.9.42 using engine te4-0.9.42
tome	boot
example	tome
boot	example
example_realtime	boot
boot	example_realtime
boot	tome
example	example_realtime
* Module: tome
 ** 0.9.42
* Module: boot
 ** 0.9.40
* Module: example
 ** 1.0.0
* Module: example_realtime
 ** 1.0.0
After fs.reset
[1] = {
  [path] = /home/loser/aur-packages/tome4/src/t-engine4-src-1.0.0beta42//game/engines/te4-0.9.42.teae
}
[ENGINE] Switching to turn based
Loading savefile 	/save//
Loading savefile 	/save/player/
Make wait background texture 2 : 1440x1080 (2048, 2048)
Lua Error: /engine/Module.lua:391: attempt to index local 'bkgs' (a nil value)
	At [C]:-1 __index
	At /engine/Module.lua:391 
	At [C]:-1 enable
	At /engine/Module.lua:384 loadScreen
	At /engine/Module.lua:541 instanciate
	At /engine/utils.lua:1843 showMainMenu
	At /engine/init.lua:124 
	At [C]:-1 dofile
	At /loader/init.lua:183 
move 1 x 22
resize 1440 x 1080
[DO RESIZE] 1440x1080 (0)
OpenGL max texture size: 8192
move 1 x 52
Thanks for having fun!

skoffer
Posts: 4
Joined: Wed Oct 24, 2012 8:02 am

Re: [b42] Blackscreen on Arch linux x64

#2 Post by skoffer »

Well. While we waiting for developers answer, I can tell that I found out, that you have nil error, because nil is returned by core.display.loadimage function. In turn, this is info about loadimage function:

-- {"loadImage", sdl_load_image},
--- Creates a SDL surface from an image.
-- @param path Image path relative to the module directory.
-- @return An SDL surface.
function loadImage (path)


So, that can mean only one thing - for some reason, SDL do not like the idea to download png file. Guess it's another SDL mismatch.

You can make following changes to src/core_lua.c:
-1317: if (!*s) return 0;
+1317: if (!*s) {
+1318: printf("IMG_Load_RW: %s\n", IMG_GetError());
+1319: return 0;
+1319: }

And take a look at the output of the error message. In my case it was:
IMG_Load_RW: Failed loading png_set_longjmp_fn: /usr/lib64/libpng12.so.0: undefined symbol: _png_set_longjmp_fn

As I have said - SDL version mismatch.

skoffer
Posts: 4
Joined: Wed Oct 24, 2012 8:02 am

Re: [b42] Blackscreen on Arch linux x64

#3 Post by skoffer »

:-( It's quite inconvinient that I am unable to edit my messages, so I write another post (sorry Moderator, you can kill them if you want to).

All you need to do is update your libpng library. And check sdl dependancies. Than everything should be all right. May be it should be added to wiki, that libpng should be at least 1.5.10?

Post Reply