Crash after detaching leader (v1.2.0)
Posted: Sun Jan 27, 2013 1:14 am
I repaired a French unit that had a leader attached.
Then tried to detached leader and got an error.

Contents of log file
Log date: 2013-01-27 14:07:33
[14:07:33][ee4][3]Commander: The Great War(v 1.1.4)
[14:07:33][ee4][8]Operating system: Windows 7 Service Pack 1
[14:07:33][ee4][8]Number of processors: 4
[14:07:33][ee4][3]Audio device used: Generic Software
[14:07:33][ee4][8]OpenGL 1.5: OK
[14:07:33][ee4][8]OpenGL Context version: 3.1
[14:07:33][ee4][8]OpenGL Vendor: Intel
[14:07:33][ee4][8]OpenGL Renderer: Intel(R) HD Graphics Family
[14:07:33][ee4][3]Setting vsync
[14:07:33][ee4][3]Initializing video player
[14:07:33][ee4][8]Allocating new vertex buffer
[14:07:33][ee4][3]Loading main script
[14:07:33][ee4][3]Loading app script
[14:07:33][ee4][3]Script init
[14:07:33][ee4][3]App version:1.1.4
[14:07:33][ee4][5]Today is: 27.1.2013
[14:07:34][ee4][8]Starting track: main_menu
[14:07:38][ee4][8]Creating new audio source. Count: 0
[14:07:44][ee4][8]Map loaded in 0.033sec
[14:07:45][ee4][8]Maximum texture size: 8192
[14:07:48][ee4][Warning]Scene initialized in: 3.325 seconds
[14:07:48][ee4][Warning] Memory usage: 1634308 bytes
[14:07:48][ee4][Warning] Memory allocation time: 0.001 sec
[14:07:48][ee4][Warning] Memory deallocation time: 0.001 sec
[14:07:49][ee4][8]Starting track: game2
[14:07:49][ee4][Warning]Hud initialized in:0.885 seconds
[14:07:59][ee4][8]Creating new audio source. Count: 1
[14:08:07][ee4][Error]ui/selection_tab.lua:412 ui/selection_tab.lua:412: attempt to index local 'unit' (a nil value)
[14:08:07][ee4][Error]ui/selection_tab.lua:412 ui/selection_tab.lua:412: attempt to index local 'unit' (a nil value)
Consistent error. Reload save and can repeat. Save attached with sequence in next post.
Then tried to detached leader and got an error.

Contents of log file
Log date: 2013-01-27 14:07:33
[14:07:33][ee4][3]Commander: The Great War(v 1.1.4)
[14:07:33][ee4][8]Operating system: Windows 7 Service Pack 1
[14:07:33][ee4][8]Number of processors: 4
[14:07:33][ee4][3]Audio device used: Generic Software
[14:07:33][ee4][8]OpenGL 1.5: OK
[14:07:33][ee4][8]OpenGL Context version: 3.1
[14:07:33][ee4][8]OpenGL Vendor: Intel
[14:07:33][ee4][8]OpenGL Renderer: Intel(R) HD Graphics Family
[14:07:33][ee4][3]Setting vsync
[14:07:33][ee4][3]Initializing video player
[14:07:33][ee4][8]Allocating new vertex buffer
[14:07:33][ee4][3]Loading main script
[14:07:33][ee4][3]Loading app script
[14:07:33][ee4][3]Script init
[14:07:33][ee4][3]App version:1.1.4
[14:07:33][ee4][5]Today is: 27.1.2013
[14:07:34][ee4][8]Starting track: main_menu
[14:07:38][ee4][8]Creating new audio source. Count: 0
[14:07:44][ee4][8]Map loaded in 0.033sec
[14:07:45][ee4][8]Maximum texture size: 8192
[14:07:48][ee4][Warning]Scene initialized in: 3.325 seconds
[14:07:48][ee4][Warning] Memory usage: 1634308 bytes
[14:07:48][ee4][Warning] Memory allocation time: 0.001 sec
[14:07:48][ee4][Warning] Memory deallocation time: 0.001 sec
[14:07:49][ee4][8]Starting track: game2
[14:07:49][ee4][Warning]Hud initialized in:0.885 seconds
[14:07:59][ee4][8]Creating new audio source. Count: 1
[14:08:07][ee4][Error]ui/selection_tab.lua:412 ui/selection_tab.lua:412: attempt to index local 'unit' (a nil value)
[14:08:07][ee4][Error]ui/selection_tab.lua:412 ui/selection_tab.lua:412: attempt to index local 'unit' (a nil value)
Consistent error. Reload save and can repeat. Save attached with sequence in next post.
