Star Wars: The Old Republic Wiki
(→‎Production: Welcome back!)
 
Line 75: Line 75:
   
 
::Perfect timing. I've left SWTOR for about one year now and just donwloaded back the client yesterday evening. So I'll be soon back on this wiki ;) [[User:Zophar|Zophar]] 08:18, 16 April 2013 (UTC)
 
::Perfect timing. I've left SWTOR for about one year now and just donwloaded back the client yesterday evening. So I'll be soon back on this wiki ;) [[User:Zophar|Zophar]] 08:18, 16 April 2013 (UTC)
  +
  +
:::Glad to hear it! Welcome back! --{{User:Alianin/Sig}} 11:59, 16 April 2013 (UTC)

Latest revision as of 11:59, 16 April 2013

Forum index > Tooltip Coords

Hi everyone,
I'm looking to test/implement the Tooltip Coords used on Lotro Wiki (http://lotro-wiki.com/index.php/Template:Tooltip_Coords). So i'm not used to Tooltip and all that stuff (but i'm quite good at css/html/js). Anyway I'm just trying to understand how it works. I tried to understand the already existing Tooltip you use on your templates but I just cannot understand how the link is made between JS code and Tags in wikimedia.
For example you implemented your functions here: http://www.wikiswtor.com/MediaWiki:Common.js But I cannot understand how you use it then in your templates like this one: http://www.wikiswtor.com/Template:ItemLink (I'm looking at the source but see nothing helpful)
Any readings, or link I should read? Any advice?
Zophar 14:30, 24 February 2012 (UTC)

There's actually a couple of templates in use with the tooltips. The first is the infobox on the main article page. For example, on the Gold Necklace page we are using the Template:ItemInfobox. If you look at that template, the tooltip code is on the bottom half. The tooltip is employed by this code: <div class="infobox tooltip-content">. In order to have the tooltip display, we have a separate template to use: Template:ItemLink. The code in this template that calls the tooltip is <span class="ajaxttlink">. When it all comes together you get Gold Necklace. I hope this makes it a little clearer. Let me know if you have any other questions. --Icon class jediknight Alianin T C 15:26, 24 February 2012 (UTC)

Hi Alianin, Ok I understand the whole process now. Do you know if the Javascript is enable for users ($wgAllowUserJs set to true)? I'll investigate this and do some tests soon. Thanks for you help. Zophar 10:14, 28 February 2012 (UTC)

I'm pretty sure it is enabled. Let me know if you run into problems and I can get one of the Curse guys to enable it. --Icon class jediknight Alianin T C 13:25, 28 February 2012 (UTC)

Template working and ready for testing

Hi all, I was finnaly able to finish this tooltip (and learn a lots of thing on mediawiki on the fly ;)). Now before provide this code to curse team to be accepted/published, I would be glad if some of you take some time to test it. To do so do the following:

  • Have a look at my page User:Zophar
  • Create "common.js" in you user space ((User:UserName/common.js)) and paste the content of my "common.js" in in it. (Normally you should be able to import script from other user spaces).
  • Go on this page Template talk:Tooltip Coords/doc or User:Zophar/SandBox and move your mouse over the coordinates to see if it works (For me it works pefectly)
  • Feel free to give me your feedback. Zophar 14:15, 9 March 2012 (UTC)

Template feedback

Here's a couple thoughts from testing it out. First, I think we'd want to have the tooltip maps smaller so it doesn't take up the whole page. Second, I think it'd be better to use a non-animated, brightly colored pin to mark coordinates so it's easy to see and doesn't eat up resources. Other than that, I think it's great. Thanks for tackling this! --Icon class jediknight Alianin T C 22:29, 9 March 2012 (UTC)

The spinning location indicator on the popups seems small yo me, and sometimes hard ro notice. Is it possible to make it more noticeable? Increase its size, perhaps? Or its color? Additionally, is it possible for the tooltip to display only a section of the entire map? Or does it have to display the entire map each time? Some of the maps in the game are huge, and it would be nice if it could zoom in to focus on specific areas. -- Heaven's Agent 22:32, 9 March 2012 (UTC)
Thanks for you tests and feedback.
* I'll reduce the mapsize (let say 350px? 300px?)
* I'll use a non-animated gif (Graphics are really not my cup of tea but I'll try something, feel free to give me any content if you want)
* Display only certain portion of map will be hard to implement on this specific tooltip. I mean it's not meant to display the whole map of a planet, only a region of it and give an idea where object/mission/mobs can be found. We can still think about a different tool/template (and maybe not a tooltip) for map display.
I'll do that as soon as I have a bit time. Cheers Zophar 23:45, 9 March 2012 (UTC)
Finally the zoom feature may be possible to possible (have to dig a bit in the api or maybe have a look at jquery)... will see Zophar 00:01, 10 March 2012 (UTC)

Maps sources

Hi all, I'm looking for maps to add to this wiki... As I have the french version of the game it's not very suitable to complete this task. Now my question is: Is there a way to grab them from other site (like the ones they have on torhead, ...). I mean it's only maps taken from the game so i was wandering where did they got them and under which conditions? The most suitable maps would be the ones without any legend/label on it. Any idea where I should start? Or is it possible to take screenshots of them without any label on them? Zophar 13:08, 27 March 2012 (UTC)

