- updated techtree html parser and added missing files from original archive. Script now copies everything required (no manual steps required afterwards). Added an optional to take G3D screenshots of models via ini setting but disabled for now

This commit is contained in:
Mark Vejvoda 2011-01-31 02:05:05 +00:00
parent d7a65ed18e
commit 93f9d87e35
7 changed files with 897 additions and 182 deletions

View File

@ -0,0 +1,19 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org">
<title>Compare Glest Units</title>
<link type="TEXT/CSS" rel="STYLESHEET" href="style.css">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<frameset rows="80,*">
<frame src="compare_help.html" frameborder="1">
<frameset cols="50%,50%" rows= "*">
<frame src="glest_autodocument_summary.html#factions" frameborder= "1">
<frame src="glest_autodocument_summary.html#factions" frameborder= "1">
</frameset>
</frameset>
</html>

View File

@ -0,0 +1,16 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Compare Glest Units</TITLE>
<LINK TYPE="TEXT/CSS" REL="STYLESHEET" HREF="style.css">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8">
</HEAD>
<BODY>
<H3 ALIGN=CENTER>Choose units in the left and right frames to compare.</H3>
<DIV ALIGN=CENTER><A HREF="glest_autodocument_summary.html" TARGET="_top">Home</A></DIV>
</BODY>
</HTML>

Binary file not shown.

After

Width:  |  Height:  |  Size: 318 B

View File

@ -4,6 +4,9 @@ debug = 1;
# Are paths below based on relative paths to the folder this script is running in
relative_paths = 1
# Are paths below based on relative paths to the folder this script is running in
generate_g3d_images = 0
# export functions, see "perldoc GraphViz" (or search.cpan.org for GraphViz) for a list
#export_graph=as_svg;as_png
export_graph=as_svg;as_png;as_canon;as_text;as_cmapx
@ -11,16 +14,24 @@ export_graph=as_svg;as_png;as_canon;as_text;as_cmapx
# combine png and cmapx to clickable map
build_clickable_map=1
version=Megaglest 3.4.0
version=Megapack of Megaglest 3.4.0 beta
# should links to units go the single pages for each unit ( vs. the techtree-page if set to 0)
link_to_single_units=1
[files]
g3dviewer_path=../../../mk/linux/glest_g3dviewer
factions_path=../../../data/glest_game/techs/megapack/factions
resources_path=../../../data/glest_game/techs/megapack/resources
pack_file=../../../data/glest_game/techs/megapack/megapack.xml
out_path=../../../html
glestkeys=../../../data/glest_game/glestkeys.ini
summary=glest_autodocument_summary.html
units_path=units
@ -39,15 +50,18 @@ created by VAR_CREATED_BY <br>
EOT
header=<<EOT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<HEAD>
<TITLE>VAR_TITLE</TITLE>
<LINK TYPE="TEXT/CSS" REL="STYLESHEET" HREF="style.css" />
<LINK TYPE="TEXT/CSS" REL="STYLESHEET" HREF="style.css">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8">
</HEAD>
<BODY>
<H1>VAR_TITLE</h1>
<p>
<a href="VAR_SUMMARY">Home</a><p>
<H4><a href="VAR_SUMMARY">Home</a></H4><p>
EOT

View File

@ -16,6 +16,8 @@ else
sudo apt-get install graphviz
sudo apt-get install libgraphviz-perl
sudo apt-get install libconfig-inifiles-perl
#sudo apt-get install libimage-size-perl
sudo apt-get install perlmagick
fi
echo "To run the techtree html builder edit mg.ini and run the script as follows:"

View File

