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
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:
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.
Stay Cheeki Breeki guys!
edited 2×, last 23.09.16 03:14:22 pm