Converting Mission.Biedi to Script

Discussion in 'Mission Editing' started by justin andrews, May 29, 2013.

  1. justin andrews

    justin andrews New Member

    Joined:
    May 20, 2013
    Messages:
    8
    Likes Received:
    0
    So I'm new to the scene of scripting and was using http://dayz.wofjwof.com/map.php
    to upload my mission.biedi it would then give me a script I copyed and uploaded to my server's SQL.

    Well http://dayz.wofjwof.com/map.php is now down and I have no idea now how to update my server with new buildings. I have a new Mission.biedi I would like to upload to server but don't know how to do that anymore without that link.

    Anyone able to break this down for me to a level I can understand and actually utilize?

    Appreciate any help I'm sure I'm not the only one that was using that link to upload new buildings.
     
  2. stig

    stig Member

    Joined:
    Jan 15, 2013
    Messages:
    76
    Likes Received:
    8
  3. machine

    machine Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    297
    Likes Received:
    21
    Lets go for a ride...

    When you are done in the editor and save your mission file as MyMapName.
    it goes here: C:\Documents and Settings\username\My Documents\ArmA 2\missions\MyMapName (or somewhere close to that you should know if you know where your .bedi is)

    Open the mission.sqm file in MyMapName folder.

    Copy all of this good stuff:
    Code:
    _vehicle_11 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_Mil_Barracks_i", [4635.2856, 10493.992, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
      _vehicle_11 = _this;
      _this setDir 58.857197;
      _this setPos [4635.2856, 10493.992, 3.0517578e-005];
    };
    Each one of those bad boys is a building... make sure you do not copy the playable character you used in the editor.

    Now create a new file called buildings.sqf <--- name can be anything you like.

    Now in that file you want it to look like this:
    Code:
    if (isServer) then {
     
    _vehicle_11 = objNull;
    if (true) then
    {
      _this = createVehicle ["Land_Mil_Barracks_i", [4635.2856, 10493.992, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
      _vehicle_11 = _this;
      _this setDir 58.857197;
      _this setPos [4635.2856, 10493.992, 3.0517578e-005];
    };
    };
    And save this file in you mission folder.

    Now in your mission folder open your init.sqf and add this @ the bottom somewhere:
    Code:
    //buildings
    [] ExecVM "buildings.sqf";
    Pack your stuff and enjoy!

    Need any help just paste your editor mission file and i'll set them up for you.
     
    iKILLJOY and stig like this.
  4. machine

    machine Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    297
    Likes Received:
    21
    BTW im far from perfect so anything i did wrong ^^ or did not explain feel free to point it out.
     
  5. Dobby

    Dobby Member

    Joined:
    Mar 20, 2013
    Messages:
    61
    Likes Received:
    0
    hey machine ! please can u help me, if i give you my mission.biedi and my mission.pbo can u add this for me please ? :)
    Thanks !.-
     
  6. machine

    machine Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    297
    Likes Received:
    21
    ofc but first i need....
    [​IMG]

    - OR -

    your files :p

    no seriously upload them somewhere I'll knock it out in 15 mins
     
  7. Seven

    Seven Moderator Staff Member

    Joined:
    Dec 16, 2012
    Messages:
    277
    Likes Received:
    86
    http://pastebin.com/xyXzgVgX

    This is my CFGTownGenerator I created for easy building placement in Sahrani.

    With easy editing you could easily change this to output SQL instead of C++.
     
    weezy237 likes this.
  8. Dobby

    Dobby Member

    Joined:
    Mar 20, 2013
    Messages:
    61
    Likes Received:
    0
  9. machine

    machine Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    297
    Likes Received:
    21
    need the other file with the bedi but not the bedi the mission.sqf or sqm one.
     
  10. machine

    machine Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    297
    Likes Received:
    21
    got it

    Edit:

    Not 100% sure this one will work but will try it.
    _objectComposition_2 = [[6480.5269, 3014.4634, -6.9618225e-005], 187.30771, "SmallBase"] call (compile (preprocessFileLineNumbers "ca\modules\dyno\data\scripts\objectmapper.sqf"));
     
  11. Dobby

    Dobby Member

    Joined:
    Mar 20, 2013
    Messages:
    61
    Likes Received:
    0
  12. machine

    machine Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    297
    Likes Received:
    21
  13. Dobby

    Dobby Member

    Joined:
    Mar 20, 2013
    Messages:
    61
    Likes Received:
    0
    Thanks u are awesome i will try it this night :) !

    Thanks again !
     
  14. machine

    machine Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    297
    Likes Received:
    21
    np at all if there is any issues let me know i'll fix'em
     
  15. Dobby

    Dobby Member

    Joined:
    Mar 20, 2013
    Messages:
    61
    Likes Received:
    0
    kk thanks
     
  16. justin andrews

    justin andrews New Member

    Joined:
    May 20, 2013
    Messages:
    8
    Likes Received:
    0
    machine you able to try and fix mine if i upload my mission.sqf? or mission.biedi?
     
  17. machine

    machine Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    297
    Likes Received:
    21
    upload it i will fix it in the asap
     
  18. AbsolutInfinity

    AbsolutInfinity New Member

    Joined:
    May 24, 2013
    Messages:
    29
    Likes Received:
    1
    Hey Machine, I seen what you are doing for these other fellas, and I was wondering if you can help me with mine too :) I am trying to make a custom base in Epoch Chernarus but I cant seem to merge the custom base sqm with the Epoch sqm. If your willing to help me I will upload all the files you need, just lemme know which ones!

    Thank you much!
     
  19. machine

    machine Well-Known Member

    Joined:
    Jan 20, 2013
    Messages:
    297
    Likes Received:
    21
    yup! im headed to a baseball game atm but as soon as i get back i will.
     
  20. AbsolutInfinity

    AbsolutInfinity New Member

    Joined:
    May 24, 2013
    Messages:
    29
    Likes Received:
    1
    Okay! Thank you much!
    Here is the link to my files, if you need anything else just let me know!

    And again, thank you very much :)
     

Share This Page