• Battlefield 3 - Custom Platoom Emblems
    16 replies, posted
Instead of playing BF3 when I stayed up at midnight, I decided to screw with Battlelog and found a way to use a custom SVG in the emblem editor instead of the crappy standard ones. [img]http://bit.ly/usmF8o[/img] [b]Step 1[/b] - [i]Find an image[/i] If it's not an SVG try using a program like Vector Magic to convert your image into an SVG (if it's suitable) I used this: [quote] [img]http://dl.dropbox.com/u/934051/cmc-logo.svg[/img] [/quote] [b]Step 2[/b] - [i]Make the SVG compatible with the Emblem editor[/i] Open up your SVG in a text editor (not MS Word) and you'll see some code like the following: [code]<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="1237pt" height="1250pt" viewBox="0 0 1237 1250" version="1.1" xmlns="http://www.w3.org/2000/svg"> <g id="#000000ff"> </g> <g id="#2e387dff"> <path fill="#2e387d" opacity="1.00" d=" ... " /> </g> <g id="#2450d5ff"> <path fill="#2450d5" opacity="1.00" d=" ... " /> </g> <g id="#eedd81ff"> <path fill="#eedd81" opacity="1.00" d=" ... " /> </g> </svg>[/code] There are 3 things you need to do, &#8226; Remove the group elements (<g>) &#8226; Add the ID "Layer_1" to the SVG tag (Not completely sure) &#8226; Add this to the SVG tag: [code]x="0px" y="0px" width="320px" height="320px" enable-background="new 0 0 320 320" xml:space="preserve"[/code] Again I'm not entirely sure Afterwards your SVG code should look similar to this: [code]<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg id="Layer_1" x="0px" y="0px" width="320px" height="320px" viewBox="0 0 1237 1250" version="1.1" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 320 320" xml:space="preserve"> <path fill="#2e387d" opacity="1.00" d=" ... " /> <path fill="#2450d5" opacity="1.00" d=" ... " /> <path fill="#eedd81" opacity="1.00" d=" ... " /> </svg>[/code] [b]Step 3[/b] - [i]Insert the SVG into the Emblem editor[/i] This part requires replacing content on the server, obviously this isn't possible so you'll need to do a man in the middle attack on yourself using a proxy. I used [url=http://portswigger.net/burp/]Burp Suite[/url] (the free version's fine) to intercept the server's response. [b]Step 3a[/b] - [i]Setting up Burp[/i] This part isn't essential but it makes it easier. In the Proxy > Options tab of burp is a filter list, set the "intercept if" sections like so: [img]http://bit.ly/w1Txx1[/img] The URLs are both: [url]http://battlelog.battlefield.com/public/platoon/badge_parts/bird.svg[/url] "bird" is the part id of an image in the editor, in this case, the bird; you can find the partid by using Firebug/Developer inspector on the icons in the emblem editor. You'll see why later on. [b]Step 3b[/b] - [i]Configure your browser[/i] Set your browser's network settings to proxy through localhost:8080 so that burp can intercept the response. [b]Step 4[/b] - [i]Replace the image[/i] First, make sure that burp is set to intercept. If you didn't do Step 3a you should get something every few seconds, just press Forward on burp each time. [img]http://goo.gl/MAioS[/img] Secondly, copy the source code for your new SVG (open the SVG file in a text editor and select all and copy it) Thirdly, drag the bird object into the editor. [img]http://goo.gl/kPh3f[/img] Quickly switch to burp and you should see the request being made, forward the request. You'll see this: [img]http://goo.gl/58vks[/img] The server will give a response - it will have SVG markup. Replace the server's response (from <?xml ..?> to the end) with your SVG's source and then click forward. You should do this quick before the browser times out which may be after 60 seconds. [img]http://goo.gl/VlpKn[/img] Instead of the bird you should see your SVG, just drag it into position and save. [img]http://goo.gl/HRPab[/img] And that's it! Remember to disable the proxy afterwards. I'm not entirely sure if this violates the EULA or not though.
[url]http://www.facepunch.com/threads/1097783/1147[/url] You missed it even though it was on the first page? :raise:
I was going to say "That's what we have a Battlefield 3 megathread for" [IMG]http://i.somethingawful.com/forumsystem/emoticons/emot-arghfist.gif[/IMG][IMG]http://fi.somethingawful.com/images/smilies/frown.gif[/IMG] But this is interesting and useful, thanks. [editline]28th October 2011[/editline] [QUOTE=Legolas;33008920][url]http://www.facepunch.com/threads/1097783/1147[/url] You missed it even though it was on the first page? :raise:[/QUOTE] LEGOLAS! Don't bring the guy down :v: The amount of posts the thread gets it will just get missed.
[QUOTE=Legolas;33008920][url]http://www.facepunch.com/threads/1097783/1147[/url] You missed it even though it was on the first page? :raise:[/QUOTE] I spent ages figuring out and writing this, cut me some slack [editline]28th October 2011[/editline] In hindsight I probably should have retaken the screenshots using more neutral pictures...
He's put a lot of effort into this guys, he doesn't need to put it in the BF3 thread, it deserves its own thread, gj man.
[QUOTE=Legolas;33008920][url]http://www.facepunch.com/threads/1097783/1147[/url] You missed it even though it was on the first page? :raise:[/QUOTE] It deserves seperate attention.
My platoon's emblem won't even show.
[QUOTE=LordApocca;33009165]My platoon's emblem won't even show.[/QUOTE] Normally? Or following the guide?
[QUOTE=Bugster;33009205]Normally? Or following the guide?[/QUOTE] Sorry, should've mentioned normally. Just as i wrote that though, it popped up. Typical.
Seems like a pretty handy thing to have. Thanks Bugster!
Oh boy now i hope i will play against brownies because then i can shoot the fuck out of them with my Spess Mahrines group. :dance: Now we wait
Why would you want to kill brownies They taste good.
I'm getting an error/alert in burp. proxy service started on port 8080 [3] failed to connect to I really have no clue what I'm doing. Can anyone help? I'm using chrome so I don't know how to set up the proxy localhost:8080, I just used internet options. EDIT: Nevermind, I got it. THANKS!
I'm incredibly vague on step 4, I'll rewrite that
Is this visible ingame somewhere?
Rewrote it... sorta [editline]31st October 2011[/editline] [QUOTE=w0lfeh;33055824]Is this visible ingame somewhere?[/QUOTE] Nope!
Damn Bugster, this is a handy thread.
Sorry, you need to Log In to post a reply to this thread.