Currently Online

Latest Posts

Topic: How to use wl_create_spritesheet ?

MarkMcWire
Avatar
Joined: 2017-02-08, 21:06
Posts: 294
Ranking
Tribe Member
Location: Eisenach, Germany
Posted at: 2021-06-26, 16:13

I tried to create spritsheets for my europeans tribe. But it won't work.

solus@solus-pc ~/Git/widelands $ ./wl_create_spritesheet
ERROR: Usage: ./wl_create_spritesheet <mapobject_name> <animation_name> <existing-output-path>
solus@solus-pc ~/Git/widelands $ ./wl_create_spritesheet "europeans_builder" "working" test
INFO: Setting initializer thread.
INFO: selected language: en
INFO: using locale en_US
INFO: Graphics: Try to set Videomode 1x1
INFO: Graphics: OpenGL: Version "4.6.0 NVIDIA 465.31"
INFO: Graphics: SDL_GL_RED_SIZE is 8
INFO: Graphics: SDL_GL_GREEN_SIZE is 8
INFO: Graphics: SDL_GL_BLUE_SIZE is 8
INFO: Graphics: SDL_GL_ALPHA_SIZE is 0
INFO: Graphics: SDL_GL_BUFFER_SIZE is 24
INFO: Graphics: SDL_GL_DOUBLEBUFFER is 1
INFO: Graphics: SDL_GL_DEPTH_SIZE is 24
INFO: Graphics: SDL_GL_STENCIL_SIZE is 0
INFO: Graphics: SDL_GL_ACCUM_RED_SIZE is 16
INFO: Graphics: SDL_GL_ACCUM_GREEN_SIZE is 16
INFO: Graphics: SDL_GL_ACCUM_BLUE_SIZE is 16
INFO: Graphics: SDL_GL_ACCUM_ALPHA_SIZE is 16
INFO: Graphics: SDL_GL_STEREO is 0
INFO: Graphics: SDL_GL_MULTISAMPLEBUFFERS is 0
INFO: Graphics: SDL_GL_MULTISAMPLESAMPLES is 0
INFO: Graphics: SDL_GL_ACCELERATED_VISUAL is 1
INFO: Graphics: SDL_GL_CONTEXT_MAJOR_VERSION is 2
INFO: Graphics: SDL_GL_CONTEXT_MINOR_VERSION is 1
INFO: Graphics: SDL_GL_CONTEXT_FLAGS is 0
INFO: Graphics: SDL_GL_CONTEXT_PROFILE_MASK is 0
INFO: Graphics: SDL_GL_SHARE_WITH_CURRENT_CONTEXT is 0
INFO: Graphics: SDL_GL_FRAMEBUFFER_SRGB_CAPABLE is 0
INFO: Graphics: OpenGL: Double buffering enabled
INFO: Graphics: OpenGL: Max texture size: 32768
INFO: Graphics: OpenGL: ShadingLanguage: "4.60 NVIDIA"
INFO: **** GRAPHICS REPORT ****
INFO: VIDEO DRIVER GLVND x11
INFO: Display #0: 1920x1200 @ 60hz SDL_PIXELFORMAT_RGB888
ERROR: Exception: Unknown map object type 'europeans_builder'.

=================================================================
==10811==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 920 byte(s) in 5 object(s) allocated from:
#0 0x7fb79e2e5ae7 in calloc (/usr/lib/libasan.so.6+0xceae7)
#1 0x7fb797eab232 (<unknown module>)

Direct leak of 520 byte(s) in 13 object(s) allocated from:
#0 0x7fb79e2e5917 in malloc (/usr/lib/libasan.so.6+0xce917)
#1 0x7fb797ebacd9 (<unknown module>)

Direct leak of 152 byte(s) in 1 object(s) allocated from:
#0 0x7fb79e2e5ae7 in calloc (/usr/lib/libasan.so.6+0xceae7)
#1 0x7fb79c0312b1 (/usr/lib/libSDL2-2.0.so.0+0xa32b1)

Direct leak of 96 byte(s) in 3 object(s) allocated from:
#0 0x7fb79e2e5917 in malloc (/usr/lib/libasan.so.6+0xce917)
#1 0x7fb797eb13ff (<unknown module>)

Direct leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x7fb79e2e5917 in malloc (/usr/lib/libasan.so.6+0xce917)
#1 0x7fb797eb1869 (<unknown module>)

Indirect leak of 1757 byte(s) in 8 object(s) allocated from:
#0 0x7fb79e2e5cd0 in __interceptor_realloc (/usr/lib/libasan.so.6+0xcecd0)
#1 0x7fb797eb1624 (<unknown module>)

Indirect leak of 80 byte(s) in 2 object(s) allocated from:
#0 0x7fb79e2e5917 in malloc (/usr/lib/libasan.so.6+0xce917)
#1 0x7fb797eb23b4 (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x7fb79e2e5917 in malloc (/usr/lib/libasan.so.6+0xce917)
#1 0x7fb797eb1869 (<unknown module>)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
#0 0x7fb79e2e5917 in malloc (/usr/lib/libasan.so.6+0xce917)
#1 0x7fb797eb10d6 (<unknown module>)

SUMMARY: AddressSanitizer: 3597 byte(s) leaked in 35 allocation(s).

My widelands project: https://github.com/widelands/wl_addons_server/tree/master/addons/europeans_tribe.wad

Top Quote
Nordfriese
Avatar
Joined: 2017-01-17, 18:07
Posts: 1454
Ranking
One Elder of Players
Location: 0x55555d3a34c0
Posted at: 2021-06-26, 16:21

The tool does not load add-ons by default. As a workaround you can apply the attached patch and recompile (you may need to adjust the path in the patch if your homedir is not ~/.widelands).


Attachment: patch.txt (968 bytes)

Top Quote