.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   CHTML 1.01.00 Discussion Thread (http://forum.shrapnelgames.com/showthread.php?t=11817)

Fyron April 7th, 2004 08:12 AM

CHTML 1.01.00 Discussion Thread
 
Announcing the release of CHTML, a program designed to generate a set of HTML files from the Components file of any mod. The program currently has no GUI, and relies on a CLI interface (load it up if you have no idea what the hell I am talking about http://forum.shrapnelgames.com/images/icons/icon10.gif ). But it works great nonetheless. http://forum.shrapnelgames.com/images/icons/icon12.gif

The program is released open sourced and under the GNU General Public License. Source code is provided. THe program currently only functions on Windows based machines.

You can get the program here:

CHTML 1.00.00

Fyron April 7th, 2004 07:30 PM

Re: CHTML 1.00.00 Discussion Thread
 
That is a possibility. I have no way to test on NT. The program has only been tested on Win XP Pro.

For web server purposes, slashes must be forward slashes (/), not back slashes (\). This is because Unix style systems do not use back slashes anywhere. Windows XP interprets both of them the same way. I assumed other recent Versions of Windows would as well...

Will April 7th, 2004 10:10 PM

Re: CHTML 1.00.00 Discussion Thread
 
If you're just using it to generate flat HTML files, you don't really need to worry about web servers using '/' instead of '\'. It will just output the file to the path given with \, and when you upload to a server, the server file system uses / instead.

Ragnarok-X April 7th, 2004 10:29 PM

Re: CHTML 1.00.00 Discussion Thread
 
i have to admit i cant get your programm to run. Its propably because of my poor dos skills (forgot most of dos in the Last 10 years).

So to sum it up: WHERE IS THE GUI ? http://forum.shrapnelgames.com/images/icons/tongue.gif

geoschmo April 8th, 2004 01:56 AM

Re: CHTML 1.00.00 Discussion Thread
 
Interesting. Tried it out, not sure if it's working though.

First of all you have the slashes backwards in your examples in the readme.txt file. Not a big deal, but you might want to fix that.

Also, the readme.txt file has a .txt extension, but apparently was made in some other program then notepad. Notepad doesn't like the formatting. You might want to convert that to a format viewable by notepad, or save it as a .doc file maybe. Seems to open fine in wordpad, maybe thta's what you used?

After answering all the prompts though, the program seems to be hanging. I got to file formatting and selected option 3 and hit return, and nothing is happening. The program is still running in task manager, but nothing is happening in the output folder except a zero byte file with no extension has been created.

I'm on NT. Could it be that it's not compatible with NT?

[ April 07, 2004, 12:56: Message edited by: geoschmo ]

Fyron April 8th, 2004 04:05 AM

Re: CHTML 1.00.00 Discussion Thread
 
Just double click on chtml.exe and it will run.

Fyron May 2nd, 2004 04:28 AM

Re: CHTML 1.00.00 Discussion Thread
 
Bit of a problem... anyone know how to make strings larger than 255 characters? Or some other standard data type that is larger, such as a "long string" or something? That, or an easy way to deal with the necessity of dynamically storing arrays of characters that are longer than 255 characters...

Will May 2nd, 2004 07:53 AM

Re: CHTML 1.00.00 Discussion Thread
 
The STL string class should be able to handle more than 255 characters... at least I'm pretty sure I've used it in the past to handle more than that. If not, you could probably work around it with a vector of char's.

Lisif Deoral May 2nd, 2004 11:50 AM

Re: CHTML 1.00.00 Discussion Thread
 
Quote:

Originally posted by Imperator Fyron:
THe program currently only functions on Windows based machines.
<font size="2" face="sans-serif, arial, verdana">I actually see no reason to change this, since also SEIV runs on windows (or win32 emulators) only http://forum.shrapnelgames.com/images/icons/icon7.gif

(actually, SEIV is one of the few things that prevent me from switching to linux http://forum.shrapnelgames.com/images/icons/icon7.gif no, there's no way to run a win32 emu on my system, and I've not enough disk space for two OS. Tried once with two computers, but my second one is a 486 and SEIV was too S L O O W on it)

Fyron May 3rd, 2004 12:02 AM

Re: CHTML 1.00.00 Discussion Thread
 
Quote:

Originally posted by Will:
The STL string class should be able to handle more than 255 characters... at least I'm pretty sure I've used it in the past to handle more than that. If not, you could probably work around it with a vector of char's.
<font size="2" face="sans-serif, arial, verdana">Well... if it can, then I don't know why the program goes into an infinite loop after reading in the description line for Aggressive Master Computer I when running it with Adamant Mod data files... perhaps you can figure out the problem?

Fyron August 22nd, 2004 10:09 PM

CHTML 1.01.00 Released
 
Announcing the long awaited release of an updated CHTML! This Version is much more useful, as it has some output options which create very compact HTML files.

<hr>
Version 1.01.00 - 22 August 2004:
1. Fixed - BUFFER_SIZE for input has been increased from 255 to 1024. This
means that components with really long descriptions no longer
cause infinite loop problems.
2. Added - Output options 4 and 5, which create compact HTML files with a
minimal amount of information.
3. Changed - Horizonal rules are now defined by CSS, rather than HTML. They
appear correctly in all browsers now.

<hr>
This program is released open sourced and under the GNU General Public License. Source code is provided. The program currently only functions on Windows based machines.

<hr>
CHTML 1.01.00

Fyron August 22nd, 2004 11:14 PM

Re: CHTML 1.01.00 Released
 
I have uploaded files for Adamant Mod, as a sample:

http://adamant.spaceempires.net/components/

Captain Kwok August 22nd, 2004 11:24 PM

Re: CHTML 1.01.00 Released
 
That's not too bad. Are there options to adjust the look of the output?

Fyron August 22nd, 2004 11:34 PM

Re: CHTML 1.01.00 Released
 
There are some, yes. Noone ever bothered making suggestions as to what sort of output format they would like to see, so...

Try the program out and see for yourself. There are 6 included sample outputs, based on a stripped down Version of the stock Components.txt file.

The color coding is all handled via CSS style information located within each file, so it can be edited very easily.

Also, as the program is open sourced, anyone can create new options for it, and I will integrate them into the main program...

Fyron August 24th, 2004 08:50 PM

Re: CHTML 1.01.00 Released
 
No suggestions Kwok?

In the next Version, you will be able to use a settings.ini file to declare all necessary input variables and bypass the command line prompt entirely. Well, other than typing something like "chtml.exe -s settings.ini". Although, you could create such a shortcut and not use MS Dos Prompt at all... http://forum.shrapnelgames.com/images/smilies/wink.gif This feature will eventually allow me to write a nice GUI in a language such as Python... Aiken, I am sure you will be glad at hearing this news. http://forum.shrapnelgames.com/images/smilies/happy.gif

Captain Kwok August 24th, 2004 09:06 PM

Re: CHTML 1.01.00 Released
 
I haven't given the new Version a shot yet. Perhaps later today.

Ed Kolis August 24th, 2004 11:56 PM

Re: CHTML 1.01.00 Released
 
You're looking for suggestions? How about XML output - I don't know what anyone would use it for with the components file (importing/exporting to spreadsheets maybe?) but it is a very versatile data format... http://forum.shrapnelgames.com/images/smilies/wink.gif


All times are GMT -4. The time now is 10:53 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.