EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Tools (https://www.eqemulator.org/forums/forumdisplay.php?f=593)
-   -   AllaClone 2.0 (https://www.eqemulator.org/forums/showthread.php?t=34915)

trevius 02-13-2012 02:31 PM

AllaClone 2.0
 
Here is complete revamp of the Allakhazam Clone / EQBrowser tool originally made by Muuss and others over the years. This revamp adds many new features such as tooltips for items, multiple themes, updated item stats, spell info, pet info, tasks, etc. It no longer requires any custom SQL to be added to your database in order to use the tool. Just copy it to your public folder and edit the config.php file and it should work.

Akkadius and I spent the last couple of weeks working on this update.

Download Page:
http://code.google.com/p/projecteqem...2.zip&can=2&q=

Working Example:
http://69.168.254.243/AllaClone/index.php

Here are some notes I added to the included HISTORY.TXT file on what was changed:

Quote:

Version 2.0 Rev2199 - 02/13/2012
- (Trevius/Akkadius) Revamped how almost all of the website works and looks.
- (Trevius/Akkadius) Added Tooltips for items.
- (Trevius/Akkadius) Revamped Pets page completely.
- (Akkadius) Revamped Recipe Search to match ZAM recipe search.
- (Akkadius) Revamped Spell Search completely to match ZAM spell search.
- (Akkadius) Added a Theme/Style changing window that allows viewer to choose from multiple themes.
- (Akkadius) Added a ZAM Search window option.
- (Akkadius) Added new item icons.
- (Akkadius) Added Class Monograms (animated class symbols).
- (Trevius) Added a toggle search fields button to items search.
- (Trevius) Added a Dark Blue theme.
- (Trevius) Reformatted the page layout to have side bars on both side.
- (Trevius) Revamped the item output to match Live format and to include all newer stat types.
- (Trevius) Removed the need to source tables for this tool. Spells data now comes from spells_new and race data was made into an array.
- (Trevius) Resolved many security issues in the code.
- (Trevius) Updated the race list through VoA expansion.
- (Trevius) Fixed various issues related to displaying item stats.
- (Trevius) Implemented Discovered Items and the option to display recently discovered items on the main page.
- (Trevius) Added many new options that can be toggled on or off in the config so admins can display exactly what they want.
- (Trevius/Akkadius) Fixed/Adjusted various other systems.
If there are any questions, let me know in this thread and I will try to answer them.

provocating 02-13-2012 04:05 PM

Awesome !!!!!!!!! I notice some things have been removed though :(

Akkadius 02-13-2012 04:29 PM

Quote:

Originally Posted by trevius (Post 207188)
Here is complete revamp of the Allakhazam Clone / EQBrowser tool originally made by Muus and others over the years. This revamp adds many new features such as tooltips for items, multiple themes, updated item stats, spell info, pet info, tasks, etc. It no longer requires any custom SQL to be added to your database in order to use the tool. Just copy it to your public folder and edit the config.php file and it should work.

Akkadius and I spent the last couple of weeks working on this update.

Download Page:
http://code.google.com/p/projecteqem...q=#makechanges

Working Example:
http://69.168.254.243/AllaClone/index.php

Here are some notes I added to the included HISTORY.TXT file on what was changed:



If there are any questions, let me know in this thread and I will try to answer them.

A little premature in my opinion as there are several things I wanted to do yet.

trevius 02-23-2012 01:38 AM

Updated the download file on the SVN again with fixes for a few things that Akkadius mentioned (directly to me) and a few more features.

Version 2.0.1 Rev2103 - 02/22/2012
- (Trevius) Added pagination to Discovered Items on the welcome page.
- (Trevius) Added Task Step Goal List Details.
- (Trevius) Added Tooltips to Zone Equipment lists.
- (Trevius) Corrected display positioning for multiple pages.

You can find the download here as usual:
http://code.google.com/p/projecteqemu/downloads/list

Tabasco 02-23-2012 10:56 AM

This is looking good, thanks for working on it. I had the old one working well enough, but this is much easier to set up and use.

Would it be possible to put this into its own svn branch for easier updating?

trevius 02-23-2012 11:15 AM

Yeah, I have thought about doing that. I think it would be the best option. I would just need to figure out the easiest way to allow updating to newer revisions without having it overwrite any normally modified files (config, custom CSS changes, welcome page message, etc).

I will probably need to check with the other devs as well to see if they think it could go on the EQEmu project in a branch or if it should go under a project of its own.

sorvani 02-23-2012 12:16 PM

If you are on the Melee damage page and try to use the main search you get a 404.

Quote:

The requested URL /zam/strategy/fullsearch.php was not found on this server.
/zam is my directory.

sorvani 02-23-2012 12:28 PM

/zone.php?name=tipt

X and ( are bold in the succor point but nothing else.

trevius 02-23-2012 12:53 PM

Thanks for the reports. Both of those are now fixed on my server and will be included in the next version release.

Harcourt 02-23-2012 03:43 PM

Very nice, thanks for making this available.

Talez 02-23-2012 08:48 PM

minor thing in the zones by era list, under antonica it links to solrotower, it should be be soltemple

trevius 02-24-2012 09:51 PM

Quote:

Originally Posted by Talez (Post 207521)
minor thing in the zones by era list, under antonica it links to solrotower, it should be be soltemple

Thanks for the report. I got that fixed and it will be in the next release. I didn't really go back through the lists of the existing zones by era lists previously. I only added the newer ones that didn't exist in it yet, which I think was everything after GoD.

Akkadius 02-26-2012 12:34 AM

Quote:

Originally Posted by trevius (Post 207550)
Thanks for the report. I got that fixed and it will be in the next release. I didn't really go back through the lists of the existing zones by era lists previously. I only added the newer ones that didn't exist in it yet, which I think was everything after GoD.

Ok, I had decided today that I had enough time to go through this. Here are most of the changes I made today. There's quite a few so go check the site out:

http://69.168.254.243/AllaClone/index.php

Quote:

Akkadius: Changed the header of each page to be slightly more attractive and less hugging the top
Akkadius: Adjusted the 'Zones by Era' title
Akkadius: Adjusted Item names to be under <h3>
Akkadius: Italicized item lore information
Akkadius: Removed wrapping from Storm Haven CSS Tooltips that caused expansion descriptions under 'Zones by Era' to not display correctly.
Akkadius: Replaced the filename zonelist.php into ZonesByEra.php and changed the menu link, this is to consolidate and remove the 18 separate individual pages
Akkadius: Eliminated 22 unnecessary PHP scripts inside of the folder /static that resulted each of the pages for 'Zones By Era', they are all underneath one page now
Akkadius: Added a frame to zones listed within 'Zones by Era' to have a description of the Era listed to the right, with the zones listed on the left
Akkadius: Brought the alignment of the 'Search' button in npcs.php to the center
Akkadius: Changed 'advnpcs.php' 'Search' button to conform with the rest of the buttons in the AllaClone
Akkadius: Added a class to the CSS sheet for 'menualla' which will display an appropriate background for each CSS stylesheet implemented. This was applied to spells.php, example here:
http://69.168.254.243/AllaClone/spell.php?id=4938, it now looks more balanced.
Akkadius: In 'spell.php', 'Items with THAT spell' was changed to 'Items with this effect:'
Akkadius: Changed toggle icon for the 'items.php' search function and removed (Toggle Search Fields) since it was a bit redundant and ugly
Akkadius: Added the menualla class around the search options under 'items.php' to make the page pop more
Akkadius: Changed CSS for Allakhazam Tooltips to color Anchor links Yellow instead
Akkadius: 'item.php', added menualla wrapper around the header
Akkadius: Added the actual weapon graphic to each item if the file is available, which most of them are.
Akkadius: Changed 'recipes.php' form buttons to conform to the rest of the AllaClone
Akkadius: Added menualla CSS style to the form for 'recipes.php'
Akkadius: Added menualla CSS style to the form for displaying any recipe (http://69.168.254.243/AllaClone/recipe.php?id=110)
Akkadius: Changed the verbiage on the searching of recipes
Akkadius: Cleaned up the searching on Advanced NPC search
Akkadius: Added menualla class to the Spells menu
Akkadius: Rounded out the Tooltips for everything, they now look really close to ZAM tooltips, but they function way better right Trevius!?
Akkadius: Adjusted Faction Search to look like the rest of the clone
Akkadius: Adjusted Melee Damage calculator to look like the rest of the clone, fixed the title, fixed some English in the results


Akkadius 02-26-2012 01:01 AM

Just added a new header to the Allakhazam style header. If Trevius wishes to use this on his he can.

pheroux 02-26-2012 09:34 PM

Woot! Thank you for this AllaClone!

Akkadius 02-26-2012 10:59 PM

This can be checked out here:

http://code.google.com/p/allaclone-eoc/source/checkout

EDIT: Just updated to R3

Akkadius 02-26-2012 11:29 PM

Also, here is a working example of the repository. Please post questions comments or concerns here:

http://akkadius.dyndns-server.com:80...ZonesByEra.php

initium 03-15-2012 12:30 AM

Thanks for working on this. I had planned on trying to revamp this, and now I don't have to :) I'm getting a lot of errors with item searching. Here's what I've done:

1) Checked out latest revision (Rev2103 according to config.php)
2) edited dbhost, dbname, dbuser, dbpasswd, $root_url, and $eqemu_dir (Zone pages load fine, so I assume these are all ok)
3) From the homepage, I click on Item Search (takes me to items.php)
4) I enter "tunic" into name and click "Search"

Here are the results:
Code:

Notice: Undefined variable: row in /home/eqemu/public_html/AllaClone/includes/functions.php on line 903

Notice: Undefined index: loreflag in /home/eqemu/public_html/AllaClone/includes/functions.php on line 919

Notice: Undefined variable: v in /home/eqemu/public_html/AllaClone/includes/functions.php on line 209

Notice: Undefined variable: res in /home/eqemu/public_html/AllaClone/includes/functions.php on line 209

Notice: Undefined variable: v in /home/eqemu/public_html/AllaClone/includes/functions.php on line 219

Notice: Undefined variable: res in /home/eqemu/public_html/AllaClone/includes/functions.php on line 219

Notice: Undefined variable: v in /home/eqemu/public_html/AllaClone/includes/functions.php on line 197

Notice: Undefined variable: Result in /home/eqemu/public_html/AllaClone/includes/functions.php on line 197

Warning: Missing argument 3 for GetItemStatsString(), called in /home/eqemu/public_html/AllaClone/includes/functions.php on line 1018 and defined in /home/eqemu/public_html/AllaClone/includes/functions.php on line 499
...


chrsschb 03-15-2012 02:43 AM

What do I set these to if the web server and the emu server are on different machines?

Code:

$includes_url=$root_url.'includes/';
$includes_dir=getcwd()."/includes/";
$eqemu_dir="/home/eqemu/server/";
$quests_dir=$eqemu_dir."quests/";
$quests_datas="/home/eqemu/server/quests/";
$maps_dir=getcwd()."/maps/";
$maps_url=$root_url."/maps/";
$npcs_dir=getcwd()."/npcs/";
$npcs_url=$root_url."/npcs/";
$icons_dir=getcwd()."/icons/";
$icons_url=$root_url."/icons/";
$images_url=$root_url."/images/";

Also getting a million of these errors trying to do an item search:

Code:

Warning: Missing argument 3 for GetItemStatsString(), called in /homepages/31/d168152119/htdocs/AllaClone/includes/functions.php on line 1008 and defined in /homepages/31/d168152119/htdocs/AllaClone/includes/functions.php on line 494

provocating 03-15-2012 10:05 AM

Quote:

Originally Posted by initium (Post 208163)
Thanks for working on this. I had planned on trying to revamp this, and now I don't have to :) I'm getting a lot of errors with item searching. Here's what I've done:

1) Checked out latest revision (Rev2103 according to config.php)
2) edited dbhost, dbname, dbuser, dbpasswd, $root_url, and $eqemu_dir (Zone pages load fine, so I assume these are all ok)
3) From the homepage, I click on Item Search (takes me to items.php)
4) I enter "tunic" into name and click "Search"

