Page 1 of 1

Did someone try to mod the library yet?

Posted: Wed Jan 18, 2012 7:46 pm
by bebro
Seems it's mostly html pages, plus the pics if you want to display any. I'm not exactly an expert in writing html, my knowledge of it is rather rudimentary, but I couldn't be so difficult, or could it?

Anywy, maybe someone has already done it and wants to share some tips/tricks?

I think now the whole lot of text I wrote for the release of the USMC mod would maybe be better placed in there for easier access while playing. At least those parts describing changes, possibly new concepts introduced, for background info, campaign path, maybe a list of switch units etc., etc.

It seems the library displays some changed values correctly automatically from the files in /data, movement stats for example. Other than that I didn't really do much with the library.

Well, long story short if someone has done it and wants to share how-to info I'm all ears :)

For the start I just tried to change the CSS for my mod to display another font in-game but got a total different one as result. /fail

Edit: got the font right, was editing the wrong file :roll:

Posted: Wed Jan 18, 2012 10:51 pm
by huertgenwald
"Self-Html" might be a starting point.

http://selfhtml.org

HtH

Posted: Thu Jan 19, 2012 12:51 pm
by bebro
Hey, thx. I have some very basic skills in html, but hardly use them, and as said it's nothing really good, so this will help certainly :)

Posted: Thu Jan 19, 2012 8:35 pm
by Uhu
I know, the DMP guys modified it effectively.
I'm right now modifiing the campaign.htm - it is quite easy I only change the scenario names of the campaign. I want to place a sheet about Italian units in the library too so I hope it will not hard. :) (I'm also not a master in htm programming.)

bebro wrote:Hey, thx. I have some very basic skills in html, but hardly use them, and as said it's nothing really good, so this will help certainly :)

Posted: Thu Jan 19, 2012 10:38 pm
by huertgenwald
Already mentioned for other campaign files:

Using NotePad++ is REALLY helpful for modding HTML files.

HtH

Posted: Fri Jan 20, 2012 12:29 pm
by bebro
Uhu wrote:I know, the DMP guys modified it effectively.
I'm right now modifiing the campaign.htm - it is quite easy I only change the scenario names of the campaign. I want to place a sheet about Italian units in the library too so I hope it will not hard. :) (I'm also not a master in htm programming.)
I completely forgot about DMP, yeah, I even saw their campaign path for "Winter War".

As for the html, it seems not to be that hard since we just can use existing files from the library as templates to modify. :)


huertgenwald: yep, I use this one, which is nice and free too: http://www.pnotepad.org/

Posted: Sat Jan 21, 2012 11:26 am
by bebro
Once you get into it it becomes rather easy indeed:

Image

Otherwise, if you want to edit in specific things huertgenwald's link is a great help.