Manage emblems - Better Battlelog Forums #109008

Sitemap
Post edited 3 x times, last by
Topicstarter
Hi guys,

I created a small new plugin. Main functions: Load and save emblems.

Link:
http://kurtextrem.de/bbl/copyemblem.js


Image:
http://i.imgur.com/77brm1h.png



Have fun and share your codes using pastebin or something similar :)
kurtextrem wrote:
Hi guys,

I created a small new plugin. Main functions: Load and save emblems.

Link:
http://kurtextrem.de/bbl/copyemblem.js


Image:
http://i.imgur.com/77brm1h.png



Have fun and share your codes using pastebin or something similar :)

Nice idea!
In my opinion, this is a quite useless plugin, because Battlelog itself has got a save system for emblems. And you can load other emblems directly from other peoples profiles. So the system in Battlelog itself requires less proceedings than yours.
Post edited 2 x times, last by
Topicstarter
Threattys Skull:
http://pastebin.com/WSi24K2P


BBLog:
http://pastebin.com/DbFZfvb5


Dont reive me bro:
http://pastebin.com/0W6d3zjQ


Dooms awesome face:
http://pastebin.com/GW6R6Wsf


Symthic:
http://pastebin.com/kLLDH3bm


@Meaurk:
You can't copy emblems if they're not active. There are authors of many emblems at the same time, so if you want one, you can add it without waiting for him to active it. Like the ones I'm using now, if you want one you can grab one of them. But if it's not the active one you won't get it. With my plugin you can get it.
Also I think to the release all emblems will be gone, save it with this plugin.
Meaurk wrote:
In my opinion, this is a quite useless plugin, because Battlelog itself has got a save system for emblems. And you can load other emblems directly from other peoples profiles. So the system in Battlelog itself requires less proceedings than yours.

i agree in this point to meaurk.
your plugin makes only sence, if you want to have a big collection of emblems to can load. most clans have one logo and they will share it together and won't collect a large library of emblems.

kurtextrem wrote:
There are authors of many emblems at the same time, so if you want one, you can add it without waiting for him to active it. But if it's not the active one you won't get it. With my plugin you can get it.

with your plugin he can get it if its in your library on an external website, right? he cant get the inactive emblems, which are in the library on battlelog by the emblem author, right?

Also I think to the release all emblems will be gone, save it with this plugin.

in this point i agress with you. battlelog will delete ALL medals, ribbons, stats, platoons and emblems at the release date. but we dont know, if the current emblems will be compatible with the final editor, its possible that they will change some features or functions, but its good to have a backup.
I, internally, gave that idea to Brain. I found a lot of emblems and like/copy them.

Just one improvement: Can we "export/copy" directly to a file? Like "emblem254.embblog". It's easy to import too.
Topicstarter
Done. Function added.

Maybe I'll add a import for files function later.
Thanks!

I started propagate this plugin to my clan members, reddit and foruns. :)
Post edited 1 x times, last by
Topicstarter
I'm glad you like it :)

I pushed out a new version, v1.0.2. It adds the import function. Just select the downloaded file and it will insert it. Should work in every modern browser.
Maybe I'll create a homepage for sharing emblems.
Topicstarter
v1.0.4 is out, adding options + menu links
http://i.imgur.com/G6eBPGF.png
Brilliant plugin.
Just because I don't know how far they will wipe the Battlelog/Profile files after the beta, it's nice that we can backup the emblem.
It wasn't actually a big deal to copy the code via the firefox console, but at least a good way to save the emblem for non-coders.

Thanks for the implementing.
ORFK wrote:
kurtextrem wrote:
Also I think to the release all emblems will be gone, save it with this plugin.

in this point i agress with you. battlelog will delete ALL medals, ribbons, stats, platoons and emblems at the release date. but we dont know, if the current emblems will be compatible with the final editor, its possible that they will change some features or functions, but its good to have a backup.


Emblems are
not
deleted! I can see all my, in Beta made, emblems in the full game. :-)
Just heads up, in the official version of battlelog that is up now, the Load and Copy icons are still there but they no longer bring up a prompt.
Topicstarter
Zone15 wrote:
Just heads up, in the official version of battlelog that is up now, the Load and Copy icons are still there but they no longer bring up a prompt.


Thanks :)
I got notified about that already from a friend, but unfortunately I can't do anything at the moment because GameStop (Germany!) isn't sending out the codes until the 31st (the official release date ;_;) => I got no BF4 yet. I try my best to fix it, though.
Post edited 2 x times, last by
BF4 Battlelog is already available for all.