Here are the results:
Code:

Notice: Undefined variable: row in /home/eqemu/public_html/AllaClone/includes/functions.php on line 903

Notice: Undefined index: loreflag in /home/eqemu/public_html/AllaClone/includes/functions.php on line 919

Notice: Undefined variable: v in /home/eqemu/public_html/AllaClone/includes/functions.php on line 209

Notice: Undefined variable: res in /home/eqemu/public_html/AllaClone/includes/functions.php on line 209

Notice: Undefined variable: v in /home/eqemu/public_html/AllaClone/includes/functions.php on line 219

Notice: Undefined variable: res in /home/eqemu/public_html/AllaClone/includes/functions.php on line 219

Notice: Undefined variable: v in /home/eqemu/public_html/AllaClone/includes/functions.php on line 197

Notice: Undefined variable: Result in /home/eqemu/public_html/AllaClone/includes/functions.php on line 197

Warning: Missing argument 3 for GetItemStatsString(), called in /home/eqemu/public_html/AllaClone/includes/functions.php on line 1018 and defined in /home/eqemu/public_html/AllaClone/includes/functions.php on line 499
...


I could be wrong but it sounds like you have warnings turned on in your php.ini file.

initium 03-15-2012 12:42 PM

Quote:

Originally Posted by provocating (Post 208178)
I could be wrong but it sounds like you have warnings turned on in your php.ini file.

