This is an old revision of the document!
This page is not yet adapted for Transport Fever 3. The content may be outdated.
Errors
Ocassionally there are some error messages caused by the game or some mods. The list is a compilation of known error messages and possible solutions. The list does not include all possible error messages.
Missing resources
| X resource file(s) are missing: res/… | some resources are missing (removed mod?) and can't be covered by the fallback mechanism | restore or replace missing files | |
| c:\build\tpf2_steam\src\lib\util\filesystem.cpp:316: FileSystem::AddArchive([…]): Assertion `it→second.archiveId < 0' failed. | the models.zip archive in /res/models/ is missing | validate game files |
Models
| Error Description | Potentially caused by | Possible Solution | External information |
|---|---|---|---|
| Group […] has 1 materials but mesh has 3 groups | missing values in the mdl definition of a model part | add missing material references | thread (german) |
| Key:type invalid material type: […] | material uses deprecated material type | change material to supported type | |
| c:\build\tpf2_steam\src\lib\model\metadatamap.h:26: […] : Assertion `it != m_key2value.end()' failed. | Some configuration entry in metadata is missing | add the missing config value |
Scripts
| Error Description | Potentially caused by | Possible Solution | External information |
|---|---|---|---|
| attempt to call upvalue 'scale' (a number value) | coding mistake in lua script | ? | ? |
| attempt to get length of local "ff" (a nil value) | coding mistake in lua script | ? | ? |
| attempt to call field 'rotX' (a nil value) | coding mistake in lua script | ? | ? |
| creating globals by assignment is not allowed (variable was […] ) Did you forget to add 'local' before your variable? | global variables are not allowed | add 'local' before the variable | |
| Assertion 'it→second.second == 1' failed | a snapNode has more than one edge beginning or ending at its position | make sure that only one edge is at that node. |
Terrain Calculation
| Error Description | Potentially caused by | Possible Solution | External information |
|---|---|---|---|
| Tesselation error for terrain alignment: Face: […] Slope low: […] Slope high: […] Optional: […] |
Vehicles
| Error Description | Potentially caused by | Possible Solution | External information |
|---|---|---|---|
| railVehicle/configs/axles: mesh […] does not exist this error is usually caused by modding | the mdl has a defect axle config entry that points to a mesh that is not part of the vehicle | fix the mdl config reference | |
| c:\build\transport_fever_2\steam\transport_fever_2_release\src\game\model\transformator_util_engine.cpp:358: […] : Assertion `crewModelsIt != crewRep→tvModelId2crewModelIds.end()' failed. | some defect vehicle crew seat config | ? | |
| res/config/multiple_unit/[…].lua The vehicle […] does not exist. | A multiple unit config references a non existant model | fix the reference in the multiple unit file |
Transport Network / Simulation
| Error Description | Potentially caused by | Possible Solution | External information |
|---|---|---|---|
| c:\build\transport_fever_2\steam\transport_fever_2_release\src\game\gamestate.cpp:391: […]: Assertion `dst.edges.size() == src.edges.size()' failed. | |||
| c:\build\transport_fever_2\steam\transport_fever_2_release\src\game\ecs\simpersonsystem.cpp:228: […] : Assertion `!fileNames.empty()' failed. | |||
| c:\build\tpf2_steam\src\game\collision_shape_lib.cpp:739: […] : Assertion `m_visited' failed. | Problem with collision calculation | ||
| c:\build\tpf2_steam\src\game\transport\simentityupdatehelper.cpp:1176: ApplySimPersonMovingData([…]): Assertion `!path.Empty()' failed. | |||
| c:\build\tpf2_steam\src\game\urbansim\parcel_upgrade_util.cpp:86: struct construction_builder_util::Proposal::ConstructionEntity __cdecl parcel_util::`anonymous-namespace'::CreateBuilding(): Assertion `result.construction.terrainAlignmentLists.size() == 1 && result.construction.terrainAlignmentLists[0].faces.empty()' failed. | Problem with some construction upgrade |
Rendering / Textures
| Error Description | Potentially caused by | Possible Solution | External information |
|---|---|---|---|
| c:\build\transport_fever_2\steam\transport_fever_2_release\src\lib\renderer\model\dynamicmodelrenderer.cpp:166: […]: Assertion `count > 0' failed. | |||
| c:\build\transport_fever_2\steam\transport_fever_2_release\src\lib\renderer\tex_load.cpp:342: […] : Assertion `img.width % 2 == 0 && img.height % 2 == 0' failed. | Textures with non power of 2 resolution in combination with restrictive graphic card. | Change texture side length to a power of 2 number | thread (german) |
| c:\build\tpf2_steam\src\lib\renderer\tex_load.cpp:820: […] : Assertion `redGreen == (format.Internal == gli::gl::INTERNAL_RG_ATI2N_UNORM)' failed. | A normalmap texture file does not match to the specified compression attribute in the material file. | Fix material configuration | |
| c:\build\tpf2_steam\include\gli\core\storage_linear.ini Line: 180 Expression: (BaseLevel >= 0 && BaseLevel < this→levels()) | Texture error | ? | |
| c:\build\tpf2_steam\src\lib\renderer\tex_load.cpp:694: LoadTex2D([…]): Assertion `false' failed. | Texture load error | ||
| c:\build\tpf2_steam\src\lib\ecs\engine.h:275: […] Assertion `it != components.end()' failed. | defect mesh blob data |
Mouse Input
| Error Description | Potentially caused by | Possible Solution | External information |
|---|---|---|---|
| There is no cursor | problems with OS cursor | deactivate hardware cursor in Settings > Advanced | thread (german) |
| There is an area at the right screen edge that can't be clicked at in fullscreen mode | there is an invisible overlay by the Windows 10 Game Bar | deactivate game bar |
External libraries & Graphic Cards
| Error Description | Potentially caused by | Possible Solution | External information |
|---|---|---|---|
| WARNING: Too many temp register is used in Fragment shader, it may cause slow execution. | |||
| OpenGL Error File name: ssaoMain Error: undefinded function call: applyFog(vf4;). Function not found. | Outdated or missing OpenGL library components (linux) | Update library modules | thread (german) |
| error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory | Missing libpng12 library in some linux versions | manually install the missing library | |
| /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by ./TransportFever2) /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by ./TransportFever2) | some library is not available in the correct version | manually fetch the missing library version | thread (german) |
| Mosaic effect with purple patches | An Intel HD graphic chip is used Outdated graphic card drivers are used | Switch to dedicated graphic cards Update graphic card drivers | thread (german) |
| Black textures in game | corrupted texture cache | delete the texture cache folder in userdata | thread (german) |
| ERROR: Undefined function call: "transformNormal(vf3;)". Function not found. ERROR: Undefined function call: "getLevelColor(vf3;i1;vf3;vf2;vf3;vf3;vf3;)". Function not found. | Deprecated OpenGL version |
Misc
| Error Description | Potentially caused by | Possible Solution | External information |
|---|---|---|---|
| c:\build\tpf2_steam\src\lib\lua\error_handling.cpp:41: lua::Fail([…]): Assertion `false' failed. | a major lua error occured |