Edit: Doesn't mind, not for emblems :) Shame on me.
Topicstarter
Fixed, visit the link and press Strg (or Ctrl)+F5 to get the latest version.
Topicstarter
v1.0.6 is out, adds a new button to the BF4 player profile -> "View lib". After pressing this button you can see the whole library from the player.
No button in sight.
I get this in chrome: Uncaught TypeError: Cannot read property '1' of undefined copyemblem.js:166
Post edited 2 x times, last by
Topicstarter
Fixed now, thanks for your patience (It's hard to develop such things if you don't even have BF4 yet because EA and it's release date in europe..omg)
http://img46.imageshack.us/img46/6750/0hkt.png

v1.0.6.1
Post edited 1 x times, last by
Could you extend the plugin to bf3 platoons, so that we can copy over the emblem from bf3?
Horfic wrote:
Could you extend the plugin to bf3 platoons, so that we can copy over the emblem from bf3?


BF3 allows for 40 slots and different items that aren't in BF4.
Post edited 1 x times, last by
Topicstarter
v1.0.6.3:
So DICE removed the ability to "copy" emblems from players which aren't in your friendlist... Well nope, not for us.
http://i.imgur.com/AAMPKOX.png

View the emblem, click on "View lib". You will see the whole library of the specific player so you can copy as much as you want.


Small note: No, I can't fix that you can't save more than 20 layers if you don't have premium. Buy premium and you can.
Post edited 2 x times, last by
so, i created a convert function to convert the bf3 asset names to the one for bf4. Not all assets are available, i would say 50%. The function drops all assets which are not linked to a bf4 asset. I marked in the list which asset is premium.

http://pastebin.com/EqLt5jfi


the function will return the stringify json which you use for output.

to add a migrate button to bf3 platoon page you have to add it before the save button.
$('#emblem-save-btn').before(string)
Topicstarter
Thanks, I'll try to implement it in the next version.
Post edited 1 x times, last by
I'll take back me negative words about this plugin. It now is very useful with all it's new features and tweaks. Great job, Kurtextrem! :-)
This is fucking sick!

Especially for a design retard like myself... it's awesome to be able to use awesome designs as templates for me to mess with.

Thanks man!
Post edited 1 x times, last by
Hi!

I installed the plugin with your instructions but I don't get that "view lib" - button. What was my problem? I can see that Battlelog is now better in the left top corner. Maybe you can help me. :-)

Thanks!
Post edited 4 x times, last by
Killerlexus wrote:
Hi!

I installed the plugin with your instructions but I don't get that "view lib" - button. What was my problem? I can see that Battlelog is now better in the left top corner. Maybe you can help me. :-)

Thanks!


Hey Killerlexus and welcome to the forum,

have you installed the browser add-on (Better Battlelog) or the Better Battlelog add-on (Manage emblems)?

If you installed Better Battlelog, just hit the big, yellow "One-Klick Install" button in the first post and reload the browser with F5.

If you installed Manage emblems you should be able to see the "View Lib" button. If not make sure to allow kurtextrem.de if you are using something like NoScript. Also make sure Plugins (Click on the Better Battlelog logo -> General Improvements) is checked. Take a look into the plugins section if "http://kurtextrem.de/bbl/copyemblem.js" is checked as well.

How it should look
Your Profile

Friends Profile

Ohhhh yeah. :-)

Thanks Brady_The for the quick reply to my question. My mistake was that I haven't installed the Better Battlelog add-on (Manage emblems). Now I'm happy. :-P

Between nice add-on. Really good work.
Post edited 1 x times, last by
Problem solved. Awesome Plugin btw. ...
Post edited 1 x times, last by
Topicstarter
Trying to work out a way to copy the emblem code even though they've made it so it only loads an image instead of real data in the emblem lib... Dat EA

Don't know how, it looks like it's all server side and they don't use ajax to fetch something. If you find some way, tell me. :)
I can't get the LOAD and COPY button to work ever since BBLog 4.0 update. Help?
Topicstarter
I'll take a look at the weekend
Post edited 1 x times, last by
Hi kurtextrem,

Thank you for releasing this great plugin! I really enjoy emblem editing with your awesome plugin. Love it.

And, for plugin compatibility issue with BBLog 4.0.0, here is the summary of my analysis.

Seems that BBLog.alert() is missing or might be obsoleted in BBLog 4.0.0(bblog.js), so the plugin cannot draw any dialog pop-up correctly when user click "Load" or "Copy" button. I am not sure that removing BBLog.alert() is a planned change or not, but you need to add an additional code or ask BBLog team to revert the change of BBLog.alert().

Since I want to use the plugin with BBLog 4.0.0 and cannot wait your/their fix :P , I made a quick&dirty fix for my personal use. You can find it
http://pastebin.com/NAADSUMq
. Also, added diff into this post
copyemblem.js.diff
.

Thanks.
Post edited 1 x times, last by
Topicstarter
Pretty cool, thank you! I'll update later.
Looks like the 4.0.0 replacement for that's actually:

BBLog.popup(id, title, text, footer)
bblog.js?4.0.0 -- Line 4328 /**
* Show a popup
*
* @param {String} id
* @param {String} title
* @param {String} text
* @param {String} footer
*/
popup : function(id, title, text, footer){
id = "popup-"+id;
$("#dialog-container").show();
if(!$("#"+id).size()){
if(!$("#dialog-container .overlay-container").length) $("#dialog-container").prepend('<div class="overlay-container">');
$("#dialog-container").show();
$("#dialog-container").append('<div id="'+id+'" class="bblog-popup dialog"><header><a class="icon-dialog-close" href="#"></a><h3></h3></header><section class="dialog-body"></section><footer></footer></div>');
$("#dialog-container .overlay-container").html($('<div class="overlay show" style="display:block;">').one("click", BBLog.closeAllPopups));
$("#"+id).find(".icon-dialog-close").on("click", function(ev){
BBLog.closeAllPopups();
ev.stopPropagation();
ev.preventDefault();
})
}
$("#"+id+" header h3").text(title);
$("#"+id+" section").html(text);
if(footer) {
$("#"+id+" footer").html(footer);
}else{
$("#"+id+" footer").remove();
}
popup.centerAndShowPopup($("#"+id));
},
Post edited 1 x times, last by
Sadly magni1200s's custom file doesn't seem to work with me using 4.0 (uploaded as a js to Dropbox and tried separately and in conjunction with the default one with no luck)

Can't seem to find an old version of bblog to use just to grab an emblem before updating back up either.

Would be cool to see this fixed.
Topicstarter
Fixed. Tell me if you find any other bugs.
kurtextrem wrote:
Fixed. Tell me if you find any other bugs.


The load button seems to work fine when editing your own emblem now but hitting Copy on someone elses (who isn't a friend at least) doesn't do anything.
Seraph wrote:
The load button seems to work fine when editing your own emblem now but hitting Copy on someone elses (who isn't a friend at least) doesn't do anything.


That's very likely a result of the addition of "Share with" limits battlelog side. Hop over and try it on my emblem list, the red faction one should be globally available, most of the rest are tagged friend only.
Topicstarter
poisonblx wrote:
Seraph wrote:
The load button seems to work fine when editing your own emblem now but hitting Copy on someone elses (who isn't a friend at least) doesn't do anything.


That's very likely a result of the addition of "Share with" limits battlelog side. Hop over and try it on my emblem list, the red faction one should be globally available, most of the rest are tagged friend only.


Yeah, that's true. DICE changed the way stuff works. There is no way to get the code for an emblem if the owner doesn't share it.
good
When I try to load an emblem code with locked icons I can't see the button to confirm. I press Enter but nothing happens.

I tried to import a file, but I dont know how to confirm the action when I'm on the loading window.
Same problem here the confirm/ok button just does not appear...ive already checked javascript etc. but i didnt manage to find anything preventing the button to be shown. Thus iam not able to load any emblem code.
I would appreciate any help
"OK" button is in a dialog pop-up but rendered outside visible area. You just hit TAB key two or three times, you will see the button.
Ah okay thx for the hint ive found the button ;)
But when i try to load an emblem code an error message pops up telling me that i cannot save locked shapes...
Iam currently using these two plugins:

a) to unlock emblems:
https://dl.dropboxusercontent.com/s/y0f3kfgvav44abp/item-unlocker.js


b) to load and save:
http://kurtextrem.de/bbl/copyemblem.js
nomercy wrote:
Ah okay thx for the hint ive found the button ;)
But when i try to load an emblem code an error message pops up telling me that i cannot save locked shapes...
Iam currently using these two plugins:

a) to unlock emblems:
https://dl.dropboxusercontent.com/s/y0f3kfgvav44abp/item-unlocker.js



I've never used a) plugin (item-unlocker.js) , but I can see the following comments in it.

"This plugin allows you to use all of the items in the BF4 emblem editor. You will not be able to save your emblem with this, but you will be able to use the code later on."

Seems this plugin allows to use all shapes including unlocked one but NOT ALLOWED TO SAVE. So you still need to play the game more or buy battlepacks.
magni1200s wrote:
"This plugin allows you to use all of the items in the BF4 emblem editor. You will not be able to save your emblem with this, but you will be able to use the code later on".


Because of this part in the description i have decided to use plugin b).
Theres a youtube video showing how to unlock emblems using both of the mentioned plugins but i can't manage to make this work:

https://www.youtube.com/watch?v=d5L80M1Jhjs


But iam not too sure if this method is still valid because the video is rather old and it might be impossible now.
Post edited 1 x times, last by
It's simply impossible to use shapes for that you don't have access.
You can see it but saving that emblems is impossible, it's blocked on server side and no plugin can get around this limitation.

Greetz
nomercy wrote:
But iam not too sure if this method is still valid because the video is rather old and it might be impossible now.


This kind of method was fixed more than a year ago. As BrainFooLong mentioned, it is impossible now.
Okay thanks for your help guys i guess ill start unlocking them the regular way now ;)
magni1200s wrote:
nomercy wrote:
But iam not too sure if this method is still valid because the video is rather old and it might be impossible now.


This kind of method was fixed more than a year ago. As BrainFooLong mentioned, it is impossible now.


does any1 know how to install these add on an plug ins this code stuff is new to me