You're exactly right. Thanks!

provocating 03-15-2012 12:48 PM

Quote:

Originally Posted by initium (Post 208183)
You're exactly right. Thanks!

It happens about once a year, when the planets are in the right position.

chrsschb 03-15-2012 12:52 PM

Quote:

Originally Posted by initium (Post 208183)
You're exactly right. Thanks!

Where can one find this php.ini file?

provocating 03-15-2012 12:53 PM

Depends on if you are running Windows or Linux, then what flavor of Linux.

chrsschb 03-15-2012 12:56 PM

My webserver is through 1and1, which I assume is Linux.

provocating 03-15-2012 12:59 PM

Your errors I think are going to be different from what the previous posters are. Yours are more than likely because you are indeed hosting the website on a different server than where the database is.

chrsschb 03-15-2012 01:08 PM

Maybe, which reverts back to my original question on linking the two when on different servers.

Akkadius 03-15-2012 01:11 PM

You can use an outside database, your warnings are related to the page warnings that are set on your web host side of things. The site that I have previewing this and the site Trevius has this running on are both in-house servers that I run in my DC.

chrsschb 03-15-2012 01:36 PM

Quote:

Originally Posted by Akkadius (Post 208191)
You can use an outside database, your warnings are related to the page warnings that are set on your web host side of things. The site that I have previewing this and the site Trevius has this running on are both in-house servers that I run in my DC.

