Forum

> > Off Topic > [TUT] Offline CS2D Documentation
Forums overviewOff Topic overviewLog in to reply

English [TUT] Offline CS2D Documentation

5 replies
To the start Previous 1 Next To the start

old [TUT] Offline CS2D Documentation

VADemon
User Off Offline

Quote
in a strong russian accent:

Hello friends and family, comrades!

Many of you will not know, but a long time ago CS2D had only an offline documentation and every scripter worked with it. That's how sys/lua/info.txt looked like:
build(id,type,x,y,mode,objectid)			on build
-id: player id
-type: building type
-x: building x (tiles)
-y: building y (tiles)
-mode: building mode
-objectid: id of new object


It was very gud: you open file and start coding, no internet, no nothing! But then comrade Petya thought he would make an online documentation and then he just deleted the file! BLIN! For real Petya, how can I now do scripting without internet? At work my boss Vladimir blocked cs2d.com and I cannot write scripts there.
I was very sad and angry at Petya, because since the release of online documentation I was helpless without internet access. HOW CAN HE JUST DELETE INFO.TXT, CYKA? But then I remembered my babushka's old recipe book - remember friends, when something not work: just ask grandmother, she always has the right answer. On page 17 I found this recipe for offline reading:

∗ Ingredients cookies
• Any operating system
• wget (native on Linux, download .exe for Windows)
• Command-line
• Internet (yes, blin, paradox)

∗ Preparation:
• Download wget if you have not done it yet
• Open command-line in the wget folder:
Open Command-line on Windows >

• 10 minutes in the oven at 70°C

∗ Recipe:
In the opened command window paste this line (Right Click > Paste):
wget  -o mirror.log -t 5 --no-use-server-timestamps  --limit-rate=256K --wait=1s --random-wait --mirror --domains=www.cs2d.com,cs2d.com --accept-regex "(faq|play|tutorials|tutorials_mapping|help|entities|cheatsheets|weapons)\.php|img\/.*|css\/.*|js\/.*|favicon.ico" --execute robots=off  --adjust-extension --content-on-error --convert-links  http://www.cs2d.com/faq.php


And put it in the oven (hit Enter) for 10-15 minutes. It will download pages (~25 MB) and save them inside "www.cs2d.com" folder.
Once it has finished you can open folder and read files like when you're online. No need for internet, blyat! This is full profit, now I can script without internet and at work, because my boss Vladimir doesn't know about that.

∗ Recipe explanation >


Stay Cheeki Breeki guys!
edited 2×, last 23.09.16 03:14:22 pm

old Re: [TUT] Offline CS2D Documentation

Yates
Reviewer Off Offline

Quote
What is this "no Internet" issue people seem to talk about?

I assume if you ask DC nicely he'd probably make a simple PHP script to output the documentation into this format.
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview