.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old June 19th, 2012, 07:05 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Official release of the unofficial Dominions 3 Wiki

Quote:
Originally Posted by JonBrave View Post
Here's what I don't get/is sad. Your Wiki is, or should be, 99.9% static text. No offence intended, but as I recall it's just clicking on links to other pages (little if any interaction)
Like others already wrote, far from it. It's probably pretty close to the other way around. Almost everything, including in most parts the graphics, is dynamically generated. There are caching mechanism in place, especially for the graphics, so that it doesn't have to be generated completely if there is a hit, of course. But what is stored in the MySQL database is something called Wikitext, which is being rendered into what you see on your screen. The Wikitext is just some very sleek text with Wiki-specific markup which aims to be very readable even when you edit the source code in the editor, instead of HTML for example, where your actual text can get lost in all the tags and markup it carries. And unlike HTML, that Wikitext has to be parsed by the server, not only on your side by your browser. That whole Wikitext runs through the MediaWiki parser before you see it, and MediaWiki, the Wiki software, has some very wicked Templating mechanism built-in, too. It's a very complex Turing-complete language, if you want, which differentiates it from a WYSIWYG Content Management System where you use a finite set of tools. Oh, and the MediaWiki software itself with the included parser is programmed in PHP, which is an interpreted language that has to run through a PHP parser at runtime before it is being executed, too. So there are a couple of parsers simultaneously at work at the server on different levels whenever the Wiki has to spit something out on your screen.

Of course, the aim is to keep the actual rendering low as much as possible. Which is why I am using something called APC, Advanced Parser Cache, to always keep the things which are used the most in memory. And theoretically, all the rendering should only be necessary if somebody makes a change to one of the pages. But there's just not enough memory to keep all the thousands of pages in memory at once, which is why you do have those load times (and sometimes it seems to get stuck at some point, I don't know why). When I wrote that the Wiki is probably slow either because of my net connection (I doubt it) or the server hardware (quite possible), I forgot one other thing: It might very much be slowed down by the design, too. I am using extensions, like SMW, Semantic MediaWiki, which could probably be used better. I'm using Templates that could probably be optimized. A couple of pages could probably be formatted in a better way, and most of all: The unit pages, which I'm guessing are being accessed the most, are using a design which is maybe not very cache-friendly. It accesses an internal MySQL database of stats and values quite similar to Edi's Dom3DB which I separated from the MediaWiki articles so that I'd have it easy to update those stats and values when a new update to Dom3 changes them. Back when the Wiki was developed, there were more or less regular updates every half year, and quite a lot of little data changes could happen in a patch. Populating that data into the Wikitext from the unit articles would be painful manual labor, or I'd have to write my own parser/robot to find and change that information, so I wrote a MediaWiki extension which grabs that data from another internal database instead. Nowadays Dom3 is pretty much final and there haven't been any major patches to the content lately, so such a setup is not as necessary as it seemed to be at first, and I could probably lose that design. I didn't knew about the power of Semantic MediaWiki when I started this design, too, and I probably could have dismissed this strange design from the start. Like I wrote in my opening post, I think there's probably a lot more powerful stuff to be harnessed from SMW, but I lack the knowledge and the time to learn it outside of a paid work experience myself now.

I'm still hoping that a SMW wizard might come by at some point, weave his magic wand and suddenly everything will just be beautiful and lightning fast... In the meantime, you'll have to live with things the way they are now. Not ideal, but you'll have to cope.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief

Last edited by lch; June 19th, 2012 at 07:18 PM..
Reply With Quote
  #2  
Old April 20th, 2012, 03:31 PM

legowarrior legowarrior is offline
Second Lieutenant
 
Join Date: Dec 2008
Posts: 412
Thanks: 19
Thanked 18 Times in 5 Posts
legowarrior is on a distinguished road
Default Re: Official release of the unofficial Dominions 3 Wiki

I thought about reposting my answer, but I thought that maybe I didn't understand the question the first time. Still, patience young grasshoper.
Reply With Quote
  #3  
Old April 21st, 2012, 01:00 PM

John_Madlock John_Madlock is offline
Corporal
 
Join Date: Nov 2009
Posts: 53
Thanks: 16
Thanked 2 Times in 2 Posts
John_Madlock is on a distinguished road
Default Re: Official release of the unofficial Dominions 3 Wiki

Damn, I hope it will be back.
Reply With Quote
  #4  
Old April 21st, 2012, 02:58 PM

Rick L Rick L is offline
Private
 
