HomeHelpSearchLoginRegister
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 08, 2010, 12:23:22 AM

Pages: [1]
Warmath Now Open Source (GPL v2)  (Read 7244 times)

Group: Administrator
*****

Posts: 6585


Warmath is now open source, hosted at Google Code.  Warmath's license is GPL v2.

The project home page:
http://code.google.com/p/warmath/

Source:
http://code.google.com/p/warmath/source/browse

You should be able to checkout code right away:
Code:
svn checkout http://warmath.googlecode.com/svn/trunk/ warmath-read-only
More details here: http://code.google.com/p/warmath/source/checkout

To checkin code, please PM me your Google account email address and I'll add you as a Project member.

Lines you'll need to change:
Code:
db.php:4:$db = mysql_connect("localhost", "@@YOUR_DB_USER@@", "@@YOUR_DB_PW@@");
db.php:6:       mysql_select_db("@@YOUR_DB_NAME@@", $db);
head.php:3:include('@@PATH_TO_ITEMSTATS@@/itemstats/generic_itemstats.php');
load.php:3:define('PUN_ROOT', '@@HOME_DIR@@/www/forums/');
load.php:4:require('@@HOME_DIR@@/www/forums/include/common.php');
load.php:5:require('@@HOME_DIR@@/www/forums/include/parser.php');
You'll want to point @@YOUR_DB_NAME@@ at database that includes tables for Itemstats and Punbb.

You can find the Warmath SQL schema in lib/schema.sql
http://code.google.com/p/warmath/source/browse/trunk/lib/schema.sql

You can find initial instance data (correlated which bosses drop what items in which instance) in lib/bosses_instances_items.sql.
http://code.google.com/p/warmath/source/browse/trunk/lib/bosses_instances_items.sql

If you just installed itemstats, it might be a good idea to add in item_cache data so that you have all the warmath items pre-loaded (this preloading was why I had lootlists on the forums, so I could make sure every item's link worked).  You can get the data in lib/item_cache.sql:
http://code.google.com/p/warmath/source/browse/trunk/lib/item_cache.sql

Best of luck!

I'm happy to answer questions to help folks get running.  Post 'em here Smiley



-------------------------
Subcreation: Better gaming through intelligence.
   

Soulstoned Subcreation
Group: Administrator
*****

Posts: 1124


Just so everyone that does attempt an installation is aware. Warmath is currently heavily integrated not only into PunBB but Subcreation's install. Meaning that the look and feel of Warmath uses Subcreation's look and feel.

EDIT#400000000000:

1. Need a login page if not logged in
2. Needs its own look and feel than that of Subcreation. see #6
3. Needs a semi-automated installation that provides the following
   A. Access to all administrative features of Warmath, a super-administrator account as it were. This could also be fixed my making one
      installation work for only one guild, or by making a user account which acts as a global system manager.
   B. Default information installed for all current instances.
   C. At least one guild created at installation time.
4. User documentation to help them get started through installation and use of Warmath.
5. Either its own authentication backend, or the ability to convert one from another system (phpbb, punbb, plain text, etc.)
6. A CSS rewrite.



-------------------------
   

Group: Administrator
*****

Posts: 6585


Quote from: Saritor
Hey Alc,

I was wondering if you knew exactly which css tags you were using for Warmath from the various stylesheets that you have in the config file. If this is something that will take you a while to figure out then don't worry about it. I can do the manual hunt myself, but I was just curious because I am thinking about doing a complete CSS rewrite for the whole thing just to make life much easier. :p
Posting here so others can benefit:
The big two are:
http://forums.subcreation.net/style/Oxygen.css
and
http://subcreation.net/wp-content/themes/k2/style.css

A lot of the stuff in those files doesn't directly apply to Warmath, however.

If you grep the files for "class=" and "id=" you should see most of the tags that are used.



-------------------------
Subcreation: Better gaming through intelligence.
   

Soulstoned Subcreation
Group: Administrator
*****

Posts: 1124


Hmmm.... after playing with the CSS quite a bit I found out that the file structure may have to be modified quite a bit to get relative paths working.



-------------------------
   

Group: Administrator
*****

Posts: 6585


Quote from: Saritor
Hmmm.... after playing with the CSS quite a bit I found out that the file structure may have to be modified quite a bit to get relative paths working.
Not sure what you mean.

I built the site to work at http://warmath.subcreation.net/

It pulls stuff from forums.subcreation.net and subcreation.net itself.

I don't see what you mean by the file structure needing to be modified?

You could probably just condense the WM CSS into one file and put it in one place  (e.g. /css/style.css) and then just change all CSS references to that.



-------------------------
Subcreation: Better gaming through intelligence.
   

Soulstoned Subcreation
Group: Administrator
*****

Posts: 1124


I actually have tried making local copies of the 2 main stylesheets and linking them with relative links to lib/style.css
however that unfortunately did not work. The only way I could get it to recognize my css forms was to use the absolute URL to the file http://host/warmath/installation/lib/style.css


The reason I mentioned file reorganization is because it was slightly confusing to me which link I should even be sticking in to head.php: (../lib/style.css, or just lib/style.css) since head.php exists in the lib directory tree, however almost all of the files that call head.php exist in the root directory of Warmath.



-------------------------
   

Group: Administrator
*****

Posts: 6585


I mean just pasting in the css into one file.



-------------------------
Subcreation: Better gaming through intelligence.
   

Soulstoned Subcreation
Group: Administrator
*****

Posts: 1124


I guess i will just have to play with the css stuff a little more.

I was also thinking maybe we should register an IRC channel or something if the number of active coders increases to much more for better communication.

Also I uploaded updates to the source which makes it so that when hitting error pages and redirects that you get sent to the local installation's error pages and not the Subcreation Warmath pages.



-------------------------
   

Soulstoned Subcreation
Group: Administrator
*****

Posts: 1124


Alc, can you tell me how db.php gets included? I grepped all the files in Warmath for a 'db.php' however none of them contain an include for it.

To add to that. Can you also tell me the reasoning behind using include/parser.php and include/common.php from PunBB. Though I am sure that parser is so you can handle the BB code.

Thanks! Cheesy



-------------------------
   

Group: Administrator
*****

Posts: 6585


It doesn't.  It used to, long ago, but the code accesses the DB through include/common.php.

I uploaded it as an artifact; because I forgot how I set up the db access (Fall 2006 Tongue).



-------------------------
Subcreation: Better gaming through intelligence.
   

Soulstoned Subcreation
Group: Administrator
*****

Posts: 1124


Ah... so that should probably be reintegrated somehow again. Smiley

EDIT: I see that the only thing being used in common.php is the database information and user verification. Which makes using the old db.php not a tough thing to do. Also I may try to see if I can remove the dependence upon parser.php and somehow integrate Itemstats directly into Warmath instead of having to depend on that file to make installing a standalone copy a little easier.



-------------------------
   
New
*

Posts: 5


I thought I should note that over a year ago I started on a very simplistic MySql/PHP interface to track bids, drops, and player's point totals based on the description of Warmath on the wiki. I'd be happy to make that code available if anyone thought it useful.


   
Pages: [1]


Jump to:  

Theme © PopularFX | Based on PFX Ideas! | Scripts from iScript4u September 08, 2010, 12:23:22 AM
Powered by MySQL Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Powered by PHP