How do I change them / turn them off?

provocating 03-15-2012 02:49 PM

You will need to dig on the forums for 1and1 or call them on the phone. There may be an option on their control panel to turn off PHP warnings, we are turning them off via php.ini since we have shell access, you do not so you will need to contact 1and1.

chrsschb 03-15-2012 07:14 PM

Quote:

Originally Posted by provocating (Post 208195)
You will need to dig on the forums for 1and1 or call them on the phone. There may be an option on their control panel to turn off PHP warnings, we are turning them off via php.ini since we have shell access, you do not so you will need to contact 1and1.

Still getting the errors.

http://downloads.overthetophosting.c...hpsettings.png

provocating 03-15-2012 08:48 PM

Possibly a PHP5 issue ?

I know some of these online host make you call your php files php5 for compatibility.

Like these guys are getting errors like this installing Mediawiki on 1and1, worth a shot to rename some of your files to see if it makes a difference.

http://www.mwusers.com/forums/showth...ki-at-1and1.fr

initium 03-15-2012 10:29 PM

Switching "Register Globals" on should cut out some of the errors, but not the ones related to having them on different servers

chrsschb 03-15-2012 10:30 PM

Quote:

Originally Posted by provocating (Post 208211)
Possibly a PHP5 issue ?

I know some of these online host make you call your php files php5 for compatibility.

Like these guys are getting errors like this installing Mediawiki on 1and1, worth a shot to rename some of your files to see if it makes a difference.

http://www.mwusers.com/forums/showth...ki-at-1and1.fr

Crazy you mention it because I have a mediawiki site running just fine through the same host lol.

chrsschb 03-15-2012 10:35 PM

Quote:

Originally Posted by initium (Post 208218)
Switching "Register Globals" on should cut out some of the errors, but not the ones related to having them on different servers

That worked!


Now... does anyone know how to add the loot/item links my forum.

initium 03-16-2012 01:53 AM

