Jump to content


Photo

how to edit sqf building files


  • Please log in to reply
5 replies to this topic

#1 Achmed

Achmed

    Immune

  • Member
  • PipPipPipPipPipPip
  • 2051 posts
  • LocationEngland

Posted 09 August 2013 - 07:55 PM

how would i go about editing sqf files that put items in the map? i know i would do it in game but where would i need to put the file for it to be found by the game?



#2 Sinsaver

Sinsaver

    Fresh Spawn

  • Member
  • PipPip
  • 19 posts

Posted 09 August 2013 - 08:07 PM

Easiest way is after you create your map changes you have 2 file a beidi file and a mission.sqm file

All you need to do is go in that mission Sqm file and copy ONLY THE VEHICLE OJECTS nit the chatacters that important if you couldn't tell

It should be like

Vehicle item 0
}
Info....item0
Location
}

Vehicle ....

Copy all that down to the just before the processing lines at the bottom

Now take all that good stuff and go to your mission SQF file in your mission.pbo and paste it after the last vehicle/object and just befor the processing lines.
Last step- ensure that the vehicle/object numbers are not duplicated I think epochs vehicle/object count is up to 750 something by default so you would have to start at 751

Make sure it looks something like

Vehicle 751
}
....info 751
}

(sorry in doing this from a phone but hopefully you get the idea)

After all items have unique numbers and items are properly spaced and bracketed save your new SQF file and pack up your mission Pbo

Done

If still confused we can get on TS later

b_560_95_1.png


#3 fr1nk

fr1nk

    wtfr1nk?

  • Member
  • PipPipPipPipPip
  • 1490 posts
  • Locationcharacter_data

Donator

Posted 09 August 2013 - 08:18 PM

This could work too:

http://opendayz.net/...849/#post-65814

 

edit: some more detail - take the mission.sqf from the editor and rename it to what you want. There are a couple of things you need to do to clean up the file before use though...the editor adds a bunch of stuff at the top and bottom of the file - you need to delete these entries (addons, processes, etc) so that it looks like this:

 
if (isServer) then {
 
_vehicle_268 = objNull;
if (true) then
{
  _this = createVehicle ["Land_wagon_tanker", [7389.9746, 3263.0935, -4.7683716e-007], [], 0, "CAN_COLLIDE"];
  _vehicle_268 = _this;
  _this setDir 76.592644;
  _this setPos [7389.9746, 3263.0935, -4.7683716e-007];
};

...........BUNCH OF OTHER BUILDING ENTRIES...........
 
_vehicle_579 = objNull;
if (true) then
{
  _this = createVehicle ["Land_loco_742_blue", [7378.0054, 3260.1545, 0.01489687], [], 0, "CAN_COLLIDE"];
  _vehicle_579 = _this;
  _this setDir -105.725;
  _this setPos [7378.0054, 3260.1545, 0.01489687];
};
};
 

My cat's breath smells like cat food.


#4 Achmed

Achmed

    Immune

  • Member
  • PipPipPipPipPipPip
  • 2051 posts
  • LocationEngland

Posted 09 August 2013 - 09:25 PM

sorry guys i think you got the wrong end of what im after

 

i have a sqm file that someone else made but i need to edit it as there are walls in the road... how do i edit it in 2d or 3d editor?



#5 DanucasB

DanucasB

    Fresh Spawn

  • Member
  • PipPip
  • 27 posts
  • LocationDerby, UK

Posted 07 October 2013 - 12:08 PM

sorry guys i think you got the wrong end of what im after

 

i have a sqm file that someone else made but i need to edit it as there are walls in the road... how do i edit it in 2d or 3d editor?

 

You ever find out the how to do for this, Matthew?


DanucasB (formerly Maluk3n)


#6 Adminlaststand

Adminlaststand

    Hardened

  • Member
  • PipPipPipPip
  • 120 posts

Posted 07 October 2013 - 12:46 PM

sorry guys i think you got the wrong end of what im after

 

i have a sqm file that someone else made but i need to edit it as there are walls in the road... how do i edit it in 2d or 3d editor?

you need to get the biedi and sqf files from the guy, put them in a directory called guysname.chernarus and copy that to the arma profiles directory probably this on windows 7

 

c:\users\yourname\documents\arma 2 other profiles\youringamename\missions\guysname.chernarus

 

then open the editor and load it in.

 

A


  • Donnovan likes this

b_560_95_1.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users