@ -0,0 +1,256 @@
body {
margin: 0 auto;
width: 1016px;
background-color: #161616;
font-size: 0.8em;
color: #fff6c0;
font-family: "Lucida Sans Unicode","Lucida Grande","Lucida Sans", sans-serif;
}
/*
* Structure
*/
/* Header */
#header {
width: 1016px;
height: 313px;
margin: 0 auto;
background: url("header/header.jpg") no-repeat;
}
/* Horizontal menu */
#menu {
background-image: url("menu.jpg");
background-repeat: no-repeat;
height: 65px;
}
/* Side menus */
#menu #first { float: left }
#menu #second { float: right }
/* Main content */
#content {
width: 512px;
margin: 0 auto;
background: url("wood_panel.jpg") repeat-y;
}
/* Article (core text of the page) */
#article {
font-size: 1.1em;
line-height: 1.5em;
padding: 2em;
text-align: justify;
}
/* end of article has to be below side modules */
#end_article {
clear: both;
}
/* Side modules */
#aside_left {
float: left;
width: 420px;
margin-left: -168px;
}
#aside_left ul {
padding: 0 17px 0 168px;
margin: 0 2em 2em 2em;
}
#aside_right {
float: right;
width: 420px;
margin-right: -168px;
}
#aside_right ul {
padding: 0 140px 0 25px;
margin: 0 2em;
}
.aside .up_image {
width: 420px;
height: 278px;
}
.aside .down_image {
width: 420px;
height: 191px;
}
/* fill .up_image and .down_image with content */
.aside .content {
margin-top: -210px;
margin-bottom: -80px;
}
/* Footer */
#footer {
width: 1016px;
height: 143px;
margin: 0 auto;
background-image: url("footer/footer.jpg");
}
/*
* Text display: side, colors, etc.
*/
p { text-indent: 2em }
a { color: #ecc72d }
a:link { text-decoration: none }
a:hover { text-decoration: underline }
a img { border: 0; }
img.right {
float: right;
margin: 0 0 10px 10px;
}
img.left {
float: left;
margin: 0 10px 10px 0;
}
/* news dates, scores: gold */
.info, .date, #content h3 { color: #ecc72d; }
#content h3 { font-weight: normal; text-indent: 3em }
/* Logo */
#header h1 {
width: 365px;
margin: 0 auto;
}
/* Download image */
h2#download {
margin: 0 auto;
margin-top: -2em;
text-align: center;
}
/* Module titles */
.aside h3 { display: block; }
.aside h3#news { margin-left: 240px; }
.aside h3#servers { margin-left: 50px; }
.aside h3.forums { margin-left: 230px; }
.aside h3#links { margin-left: 110px; }
/* Menu links */
#menu ul { margin: 0; padding: 0}
#menu li { display: inline; }
/* left horizontal menu should not "touch" the wood */
#menu #second li:first-child { margin-left: 10px; }
#menu a {
/* fixed available space: fixed size */
font-size: 14px;
color: #b5dbb5;
font-variant: small-caps;
margin: 0 8px;
}
/*
* Modules
*/
#aside_left { background: url("modules/l_repeat.jpg") repeat-y }
#aside_left .up_image { background: url("modules/l_up.jpg") }
#aside_left .down_image { background: url("modules/l_down.jpg") }
#aside_right {background: url("modules/r_repeat.jpg") repeat-y}
#aside_right .up_image {background: url("modules/r_up.jpg")}
#aside_right .down_image {background: url("modules/r_down.jpg")}
.aside ul li {
list-style-image: url("modules/star.png");
clear: right;
}
/* News module */
.date {
display: block;
float: right;
margin-top: 1em;
margin-bottom: 1.5em;
/* Font */
font-family: "DejaVu Serif Condensed", serif;
font-style: italic;
font-size: 0.9em;
}
/* Servers module */
.aside table {
width: 200px;
margin-left: 50px;
text-align:center;
}
.aside table td:first-child {
text-align: left;
}
/* Forums module */
.forums .date {
margin-top: 3px;
font-size: 1em;
}
/* Footer */
#footer ul {
margin: 0 auto;
padding-top: 90px;
width: 25em;
}
#footer li {
list-style-type: none;
display: inline;
margin: 0 1em;
}
/* links in the dark space, images above */
#footer img {
vertical-align: -20%;
}
/*
* Additional background images
*/
#header_left {
float: left;
width: 140px;
height: 882px;
background-image: url("header/left.jpg");
background-repeat: no-repeat;
margin-left: -140px;
}
#header_right {
float: right;
height: 843px;
width: 143px;
background-image: url("header/right.jpg");
background-repeat: no-repeat;
margin-right: -143px;
}
#footer_left {
float: left;
height: 143px;
width: 101px;
margin-left: -101px;
background: url("footer/footer_left.jpg") no-repeat;
}
#footer_right {
float: right;
height: 143px;
width: 106px;
margin-right: -106px;
background: url("footer/footer_right.jpg") no-repeat;
}