Files

> > CS2D > Lua Scripts > [Bolt]HTML Creator
Files overviewCS2D overviewLua Scripts overview

English [Bolt]HTML Creator >

19 comments3 kb, 508 Downloads

old [Bolt]HTML Creator

Avo
User Off Offline

Hi, there. Today I present you few functions which you can use to generate txt or html files. Maybe I will upgrade it in the future.

Using is very easy.
Html.Doc table stores lines of your document, each index value is each line. You can easily insert lines and control inserting text with:


1
Html.Insert("font","size=10","This text's size is 10")
and
1
Html.InsertOther("br")
and
1
Html.InsertCustom("LINE")
and
1
Html.InsertCustom({"Line1","Line2","Line3"})

To generate html/txt use:
1
Html.Generate("my_file.html")


Look at example that is included with file and all will be easy.
Also on Youtube
IMG:https://i.creativecommons.org/l/by-sa/3.0/88x31.png

Use my script where you want under Creative Commons BY-SA License - you can edit it, develope and distribute, but add me in credits and use it under the same license.
edited 5×, last 09.02.13 11:20:23 pm
Approved by EngiN33R

Download Download

3 kb, 508 Downloads

Comments

19 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

XiBaoZi
COMMUNITY BANNED Off Offline

Good stuff.
I like it!

old

3RROR
User Off Offline

Pretty nice
I like it!

old

Avo
User Off Offline

It's good for servers (default info about server). You can create what do you want in your HTML file. For example ranking of best player on your server. (I mean lua level and xp). But you think what you think.

old

Infinite Rain
Reviewer Off Offline

I think this is useless
edited 1×, last 23.07.12 02:26:00 pm

old

Eternal
User Off Offline

Nice work.
I like it!

old

Avo
User Off Offline

Thanks, guys. Look at example after download. There is easy sample how to generate html file in cs2d folder.

old

boong
User Off Offline

i liked..
a script of html in game would be nice (:
type: put colors in name and bold, italic..
I like it!

old

Avo
User Off Offline

@user mafia_man: I've seen that, it's great, but mine is not only for chat .

old

Zurak
User Off Offline

very helpful, great idea.
I like it!

old

krabob
User Off Offline

This is actually really nice. Good work
I like it!

old

Apache uwu
User Off Offline

Wow awesome! No backend serversided scripts required! The next step is to style the template :).
I like it!

old

Happy Killer
BANNED Off Offline

Cool idea. Nice work
I like it!

old

HaRe
User Off Offline

Kinda useless when there is already an CS2D Server query, Which queries Servername, Password, Players online and so on. But keep the good work up, I like this one!
I like it!

old

BcY
Reviewer Off Offline

good idea.
I like it!

old

Chingy
User Off Offline

might be useful
I like it!

old

Avo
User Off Offline

I gonna make same other functions, but in free time.

old

Suprise
BANNED Off Offline

Agree Awsome, great idea. Make more like this.
I like it!

old

Shawni
User Off Offline

Nice idea
I like it!
To the start Previous 1 Next To the start