- Posts: 33
Model Icon in INI file
- SamtheMan
- Topic Author
- Offline
Less
More
12 Feb 2013 19:13 #6326
by SamtheMan
Model Icon in INI file was created by SamtheMan
How come if I go into the model.ini file, and add icon=filename.bmp it will show up as part of the helicopter name? I am doing what I thought was exactly the same as what I see in the other files, what am I missing?
Please Log in or Create an account to join the conversation.
- sbstnp
- Offline
Less
More
- Posts: 649
12 Feb 2013 19:22 #6327
by sbstnp
Devo 10 + 4in1
Spektrum Dx9
FrSky Taranis + TBS Crossfire
Replied by sbstnp on topic Model Icon in INI file
You're probably not using Windows?
If so, line ends must be set to be Windows compatible. No idea how to do it unless you tell me your text editor.
If so, line ends must be set to be Windows compatible. No idea how to do it unless you tell me your text editor.
Devo 10 + 4in1
FrSky Taranis + TBS Crossfire
Please Log in or Create an account to join the conversation.
- domcars0
- Offline
Less
More
- Posts: 390
12 Feb 2013 20:13 #6328
by domcars0
Devo 10 (+7e) owner. It's mine, please don't touch it with your big fingers
Replied by domcars0 on topic Model Icon in INI file
Are you sure of the filename.bmp format ? see
www.deviationtx.com/forum/model-icons/87...r-making-model-icons
Devo 10 (+7e) owner. It's mine, please don't touch it with your big fingers
Please Log in or Create an account to join the conversation.
- FDR
- Offline
12 Feb 2013 20:21 #6329
by FDR
Replied by FDR on topic Model Icon in INI file
The bitmap should named with the 8.3 naming convention without spaces or any other special characters.
Furthermore it has to be a proper 16bit RGB565 or ARGB1555 bitmap, which has to be in the modelico directory...
Furthermore it has to be a proper 16bit RGB565 or ARGB1555 bitmap, which has to be in the modelico directory...
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
Less
More
- Posts: 4402
12 Feb 2013 20:28 #6331
by PhracturedBlue
Replied by PhracturedBlue on topic Model Icon in INI file
For issues like this, post the bmp and the ini in question. It is much easier to debug by example. Also the Tx you are useing and version of Deviation can never hurt.
Please Log in or Create an account to join the conversation.
- SamtheMan
- Topic Author
- Offline
Less
More
- Posts: 33
13 Feb 2013 08:09 - 13 Feb 2013 08:33 #6341
by SamtheMan
Replied by SamtheMan on topic Model Icon in INI file
I am using a Devo 8S. I am using a known good model icon (as it is a renamed one that is currently in use). I am using Notepad. I'm also a computer engineer, so I dont think I am making any "noob" mistakes. I am opening the ini file up in notepad, and at the end of the name adding icon=filename.bmp and yes the filename.bmp exists in the icon directory. I am not getting what the heck I am doing wrong. I also have a issue where if I go in to rename the name of the helicopter, and the model file has a bmp that is working, simply changing the name, will make the icon stop working. Do I need a new editor?
Example
name=V120D02Sicon=V120D02S.BMP
If I edit that line to read
name=M120D01icon=V120D02S.BMP
when I go back into the program the name of the helicopter will be
M120D01icon=V120d02S.BMP
And obviously now the bmp won't work because it is apart of the name. So I have been renaming model files from within the radio itself, and have not had luck making my own BMPs work.
Example
name=V120D02Sicon=V120D02S.BMP
If I edit that line to read
name=M120D01icon=V120D02S.BMP
when I go back into the program the name of the helicopter will be
M120D01icon=V120d02S.BMP
And obviously now the bmp won't work because it is apart of the name. So I have been renaming model files from within the radio itself, and have not had luck making my own BMPs work.
Last edit: 13 Feb 2013 08:33 by SamtheMan.
Please Log in or Create an account to join the conversation.
- domcars0
- Offline
Less
More
- Posts: 390
13 Feb 2013 08:33 - 13 Feb 2013 09:24 #6343
by domcars0
As said by sbstnp the NL symbol depend of the OS (not the same in Unix and in windows).The modelX.ini files must (unfortunatly) be in windows format. Sorry, vlad_vy (see below) is right they are in Unix format.
Probably when you change the model name with your editor, this carriage return is 'removed'... So the new model name is now : M120D01icon=V120D02S.BMP
That's what you see in your TX ... and there is no more icon.
Devo 10 (+7e) owner. It's mine, please don't touch it with your big fingers
Replied by domcars0 on topic Model Icon in INI file
In fact there is NL (new line) between 'name=V120D02S' and 'icon=V120D02S.BMP' (seems as your editor doesn't display it ?) ...SamtheMan wrote: name=V120D02Sicon=V120D02S.BMP
If I edit that line to read
name=M120D01icon=V120D02S.BMP
As said by sbstnp the NL symbol depend of the OS (not the same in Unix and in windows).
Probably when you change the model name with your editor, this carriage return is 'removed'... So the new model name is now : M120D01icon=V120D02S.BMP
That's what you see in your TX ... and there is no more icon.
Devo 10 (+7e) owner. It's mine, please don't touch it with your big fingers
Last edit: 13 Feb 2013 09:24 by domcars0.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
Less
More
- Posts: 3333
13 Feb 2013 08:50 - 13 Feb 2013 09:05 #6344
by vlad_vy
Replied by vlad_vy on topic Model Icon in INI file
model.ini files are in UNIX format. They use LF (0x0A) as a line divider. You cann't use Windows Notepad to edit these files. Windows programs use CR+LF (0x0D 0x0A) as a line divider. Mac OS use CR (0x0D) as a line divider.
Text editors, see section 'Newline support':
en.wikipedia.org/wiki/Comparison_of_text...rs#Newline%5Fsupport
For example you can use 'Notepad++'
notepad-plus-plus.org/
Text editors, see section 'Newline support':
en.wikipedia.org/wiki/Comparison_of_text...rs#Newline%5Fsupport
For example you can use 'Notepad++'
notepad-plus-plus.org/
Last edit: 13 Feb 2013 09:05 by vlad_vy.
Please Log in or Create an account to join the conversation.
- SamtheMan
- Topic Author
- Offline
Less
More
- Posts: 33
13 Feb 2013 10:05 - 13 Feb 2013 10:06 #6347
by SamtheMan
Replied by SamtheMan on topic Model Icon in INI file
AH ok, we need NL after the name. I'll find a better text editor. That I understand. Like I said I understand the computer stuff apparently didn't realize how crappy notepad was
Notepad through me off.
Sam
Notepad through me off.
Sam
Last edit: 13 Feb 2013 10:06 by SamtheMan.
Please Log in or Create an account to join the conversation.
Time to create page: 0.032 seconds
- Home
- Forum
- News, Announcements and Feedback
- Feedback & Questions
- Model Icon in INI file