We would need to obtain permission from the host to use another project's resources. Though they cannot claim any ownership of the images, stealing content from other resources without permission is something we strictly prohibit. It makes us look bad, generates ill-will, and ultimately results in backlash from the player community.
I'm not willing to ask TORHead for their permission to do this; unfortunately they are a project in direct competition with DarthHaterDB, and as a result I don't believe we're allowed to link to their site (chime in, Wyn, if I'm incorrect); since we're unable to support them, I'm not about to ask that they support us. We're going to have to obtain map images ourselves.
I've no idea how to obtain images of the quality that TORHead uses. Screenshots are the best I can come up with. -- Heaven's Agent 20:32, 27 March 2012 (UTC)
I don't play the game, so I have to ask a dumb question here. Are the maps found on TORHead the same as you see in the game? If so, they do not belong to ZAM, they belong to LucasArts/BioWare, and are therefore available to use here. We have clearly defined disclaimers regarding using game content. I personally have zero problem with using them. -- Wynthyst File:User Wynthyst sig icon.png talk 13:08, 29 March 2012 (UTC)
That's excactly what I was trying to say. They are exactly the same yes, except they don't have any label (Don't know if there is an options to disable that in the game). Anyway I've found a lots of websites using that kind of maps (Which should have the same source). Zophar 13:11, 29 March 2012 (UTC)
Well, then, I would assume they are from somewhere within the game files, and are available to use. -- Wynthyst File:User Wynthyst sig icon.png talk 13:57, 29 March 2012 (UTC)
They are different from what we see in game, as they're stripped of the UI. Currently there's no option in the game that allows us to do this from a player perspective. They're probably pulled from the client, but we can't be sure; perhaps you could ask the DarthHaterDB, Wyn, as to how they obtained their maps? They look to be essentially the same thing, though the project incorporates them in a manner that adds a new UI.
As to the images themselves, we need to know the source before we use them. It's important we cite where and how the images were obtained. If they were pulled from the client in some way we should be able to use them, but we need to know this so that we can state it as part of our licensing template. If we were to take them from TORHead we would need to state this in our citation, even if that project has no claim to them. I must admit, I'm not a big fan of the idea; I'd prefer that we figure out how to obtain the images for ourselves. -- Heaven's Agent 16:06, 29 March 2012 (UTC)
If they are the same as what DH DB is using then yes, they are coming from the client. And NO, it's not necessary to cite sources for images, only copyright. As long as they are tagged as EA/Bioware/LucasArts copyright they are fine. If that means changing the licensing template, then change it. -- Wynthyst File:User Wynthyst sig icon.png talk 21:42, 30 March 2012 (UTC)
Indeed, regardless who pulled them from the client and posted them on the web, they are fully owned by LucasArts and/or EA. The original source is the client itself, and that's the only source we really need to credit, regardless of whether we extract them from the client ourselves or download them from another source that did just that. Unlike e.g. with screenshots, there isn't really any creative element to pulling assets from the client, so ZAM holds no copyright on them. Curse flame Ausir (talk) 21:50, 30 March 2012 (UTC)
Without knowing the source they obtained the images from, however, we can't be sure of the images' copyright status. We cannot know for sure that they are images obtained from the client, no matter how likely it may be. Additionally, proper citation practices dictate that one always cite the source of an image, not just its copyright status. If we take TORHead's images we need to credit them, even if they don't hold any rights to the images. We would, at the very least, need to include links showing were the images originated. It is the same thing as including a link to DarthHaterDB for the item icons we upload to this project. It is also demanded by the license this project operates under.
We can avoid this if we obtain the images ourselves. If TORHead was able to obtain them from the client, and DarthHaterDB was able to obtain them from the client, then there has to be a way for us to do the same. -- Heaven's Agent 22:00, 30 March 2012 (UTC)

Developpment status

The Coordstooltip is now working on every browsers. Finnaly i've reach what I consider a "runnable" version, it still need some code review/cleaning but the main features are now working correctly on every browsers (Thanks Jquery). Now we need to add more map coordinates and files to get this tooltip in the general common.js (Visible by all users). So feel free to contribute on this page User talk:Zophar/coordstooltip.js if you have some time. Cheers. Zophar 09:14, 24 April 2012 (UTC)

Image size

Just a quick note I experienced the last month. PNG is not a good format for maps. Because it's far more bigger than JPG in size and there's no real visual "optimization". Furthermore the tooltip coords get the content of a map through AJAX request (through GD extension). The JPG return size varies between 5kb-30kb (fast request) and for a PNG the size average could be around 300kb which is far to heavy for an AJAX request (Slow display, heavy request, ...). Just wanted to highlight that before you replace every JPG maps by PNG. Now the tooltip still support both format but please keep in mind that "lightweight" image will be display faster. Zophar 09:46, 15 May 2012 (UTC)

Perhaps two versions of each map are required, then; PNG format is far superior for general use because it's a larger file format with less loss of information. Given the issue you indicate here, though, it might be worthwhile to boast JPEG versions of each map specifically for the template. -- Heaven's Agent 11:17, 15 May 2012 (UTC)

Production

Just wandering if we can put this tooltip for everyone now? Are you able to include the code in the main common.js? Should I contact a specific person? I'm on it for more than 3 months now and it seems to work well. What do you think? Zophar 11:00, 30 May 2012 (UTC)

This has been added to the main common.js script. I'm working on updating the missing maps and adding Makeb. --Icon class jediknight Alianin T C 20:39, 11 April 2013 (UTC)
Perfect timing. I've left SWTOR for about one year now and just donwloaded back the client yesterday evening. So I'll be soon back on this wiki ;) Zophar 08:18, 16 April 2013 (UTC)
Glad to hear it! Welcome back! --Icon class jediknight Alianin T C 11:59, 16 April 2013 (UTC)