Skip to content

Commit

Permalink
added helpfile-tools junk
Browse files Browse the repository at this point in the history
  • Loading branch information
juanitogan committed May 9, 2019
1 parent c97c265 commit 5095d7e
Show file tree
Hide file tree
Showing 12 changed files with 1,047 additions and 4 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ For the geeks who don't need no sleepy wiki, here are shortcuts to the RBXIT Win
- [3·D Ultra MiniGolf Deluxe v2.0, French](https://github.com/juanitogan/rbxit/releases/download/3dumgd.f.patch.r5/3DUltraMiniGolfDeluxe-French-20-Win7fix.r5.exe) (a.k.a. _Minigolf Fantasy_)
- [3·D Ultra MiniGolf Deluxe Demo](https://github.com/juanitogan/rbxit/releases/download/1.0.0.3d-ultra-minigolf-deluxe-demo.0/3DUltraMiniGolfDeluxeDemo-complete-Win7fixed.zip) (complete and patched)
- 3·D Ultra Pinball (install instructions found in the wiki)
- [MissionForce: CyberStorm v1.0 and v1.1](https://github.com/juanitogan/rbxit/releases/download/cs1.patch.r6/CyberStorm-10-11-Win7fix.r6.exe)
- [MissionForce: CyberStorm v1.0 and v1.1](https://github.com/juanitogan/rbxit/releases/download/cs1.patch.r7/CyberStorm-10-11-Win7fix.r7.exe)
- MissionForce: CyberStorm v1.2 (the lost homebrew version, see wiki)
- [CyberStorm 2: Corporate Wars](https://github.com/juanitogan/rbxit/releases/download/cs2.patch.r1/CyberStorm2-101-Patch.exe) (just a redo of Sierra’s 1.01 patch)
- EarthSiege 2 (install instructions and tools found in the wiki)
Expand Down Expand Up @@ -64,9 +64,15 @@ The Python scripts are what they are and more detailed descriptions are best fou

[**InstallSHIELD Tools**](http://www.cdmediaworld.com/hardware/cdrom/files.shtml) for unpacking old installers that don't run on modern Windows. [This read also helps.](http://blog.wisefaq.com/2010/07/24/how-to-open-an-installshield-data-cab-file/)

[**WinHelp Decompiler "HELPDECO"**](http://sourceforge.net/projects/helpdeco/) for unpacking those old Windows HLP files.
[**help-info.de**](http://www.help-info.de/en/Help_Info_WinHelp/hw_converting.htm) for lots of helpful information on converting HLP to CHM help files.

[**Windows Help program (WinHlp32.exe)**](https://support.microsoft.com/en-us/kb/917607) in case you are running a Windows version that is still supported for reading HLP files but does not come with the program built in (Vista through 8.1). It is looking likely that Windows 8.1 will be the last.
[**WinHelp Decompiler "HELPDECO"**](http://sourceforge.net/projects/helpdeco/) for unpacking those old Windows HLP files (and MVB files).

[**HTML Help Workshop**](https://docs.microsoft.com/en-us/previous-versions/windows/desktop/htmlhelp/microsoft-html-help-1-4-sdk) for converting HLP ___source files___ to CHM help.

[**HHPMod**](http://post.queensu.ca/%7Epenstone/HHPMod/HHPMod_info.html) for restoring context-sensitive sanity to the output of HTML Help Workshop.

[**Windows Help program (WinHlp32.exe)**](https://support.microsoft.com/en-us/kb/917607) in case you are running a Windows version that is still supported for reading HLP files but does not come with the program built in (Vista through 8.1). It is looking likely that Windows 8.1 will be the last. For Windows 10, some are finding luck with this resource from [Komeil Bahmanpour](http://www.komeil.com/blog/windows-help-program-winhelp-winhlp32-exe).

[**ODA - The Online Disassembler**](https://onlinedisassembler.com/odaweb/) helps a great deal when rewriting machine code.

Expand Down Expand Up @@ -109,4 +115,3 @@ Looking for hope with other games?
- http://dege.freeweb.hu/
- http://www.dosbox.com/
- https://www.gog.com/
- http://store.steampowered.com/
74 changes: 74 additions & 0 deletions helpfile-tools/01_MVB_recomp.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
@echo off
SETLOCAL ENABLEEXTENSIONS

REM ======================================================================
REM CHANGE ME:
REM ----------------------------------------------------------------------
set helpdecoexe="D:\GamesTest\WinHelp Tools\HELPDECO\HELPDECO.EXE"
REM ======================================================================

echo ======================================================================
echo This batch assumes a parent/child folder structure like this:
echo Parent:
echo fixtrf.py
echo fixhtml.py
echo HHStyles.css
echo SOMEFILE:
echo SOMEFILE.MVB (only one help file per folder)
echo 01_MVB_recomp.bat
echo 02_MVB_recomp.bat
echo ======================================================================

REM Process only the last help file found in the folder (should be only one).
REM TODO: FOR %%f IN (*.MVB *.HLP) DO set helpfile=%%f
for %%f in (*.MVB) do set helpfile=%%f
if "%helpfile%"=="" (
echo *** No help file found: *.MVB ***
echo Aborting...
goto end
)

REM Assumes always a 3-letter suffix on helpfile:

set helpfileprefix=%helpfile:~0,-4%

REM set outdir="%helpfile:~0,-4% %helpfile:~-3,3% decompile"
set outdir="MVB decompile"
set wizdir="HHW wiz"
set moddir="HHW mod"
set bakdir="HHW _bak_"

%helpdecoexe% %helpfile%
REM Don't recall at the moment if *.CNT file actually needed:
%helpdecoexe% %helpfile% /c
REM The CNT file is not needed but it can help with decoding randomized topic names.

copy *.MVP *.HPJ
copy *.RTF *.org.RTF

mkdir %outdir%
move /Y *.MVP %outdir%
move /Y *.HPJ %outdir%
move /Y *.RTF %outdir%
move /Y *.CNT %outdir%
move /Y *.bmp %outdir%
move /Y *.shg %outdir%

echo.

wsl ../fixrtf.py %outdir%/%helpfileprefix%.org.RTF %outdir%/%helpfileprefix%.RTF

mkdir %wizdir%
mkdir %moddir%
mkdir %bakdir%
echo dummy file > %wizdir%\%helpfileprefix%.hhp
echo dummy file > %moddir%\%helpfileprefix%.hhp

copy ..\HHStyles.css %moddir%

echo.
echo Now, move on to the HHW and HHPMod steps before returning to 02_MVB_recomp.bat.
echo.

:end
pause
15 changes: 15 additions & 0 deletions helpfile-tools/02_MVB_recomp.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@echo off
SETLOCAL ENABLEEXTENSIONS

set wizdir="HHW wiz"
set moddir="HHW mod"

cd %moddir%\html
wsl ../../../fixhtml.py *.htm
cd ..\..

echo.
echo Now, go back to HHW, close %wizdir%, and open and finish %moddir%.
echo.

pause
118 changes: 118 additions & 0 deletions helpfile-tools/HHStyles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
/* Cascading Style Sheet for IE4.0 build 1008+ */

body{
background: #000000;
color: #C0C0C0;
font-size: 10pt;
line-height: 125%;
font-family: Times New Roman;
margin: 0;
}

a:link{color: #FFFF00;}
a:active{color: #02A902;}
a:visited{color: #FFFF00;}
a{text-decoration: none;}

.left{text-align: left;}
.center{text-align: center;}
.right{text-align: right;}
.justify{text-align: justify;}

.indent{/*text-indent: 0.75pt;*/}
.noindent{text-indent: 0pt;}
.hanging{
text-indent: -8.75pt; /* \fi-175 / 20 = -8.25 */
margin-left: 17.5pt; /* \li175 / 20 - -8.25 = 17.5 */
}

.fs16{font-size: 8pt;}
.fs20{font-size: 10pt;}
.fs24{font-size: 12pt;}
.fs28{font-size: 14pt;}
.fs32{font-size: 16pt;}
.fs36{font-size: 18pt;}
.fs48{font-size: 24pt;}

h1{font-size:145%;margin-bottom:.5em;}
h2{font-size:125%;margin-top:1.5em;margin-bottom:.5em;}
h3{font-size: 110%;margin-top:1.2em;margin-bottom:.5em;}

p{
margin-top:0pt;
margin-bottom:0pt;
margin-left: 8.75pt; /* \li175 / 20 = 8.75 */
}
p img{
margin-left: -8.75pt;
}

li p{margin-top:.6em;margin-bottom:0em;}
big{font-weight:bold;font-size:105%;}
ol{margin-top:.5em;margin-bottom:0em}
ul{margin-top:.6em;margin-bottom:0em;margin-left:2.75em;}
ol ul{list-style:disc;margin-top:2em;}
li{padding-bottom:.7em;margin-left:-1.25em;}
dl ul{margin-top:2em;margin-bottom:0em;}/*list item inside a def/term*/
dl{margin-top:-1em;}
ol dl{margin-top:-1.5em;margin-left:0em;}/*term/def list inside a numbered list*/
ol dl dl{margin-top: 0em;margin-left:.2em;}/*term/def list inside a term/def list*/
dd{margin-bottom:0em;/*not currently working*/margin-left: 1.5em;}
dt{padding-top:2em;font-weight: bold; margin-left:1.5em;}
code{font-family:Courier;}
pre{margin-top:0em margin-bottom:1.5em; font-family:Courier; font-size: 125%}

table{
font-size:100%;
/*margin: auto; /*no effect -- must use align="center" for CHM files*/
}
tr{
vertical-align: top;
}
td{
/*margin: 3pt;*/
padding-left: 4.25pt; /* \trgaph105 / 20 = 5.25 */
padding-right: 4.25pt; /* had to cheat it smaller due to font metrics */
}
td p{
margin-left: 0;
}
/*
td img{
display: block;
margin: auto; /*no effect*
}
td img + p{ /*no effect*
text-align: center;
}
td>b{ /*no effect*
/*text-decoration: underline;*
}
*/

/* IE 4.0 TAGS */
p.dis{font-size: 6pt;}
h5{}
h5.active{background: #000000; color: #FFCC99;}

/* -- subheading -- */
h5.subh {color: #660000;margin-bottom:-1em;margin-top: 1.5em;}

/* -- Overview heading -- */
h5.overh{font-size:120%;margin-bottom:1%;}

/* -- procedure heading -- */
h5.proch{margin-bottom:4pt;}

/* -- topic heading -- */
h5.topich{margin-bottom:-1em;}

/* -- Decision heading -- */
h5.what{color: #993399;margin-bottom:.4em;}

/* -- note 'n' tip heading -- */
h5.note{margin-top:1em;margin-bottom: 0em;}

/* -- related topics heading -- */
h5.relh{margin-top: 2.25em;margin-bottom: -1em;}

Loading

0 comments on commit 5095d7e

Please sign in to comment.