[Release] SQF to Biedi converter/importer

Discussion in 'Map Additions' started by JayWood, Nov 25, 2013.

  1. JayWood

    JayWood New Member

    Joined:
    Sep 22, 2013
    Messages:
    20
    Likes Received:
    7
    For a long time I wanted to add buildings to my Epoch server for my players to inhabit, but I worried about adding buildings on top of buildings, on top of more buildings. So, I built this. Using this ensures that if any 'new' building sqf's are released that I can see if they overwrite any existing buildings before I add them.

    I realize this tool isn't for everyone, but I'm quite proud of it so why not see if someone else can get use out of it. Watch the video to see how to use it, and of course it's a plus that you don't have to 'download' an exe or other file, it's web only. You're free to rip this html, distribute it, etc... just don't sell it, that's just stupid.


    Video Tut:


    NOTE: This tool is no longer maintained by me, therefore I've moved it's sourcecode to github for further use by someone else. If you wish to host it or something just submit a pull request to the readme file and I'll add your link. For now, that is all!

    Get it on GitHub

    https://github.com/JayWood/sqf_to_beidi

    Use it online:
    https://github.com/JayWood/sqf_to_beidi#use-this-tool-online

    Revisions:
    v1.2

    • Altered javascript to check for only createVehicle to get rid of 'unit' issues as well as markers and basically anything that isn't a vehicle. You should now be able to paste an entire SQF file, though you will only get the usual output, vehicles only.
    • Moved output code to textarea, I just like it there instead. Allows Ctrl+A and prevents selecting the entire page.
    • A few style changes.

    All I ask is that you link to my site if you decide to rip the html.
     
    Last edited: Jan 18, 2015
  2. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,220
    Likes Received:
    67
    So i added tons of buildings to my map and at one point my arma was corrupt and so i had to reinstall, which meant i lost everything ib my editor. Ive always wanted to go back and load my map back onto the editor so i could change or remove old placements, but as i had no beidi i couldnt. Would this tool help me? Sorry for run ons im on cell at work
     
  3. CommanderRetra

    CommanderRetra Yogi Bear|Moderator Staff Member

    Joined:
    Apr 3, 2013
    Messages:
    553
    Likes Received:
    157
    Seems like a great tool!

    Moved to Map Additions and stickied.
     
  4. Gagi2

    Gagi2 Valued Member!

    Joined:
    Mar 30, 2013
    Messages:
    444
    Likes Received:
    59
    it seems there need to be an empty line between the single object blocks...
    otherwise it only loads the first block
     
  5. JayWood

    JayWood New Member

    Joined:
    Sep 22, 2013
    Messages:
    20
    Likes Received:
    7
    @Gagi2:
    Yes that's correct. I based my code off of the common 'buildings.sqf' which most servers used. You'll notice in those SQF's that there are two line breaks after the vehicle declaration. You could modify the split declaration on line 95 to work around that if you'd like. Here's where the split begins:
    Code:
    _sqf.split("};\n\n");
    It essentially splits each vehicle into it's own array, then iterates through that to get the appropriate values. Hope that makes sense.

    @DangerRuss
    If you still have the old SQF from the mission this will work for re-adding the buildings, aka. vehicles. If you watch the video I show you how to start a new map, and import pre-made sqf's into it. Should cover your bases.

    @CommanderRetra
    Glad you found it useful, and thanks for the sticky.
     
  6. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,220
    Likes Received:
    67
    yes awesome Ill just slap the SQF's from my server. Very cool. I can't tell you how long Ive been googling for a solution.
     
  7. sukkaed

    sukkaed Well-Known Member

    Joined:
    May 1, 2013
    Messages:
    173
    Likes Received:
    14
    This is really useful. Thank you.
     
  8. BetterDeadThanZed

    BetterDeadThanZed Well-Known Member

    Joined:
    Mar 1, 2013
    Messages:
    537
    Likes Received:
    21
    I tried using this on one of my sqf files and received this error: "No field should be empty for any reson."
     
  9. sukkaed

    sukkaed Well-Known Member

    Joined:
    May 1, 2013
    Messages:
    173
    Likes Received:
    14
    You need to add some lines to the top of that .biedi you created. Look example from some original .biedi file.
     
  10. Starkvix

    Starkvix New Member

    Joined:
    Oct 8, 2013
    Messages:
    6
    Likes Received:
    0
    I've tried to get the tool to work on your site but it stops at building 668. Is there some kind of limit on the number of buildings?
     
  11. Starkvix

    Starkvix New Member

    Joined:
    Oct 8, 2013
    Messages:
    6
    Likes Received:
    0
    I've now tried every which way. Could I send you the biedi file I want to add to and the SQF I want to add?
     
  12. Conquest

    Conquest Member

    Joined:
    May 28, 2013
    Messages:
    19
    Likes Received:
    0
    I must be retarded because i can't get this to work

    All I get is working on your file

    Nevermind i see what was going on, there were units and groups in there as well. Hopefully you improve this to include those, or make a seperate tool to convert the units/groups

    But great tool it was very helpful, thank you!
     
  13. bFe

    bFe Member

    Joined:
    Feb 16, 2013
    Messages:
    78
    Likes Received:
    8
    Mine keeps getting stuck on "Working on your file, please wait".
    I have about 1950 lines I'm trying to convert, is it too much?
     
  14. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,220
    Likes Received:
    67
    If I may... what do people really use this for? It seems to not work and I can't think of why it would be necessary other than perhaps a time saver?
     
  15. Gagi2

    Gagi2 Valued Member!

    Joined:
    Mar 30, 2013
    Messages:
    444
    Likes Received:
    59
    people use this for what it was meant to be used...
    so you want to tell me you recompile a 1200line sqf manually to a biedi file?
    congratz... you must have too much spare time :cool:

    i have used a few times now and it worked every time...

    as i posted before... you need an empty line between the single objects... or it will stop parsing right there...
     
  16. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,220
    Likes Received:
    67
    It was an honest question that didn't deserve a smart ass answer with a dick head remark. No shit its used to convert sqf to beidi, I was asking for specifics since everyone was complaining it didn't work. The only beidi file I use is in my map editor, and copy pasting some coordinates doesn't take much time at all.

    So back to my original question for anyone who doesn't want to be a condescending prick. Thanks.
     
  17. Gagi2

    Gagi2 Valued Member!

    Joined:
    Mar 30, 2013
    Messages:
    444
    Likes Received:
    59
    ok so you copy and paste about 1200 coordinates... like i said...
    c'mon... lets do it...

    i guess some people are getting a bit more into their custom maps like 1 or 2 objects like it seems you do...

    i have overread the dick head remark for this time... next time maybe you arent so lucky kiddo...
     
  18. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,220
    Likes Received:
    67
    lol internet tough guy. flex those muscles! quit flaming the thread. I asked a serious question. If you took the time to put 1200 items in one custom map file, YOU have too much time. And if you made the map yourself, why would you need a converter? You would already have the beidi. So back to my original question and quit wasting my time.
     
  19. bFe

    bFe Member

    Joined:
    Feb 16, 2013
    Messages:
    78
    Likes Received:
    8
    The reason I use it is if I find a nice map addition I want to do changes to in the editor, now I can.
     
  20. DangerRuss

    DangerRuss OpenDayZ Rockstar!

    Joined:
    Jul 10, 2013
    Messages:
    1,220
    Likes Received:
    67
    thanks for the honest reply. I guess I was just wondering if there were other types of beidi files that people used for other things (besides maps) on their server.
     

Share This Page