Error: No available language packs (invalid versions?)

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Post Reply
Eskymak
Engineer
Engineer
Posts: 18
Joined: 14 Jan 2010 01:08
Location: Athens
Contact:

Error: No available language packs (invalid versions?)

Post by Eskymak »

Hello, yesterday i just "succefully" compiled OpenTTD 1.4.0 dedicated server for openwrt running on powerpc cpu based device.
But, when im tring to run it, im getting:
Error: No available language packs (invalid versions?)

Code: Select all

root@Jurris:/sd/bin# ./openttd -D -d 3
dbg: [misc] /root/.openttd/ found as config directory
dbg: [misc] /root/.openttd/ found as personal directory
dbg: [misc] Scanning for tars
dbg: [misc] Found tar '/sd/bin/baseset/opengfx-0.5.0.tar' with 10 new files
 dbg: [misc] Scan complete, found 1 files
dbg: [net] Starting dedicated version 1.4.0
dbg: [misc] /sd/bin/lang/afrikaans.lng is not a valid language file
...
dbg: [misc] /sd/bin/lang/welsh.lng is not a valid language file
Error: No available language packs (invalid versions?)
I had to made just two changes to src to compile
commedted include <execinfo.h>
renamed __GLIBC__ to __NOGLIBC__

Configure

Code: Select all

CC=powerpc-openwrt-linux-gcc CXX=powerpc-openwrt-linux-g++ ./configure \
--build=x86_64-linux-gnu --host=powerpc-openwrt-linux-uclibcspe \
--enable-dedicated \
--without-zlib --without-liblzma --without-liblzo2 --without-png --without-xdg-basedir
Yep, i found this and i will try that but id doesnt seem to be helpful.
http://ipv4.tt-forums.net/viewtopic.php ... &view=next

Any ideas?
Czech OpenTTD translator :-)
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: Error: No available language packs (invalid versions?)

Post by Lord Aro »

where is the ottd binary? the lang files (along with everything else in the bin/bundle folder) should be with it, or at least in a place that can be found (see readme section 4.2)

also, compiling without any of those libraries will mean that the vast majority of newgrfs or savegames cannot be loaded
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
Eskymak
Engineer
Engineer
Posts: 18
Joined: 14 Jan 2010 01:08
Location: Athens
Contact:

Re: Error: No available language packs (invalid versions?)

Post by Eskymak »

Hello, thanks for fast response.
Binary is in

Code: Select all

/sd/bin/
and languages files in

Code: Select all

/sd/bin/lang/
According to the debug output, openttd found them but dont like them and i dont know why.

I know that libs can be "useful" for this kind of stuff but actually i need to run it atleast at this state. :-)
Czech OpenTTD translator :-)
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Error: No available language packs (invalid versions?)

Post by planetmaker »

Three things:
If you build for a server, it's usually advisable to use

Code: Select all

