How to create MHTML without MS Word

Please post here for questions and discussion about scenario, art and sound modding and the game editor for Distant Worlds.

Moderators: elliotg, Icemania

Post Reply
User avatar
Antiscamp
Posts: 349
Joined: Mon May 14, 2012 8:04 am
Contact:

How to create MHTML without MS Word

Post by Antiscamp »

Don't have MS Word and still want to create MHT for the Galactopedia? Here's a workaround that I found helpful:


1. Create a common HTML document and save it as such. this is done in any text editor. Just save it as YourFileName.html (be sure to put any images you want in your article in the customization/yourmod/help folder as well). If you're doing a race article, be sure to name the article in the format Race_YourRaceName (just prefix Race_).

Below is my very simple model that I use for all my factions in my mod. If you use it, be sure to change the picture reference and write new paragraphs within <P></P> tags. You can format anything simply by using regular html, so it's pretty powerful stuff this!

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><META content="IE=5.0000" http-equiv="X-UA-Compatible">
<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
<META name="GENERATOR" content="MSHTML 10.00.9200.16721"></HEAD>
<BODY lang="EN-US" bgcolor="#27282c">
<DIV><IMG width="240" height="240" align="left" src="file:///C:/Matrix%20Games/Distant%20Worlds/Customization/Human%20Revolution/help/race_27a.png">
<hspace="12"><FONT color="#808080" face="Tahoma" font="">
<P>HISTORY</P>
<P>!!!Galactopedia Article Text Goes Here!!!</P>
</FONT> </DIV></BODY></HTML>

2. Right clik the HTML document in the Windows explorer. Choose Open with Internet Explorer.

3. Choose tools at top right, Archive, Save as. Save the Document as mht (it's one of the choices in the file format dropdown) into your customization/yourmod/help folder.

4. when the MHT-file is done, you can safely remove the pictures you used to generate the document. They will be imbedded in the MHT-file, actually, so there's no need to include them in your mod's download.

5. Profit
Buio
Posts: 341
Joined: Wed Nov 21, 2012 7:40 pm

RE: How to create MHTML without MS Word

Post by Buio »

Great tip, good to have options for Wordless users.
Post Reply

Return to “Design and Modding”