Custom devel icons problem

Discussion area for user-created Allegiance models, textures, voicechats, music, and other ingame content.
Jersy
Posts: 250
Joined: Fri Aug 29, 2008 6:30 pm

Post by Jersy »

I tried to implement custom minimap icons for my personal project - the Trifaction Core.

However, it would seem that my current strategy of exporting from *bmp.mdl to .bmp through MDLutility, altering in MSPaint (using only black and white), saving as .bmp, importing into *bmp.mdl again and trying to use it in game, is flawed.

It would seem that if I try to launch the game with altered minimap icon, the game crashes few seconds into the launching sequence.

What is the proper procedure for implementing custom-made minimap icons? Are there any file-name restrictions? etc.
Last edited by Jersy on Sun Mar 13, 2011 4:08 pm, edited 1 time in total.
-----------------------------------------------------------------------------------------------------------
Image
Link: Allegiance Stuff on "Jersy's Ultimate Blog of Concentrated Nerdiness"
Current stuff-count: 97
(Latest update: March 7th, 2011, in "Jers_Core Diary")

Stationed in CZECH REPUBLIC (link)
(GMT+1)
pkk
Posts: 5419
Joined: Tue Jul 01, 2003 7:00 am
Location: Germany, Munich

Post by pkk »

Do not rename files after you converted them to bmp.mdl. ;)
The Escapist (Justin Emerson) @ Dec 21 2010, 02:33 PM:
The history of open-source Allegiance is paved with the bodies of dead code branches, forum flame wars, and personal vendettas. But a community remains because people still love the game.
SpaceJunk
Posts: 759
Joined: Wed Apr 06, 2005 7:00 am
Location: Collision orbit

Post by SpaceJunk »

24 bits BMP, good. 32 bits, bad.
Image
Jersy
Posts: 250
Joined: Fri Aug 29, 2008 6:30 pm

Post by Jersy »

thx, problem solved ;-)
-----------------------------------------------------------------------------------------------------------
Image
Link: Allegiance Stuff on "Jersy's Ultimate Blog of Concentrated Nerdiness"
Current stuff-count: 97
(Latest update: March 7th, 2011, in "Jers_Core Diary")

Stationed in CZECH REPUBLIC (link)
(GMT+1)
Jersy
Posts: 250
Joined: Fri Aug 29, 2008 6:30 pm

Post by Jersy »

New problem encountered:

During my attempts to implement my custom devel icons, I managed to get them to appear in ICE properly. However, in-game, they all appear blank (so where they are supposed to be, I get only background and the devel name in the upper-left corner). Icons themselves are saved in the i***bmp.mdl format, and the ".bmp"s used for them are all 16-bit.

They have been created by opening one icon in MDLfx and saving it as the desired file-name, and the desired .bmp was then imported with MDLUtility (I do it this way, because it seems to me that MDLUtility cannot "create" new artwork - either by duplication or by converting *.bmp into *bmp.mdl - only import a new *.bmp into already existing *bmp.mdl).

Where might the problem be?
-----------------------------------------------------------------------------------------------------------
Image
Link: Allegiance Stuff on "Jersy's Ultimate Blog of Concentrated Nerdiness"
Current stuff-count: 97
(Latest update: March 7th, 2011, in "Jers_Core Diary")

Stationed in CZECH REPUBLIC (link)
(GMT+1)
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

Jersy
Posts: 250
Joined: Fri Aug 29, 2008 6:30 pm

Post by Jersy »

Uh oh... The contents of the MDLC download file seem to be unfriendly towards me... The MDLCmaster is not there and editing convert.bat does not bring any results and the thing just errors on me every time it tries to convert a file...

Need walkthrough :-(
-----------------------------------------------------------------------------------------------------------
Image
Link: Allegiance Stuff on "Jersy's Ultimate Blog of Concentrated Nerdiness"
Current stuff-count: 97
(Latest update: March 7th, 2011, in "Jers_Core Diary")

Stationed in CZECH REPUBLIC (link)
(GMT+1)
Andon
Posts: 5453
Joined: Sun Jun 03, 2007 8:29 pm
Location: Maryland, USA
Contact:

Post by Andon »

Text mdls are a lot easier to use, and smaller in filesize. Once I get home (and am not on my phone) I'll post on how, unless someone beats me to it
Image
ImageImage
madpeople
Posts: 4787
Joined: Tue Dec 16, 2003 8:00 am
Location: England

Post by madpeople »

Put the .bat in the same folder as mdlc and the bmp you want to convert.

Change contents of .bat to (change inputfile.bmp and outputfilebmp.mdl as appropriate)

Code: Select all

mdlc -convert inputfile.bmp outputfilebmp.mdl
run the .bat

If that doesn't work you need to provide more details of what you are doing, contents of the folder you're working in (before and after running the .bat) and the errors returned.
Jersy
Posts: 250
Joined: Fri Aug 29, 2008 6:30 pm

Post by Jersy »

Okay...
- In the download file, there is "tools" folder, which contains the mdlc, so I am working with that one.
- I copy my "3FCGAac1.bmp" in there.
- I right click the "covert.bat" thing and click "edit" or whatever (don't know what do you guys have there in english versions of winXP)
- Up pops the notepad with the following line: "mdlc -convert space.bmp environment1bmp.mdl"
- I change it to "mdlc -convert 3FCGAac1.bmp 3FCGAac1bmp.mdl" and save.
- Then I run the altered "convert.bat", but when it tries to process the file, it throws that "error: program will be terminated" (or whatever that message would be in english) thing at me. (strange thing is, when I tried to make it convert more files, it didn't end upon closing that message like programs usually do, but proceeded onto the next file and repeated until the last file).
...and that's it.
-----------------------------------------------------------------------------------------------------------
Image
Link: Allegiance Stuff on "Jersy's Ultimate Blog of Concentrated Nerdiness"
Current stuff-count: 97
(Latest update: March 7th, 2011, in "Jers_Core Diary")

Stationed in CZECH REPUBLIC (link)
(GMT+1)
Post Reply