Im making a unit for my goblin faction which uses a flaming torch. I tried to use the mesh bound particles feature but the game crashes.
I'm using the lastest 64bit Linux release. Commenting out the code the game runs fine, also binding the particles to a non-existent mesh gives an error in terminal but the game works ok. Binding particle to a mesh crashes on startup and give the following error in terminal -
megaglest v3.11.1
Compiled using: GNUC: 40603 [64bit] on: Mar 9 2015 19:36:49 platform: Linux-X64 endianness: little
GIT: [Rev: 5090.7f21f4c] - using STREFLOP [SSE] - [no-denormals]
Reverting tileset from [autumn] to [pine_rock]
*ERROR* [2015-03-11 17:19:04] In [/home/megaglest/gitglest/megaglest-source/source/glest_game/types/skill_type.cpp::load Line 485] WARNING CANNOT LOAD MODEL [/home/will/mg/techs/megapack/factions/goblins/units/crusher/models/crusher_idle1.g3d] for parentLoader [/home/will/mg/techs/megapack/factions/goblins/units/crusher/crusher.xml]
*ERROR* [2015-03-11 17:19:04] In [/home/megaglest/gitglest/megaglest-source/source/glest_game/types/skill_type.cpp::load Line 485] WARNING CANNOT LOAD MODEL [/home/will/mg/techs/megapack/factions/goblins/units/goblin_boss/models/boss_idle6.g3d] for parentLoader [/home/will/mg/techs/megapack/factions/goblins/units/goblin_boss/goblin_boss.xml]
*ERROR* [2015-03-11 17:19:04] In [/home/megaglest/gitglest/megaglest-source/source/glest_game/types/skill_type.cpp::load Line 485] WARNING CANNOT LOAD MODEL [/home/will/mg/techs/megapack/factions/goblins/units/goblin_warrior/models/warrior_idle1.g3d] for parentLoader [/home/will/mg/techs/megapack/factions/goblins/units/goblin_warrior/goblin_warrior.xml]
WARNING, unit type [hoard] has one or more duplicate resource requirements
Game unique identifier is: b48601da-c812-11e4-b5b1-85e610eb9574
In [/home/megaglest/gitglest/megaglest-source/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5673] Error detected: signal 11:
Error saved to logfile [/home/will/.megaglest/error.log]
*ERROR* [2015-03-11 17:19:06] In [/home/megaglest/gitglest/megaglest-source/source/glest_game/main/main.cpp::handleRuntimeError Line: 641] [In [/home/megaglest/gitglest/megaglest-source/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5673] Error detected: signal 11:
] gameInitialized = 1, program = 0x191cc10
*ERROR* [2015-03-11 17:19:07] In [/home/megaglest/gitglest/megaglest-source/source/glest_game/main/main.cpp::handleRuntimeError Line: 660] [In [/home/megaglest/gitglest/megaglest-source/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5673] Error detected: signal 11:
Stack Trace:
./megaglest:Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool)address [0x6f7ef8] line: 651
./megaglest() [0x6f817f]address [0x6f817f]
/lib/x86_64-linux-gnu/libpthread.so.0:()address [0x7ff53396fc90] line: 0
./megaglest:Glest::Game::Unit::setMeshPosInParticleSystem(Shared::Graphics::UnitParticleSystem*)address [0x924f48] line: 4188
./megaglest:Glest::Game::Unit::update()address [0x93b6b9] line: 2753
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x9e8e12] line: 217
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0xa18832] line: 717
./megaglest:Glest::Game::World::update()address [0xa22b9a] line: 876
./megaglest:Glest::Game::Game::update()address [0x5a6b05] line: 2166
./megaglest:Glest::Game::Program::loopWorker()address [0x7142db] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x701557] line: 5522
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x70566a] line: 5770
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7ff530401ec5] line: 0
./megaglest() [0x50fe39]address [0x50fe39]
]
Segmentation fault (core dumped)
This s the XML file -
<?xml version="1.0" standalone="yes"?>
<unit-particle-system>
<texture value="true" path="../fire_totem/images/fire_particle.bmp" luminance="true"/>
<mode value="normal"/>
<primitive value="quad"/>
<offset x="0" y="-0" z="0"/>
<direction x="0.0" y="0.5" z="1.5"/>
<color red="1.0" green="0.0" blue="0.0" alpha="0.9" />
<color-no-energy red="0.0" green="1.0" blue="0.0" alpha="0.9" />
<radius value="0.01" />
<size value="0.5" />
<size-no-energy value="0.5" />
<speed value="0.0" />
<gravity value="0.000"/>
<emission-rate value="1" />
<energy-max value="1" />
<energy-var value="0" />
<relative value="true" />
<meshName value="stick.002"/>
<fixed value="true"/>
<teamcolorNoEnergy value="false" />
<teamcolorEnergy value="false" />
</unit-particle-system>]
commenting out the <meshName> line allows the game to run and the particles show up normally as unit particles.
This is a zipped file of the current Goblins progress and setup.
http://www.tinyupload.org/qbtmd8b6rfy
I'm using Linux so I grabbed the linux binaries instead. Not sure if they also have the fix?
Sadly it didn't work :(
egaglest v3.12-dev
Compiled using: GNUC: 40603 [64bit] on: Mar 15 2015 01:53:44 platform: Linux-X64 endianness: little
GIT: [Rev: 5093.14f04c5] - using STREFLOP [SSE] - [no-denormals]
Reverting tileset from [autumn] to [pine_rock]
*ERROR* [2015-03-15 14:54:03] In [/home/jenkins/build/workspace/megaglest-source_l64/source/glest_game/types/skill_type.cpp::load Line 485] WARNING CANNOT LOAD MODEL [/home/will/mg/techs/fantasy_pack/factions/goblins/units/crusher/models/crusher_idle1.g3d] for parentLoader [/home/will/mg/techs/fantasy_pack/factions/goblins/units/crusher/crusher.xml]
*ERROR* [2015-03-15 14:54:03] In [/home/jenkins/build/workspace/megaglest-source_l64/source/glest_game/types/skill_type.cpp::load Line 485] WARNING CANNOT LOAD MODEL [/home/will/mg/techs/fantasy_pack/factions/goblins/units/goblin_boss/models/boss_idle6.g3d] for parentLoader [/home/will/mg/techs/fantasy_pack/factions/goblins/units/goblin_boss/goblin_boss.xml]
*ERROR* [2015-03-15 14:54:03] In [/home/jenkins/build/workspace/megaglest-source_l64/source/glest_game/types/skill_type.cpp::load Line 485] WARNING CANNOT LOAD MODEL [/home/will/mg/techs/fantasy_pack/factions/goblins/units/goblin_warrior/models/warrior_idle1.g3d] for parentLoader [/home/will/mg/techs/fantasy_pack/factions/goblins/units/goblin_warrior/goblin_warrior.xml]
Game unique identifier is: 18330dbe-cb23-11e4-b3aa-21c3c049d9b9
In [/home/jenkins/build/workspace/megaglest-source_l64/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5673] Error detected: signal 11:
Error saved to logfile [/home/will/.megaglest/error.log]
*ERROR* [2015-03-15 14:54:04] In [/home/jenkins/build/workspace/megaglest-source_l64/source/glest_game/main/main.cpp::handleRuntimeError Line: 641] [In [/home/jenkins/build/workspace/megaglest-source_l64/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5673] Error detected: signal 11:
] gameInitialized = 1, program = 0x29b3930
*ERROR* [2015-03-15 14:54:05] In [/home/jenkins/build/workspace/megaglest-source_l64/source/glest_game/main/main.cpp::handleRuntimeError Line: 660] [In [/home/jenkins/build/workspace/megaglest-source_l64/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5673] Error detected: signal 11:
Stack Trace:
./megaglest:Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool)address [0x6f7ef8] line: 651
./megaglest() [0x6f817f]address [0x6f817f]
/lib/x86_64-linux-gnu/libpthread.so.0:()address [0x7f2fe3fdfc90] line: 0
./megaglest:Glest::Game::Unit::setMeshPosInParticleSystem(Shared::Graphics::UnitParticleSystem*)address [0x924f88] line: 4194
./megaglest:Glest::Game::Unit::update()address [0x93b709] line: 2753
./megaglest:Glest::Game::UnitUpdater::updateUnit(Glest::Game::Unit*)address [0x9e8e62] line: 217
./megaglest:Glest::Game::World::updateAllFactionUnits()address [0xa18882] line: 717
./megaglest:Glest::Game::World::update()address [0xa22bea] line: 876
./megaglest:Glest::Game::Game::update()address [0x5a6b05] line: 2166
./megaglest:Glest::Game::Program::loopWorker()address [0x7142db] line: 476
./megaglest:Glest::Game::glestMain(int, char**)address [0x701557] line: 5522
./megaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x70566a] line: 5770
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f2fe0a71ec5] line: 0
./megaglest() [0x50fe39]address [0x50fe39]
]
Segmentation fault (core dumped)