make bundle
and copy bundle/* to the dir where you want the binary (with all its dependencies) to reside and run the server from. That way you can also compile a new binary without shutting down the server

DO NOT USE ROOT to run openttd (or anything else unless absolutely mandatory). Create a normal unpriviliged user and use it.

You should seriously consider to install liblzma. Servers without support for compressed savegames will be a big pain to use.

Besides these, I'm not sure what things your source modifications break or don't break. Why are they necessary?
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Error: No available language packs (invalid versions?)

Post by Eddi »

Eskymak wrote: According to the debug output, openttd found them but dont like them and i dont know why.
99% of the times this means that the lang files are leftovers of a different compile than your binary.
Eskymak
Engineer
Engineer
Posts: 18
Joined: 14 Jan 2010 01:08
Location: Athens
Contact:

Re: Error: No available language packs (invalid versions?)

Post by Eskymak »

Hello,
planetmaker:
I will make bundle and then create nonroot user a try again.

I had to make those modification in order to get rid of build errors. I will provide make log from next build + details about modifications made. :-)

Eddi: I was compiling just this and also used make -mrproper to get rid of files from previous failed build. Anyway, i can donwnload all sources again for sure.

So when i came home, i will let you know. Any other ideas are still welcome.

Thanks guys!
Czech OpenTTD translator :-)
Eskymak
Engineer
Engineer
Posts: 18
Joined: 14 Jan 2010 01:08
Location: Athens
Contact:

Re: Error: No available language packs (invalid versions?)

Post by Eskymak »

Ok guys, I completly removed whole openttd-1.4.0 folder and did everything again. I did that also after all failed compilations, so all builds are from clean directory + necesary changes mades. Same results anyway. :-(

More details

Code: Select all

eskymak@unknown:~/turris/openttd-1.4.0$ CC=powerpc-openwrt-linux-gcc CXX=powerpc-openwrt-linux-g++ ./configure \
> --build=x86_64-linux-gnu --host=powerpc-openwrt-linux-uclibcspe \
> --enable-dedicated \
> --without-zlib --without-liblzma --without-liblzo2 --without-png --without-xdg-basedir
checking awk... awk
detecting OS... UNIX
checking build system type... x86_64-linux-gnu
checking host system type... powerpc-openwrt-linux-uclibcspe
checking universal build... no
checking build cc... x86_64-linux-gnu-gcc
checking host cc... powerpc-openwrt-linux-uclibcspe-gcc
checking build c++... x86_64-linux-gnu-g++
checking host c++... powerpc-openwrt-linux-uclibcspe-g++
checking host strip... powerpc-openwrt-linux-uclibcspe-strip
checking builtin depend... yes
checking makedepend... disabled
detecting cpu-type... 32 bits
detecting SSE... not found
checking static... no
checking unicode... no
using debug level... no
using desync debug level... no
using link time optimization... no
checking OSX sysroot... not OSX, skipping
checking Allegro... dedicated server, skipping
checking SDL... dedicated server, skipping
checking COCOA... dedicated server, skipping
checking GDI video driver... dedicated server, skipping
checking dedicated... found
checking console application... not Windows, skipping
checking network... found
checking squirrel... found
checking translator... no
checking assert... disabled
checking zlib... disabled
WARNING: zlib was not detected or disabled
WARNING: OpenTTD doesn't require zlib, but it does mean that many features
WARNING: (like loading most old savegames/scenarios, loading heightmaps,
WARNING: using PNG, or using fonts, ...) will be disabled.
WARNING: We strongly suggest you to install zlib.
checking liblzma... disabled
WARNING: lzma was not detected or disabled
WARNING: OpenTTD doesn't require lzma, but it does mean that many features
WARNING: (like loading most savegames/scenarios and joining most servers)
WARNING: will be disabled.
WARNING: We strongly suggest you to install liblzma.
configure: error: no liblzma detected
checking lzo2... disabled
WARNING: liblzo2 was not detected or disabled
WARNING: OpenTTD doesn't require liblzo2, but it does mean that
WARNING: loading old savegames/scenarios will be disabled.
WARNING: We strongly suggest you to install liblzo2.
checking libxdg_basedir... disabled
checking libpng... disabled
checking libfreetype... dedicated server, skipping
checking libfontconfig... dedicated server, skipping
checking libicu... dedicated server, skipping
checking psp-config... not PSP, skipping
checking libtimidity... not found
checking direct-music... not Windows, skipping
checking sort... sort
checking endianess... AUTO
suppress language errors... no
checking stripping... powerpc-openwrt-linux-uclibcspe-strip -s
checking distcc... no (only used when forced)
checking ccache... no (only used when forced)
checking grfcodec... needs at least version 6.0.2 (r949), disabled
checking nforenum... needs at least version 6.0.2 (r949), disabled
checking OSX application bundle... not OSX, skipping
checking revision... source tarball
checking iconv... not OSX, skipping
personal home directory... .openttd
shared data directory... none
installation directory... /
icon theme directory... share/icons/hicolor
manual page directory... share/man/man6
menu item directory... share/applications
using CFLAGS_BUILD...  -Wall -Wno-multichar -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wno-unused-parameter -Wredundant-decls -Wformat=2 -Wformat-security -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -Winit-self -fno-strict-aliasing -Wcast-qual -fno-strict-overflow -Wnon-virtual-dtor -Wno-free-nonheap-object -rdynamic -D_FORTIFY_SOURCE=2 -O1 -DNDEBUG
using CXXFLAGS_BUILD...  -std=gnu++0x -Wno-narrowing
using LDFLAGS_BUILD...  -rdynamic
using CFLAGS... -O2 -fomit-frame-pointer  -Wall -Wno-multichar -Wsign-compare -Wundef -Wwrite-strings -Wpointer-arith -W -Wno-unused-parameter -Wredundant-decls -Wformat=2 -Wformat-security -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-but-set-parameter -Winit-self -fno-strict-aliasing -Wcast-qual -fno-strict-overflow -Wnon-virtual-dtor -rdynamic -DUNIX -D_FORTIFY_SOURCE=2 -I/home/eskymak/turris/openttd-1.4.0/src/3rdparty/squirrel/include -DDEDICATED -DENABLE_NETWORK -DNDEBUG -DWITH_PERSONAL_DIR -DPERSONAL_DIR=\".openttd\" -DGLOBAL_DATA_DIR=\"/usr/local/share/games/openttd\"
using CXXFLAGS...  -std=gnu++0x
using LDFLAGS... -lstdc++ -lpthread -lc  -rdynamic
Generating Makefile...
Generating menu item...
Generating lang/Makefile...
Generating setting/Makefile...
Generating grf/Makefile...
Generating objs/Makefile...
eskymak@unknown:~/turris/openttd-1.4.0$ make bundle
make[1]: Entering directory `/home/eskymak/turris/openttd-1.4.0/objs/lang'
[LANG] Compiling and Linking endian_check
[LANG] Testing endianness for host
[LANG] Compiling core/alloc_func.cpp
[LANG] Compiling string.cpp
[LANG] Compiling strgen/strgen_base.cpp
[LANG] Compiling strgen/strgen.cpp
[LANG] Compiling getoptdata.cpp
[LANG] Compiling and Linking strgen
[LANG] Generating table/strings.h
[LANG] Compiling language afrikaans
[LANG] Compiling language arabic_egypt
[LANG] Compiling language basque
[LANG] Compiling language belarusian
[LANG] Compiling language brazilian_portuguese
[LANG] Compiling language bulgarian
[LANG] Compiling language catalan
[LANG] Compiling language croatian
[LANG] Compiling language czech
[LANG] Compiling language danish
[LANG] Compiling language dutch
[LANG] Compiling language english_AU
[LANG] Compiling language english
[LANG] Compiling language english_US
[LANG] Compiling language esperanto
[LANG] Compiling language estonian
[LANG] Compiling language faroese
[LANG] Compiling language finnish
[LANG] Compiling language french
[LANG] Compiling language gaelic
[LANG] Compiling language galician
[LANG] Compiling language german
[LANG] Compiling language greek
[LANG] Compiling language hebrew
[LANG] Compiling language hungarian
[LANG] Compiling language icelandic
[LANG] Compiling language indonesian
[LANG] Compiling language irish
[LANG] Compiling language italian
[LANG] Compiling language japanese
[LANG] Compiling language korean
[LANG] Compiling language latvian
[LANG] Compiling language lithuanian
[LANG] Compiling language luxembourgish
[LANG] Compiling language malay
[LANG] Compiling language norwegian_bokmal
[LANG] Compiling language norwegian_nynorsk
[LANG] Compiling language polish
[LANG] Compiling language portuguese
[LANG] Compiling language romanian
[LANG] Compiling language russian
[LANG] Compiling language serbian
[LANG] Compiling language simplified_chinese
[LANG] Compiling language slovak
[LANG] Compiling language slovenian
[LANG] Compiling language spanish
[LANG] Compiling language swedish
[LANG] Compiling language tamil
[LANG] Compiling language thai
[LANG] Compiling language traditional_chinese
[LANG] Compiling language turkish
[LANG] Compiling language ukrainian
[LANG] Compiling language vietnamese
[LANG] Compiling language welsh
make[1]: Leaving directory `/home/eskymak/turris/openttd-1.4.0/objs/lang'
make[1]: Entering directory `/home/eskymak/turris/openttd-1.4.0/objs/setting'
[SETTING] Compiling and Linking endian_check
[SETTING] Testing endianness for host
[SETTING] Compiling core/alloc_func.cpp
[SETTING] Compiling string.cpp
[SETTING] Compiling ini_load.cpp
[SETTING] Compiling settingsgen/settingsgen.cpp
[SETTING] Compiling getoptdata.cpp
[SETTING] Compiling and Linking settings_gen
[SETTING] Generating table/settings.h
make[1]: Leaving directory `/home/eskymak/turris/openttd-1.4.0/objs/setting'
make[1]: Entering directory `/home/eskymak/turris/openttd-1.4.0/objs/extra_grf'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/eskymak/turris/openttd-1.4.0/objs/extra_grf'
make[1]: Entering directory `/home/eskymak/turris/openttd-1.4.0/objs/release'
[SRC] Compiling and Linking endian_check
[SRC] Testing endianness for target
[SRC] Compiling and linking depend
[SRC] DEP CHECK (all files)
make[1]: Leaving directory `/home/eskymak/turris/openttd-1.4.0/objs/release'
make[1]: Entering directory `/home/eskymak/turris/openttd-1.4.0/objs/release'
[SRC] Compiling ai/ai_config.cpp
[SRC] Compiling ai/ai_core.cpp
[SRC] Compiling ai/ai_gui.cpp
[SRC] Compiling ai/ai_info.cpp
[SRC] Compiling ai/ai_instance.cpp
[SRC] Compiling ai/ai_scanner.cpp
[SRC] Compiling aircraft_cmd.cpp
[SRC] Compiling aircraft_gui.cpp
[SRC] Compiling airport.cpp
[SRC] Compiling airport_gui.cpp
[SRC] Compiling animated_tile.cpp
[SRC] Compiling articulated_vehicles.cpp
[SRC] Compiling autoreplace_cmd.cpp
[SRC] Compiling autoreplace.cpp
[SRC] Compiling autoreplace_gui.cpp
[SRC] Compiling base_consist.cpp
[SRC] Compiling blitter/base.cpp
[SRC] Compiling blitter/null.cpp
[SRC] Compiling bmp.cpp
[SRC] Compiling bootstrap_gui.cpp
[SRC] Compiling bridge_gui.cpp
[SRC] Compiling bridge_map.cpp
[SRC] Compiling build_vehicle_gui.cpp
[SRC] Compiling cargoaction.cpp
[SRC] Compiling cargomonitor.cpp
[SRC] Compiling cargopacket.cpp
[SRC] Compiling cargotype.cpp
[SRC] Compiling clear_cmd.cpp
[SRC] Compiling command.cpp
[SRC] Compiling company_cmd.cpp
[SRC] Compiling company_gui.cpp
[SRC] Compiling console_cmds.cpp
[SRC] Compiling console.cpp
[SRC] Compiling console_gui.cpp
[SRC] Compiling core/alloc_func.cpp
[SRC] Compiling core/bitmath_func.cpp
[SRC] Compiling core/geometry_func.cpp
[SRC] Compiling core/math_func.cpp
[SRC] Compiling core/pool_func.cpp
[SRC] Compiling core/random_func.cpp
[SRC] Compiling cpu.cpp
[SRC] Compiling crashlog.cpp
[SRC] Compiling currency.cpp
[SRC] Compiling date.cpp
[SRC] Compiling date_gui.cpp
[SRC] Compiling debug.cpp
[SRC] Compiling dedicated.cpp
[SRC] Compiling depot_cmd.cpp
[SRC] Compiling depot.cpp
[SRC] Compiling depot_gui.cpp
[SRC] Compiling disaster_cmd.cpp
[SRC] Compiling dock_gui.cpp
[SRC] Compiling driver.cpp
[SRC] Compiling economy.cpp
[SRC] Compiling effectvehicle.cpp
[SRC] Compiling elrail.cpp
[SRC] Compiling engine.cpp
[SRC] Compiling engine_gui.cpp
[SRC] Compiling error_gui.cpp
[SRC] Compiling fileio.cpp
[SRC] Compiling fios.cpp
[SRC] Compiling fios_gui.cpp
[SRC] Compiling fontcache.cpp
[SRC] Compiling fontdetection.cpp
[SRC] Compiling game/game_config.cpp
[SRC] Compiling game/game_core.cpp
[SRC] Compiling game/game_info.cpp
[SRC] Compiling game/game_instance.cpp
[SRC] Compiling game/game_scanner.cpp
[SRC] Compiling game/game_text.cpp
[SRC] Compiling gamelog.cpp
[SRC] Compiling genworld.cpp
[SRC] Compiling genworld_gui.cpp
[SRC] Compiling gfx.cpp
[SRC] Compiling gfxinit.cpp
[SRC] Compiling gfx_layout.cpp
[SRC] Compiling goal.cpp
[SRC] Compiling goal_gui.cpp
[SRC] Compiling graph_gui.cpp
[SRC] Compiling ground_vehicle.cpp
[SRC] Compiling group_cmd.cpp
[SRC] Compiling group_gui.cpp
[SRC] Compiling heightmap.cpp
[SRC] Compiling highscore.cpp
[SRC] Compiling highscore_gui.cpp
[SRC] Compiling hotkeys.cpp
[SRC] Compiling cheat.cpp
[SRC] Compiling cheat_gui.cpp
[SRC] Compiling industry_cmd.cpp
[SRC] Compiling industry_gui.cpp
[SRC] Compiling ini.cpp
[SRC] Compiling ini_load.cpp
[SRC] Compiling intro_gui.cpp
[SRC] Compiling landscape.cpp
[SRC] Compiling linkgraph/demands.cpp
[SRC] Compiling linkgraph/flowmapper.cpp
[SRC] Compiling linkgraph/linkgraph.cpp
[SRC] Compiling linkgraph/linkgraph_gui.cpp
[SRC] Compiling linkgraph/linkgraphjob.cpp
[SRC] Compiling linkgraph/linkgraphschedule.cpp
[SRC] Compiling linkgraph/mcf.cpp
[SRC] Compiling linkgraph/refresh.cpp
[SRC] Compiling main_gui.cpp
[SRC] Compiling map.cpp
[SRC] Compiling misc_cmd.cpp
[SRC] Compiling misc/countedobj.cpp
[SRC] Compiling misc.cpp
[SRC] Compiling misc/dbg_helpers.cpp
In file included from /home/eskymak/turris/openttd-1.4.0/src/misc/str.hpp:17:0,
                 from /home/eskymak/turris/openttd-1.4.0/src/misc/dbg_helpers.h:18,
                 from /home/eskymak/turris/openttd-1.4.0/src/misc/dbg_helpers.cpp:14:
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In destructor 'CStrA::~CStrA()':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In function 'CStrA ValueStr(Trackdir)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
In function 'CStrA ComposeNameT(E, T&, const char*, E, const char*) [with E = TrackdirBits, T = const char* const [16]]',
    inlined from 'CStrA ValueStr(TrackdirBits)' at /home/eskymak/turris/openttd-1.4.0/src/misc/dbg_helpers.cpp:34:113:
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In function 'CStrA ValueStr(TrackdirBits)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In function 'CStrA ValueStr(DiagDirection)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In function 'CStrA ValueStr(SignalType)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In function 'CStrA TileStr(TileIndex)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
In member function 'void ByteBlob::SmartAlloc(size_t)',
    inlined from 'CStrA DumpTarget::GetCurrentStructName()' at /home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:242:50:
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In member function 'CStrA DumpTarget::GetCurrentStructName()':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In member function 'void DumpTarget::WriteTile(const char*, TileIndex)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In member function 'void DumpTarget::EndStruct()':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp: In member function 'void DumpTarget::BeginStruct(size_t, const char*, const void*)':
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
/home/eskymak/turris/openttd-1.4.0/src/misc/blob.hpp:139:10: warning: attempt to free a non-heap object 'ByteBlob::hdrEmpty' [enabled by default]
[SRC] Compiling misc/getoptdata.cpp
[SRC] Compiling misc_gui.cpp
[SRC] Compiling mixer.cpp
[SRC] Compiling music.cpp
[SRC] Compiling music_gui.cpp
[SRC] Compiling music/null_m.cpp
[SRC] Compiling network/core/address.cpp
[SRC] Compiling network/core/core.cpp
[SRC] Compiling network/core/host.cpp
[SRC] Compiling network/core/packet.cpp
[SRC] Compiling network/core/tcp_admin.cpp
[SRC] Compiling network/core/tcp_connect.cpp
[SRC] Compiling network/core/tcp_content.cpp
[SRC] Compiling network/core/tcp.cpp
[SRC] Compiling network/core/tcp_game.cpp
[SRC] Compiling network/core/tcp_http.cpp
[SRC] Compiling network/core/udp.cpp
[SRC] Compiling network/network_admin.cpp
[SRC] Compiling network/network_client.cpp
[SRC] Compiling network/network_command.cpp
[SRC] Compiling network/network_content.cpp
[SRC] Compiling network/network_content_gui.cpp
[SRC] Compiling network/network.cpp
[SRC] Compiling network/network_gamelist.cpp
[SRC] Compiling network/network_gui.cpp
[SRC] Compiling network/network_chat_gui.cpp
[SRC] Compiling network/network_server.cpp
[SRC] Compiling network/network_udp.cpp
[SRC] Compiling newgrf_airport.cpp
[SRC] Compiling newgrf_airporttiles.cpp
[SRC] Compiling newgrf_canal.cpp
[SRC] Compiling newgrf_cargo.cpp
[SRC] Compiling newgrf_commons.cpp
[SRC] Compiling newgrf_config.cpp
[SRC] Compiling newgrf.cpp
[SRC] Compiling newgrf_debug_gui.cpp
[SRC] Compiling newgrf_engine.cpp
[SRC] Compiling newgrf_generic.cpp
[SRC] Compiling newgrf_gui.cpp
[SRC] Compiling newgrf_house.cpp
[SRC] Compiling newgrf_industries.cpp
[SRC] Compiling newgrf_industrytiles.cpp
[SRC] Compiling newgrf_object.cpp
[SRC] Compiling newgrf_railtype.cpp
[SRC] Compiling newgrf_sound.cpp
[SRC] Compiling newgrf_spritegroup.cpp
[SRC] Compiling newgrf_station.cpp
[SRC] Compiling newgrf_storage.cpp
[SRC] Compiling newgrf_text.cpp
[SRC] Compiling newgrf_town.cpp
[SRC] Compiling newgrf_townname.cpp
[SRC] Compiling news_gui.cpp
[SRC] Compiling object_cmd.cpp
[SRC] Compiling object_gui.cpp
[SRC] Compiling openttd.cpp
[SRC] Compiling order_backup.cpp
[SRC] Compiling order_cmd.cpp
[SRC] Compiling order_gui.cpp
[SRC] Compiling osk_gui.cpp
[SRC] Compiling os/unix/crashlog_unix.cpp
/home/eskymak/turris/openttd-1.4.0/src/os/unix/crashlog_unix.cpp:24:23: fatal error: execinfo.h: No such file or directory
compilation terminated.
make[1]: *** [os/unix/crashlog_unix.o] Error 1
make[1]: Leaving directory `/home/eskymak/turris/openttd-1.4.0/objs/release'
make: *** [all] Error 1
So i opened crashlog_unix.cpp and commented out line 8:

Code: Select all

#	include <execinfo.h>
Where should be this file located?

Next try:

Code: Select all

[SRC] Compiling os/unix/crashlog_unix.cpp
/home/eskymak/turris/openttd-1.4.0/src/os/unix/crashlog_unix.cpp: In member function 'virtual char* CrashLogUnix::LogStacktrace(char*, const char*) const':
/home/eskymak/turris/openttd-1.4.0/src/os/unix/crashlog_unix.cpp:111:52: error: 'backtrace' was not declared in this scope
/home/eskymak/turris/openttd-1.4.0/src/os/unix/crashlog_unix.cpp:113:56: error: 'backtrace_symbols' was not declared in this scope
make[1]: *** [os/unix/crashlog_unix.o] Error 1
make[1]: Leaving directory `/home/eskymak/turris/openttd-1.4.0/objs/release'
make: *** [all] Error 1
This code

Code: Select all

#if defined(__GLIBC__)
		void *trace[64];
		int trace_size = backtrace(trace, lengthof(trace));

		char **messages = backtrace_symbols(trace, trace_size);
		for (int i = 0; i < trace_size; i++) {
			buffer += seprintf(buffer, last, " [%02i] %s\n", i, messages[i]);
		}

Modified to __NOGLIBC__

Code: Select all

#if defined(__NOGLIBC__)
		void *trace[64];
		int trace_size = backtrace(trace, lengthof(trace));

		char **messages = backtrace_symbols(trace, trace_size);
		for (int i = 0; i < trace_size; i++) {
			buffer += seprintf(buffer, last, " [%02i] %s\n", i, messages[i]);
		}
After that, compilation was succefull.

So created new user on my device, uploaded bundle

Code: Select all

]eskymak@Jurris:~/bundle$ ls
COPYING         changelog.txt   known-bugs.txt  media           scripts
ai              docs            lang            openttd
baseset         game            man             readme.txt

and got:

Code: Select all

eskymak@Jurris:~/bundle$ ./openttd -D -d 3
dbg: [misc] /sd/home/eskymak/.openttd/ found as config directory
dbg: [misc] /sd/home/eskymak/.openttd/ found as personal directory
dbg: [misc] Scanning for tars
dbg: [misc] Found tar '/sd/home/eskymak/bundle/baseset/opengfx-0.5.0.tar' with 10 new files
dbg: [misc] Scan complete, found 1 files
dbg: [net] Starting dedicated version 1.4.0
dbg: [misc] /sd/home/eskymak/bundle/lang/afrikaans.lng is not a valid language file
...
dbg: [misc] /sd/home/eskymak/bundle/lang/welsh.lng is not a valid language file
Error: No available language packs (invalid versions?)
Thanks for more ideas :-)
Czech OpenTTD translator :-)
User avatar
adf88
Chief Executive
Chief Executive
Posts: 644
Joined: 14 Jan 2008 15:51
Location: PL

Re: Error: No available language packs (invalid versions?)

Post by adf88 »

Try to figure out which line of the LanguagePackHeader::IsValid() is failing. Endianess problem maybe? Just a blind shot.

Could you hexdump some bytes from the beginning of one of your .lng files?
:] don't worry, be happy and checkout my patches
Eskymak
Engineer
Engineer
Posts: 18
Joined: 14 Jan 2010 01:08
Location: Athens
Contact:

Re: Error: No available language packs (invalid versions?)

Post by Eskymak »

Here is hexdump, i hope its what you wants :-)

Code: Select all

hexdump '/home/eskymak/turris/openttd-1.4.0/bundle/lang/afrikaans.lng' 
0000000 414c 474e a4b9 3c43 6641 6972 616b 6e61
0000010 0073 0000 0000 0000 0000 0000 0000 0000
0000020 0000 0000 0000 0000 6641 6972 616b 6e61
0000030 0073 0000 0000 0000 0000 0000 0000 0000
0000040 0000 0000 0000 0000 6661 5a5f 0041 0000
0000050 0000 0000 0000 0000 0800 0605 0000 0000
0000060 0021 0000 0000 0000 0000 0025 0000 0000
0000070 0028 0000 0000 0000 0100 0068 0000 0000
0000080 0000 0000 0000 0000 0000 0000 0000 0000
0000090 0000 0000 0000 0000 002e 0000 0000 0000
00000a0 002e 0000 0000 0000 002c 0000 0000 0000
00000b0 0000 0000 0436 011b 0000 0000 616d 656c
00000c0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000230 0000 0000 0000 0000 0000 0000 0000 2812
0000240 6e75 6564 6966 656e 2064 7473 6972 676e
0000250 0429 694e 736b 0a00 6150 7373 7361 6569
0000260 7372 5309 6574 6e65 6f6b 6c6f 5003 736f
0000270 4f04 696c 0b65 654c 6577 646e 6865 7761
0000280 0765 6f47 6465 7265 0565 7247 6161 046e
0000290 6f48 7475 590a 7473 7265 4520 7472 0573
00002a0 7453 6161 0a6c 6445 6c65 656d 6174 656c
00002b0 4b0a 706f 7265 4520 7472 0773 694d 6c65
00002c0 6569 0673 7256 6775 6574 4408 6169 616d
00002d0 746e 0365 6f4b 0673 6150 6970 7265 4704
00002e0 756f 0564 6157 6574 0672 6f4b 6972 676e
00002f0 5206 6275 6562 0672 7553 6b69 7265 5309

Yep, next time I wil try -endian with LE / BE

Thanks
Czech OpenTTD translator :-)
Eskymak
Engineer
Engineer
Posts: 18
Joined: 14 Jan 2010 01:08
Location: Athens
Contact:

Re: Error: No available language packs (invalid versions?)

Post by Eskymak »

Haha, it works!

Code: Select all

eskymak@Jurris:~/bundle$ ./openttd
dbg: [sl] Game Load Failed
Internal error: Loader for 'lzma' is not available.
[2014-05-23 12:12:05] dbg: [net] Generating map, please wait...
[2014-05-23 12:12:05] dbg: [net] Map generated, starting game
[2014-05-23 12:12:55] ‎*** Game paused (connecting clients)
[2014-05-23 12:12:57] ‎*** Eskymak has joined the game (Client #3)
[2014-05-23 12:12:57] ‎*** Game unpaused (connecting clients)
configured with -endian BE

Thank you guys!
Czech OpenTTD translator :-)
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Google [Bot] and 12 guests