![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
05-16-10, 06:10 PM
|
#1 | |
|
Black Magic
![]() |
Quote:
|
|
|
|
05-16-10, 06:48 PM
|
#2 |
|
Gunner
![]() Join Date: Mar 2010
Location: Brighton, UK
Posts: 91
Downloads: 127
Uploads: 0
|
|
|
|
05-16-10, 07:24 PM
|
#3 |
|
Silent Hunter
![]() Join Date: Aug 2006
Posts: 3,528
Downloads: 118
Uploads: 0
|
Taking a reading from the standimeter is resetting other TDC settings previously set. Is that supposed to happen?
I'll preset the AoB and Speed from my observations, then go to check range with the now working standimeter and speed and AoB will have been reset. |
|
|
05-16-10, 07:28 PM
|
#4 |
|
Mate
![]() Join Date: Mar 2010
Location: Paris 12è
Posts: 55
Downloads: 12
Uploads: 0
|
It seem there's no problems to write the mastheights keymap or whatever it's called in python, with a key containing a special char :
so I would bet that's the reading that's causing problems. Maybe you could have one more param, numeric, in rostersea : params = [ classname[ 1 ], classname[ 0 ], n ], then, at display time, get the correspondancy between unit[0] and unit[2] and read mastheights[unit[2]] instead of mastheights[unit[0]] ? |
|
|
05-16-10, 07:35 PM
|
#5 |
|
Black Magic
![]() |
It's an encoding problem which I knew all along. I'm using python to read the files and python's default encoding is ASCII (just read about). I have to use .NET to read the files which is what I'm trying now since it's default encoding is UTF-8 (StreamReader).
Last edited by TheDarkWraith; 05-16-10 at 07:45 PM. |
|
|
![]() |
| Tags |
| dbrn, favorite, new ui |
| Thread Tools | |
| Display Modes | |
|
|
