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

This Month's Specials

BCT Commander- Save $6.00
World Supremacy- Save $10.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old November 6th, 2007, 05:44 PM

Snoddasmannen Snoddasmannen is offline
Private
 
Join Date: Nov 2007
Posts: 35
Thanks: 7
Thanked 20 Times in 5 Posts
Snoddasmannen is on a distinguished road
Default Re: Spell Guide Beta-0

Hi everybody, my first post here!

Thanks for the list DrPraetorious! I had some fun with it and webalized it, hope you won't mind. I wanted a way to figure out what spells my mages could cast given their magic levels. So I put (parts of) your list in an sql database, and then designed a web interface to ask exactly that question.

I took the opportunity to play around with some new web technologies, so I ended up using lots of buzzwords: XML, XMLHttpRequest, client side XSLT/XPath and so on. Very Web 2.0

Unfortunately it only works in Opera (9.5) at the moment. Firefox complains about an XSLT error which I haven't had time to investigate. It's also possible that it works in Safari or new Konquerors. I don't think IE supports anything remotely similar to what I'm using.

Even more unfortunately I can't actually put it out on the web yet since I don't have a host with PHP5, and I don't want to rewrite the DOM/XML generation stuff for PHP4. Hopefully I can nag them to upgrade their PHP soon enough.

But anyway I'll try to attach a screenshot of my prototype here if I can figure out how.

I also wanted to ask a related question. I noticed that all this spell data is (probably) extracted from the binaries, where they are all nicely listed with all their properties. Now, I wanted my list to also include all forgeable items, but I can't find any such lists in the binaries Is such a list available anywhere? Ie: Magic item paired with magic path requisites?

In desperation I even fired up gdb but predictably got nowhere (other than to establish that get_item does something a bit more literal than I had hoped).
Attached Images
File Type: png 562218-spellbasesceenie.png (56.9 KB, 378 views)
Reply With Quote
  #2  
Old November 6th, 2007, 06:21 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: Spell Guide Beta-0

Quote:
Snoddasmannen said:
Even more unfortunately I can't actually put it out on the web yet since I don't have a host with PHP5, and I don't want to rewrite the DOM/XML generation stuff for PHP4. Hopefully I can nag them to upgrade their PHP soon enough.
There are plenty of free web hosting providers that offer PHP5 (some together with PHP4, too). You honestly really don't want to mess around with it in PHP4. PHP5's DOM/XML on the other hand is quite nice, I can confirm that aswell.

Quote:
Snoddasmannen said:
Now, I wanted my list to also include all forgeable items, but I can't find any such lists in the binaries Is such a list available anywhere? Ie: Magic item paired with magic path requisites?
Try Edi's Dom3 DB. It is linked in his signature.
__________________
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
  #3  
Old November 13th, 2007, 06:59 PM

Snoddasmannen Snoddasmannen is offline
Private
 
Join Date: Nov 2007
Posts: 35
Thanks: 7
Thanked 20 Times in 5 Posts
Snoddasmannen is on a distinguished road
Default Re: Spell Guide Beta-0

Hello again everybody.

My host eventually upgraded to PHP5 which means that I could put the searchable spell interface up there. If anybody's interested, have a look at:

http://www2.onyx.nu/pb/dom3/spells.html

Unfortunately, as I mentioned, I can't seem to be able to get it to work in Firefox, neither 1 nor 2. Something about the XSLT apparently doesn't sit right. If there are any Firefox fans out there with knowledge in this area, I certainly welcome patches to my javascript/xml.

It does however, work excellently in Opera 9.5. I'm guessing it works in 9.2x as well but I haven't tried it. It should also work on any later embedded Opera, such as on your Archos 605 media player, or on your Wii, though I've only tried the latter

Anyway, have fun and search, and please let me know if you have any ideas for improvements. It should be easy to add functionality.

Bonus points for the first person to spot the SVG's!
Reply With Quote
The Following User Says Thank You to Snoddasmannen For This Useful Post:
  #4  
Old November 13th, 2007, 08:42 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: Spell Guide Beta-0