I've been working on the quests a little bit. In particular parse_quests scripts. I know that's still on the to-do list, so I figured I'd post what I've run into so far. (When I mention changes I've made, these are just on my server of course)

These subroutines have no entry in the relevant pm files:
quest::npcsize
quest:npcrace
quest::buryplayercorpse
quest::npctexture
quest::SetRunning

(I just made empy subroutines for all those for now, but I wasn't sure if that was the best way to do it)

In file parse_quest.inc - old form item turn ins have a bug. Here's the relevant section:
Code:


  # Now, we give the npc some items
  # Old form, item1 to item4, starting at the if and ending at the {
  for (my $i=0; $i<$#content; $i++) {
    if ($content[$i]=~/item[1234]\s*==/) {
      EvalItemOld($content[$i]);
      do {
        $i++;
        if ($content[$i]=~/item[1234] ==/) { EvalItemOld($content[$i]); }
      } while (!($content[$i]=~/{/));
      give_old();
    }
  }

I actually had a few issues with this section. The first was the most important:
1) There are a few quests that cause the "do" loop to never end. This happens when there's no "{" after the line with item[1234]. This happens with several quests in qeynos:
Mespha_Tevalian
Renic_Losaren
Gahlith_Wrannstad
Kinloc_Flamepaw

I wasn't sure about the intent of the "do" loop, so I wasn't sure how best to fix it. My suspicion is that this could be fixed by changing '{' to '}', but again I wasn't sure, so I just made an innocuous change to the quests. I've just added an:
else {} after the appropriate "If" in the quest files for now

2) in the "do" loop the space in the regex should probably be replaced with \s*

3) item[1234]\s*== seems like too blunt of a check. I don't know the quest system well enough to be certain, but as far as I can tell ParseFile hasn't even checked to see if it's in an EVENT_ITEM (at the very least I'd think it would make sense to check for \$item[1234]\s*

Thanks again for working on this

Akkadius 03-16-2012 10:21 AM

Quote:

Originally Posted by initium (Post 208225)
I've been working on the quests a little bit. In particular parse_quests scripts. I know that's still on the to-do list, so I figured I'd post what I've run into so far. (When I mention changes I've made, these are just on my server of course)

These subroutines have no entry in the relevant pm files:
quest::npcsize
quest:npcrace
quest::buryplayercorpse
quest::npctexture
quest::SetRunning

(I just made empy subroutines for all those for now, but I wasn't sure if that was the best way to do it)

In file parse_quest.inc - old form item turn ins have a bug. Here's the relevant section:
Code:


  # Now, we give the npc some items
  # Old form, item1 to item4, starting at the if and ending at the {
  for (my $i=0; $i<$#content; $i++) {
    if ($content[$i]=~/item[1234]\s*==/) {
      EvalItemOld($content[$i]);
      do {
        $i++;
        if ($content[$i]=~/item[1234] ==/) { EvalItemOld($content[$i]); }
      } while (!($content[$i]=~/{/));
      give_old();
    }
  }

I actually had a few issues with this section. The first was the most important:
1) There are a few quests that cause the "do" loop to never end. This happens when there's no "{" after the line with item[1234]. This happens with several quests in qeynos:
Mespha_Tevalian
Renic_Losaren
Gahlith_Wrannstad
Kinloc_Flamepaw

I wasn't sure about the intent of the "do" loop, so I wasn't sure how best to fix it. My suspicion is that this could be fixed by changing '{' to '}', but again I wasn't sure, so I just made an innocuous change to the quests. I've just added an:
else {} after the appropriate "If" in the quest files for now

2) in the "do" loop the space in the regex should probably be replaced with \s*

3) item[1234]\s*== seems like too blunt of a check. I don't know the quest system well enough to be certain, but as far as I can tell ParseFile hasn't even checked to see if it's in an EVENT_ITEM (at the very least I'd think it would make sense to check for \$item[1234]\s*

Thanks again for working on this

That'd be sweet if you could get quest dialogues working. Trevius and I are working on a big web project that we'll also reveal in due time :)

chrsschb 03-20-2012 04:22 PM

Alright 2 things: How do I turn on discovered items?

Second, my Dark Blue theme is not working. When selected the theme does not change.

provocating 03-20-2012 04:31 PM

Quote:

Originally Posted by chrsschb (Post 208298)
Alright 2 things: How do I turn on discovered items?

Second, my Dark Blue theme is not working. When selected the theme does not change.

Discovered items is in the config file.

True changing it to this.

Code:

$DiscoveredItemsOnly=TRUE;
Also Trevius, if you are listening. I noticed there is a wiki options boolean. Is this going to be integrated into Mediawiki or some other wiki program? One thing people have asked for is a way to be able to make comments on NPC's and such, like they can on Allakhazam's also the option for them to be able to add a jpg for NPC's that do not have an image.

provocating 03-20-2012 05:04 PM

Also, I just noticed this was left out of the config file, at least I could not find it anywhere.

Code:

$peqeditor_url="";
Code:

etc...$peqeditor_url="http://dragonsofmist.dyndns.org/edit/";


All times are GMT -4. The time now is 10:27 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.