1. Post #1

    April 2007
    1,448 Posts
    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.



    Step 1 - Find an image
    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:
    Step 2 - Make the SVG compatible with the Emblem editor
    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>
    There are 3 things you need to do,
    • Remove the group elements (<g>)
    • Add the ID "Layer_1" to the SVG tag (Not completely sure)
    • 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"
    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>
    Step 3 - Insert the SVG into the Emblem editor
    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 Burp Suite (the free version's fine) to intercept the server's response.

    Step 3a - Setting up Burp
    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:



    The URLs are both: http://battlelog.battlefield.com/pub...parts/bird.svg

    "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.

    Step 3b - Configure your browser
    Set your browser's network settings to proxy through localhost:8080 so that burp can intercept the response.

    Step 4 - Replace the image
    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.



    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.



    Quickly switch to burp and you should see the request being made, forward the request.

    You'll see this:


    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.



    Instead of the bird you should see your SVG, just drag it into position and save.



    And that's it!

    Remember to disable the proxy afterwards.

    I'm not entirely sure if this violates the EULA or not though.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Useful Useful x 13Dumb Dumb x 5Optimistic Optimistic x 3Winner Winner x 1 (list)

  2. Post #2
    Iggy the mean Piggy
    Legolas's Avatar
    September 2007
    9,080 Posts
    http://www.facepunch.com/threads/1097783/1147
    You missed it even though it was on the first page? :raise:
    Reply With Quote Edit / Delete Windows 7 Lithuania Show Events Dumb Dumb x 6Late Late x 1 (list)

  3. Post #3
    Gold Member
    Mr. Agree's Avatar
    May 2010
    7,461 Posts
    I was going to say "That's what we have a Battlefield 3 megathread for"

    But this is interesting and useful, thanks.

    Edited:

    http://www.facepunch.com/threads/1097783/1147
    You missed it even though it was on the first page? :raise:
    LEGOLAS! Don't bring the guy down The amount of posts the thread gets it will just get missed.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 2Friendly Friendly x 1Funny Funny x 1 (list)

  4. Post #4

    April 2007
    1,448 Posts
    http://www.facepunch.com/threads/1097783/1147
    You missed it even though it was on the first page? :raise:
    I spent ages figuring out and writing this, cut me some slack

    Edited:

    In hindsight I probably should have retaken the screenshots using more neutral pictures...
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  5. Post #5
    asdfghjkl.
    Erasus's Avatar
    May 2011
    2,119 Posts
    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.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 4Friendly Friendly x 1Dumb Dumb x 1 (list)

  6. Post #6
    Dark RaveN's Avatar
    September 2010
    3,208 Posts
    http://www.facepunch.com/threads/1097783/1147
    You missed it even though it was on the first page? :raise:
    It deserves seperate attention.
    Reply With Quote Edit / Delete Windows 7 Estonia Show Events Agree Agree x 1 (list)

  7. Post #7
    Gold Member
    LordApocca's Avatar
    January 2007
    2,478 Posts
    My platoon's emblem won't even show.
    Reply With Quote Edit / Delete Windows Vista Denmark Show Events

  8. Post #8

    April 2007
    1,448 Posts
    My platoon's emblem won't even show.
    Normally? Or following the guide?
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Friendly Friendly x 1 (list)

  9. Post #9
    Gold Member
    LordApocca's Avatar
    January 2007
    2,478 Posts
    Normally? Or following the guide?
    Sorry, should've mentioned normally. Just as i wrote that though, it popped up. Typical.
    Reply With Quote Edit / Delete Windows Vista Denmark Show Events

  10. Post #10
    Ah yes "opinions"
    Jackald's Avatar
    October 2005
    16,969 Posts
    Seems like a pretty handy thing to have. Thanks Bugster!
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Friendly Friendly x 2Dumb Dumb x 1 (list)

  11. Post #11
    World of Vagax
    darth-veger's Avatar
    December 2008
    21,526 Posts
    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.
    Now we wait
    Reply With Quote Edit / Delete Windows 7 Netherlands Show Events Funny Funny x 1 (list)

  12. Post #12
    Gay Member #1
    Dennab
    November 2009
    5,517 Posts
    Why would you want to kill brownies

    They taste good.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 1 (list)

  13. Post #13
    Porcupine162's Avatar
    March 2007
    503 Posts
    I'm getting an error/alert in burp.

    proxy service started on port 8080
    [3] failed to connect to 46.51.142.197

    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!
    Reply With Quote Edit / Delete Windows 7 Australia Show Events

  14. Post #14

    April 2007
    1,448 Posts
    I'm incredibly vague on step 4, I'll rewrite that
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  15. Post #15
    Gold Member
    w0lfeh's Avatar
    February 2009
    4,950 Posts
    Is this visible ingame somewhere?
    Reply With Quote Edit / Delete Windows XP Slovenia Show Events

  16. Post #16

    April 2007
    1,448 Posts
    Rewrote it... sorta

    Edited:

    Is this visible ingame somewhere?
    Nope!
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  17. Post #17
    Gold Member
    FlakAttack's Avatar
    November 2006
    5,735 Posts
    Damn Bugster, this is a handy thread.
    Reply With Quote Edit / Delete Windows 7 Canada Show Events