Join Date: Oct 2008
Posts: 38
Thanks: 0
Thanked 1 Time in 1 Post
Rick L is on a distinguished road
Default Re: Official release of the unofficial Dominions 3 Wiki

Sorry for the duplication. I didn't see my original post and decided I had done something wrong when I submitted it.
Reply With Quote
  #5  
Old April 22nd, 2012, 12:04 AM
brxbrx's Avatar

brxbrx brxbrx is offline
Second Lieutenant
 
Join Date: Apr 2008
Location: Tempe, Az
Posts: 419
Thanks: 38
Thanked 16 Times in 15 Posts
brxbrx is an unknown quantity at this point
Default Re: Official release of the unofficial Dominions 3 Wiki

You guys thought about enabling anonymous editing?
Reply With Quote
  #6  
Old April 22nd, 2012, 08:23 AM
Soyweiser's Avatar

Soyweiser Soyweiser is offline
Colonel
 
Join Date: Nov 2008
Posts: 1,735
Thanks: 272
Thanked 120 Times in 93 Posts
Soyweiser is on a distinguished road
Default Re: Official release of the unofficial Dominions 3 Wiki

That only invites more spam.
__________________
I'm acting like a high school girl /\
Bookmark these links:
http://dom3.servegame.com/wiki/
http://wolfsbane.alwaysdata.net/Spells.html
Test stuff, use the debug mod:
http://forum.shrapnelgames.com/showthread.php?t=36453
Reply With Quote
  #7  
Old June 13th, 2012, 05:11 PM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Official release of the unofficial Dominions 3 Wiki

Hello all,

the Wiki is up and running again. We had this purple bog beast infestation in our home, and although our experts were already on the case, we had to devote all our free time to those experts, too, you see...



Okay, jokes aside, I am very sorry for the long downtime. When the captcha extension made trouble I turned the web server off, thinking that I could get to fix that problem soon - which regrettably was not the case. Yesterday I did some upgrades to the underlying operating system and since I started the Web server again, with the Wiki still in its defunct read-only state, hoping that I could run some reparations before announcing "The Wiki is back" to the outside world, I already received an email from llama and even some donations from community members. Those donations will go into the "new HDD for the Wiki" fund, thanks a lot.

(tech talk mode on)
Now that I had a closer look at the situation, the problem was that the Recaptcha extension was being incorporated into the official MediaWiki code, and those updated files have been pulled through SVN updates like they should. The configuration files still linked against the files from the old recaptcha library, though, and those started to fail working correctly at some point. Pretty resistant to any hotfixes. Now that I had enough distance to this, I finally noticed the misconfiguration.
(tech talk mode off)


I will work some more on the underlying Wiki software when I find time for that, but right now you're invited to start using the Wiki in its current form, and please report if you receive any other errors.
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
The Following 11 Users Say Thank You to lch For This Useful Post:
  #8  
Old June 13th, 2012, 05:43 PM

Hrum Hrum is offline
Corporal
 
Join Date: Mar 2010
Posts: 121
Thanks: 22
Thanked 3 Times in 2 Posts
Hrum is on a distinguished road
Default Re: Official release of the unofficial Dominions 3 Wiki

Congrats lch!

And thanks for all your work on the wiki.

If you didn't already know how much everyone gets out of the wiki, you can tell how much we love it on the rare occasions when it's unavailable. As anyone who has any background in IT stuff knows, this is normal for all of us users - we express our love for the service you provide by kvetching when it is temporarily unavailable. The enthusiasm of the kvetching is a reasonable gauge for the intensity of our love.
Reply With Quote
  #9  
Old June 13th, 2012, 05:59 PM

JonBrave JonBrave is offline
Second Lieutenant
 
Join Date: Aug 2010
Posts: 546
Thanks: 100
Thanked 10 Times in 8 Posts
JonBrave is on a distinguished road
Default Re: Official release of the unofficial Dominions 3 Wiki

@Ich,

Many thanks for your work, and the return of the site. Now that I've seen the photo, I had not realised that you were so young when I asked in a post about how long the site was down, may I say your IT skills are remarkable for someone of your age.
Reply With Quote
  #10  
Old June 13th, 2012, 09:06 PM

oldrocker99 oldrocker99 is offline
Private
 
Join Date: Jan 2011
Location: Norwich CT
Posts: 11
Thanks: 62
Thanked 3 Times in 2 Posts
oldrocker99 is on a distinguished road
Talking Re: Official release of the unofficial Dominions 3 Wiki

I ponied up $5, intend to contribute more, and invite everyone else to do the same!
Reply With Quote
The Following 2 Users Say Thank You to oldrocker99 For This Useful Post:
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 08:38 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.