Quote:
Snoddasmannen said:
Unfortunately, as I mentioned, I can't seem to be able to get it to work in Firefox, neither 1 nor 2. Something about the XSLT apparently doesn't sit right.
First thing to do, serve the right content type. Currently the xmlspells.php script returns the Content-Type: text/html, while it should be text/xml. You can set the right content-type via header()
__________________
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
  #5  
Old November 13th, 2007, 09:38 PM
jimkehn's Avatar

jimkehn jimkehn is offline
Second Lieutenant
 
Join Date: Mar 2007
Posts: 559
Thanks: 1
Thanked 0 Times in 0 Posts
jimkehn is on a distinguished road
Default Re: Spell Guide Beta-0

Snoddasmannen...looks good but it doesn't work on my machine. Probly a problem on my end.
Reply With Quote
  #6  
Old November 13th, 2007, 10:21 PM
DrPraetorious's Avatar

DrPraetorious DrPraetorious is offline
Major General
 
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
DrPraetorious is on a distinguished road
Default Re: Spell Guide Beta-0

Doesn't work on my machine either, but it's a great idea.

I'm going to put some more work in on this over the next couple of weeks (along with various mods in various states of non-completion.... anyone know anything about Thai or Prussian mythology and care to make suggestions?), and there should be a better version shortly.
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
Reply With Quote
  #7  
Old November 14th, 2007, 03:23 AM
Edi's Avatar

Edi Edi is offline
National Security Advisor
 
Join Date: Oct 2003
Location: Helsinki, Finland
Posts: 5,425
Thanks: 174
Thanked 695 Times in 267 Posts
Edi is on a distinguished road
Default Re: Spell Guide Beta-0

Burnsaber, actually I've had nothing to do with this. The reason you're seeing the true/false values in Finnish is that you're using a Finnish language version of Excel, it translates the formula and the output. Nifty little tool, this one. I couldn't have done that, since I'm not current on the intricacies of spell modding.
Reply With Quote
  #8  
Old November 14th, 2007, 03:26 AM

Snoddasmannen Snoddasmannen is offline
Private
 
Join Date: Nov 2007
Posts: 35
Thanks: 7
Thanked 20 Times in 5 Posts
Snoddasmannen is on a distinguished road
Default Re: Spell Guide Beta-0

Quote:
lch said:
First thing to do, serve the right content type. Currently the xmlspells.php script returns the Content-Type: text/html, while it should be text/xml. You can set the right content-type via header()
Ah, nice one lch! Fixed that, so now it ... kinda ... works in firefox. For some reason, firefox doesn't pick up on the fact that the replacement div has the 'spelldiv' id, so it isn't styled properly. And even worse, when it tries to replace spelldiv the next time, it simply fails since it can't find it But you can get a list now in firefox, though it doesn't look like much of a list, and you have to reload the page to do a second search.

Any ideas on what I could do to fix that would, yet again, be much appreciated.

jimkehn and DrPraetorious, are you having problems in Opera or are you using some other web browser? Obviously, for the 99% of the world who are not yet using Opera, the page has some problems for now
Reply With Quote
  #9  
Old November 14th, 2007, 06:42 AM
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: Spell Guide Beta-0

Quote:
Snoddasmannen said:
jimkehn and DrPraetorious, are you having problems in Opera or are you using some other web browser? Obviously, for the 99% of the world who are not yet using Opera, the page has some problems for now
If you care about your visitors at all you should either use a cross-browser solution like the last two mentioned in http://ajaxpatterns.org/Browser-Side...World_Examples or better yet change to server-side XSLT and a form.
__________________
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
  #10  
Old November 14th, 2007, 09:20 AM
DrPraetorious's Avatar

DrPraetorious DrPraetorious is offline
Major General
 
Join Date: Feb 2005
Location: Lake of Hali, Aldebaran, OH
Posts: 2,474
Thanks: 51
Thanked 67 Times in 27 Posts
DrPraetorious is on a distinguished road
Default Re: Spell Guide Beta-0

"Exception while loading: SpellDiv has no properties."

IE just sits there slackjawed and drools, but that's not a surprise
__________________
If you read his speech at Rice, all his arguments for going to the moon work equally well as arguments for blowing up the moon, sending cloned dinosaurs into space, or constructing a towering *****-shaped obelisk on Mars. --Randall Munroe
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 10:11 PM.


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