Sign in to follow this  
Followers 0
Emton

Built a trader town with Map Builder

3 posts in this topic

Hey I used Map Builder to make a trader town http://wiki.map-builder.info/ I was even able to place the trader units with it. I got the objects to load using execVM "KTP.sqf"; in the initServer.sqf (is that ok to do?) However there's a few issues, a lot of the objects I placed for decoration end up functioning like actual crates, crates I've stacked get strewn all over the place (because of physics?) I can push the traders around and they can die (didn't make safezone trigger yet). A few objects are floating a little bit (even though they seem placed right) Here's some portions of the file output:

_obj = "Exile_Sign_AircraftCustoms" createvehicle [4659.270508,12754.682617,0.136795];
_obj setposATL [4659.270508,12754.682617,0.136795];
_obj setVectorDirAndUp [[0.883316,-0.468778,0],[0,-0,1]];
_obj setposATL [4659.270508,12754.682617,0.136795];
_obj = "Land_HelipadEmpty_F" createvehicle [4677.937988,12743.663086,0];
_obj setposATL [4677.937988,12743.663086,0];
_obj setVectorDirAndUp [[0,1,0],[0,0,1]];
_obj setposATL [4677.937988,12743.663086,0];
_obj = "Land_HelipadEmpty_F" createvehicle [4688.225586,12724.923828,1.90735e-006];
_obj setposATL [4688.225586,12724.923828,1.90735e-006];
_obj setVectorDirAndUp [[0,1,0],[0,0,1]];
_obj setposATL [4688.225586,12724.923828,1.90735e-006];
_obj = "Exile_Sign_Vehicles" createvehicle [4847.538574,12583.59668,0.0569];
_obj setposATL [4847.538574,12583.59668,0.0569];
_obj setVectorDirAndUp [[0,1,0],[0,0,1]];
_obj setposATL [4847.538574,12583.59668,0.0569];
_obj = "Land_WaterBarrel_F" createvehicle [4662.815918,12751.786133,0.00960159];
_obj setposATL [4662.815918,12751.786133,0.00960159];
_obj setVectorDirAndUp [[0,1,0],[0,0,1]];
_obj setposATL [4662.815918,12751.786133,0.00960159];

But I don't understand what some of the numbers mean particularly the [0,1,0],[0,0,1]. Should I be using "createvehicle"? Not sure if there is an error with some helipads "1.90735e-006" I have 3 placed but I ended up with 6 in the file (placement mistakes?) Could anyone guide me on what I need to do to clean up this file to be more usable?

The vanilla trader objects code looks a lot simpler

    ["Land_CarService_F",[14618.7,16877.4,0.900759],131.363,0,0,false],
    ["Land_cargo_addon02_V2_F",[14563.7,16776.6,1.55995],133.636,0,0,false],
    ["Land_cargo_addon02_V1_F",[14619.2,16831.5,1.28255],315,0,0,false],

etc, What does this "false" mean in these lines? Any help is appreciated.

Share this post


Link to post
Share on other sites

I would scrap that editor and start over with M3Editor.

Im still new to map editing but after reading this editor, map builder wiki, I dont think it works correctly? I could be wrong. I used M3Editor to make three traders on esseker. And I have no previous experience in map editors. So I would suggest using that to add traders/items to your map. As it seems more user friendly. And theres a tut thread in these forums for using it :P

 

Share this post


Link to post
Share on other sites

Posted (edited)

What happened was I started trying to use m3editor but was getting crashes, I unblocked the 3 dlls but not a 4th that is also required and so was still having issues using it (couldn't move objects). So then I looked for another editor and started using Map Builder, I found it working good, could save easy so I put a lot of hours into this town, around 200 objects. Also Map Builder has better camera controls and controls for moving objects (tilting on both axis). Now the town seems to be working but I just need to tweak these few aspects, make these crates static decorations, add the safezone trigger, move the traders to the initPlayerLocal.sqf file. So if anyone can just explain the code a little bit like what's the "false" mean anything else I might change, like should I take out "createvehicle" well I'll experiment with it some more...

Edit: Ok I think the setVectorDirAndUp [[0.883316,-0.468778,0],[0,-0,1]]; the first array is the rotation and the second array is the pitch and bank. Not sure why setposATL is listed twice for each object though... This is gonna work I know it.

Edit 2: Allrighty if anyone is interested I think I figured out that the false is for both allowDamage false; and enableSimulationGlobal false; So what I did was add this to each object for my town. Like this:

_obj = "Exile_Sign_AircraftCustoms" createvehicle [4659.270508,12754.682617,0.136795];
_obj setposATL [4659.270508,12754.682617,0.136795];
_obj setVectorDirAndUp [[0.883316,-0.468778,0],[0,-0,1]];
_obj setposATL [4659.270508,12754.682617,0.136795];
_obj allowDamage false;
_obj enableSimulationGlobal false;
_obj = "Exile_Sign_Aircraft" createvehicle [4650.500488,12739.276367,-0.620369];
_obj setposATL [4650.500488,12739.276367,-0.620369];
_obj setVectorDirAndUp [[0.836946,-0.547286,0],[0,-0,1]];
_obj setposATL [4650.500488,12739.276367,-0.620369];
_obj allowDamage false;
_obj enableSimulationGlobal false;

This takes the physics off the crates and makes them stay put. Only thing this town needs now is to make sure the choppers spawn on the landing pads, the cessna should spawn on the road and vehicles spawn in the correct place. Here's a picture, this town was built with Map Builder.

KavalaTradePost.jpg

Edited by Emton

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.