These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
123Next pageLast page
 

[RELEASE] PHPBB fitting display mod - Up[dated for Crucible 1.6

Author
Philderbeast
Native Freshfood
Minmatar Republic
#1 - 2011-12-22 12:05:56 UTC  |  Edited by: Philderbeast
Well after a few days hard work this mod is now complete, packaged and ready for release.

This is currently awaiting validation from the phpbb mod database, but I'm confident it will get through so I'm providing an early release here.

so without further chatter here if is! or here in 7zip format
any questions/comments please let me know!

UPDATE.

the above files have been updated for the crucible 1.6 datadump, please REMOVE ALL entries from your current tables and replace with these.

code has also been updated to conform more to the phpbb coding standards however more work remains in this department (no functional changes though
Philderbeast
Native Freshfood
Minmatar Republic
#2 - 2012-01-04 00:29:51 UTC  |  Edited by: Philderbeast
ok since it appears no one is activly developing this i have taken the old version posted in a previous thread and have begun work to update this to Crucible and remove some of the horrid code i found in there.

Current progress:

Updated code to hook in to the existing bbcode structure of phpbb (before it was only working after you posted so you could not preview your post and see the fitting window)

I'm currently working on fixing the layout code to make it look a bit nicer, and will then update the database to crucible with all mods and ships currently available.

I hope to have a public beta out by next week for you to start to test this.

Watch this thread for updates,

edit:
display issues have been sorted working on the database now, and moving all images to get them from the eve image server.
Philderbeast
Native Freshfood
Minmatar Republic
#3 - 2012-01-04 08:37:39 UTC
ill make another post to help get me some info here.

I'm now moving over to using the static data dump to get the info i need about the modules to place them on the fitting.

For anything in a high, med, lo or rig slot this is easy and i have a query that is doing this, however I'm getting stuck with drones, charges and sub systems.

I would prefer not to have to create custom tables for this info (although it might be the best way) so i was wondering if there is any way to get this info, I may end up creating some custom tables but i would still like to know how to get this directly from the data dump so i can make a script to make the tables rather then getting the info by hand when something is added or removed.
Nathan WAKE
Deep Core Mining Inc.
Caldari State
#4 - 2012-01-04 09:57:52 UTC
Hello Phil,

I did like you did, I picked up the old mod and arranged it a little. The mod was finished, and instead of releasing it, I passed it on to Cyerus, who is developping a API regsitration PHPBB mod for him to include it into his release (yet to come, version 5.2).

Cyerus told me the same thing that you wrote in your post : the BB code part of the mod was horrible (but not mine) and he rewrotte it from scratch for consistency and compatibility. He also changed the code so that, when viewed in game, you can get the info directly by clicking on an item. And last of all, he linked all the images from the EvE servers, as I chose to provide them with the package. I don't think he intends to release the mod as a "stand alone", so you're very welcome if you succeed in your project.

For the code part of it, you are probably much better than I am, so if won't comment Big smile

Regarding the tables needed for the mod to work, I ended up creating a new table for the ships with all I needed in it, because the SQL query to get all this from the different table in the dump was much too complicated.

Here's my table :

typeID -> for reference
typeName -> for display
low -> number of low slots
medium -> number of medium slots
high -> number of high slots
drone -> volume in m3 of the drone bay (0 if none)
rig -> number of rig slots
subsystems -> number of subsystems slots (0 if none)
raceID
raceName
metaGroupName -> Tech I, Tech II, Tech III or Faction
groupName
marketGroupName -> for displaying Caldari, Caldari Navy, Amarr and so on

For T3 cruisers, all low, med and high slots were defaulted to 8 because the real number of slots depends on the subsystems you choose, and it was too difficult (for me) to code that.

I had a bug in the code : when a item, low med or high slot was added to the fitt, the mod displayed correctly the number of remaining slots. But when no item were added to the fitt, the mod did not display the remaining slots available. For example, fitt no high modules on a Condor, and the system fails to tell you you have 3 remaining slots, but fitt a small missile launcher, and the 2 remaining slots were correctly displayed.
I never could find were the faulty code was, but again, I'm just a amateur, not a developer, and the initial code was not mine.

Hope you'll succeed in you project, and looking forward to download and install it in replacement of mine ;-)

Cheers

Nathan

"I'm a very good housekeeper. Each time I get a divorce, I keep the house"

Zaza Gabor

Philderbeast
Native Freshfood
Minmatar Republic
#5 - 2012-01-04 10:05:36 UTC
thanks for the info nathan,

it looks like ill be making my own tables then.

My intention at this stage is to split it in to 2 tables. one for the ships, and one for modules/drones.

my tables wold be

for ships
typeid
ship name
high slots
med slots
low slots
reg slots
subsystem slots

and for mods/drones/charges
and type id
mod name
mod location

there is no need to store the tech level as i pull the images from the eve image server and it gives this. but i still need to get all this info from the data dump to build the second table.

i do plan some igb integration but that's a lot later on down the track.

also at this stage i don't think any of the original code is renaming in my mod, with the exception of the css code ;)
Philderbeast
Native Freshfood
Minmatar Republic
#6 - 2012-01-05 01:57:56 UTC  |  Edited by: Philderbeast
UPDATE

COMPLETED

  • all code is done with the exception of showing the charges.
  • Database has been updated to crucible, and i have a script to generate new tables for future updates.


TODO


  • create the Charge table and display this info on the fitting
  • Create modx file and package for initial release


ETA 2 days!*

please not this is a estimate and depending on how long it takes to build the charge table release could be much sooner or much longer.

EDIT: the charge table proved much easer than expected, ill get started on packaging this for release in the next few hours for anyone who is interested.
Nathan WAKE
Deep Core Mining Inc.
Caldari State
#7 - 2012-01-05 08:06:26 UTC  |  Edited by: Nathan WAKE
First to comment Big smile

Installed it and noted a small error in the code :

includes/message_parser.php

there is a coma missing at the end of this line :

Quote:
'EFTFit' => array('bbcode_id' => 13, 'regexp' => array('#\[EFTFit\](.*?)\[/EFTFit\]#uise' => "\$this->bbcode_eftfitting('\$1')"))


which result in the following error :

Quote:
Parse error: parse error, expecting `')'' in C:\wamp\www\EFT_PHIL\includes\message_parser.php on line 119


Nothing too serious Big smile



After install,refresh,purge and logout login, I don't have the EFTFit BBcode button displayed on my post writing window, but the mod works by typing manually [EFTFi t] [ / EFTFit ] and pasting the fitt in between.



includes/bbcode.php file hack : you refer (second part of the hack) to

Quote:
$fitting_output .= '< div id = "fittingwindow">< img border="0" alt="" src=" images / fitting / fitting2.png " >< / div > ';
on line 27, but the image is not provided in the package.

I have the original mod, so by including it in images/fitting/, I managed to display the background.



This background image is a bit "outdated" (to my taste).

I'll sent you the one I prepared with the updated css file for positioning your icons. Let me test it and I'll send it if you want to use it (I even prepared different colors to match board colors).




Great work Phil, I'm happy you finished it so fast.

Cheers


Nathan

"I'm a very good housekeeper. Each time I get a divorce, I keep the house"

Zaza Gabor

Philderbeast
Native Freshfood
Minmatar Republic
#8 - 2012-01-05 08:15:02 UTC
*hides in the corner*

thanks for that pickup, i did a little reshuffle in my files so there was no need for it however i have made that change to the install file and the new package has been uploaded

currently i haven't put in a button for it, i was to brain dead however its only a few lines of code ill put them in shortly for you and post them here.
Nathan WAKE
Deep Core Mining Inc.
Caldari State
#9 - 2012-01-05 08:23:48 UTC
Updated my post with some more feedback Big smile

"I'm a very good housekeeper. Each time I get a divorce, I keep the house"

Zaza Gabor

Philderbeast
Native Freshfood
Minmatar Republic
#10 - 2012-01-05 08:32:40 UTC
thanks for the feedback, ill get the missing images in,

I agree I'm not s huge fan of the layout wither but it does the job and i was more worred about getting it working then changing the way it looks.
Philderbeast
Native Freshfood
Minmatar Republic
#11 - 2012-01-05 08:44:12 UTC
ok new version uploaded with all missing images (that wasent the only one :S) and a button for using the bbcode :)
Nathan WAKE
Deep Core Mining Inc.
Caldari State
#12 - 2012-01-05 09:22:34 UTC
Archive is announced as corrupted for me Sad

"I'm a very good housekeeper. Each time I get a divorce, I keep the house"

Zaza Gabor

Philderbeast
Native Freshfood
Minmatar Republic
#13 - 2012-01-05 09:27:58 UTC
weird its working for me... but i have re uploaded it jsut in case for you.
Nathan WAKE
Deep Core Mining Inc.
Caldari State
#14 - 2012-01-05 10:49:35 UTC
Still no luck with your archive.... maybe rename it ? Let's wait and see if others have the same problem.

Anyway, I sent you by private mail a link to a download package. You do not have to use it if you do not want to, espacialy if you find me too "intrusive" in your work but consider it as a "gift" Big smile

As I did work on that mod, I had already prepared a new background panel and the .css file that goes with it, so I modified your .css file to suit my needs and installed it on my board. The image is slightly larger and the icons placement is a little different as well. Your .css file has been modified to reflect this.

I send it by private mail because this is your work in the first place and it's yours to decide whether you want to change your package or not Big smile

In the package, you'll find :

- various background images - to use them you have to

  • rename the one you want to "fitting2.png" (according to your code)
  • replace your .css file by the one I sent you - I only changed x and y positions for the icons and the fitting window size.

- a modified .css file
- a source .psd file for the background image (play with low oppacity, high oppacity and background color masks to easily change the design)

My background image looks like this :

Fitting Panel

Once again, that is great work.

Thank you for picking-up this mod development, I sadly have to admit to myself that this was far too complicated for me Big smile

Cheers


Nathan

"I'm a very good housekeeper. Each time I get a divorce, I keep the house"

Zaza Gabor

Philderbeast
Native Freshfood
Minmatar Republic
#15 - 2012-01-05 12:46:32 UTC
very nice! i think i will use it but i haven't received the mail, can you send it by eve mail for me?
Nathan WAKE
Deep Core Mining Inc.
Caldari State
#16 - 2012-01-05 13:55:36 UTC
Resent Big smile

"I'm a very good housekeeper. Each time I get a divorce, I keep the house"

Zaza Gabor

Philderbeast
Native Freshfood
Minmatar Republic
#17 - 2012-01-06 01:01:43 UTC
thanks got it this time, ill properly work it in to the next release (along with IGB integration)

also i have uploaded a new installer package as i found some issues with the last one, again :P

The current version has also been submitted for validation by the phpbb team again so hopefully i will get the all clear from them soon, if not ill be fixing anything they find before making anymore changes to the mod.
Nathan WAKE
Deep Core Mining Inc.
Caldari State
#18 - 2012-01-06 08:32:11 UTC
Found a link provided by Steve Ronuken in one of my previous post regarding the IGb and fittings :

http://wiki.eveonline.com/en/wiki/Ship_DNA

If this can help...

"I'm a very good housekeeper. Each time I get a divorce, I keep the house"

Zaza Gabor

Nathan WAKE
Deep Core Mining Inc.
Caldari State
#19 - 2012-01-08 10:57:24 UTC
Friendly bump to the top, because I want that mod Big smile

But I'm still having problems with the archive. Anyone else having the same issue unpacking it ?

"I'm a very good housekeeper. Each time I get a divorce, I keep the house"

Zaza Gabor

Philderbeast
Native Freshfood
Minmatar Republic
#20 - 2012-01-08 11:55:07 UTC
weird

i have uploaded another version, this one using 7zip

http://www.philderbeast.com/downloads/EFT_Fitting_mod_package.7z

let me know how that goes
123Next pageLast page