Jump to content
  • 0

how do i convert a SQM to SQF?


RonSwanson

Question

hi there i am trying to make a custom map area and i have Sandbox and i am editing in 3d and producing a .SQM file. i am looking to convert it to .SQF so i can then launch in via my init file and see it on the map.

 

Any help or tips? if i get this to work i will add a tutorial for beginners on the entire process. Would really like some help on this many.

 

Thanks Ron

 

- hope this is posted in the correct place it is my first thread.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Download E3DEN Editor from workshop (https://steamcommunity.com/sharedfiles/filedetails/?id=630702051) and enable it in your Mods.

Start the game, open editor and select the Map you want to add buildings at.

 

Place all the stuff you want to add and save your project from time to time.

Create a file called buildings.sqf (just an example you can name it as you like). Open it and get back into editor. Click tools and press Save project as SQF. Your map addons are now copied to clipboard.

Open the buildings.sqf and insert the code with ctrl+v. Save it and close.

Open your mission file (epoch.Altis for example), create a folder named addons if you dont have already, create another one called mapaddons inside of addons folder. Place the buildings.sqf in this folder.

Now open your init.sqf or create it in the mission root folder if you dont have one and insert the following code:

 

 if (isserver) then {

     [] execVM "addons\mapaddons\buildings.sqf";

};

 

Save, repbo and upload. This should add all the stuff you created in the Editor to your map.

 

To add more, you can just create a second one for other map stuff by create a new buildings2.sqf with your other buildings and call them like this

 

 if (isserver) then {

     [] execVM "addons\mapaddons\buildings.sqf";

     [] execVM "addons\mapaddons\buildings2.sqf";

};

 

Or edit your old project and overwrite the buildings.sqf

 

 

Hope this helps

Link to comment
Share on other sites

  • 0

Create your Map Changes with the Standard Eden Editor.

Open the debug-console (Tools -> debug console)

Paste this code in it and execute it:

  Reveal hidden contents

Then you have a stand alone spawn code in your Clipboard.

Open a new txt file, and paste it in (ctrl+v).

save this file and rename it to mybuildings.sqf (or what you want).

Put this file in your mission root and load it by

[] execVM "mybuildings.sqf";

 

Link to comment
Share on other sites

  • 0

Hi Guys I cant seem to get this to work. I copied the code above into debugg press local exc and nothing happens no code is generated to clipboard. I have added just a couple of items to the map and just want the items to spawn on map. Below is the file i created:

  Reveal hidden contents

If i add as is i get error:

  Reveal hidden contents

I know in A2 when i made map addons i needed

  Reveal hidden contents

What do i need to remove or add to my export. Or can someone upload a small map addon for me to compare ?

I tried removing all the other data and just leaving the Building bits but still get errors

Thanks

MegaZ

Link to comment
Share on other sites

  • 0

Ok a little bit more i found this link from He-man https://pastebin.com/Cc0CtX36 which worked and i got a code: see below

  Reveal hidden contents

so i set up a pbo to run from hive/addons like this

  Reveal hidden contents

all working now

MegaZ

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...