Page 1 of 1

Crash after detaching leader (v1.2.0)

Posted: Sun Jan 27, 2013 1:14 am
by michaelm75au
I repaired a French unit that had a leader attached.

Then tried to detached leader and got an error.


Image

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.

RE: Crash after detaching leader (v1.1.4)

Posted: Sun Jan 27, 2013 1:20 am
by michaelm75au
Auto save
French unit is one with Jaffe attached on Western front.
1. Go to unit
2. Repair it
3. Detach commander

RE: Crash after detaching leader (v1.1.4)

Posted: Sun Jan 27, 2013 1:48 am
by michaelm75au
Further to this.
If you re-select the unit, the problem is fixed as the SelectUnit has been reset.
Repairing an unit appears to 'un-select' the unit. You notice the green Commander range disappears.
However, the unit still shows in the unit panel which gives the impression it is still selected.


Image

RE: Crash after detaching leader (v1.1.4)

Posted: Tue Jan 29, 2013 7:18 am
by michaelm75au
Is this a known defect? And to be fixed?

RE: Crash after detaching leader (v1.1.4)

Posted: Sat Feb 02, 2013 12:40 pm
by michaelm75au
bump

RE: Crash after detaching leader (v1.1.4)

Posted: Sat Feb 02, 2013 12:45 pm
by Lord Zimoa
I recall this is fixed on the upcoming patch list, but will double check, thanks for the report!

RE: Crash after detaching leader (v1.1.4)

Posted: Sat Feb 09, 2013 3:30 am
by michaelm75au
Same crash under the new beta 1.2.0

RE: Crash after detaching leader (v1.1.4)

Posted: Sat Feb 09, 2013 9:53 am
by Myrddraal
Thanks for testing Michael. Confirmed bug but unfortunately not fixed yet.

RE: Crash after detaching leader (v1.1.4)

Posted: Sat Feb 09, 2013 10:14 am
by Myrddraal
Fixed now. The fix will be in the full (non-beta) patch release.