summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-16 00:37:11 -0200
committerjesusalva <cpntb1@ymail.com>2018-02-16 00:37:11 -0200
commit5f364c98a084ef3915c0fceba237274f1a1aa3bd (patch)
treee7b9e40c545fbe940efb00244efdf9baa8ac5dcb /web
parent84a8e49060d3bbdb86d1b87f1d2ce3dc0ea1595e (diff)
downloadtools-5f364c98a084ef3915c0fceba237274f1a1aa3bd.tar.gz
tools-5f364c98a084ef3915c0fceba237274f1a1aa3bd.tar.bz2
tools-5f364c98a084ef3915c0fceba237274f1a1aa3bd.tar.xz
tools-5f364c98a084ef3915c0fceba237274f1a1aa3bd.zip
Include a tool to autogen our news historic page
Diffstat (limited to 'web')
-rw-r--r--web/all_news.bin169
-rw-r--r--web/backup.bin68
-rw-r--r--web/news.html170
-rwxr-xr-xweb/news_to_html.py66
4 files changed, 473 insertions, 0 deletions
diff --git a/web/all_news.bin b/web/all_news.bin
new file mode 100644
index 0000000..4de6713
--- /dev/null
+++ b/web/all_news.bin
@@ -0,0 +1,169 @@
+
+<h3><a name=2018-02-16>2018-02-16</a></h3>
+
+<font color=black></font><font color=black> Actual Release: <font color=red>Pilot-II Testing
+<br/>
+</font><font color=black> Welcome to <b>The Mana World 2: Monster War</b>!
+<br/>
+</font><font color=black> By playing you agree and abide to the <font color=red>Terms of Service</font><font color=black> of <b>The Mana World 2</b>, available at:
+<br/>
+<font color=red> <a href="https://gitlab.com/TMW2/TheManaWorld_Wiki/wikis/Rules">https://gitlab.com/TMW2/TheManaWorld_Wiki/wikis/Rules</a>
+<br/>
+<font color=green> Last ToS update: 2018-02-15
+<br/>
+
+<br/>
+<font color=red> Our Staff will never ask for your password. You are the sole responsible for
+<br/>
+<font color=red> its safety!
+<br/>
+<font color=green> If you ever run in trouble, try contacting a GM with <b>@request Help me!</b>
+<br/>
+<font color=green> Please enjoy our server, and have fun!
+<br/>
+
+<br/>
+<font color=purple> <b>The adventure begins!</b>
+<br/>
+
+<br/>
+<font color=purple> Release 1.1: Candy Candy!
+<br/>
+
+<br/>
+</font><font color=black> Nard is ready to bring you to and fro Candor and Tulimshar. His ship still have
+<br/>
+</font><font color=black> some issues, like global space and no wait times, but hey! He brings you to where
+<br/>
+</font><font color=black> you want!
+<br/>
+
+<br/>
+</font><font color=black> We needed to rewrite the client updates due the domain name move. Do not worry,
+<br/>
+</font><font color=black> this download should be the last massive one, with humble 60 Megabytes!
+<br/>
+
+<br/>
+</font><font color=black> Various map issues were fixed, including warps. NPCs are improved, and paying
+<br/>
+</font><font color=black> the ticket to Tulimshar is not impossible anymore. Many NPCs are mere placeholders,
+<br/>
+</font><font color=black> and <font color=red>female sprites are still broken</font><font color=black>, but hey! We'll fix as we move on!
+<br/>
+
+<br/>
+</font><font color=black> We want to express our gratitute here to Saulc, for sponsoring this server.
+<br/>
+</font><font color=black> We also want to thanks everyone who contributed to this game, it would never
+<br/>
+</font><font color=black> have left drawing board without all of you!
+<br/>
+
+<br/>
+</font><font color=black> You can see at our gitlab page the issues remaining for next release. Broken
+<br/>
+</font><font color=black> maps, missing NPCs, broken XML and sprites - you're welcome to pick any task
+<br/>
+</font><font color=black> to help us. We plan in releasing at <b>2018-03-02</b> and with your help we can!
+<br/>
+</font><font color=black> Yes! Let's make a great TMW2:MW!
+<br/>
+
+<br/>
+</font><font color=black> Due the very early stages of development, we may need to do a full account reset
+<br/>
+</font><font color=black> before next release, so do not get too attached to it :>
+<br/>
+</font><font color=black> The early stage also means constant server resets and updates. Sorry.
+<br/>
+
+<br/>
+</font><font color=black> This is a Pilot Release, and therefore, not much content is present.
+<br/>
+</font><font color=black> We welcome all contributors who are willing to join.
+<br/>
+
+<br/>
+</font><font color=black> Have fun, because the monsters won't wait for you!
+<br/>
+
+<br/>
+<font color=brown> -- Your TMW2 Team
+<br/>
+<font color=brown> February 2018
+<br/>
+
+<br/>
+</font><font color=black> You can check out this page for older entries:
+<br/>
+<font color=brown> <a href="http://tmw2.org/news.html">http://tmw2.org/news</a>
+<br/>
+</font><hr/>
+<h3><a name=2018-02-16>2018-02-14</a></h3>
+
+<font color=black></font><font color=black> Actual Release: <font color=red>Pilot-I Testing
+<br/>
+</font><font color=black> Welcome to <b>The Mana World 2</b>!
+<br/>
+</font><font color=black> By playing you agree and abide to the <font color=red>Terms of Service</font><font color=black> of <b>The Mana World 2</b>, available at:
+<br/>
+<font color=red> <a href="https://gitlab.com/TMW2/TheManaWorld_Wiki/wikis/Rules">https://gitlab.com/TMW2/TheManaWorld_Wiki/wikis/Rules</a>
+<br/>
+
+<br/>
+<font color=red> Our Staff will never ask for your password. You are the sole responsible for
+<br/>
+<font color=red> its safety!
+<br/>
+<font color=green> If you ever run in trouble, try contacting a GM with <b>@request Help me!</b>
+<br/>
+<font color=green> Please enjoy our server, and have fun!
+<br/>
+
+<br/>
+<font color=purple> <b>The adventure begins!</b>
+<br/>
+
+<br/>
+<font color=purple> Release 1: Candy!
+<br/>
+
+<br/>
+</font><font color=black> The work which started at mid-january is currently advancing.
+<br/>
+</font><font color=black> You can travel with Nard to Candor and later, you'll be able to visit Tulishmar.
+<br/>
+</font><font color=black> Remember that this is not TMW:rEvolt, even if many aspects are similar.
+<br/>
+
+<br/>
+</font><font color=black> Due the very early stages of development, we may need to do a full account reset
+<br/>
+</font><font color=black> before next release, so do not get too attached to it :>
+<br/>
+</font><font color=black> The early stage also means constant server resets and updates. Sorry.
+<br/>
+
+<br/>
+</font><font color=black> This is a Pilot Release, and therefore, not much content is present.
+<br/>
+</font><font color=black> We welcome all contributors who are willing to join.
+<br/>
+
+<br/>
+</font><font color=black> Have fun, the adventure starts now!
+<br/>
+
+<br/>
+<font color=brown> -- Your TMW2 Team
+<br/>
+<font color=brown> February 2018
+<br/>
+
+<br/>
+</font><font color=black> You can check out this page for older entries:
+<br/>
+<font color=red> <a href="http://tmw2.org/news.html">http://tmw2.org/news</a>
+<br/>
+</font><hr/>
diff --git a/web/backup.bin b/web/backup.bin
new file mode 100644
index 0000000..5a4da16
--- /dev/null
+++ b/web/backup.bin
@@ -0,0 +1,68 @@
+
+<h3><a name=2018-02-16>2018-02-14</a></h3>
+
+<font color=black></font><font color=black> Actual Release: <font color=red>Pilot-I Testing
+<br/>
+</font><font color=black> Welcome to <b>The Mana World 2</b>!
+<br/>
+</font><font color=black> By playing you agree and abide to the <font color=red>Terms of Service</font><font color=black> of <b>The Mana World 2</b>, available at:
+<br/>
+<font color=red> <a href="https://gitlab.com/TMW2/TheManaWorld_Wiki/wikis/Rules">https://gitlab.com/TMW2/TheManaWorld_Wiki/wikis/Rules</a>
+<br/>
+
+<br/>
+<font color=red> Our Staff will never ask for your password. You are the sole responsible for
+<br/>
+<font color=red> its safety!
+<br/>
+<font color=green> If you ever run in trouble, try contacting a GM with <b>@request Help me!</b>
+<br/>
+<font color=green> Please enjoy our server, and have fun!
+<br/>
+
+<br/>
+<font color=purple> <b>The adventure begins!</b>
+<br/>
+
+<br/>
+<font color=purple> Release 1: Candy!
+<br/>
+
+<br/>
+</font><font color=black> The work which started at mid-january is currently advancing.
+<br/>
+</font><font color=black> You can travel with Nard to Candor and later, you'll be able to visit Tulishmar.
+<br/>
+</font><font color=black> Remember that this is not TMW:rEvolt, even if many aspects are similar.
+<br/>
+
+<br/>
+</font><font color=black> Due the very early stages of development, we may need to do a full account reset
+<br/>
+</font><font color=black> before next release, so do not get too attached to it :>
+<br/>
+</font><font color=black> The early stage also means constant server resets and updates. Sorry.
+<br/>
+
+<br/>
+</font><font color=black> This is a Pilot Release, and therefore, not much content is present.
+<br/>
+</font><font color=black> We welcome all contributors who are willing to join.
+<br/>
+
+<br/>
+</font><font color=black> Have fun, the adventure starts now!
+<br/>
+
+<br/>
+<font color=brown> -- Your TMW2 Team
+<br/>
+<font color=brown> February 2018
+<br/>
+
+<br/>
+</font><font color=black> You can check out this page for older entries:
+<br/>
+<font color=red> <a href="http://tmw2.org/news.html">http://tmw2.org/news</a>
+<br/>
+</font><hr/>
diff --git a/web/news.html b/web/news.html
new file mode 100644
index 0000000..6ecfe08
--- /dev/null
+++ b/web/news.html
@@ -0,0 +1,170 @@
+<!DOCTYPE HTML><html><head><title>Server News</title></head><body>
+<h3><a name=2018-02-16>2018-02-16</a></h3>
+
+<font color=black></font><font color=black> Actual Release: <font color=red>Pilot-II Testing
+<br/>
+</font><font color=black> Welcome to <b>The Mana World 2: Monster War</b>!
+<br/>
+</font><font color=black> By playing you agree and abide to the <font color=red>Terms of Service</font><font color=black> of <b>The Mana World 2</b>, available at:
+<br/>
+<font color=red> <a href="https://gitlab.com/TMW2/TheManaWorld_Wiki/wikis/Rules">https://gitlab.com/TMW2/TheManaWorld_Wiki/wikis/Rules</a>
+<br/>
+<font color=green> Last ToS update: 2018-02-15
+<br/>
+
+<br/>
+<font color=red> Our Staff will never ask for your password. You are the sole responsible for
+<br/>
+<font color=red> its safety!
+<br/>
+<font color=green> If you ever run in trouble, try contacting a GM with <b>@request Help me!</b>
+<br/>
+<font color=green> Please enjoy our server, and have fun!
+<br/>
+
+<br/>
+<font color=purple> <b>The adventure begins!</b>
+<br/>
+
+<br/>
+<font color=purple> Release 1.1: Candy Candy!
+<br/>
+
+<br/>
+</font><font color=black> Nard is ready to bring you to and fro Candor and Tulimshar. His ship still have
+<br/>
+</font><font color=black> some issues, like global space and no wait times, but hey! He brings you to where
+<br/>
+</font><font color=black> you want!
+<br/>
+
+<br/>
+</font><font color=black> We needed to rewrite the client updates due the domain name move. Do not worry,
+<br/>
+</font><font color=black> this download should be the last massive one, with humble 60 Megabytes!
+<br/>
+
+<br/>
+</font><font color=black> Various map issues were fixed, including warps. NPCs are improved, and paying
+<br/>
+</font><font color=black> the ticket to Tulimshar is not impossible anymore. Many NPCs are mere placeholders,
+<br/>
+</font><font color=black> and <font color=red>female sprites are still broken</font><font color=black>, but hey! We'll fix as we move on!
+<br/>
+
+<br/>
+</font><font color=black> We want to express our gratitute here to Saulc, for sponsoring this server.
+<br/>
+</font><font color=black> We also want to thanks everyone who contributed to this game, it would never
+<br/>
+</font><font color=black> have left drawing board without all of you!
+<br/>
+
+<br/>
+</font><font color=black> You can see at our gitlab page the issues remaining for next release. Broken
+<br/>
+</font><font color=black> maps, missing NPCs, broken XML and sprites - you're welcome to pick any task
+<br/>
+</font><font color=black> to help us. We plan in releasing at <b>2018-03-02</b> and with your help we can!
+<br/>
+</font><font color=black> Yes! Let's make a great TMW2:MW!
+<br/>
+
+<br/>
+</font><font color=black> Due the very early stages of development, we may need to do a full account reset
+<br/>
+</font><font color=black> before next release, so do not get too attached to it :>
+<br/>
+</font><font color=black> The early stage also means constant server resets and updates. Sorry.
+<br/>
+
+<br/>
+</font><font color=black> This is a Pilot Release, and therefore, not much content is present.
+<br/>
+</font><font color=black> We welcome all contributors who are willing to join.
+<br/>
+
+<br/>
+</font><font color=black> Have fun, because the monsters won't wait for you!
+<br/>
+
+<br/>
+<font color=brown> -- Your TMW2 Team
+<br/>
+<font color=brown> February 2018
+<br/>
+
+<br/>
+</font><font color=black> You can check out this page for older entries:
+<br/>
+<font color=brown> <a href="http://tmw2.org/news.html">http://tmw2.org/news</a>
+<br/>
+</font><hr/>
+<h3><a name=2018-02-16>2018-02-14</a></h3>
+
+<font color=black></font><font color=black> Actual Release: <font color=red>Pilot-I Testing
+<br/>
+</font><font color=black> Welcome to <b>The Mana World 2</b>!
+<br/>
+</font><font color=black> By playing you agree and abide to the <font color=red>Terms of Service</font><font color=black> of <b>The Mana World 2</b>, available at:
+<br/>
+<font color=red> <a href="https://gitlab.com/TMW2/TheManaWorld_Wiki/wikis/Rules">https://gitlab.com/TMW2/TheManaWorld_Wiki/wikis/Rules</a>
+<br/>
+
+<br/>
+<font color=red> Our Staff will never ask for your password. You are the sole responsible for
+<br/>
+<font color=red> its safety!
+<br/>
+<font color=green> If you ever run in trouble, try contacting a GM with <b>@request Help me!</b>
+<br/>
+<font color=green> Please enjoy our server, and have fun!
+<br/>
+
+<br/>
+<font color=purple> <b>The adventure begins!</b>
+<br/>
+
+<br/>
+<font color=purple> Release 1: Candy!
+<br/>
+
+<br/>
+</font><font color=black> The work which started at mid-january is currently advancing.
+<br/>
+</font><font color=black> You can travel with Nard to Candor and later, you'll be able to visit Tulishmar.
+<br/>
+</font><font color=black> Remember that this is not TMW:rEvolt, even if many aspects are similar.
+<br/>
+
+<br/>
+</font><font color=black> Due the very early stages of development, we may need to do a full account reset
+<br/>
+</font><font color=black> before next release, so do not get too attached to it :>
+<br/>
+</font><font color=black> The early stage also means constant server resets and updates. Sorry.
+<br/>
+
+<br/>
+</font><font color=black> This is a Pilot Release, and therefore, not much content is present.
+<br/>
+</font><font color=black> We welcome all contributors who are willing to join.
+<br/>
+
+<br/>
+</font><font color=black> Have fun, the adventure starts now!
+<br/>
+
+<br/>
+<font color=brown> -- Your TMW2 Team
+<br/>
+<font color=brown> February 2018
+<br/>
+
+<br/>
+</font><font color=black> You can check out this page for older entries:
+<br/>
+<font color=red> <a href="http://tmw2.org/news.html">http://tmw2.org/news</a>
+<br/>
+</font><hr/>
+</body></html> \ No newline at end of file
diff --git a/web/news_to_html.py b/web/news_to_html.py
new file mode 100755
index 0000000..0f0b7c1
--- /dev/null
+++ b/web/news_to_html.py
@@ -0,0 +1,66 @@
+#! /usr/bin/env python
+# -*- coding: utf8 -*-
+#
+# Copyright (C) 2018 The Mana World 2
+# Author: Jonatas N. (Jesusalva)
+
+import datetime
+date=str(datetime.date.today())
+
+
+# Prepare to sort from newest to oldest
+dt=open("all_news.bin", "r")
+dc=open("backup.bin", "w")
+for i in dt:
+ dc.write(i)
+dc.close()
+dt.close()
+dt=open("all_news.bin", "w")
+dc=open("backup.bin", "r")
+
+# Read news and prepare header
+ns=open("../update/news.txt", "r")
+dt.write("\n<h3><a name="+date+">"+date+"</a></h3>\n\n<font color=black>")
+
+# Function to markup it
+def markup(r):
+ r=r.replace('##0', '</font><font color=black>')
+ r=r.replace('##1', '<font color=red>')
+ r=r.replace('##2', '<font color=green>')
+ r=r.replace('##3', '<font color=blue>')
+ r=r.replace('##4', '<font color=gold>')
+ r=r.replace('##5', '<font color=yellow>')
+ r=r.replace('##6', '<font color=pink>')
+ r=r.replace('##7', '<font color=purple>')
+ r=r.replace('##8', '<font color=gray>')
+ r=r.replace('##9', '<font color=brown>')
+ r=r.replace('##B', '<b>')
+ r=r.replace('##b', '</b>')
+ r=r.replace('[@@', '<a href="')
+ r=r.replace('|', '">')
+ r=r.replace('@@]', '</a>')
+ return r
+
+# Write the news at all_news.bin, and then reload the backup. Finally, close the file
+for i in ns:
+ dt.write(markup(i)+'<br/>\n')
+dt.write("</font><hr/>")
+for i in dc:
+ dt.write(i)
+
+ns.close()
+dt.close()
+dc.close()
+
+# Write the final HTML page
+wp=open("news.html", "w")
+dt=open("all_news.bin", "r")
+
+wp.write("<!DOCTYPE HTML><html><head><title>Server News</title></head><body>")
+for line in dt:
+ wp.write(line)
+wp.write("</body></html>")
+
+wp.close()
+dt.close()
+