Page 1 of 1

[?] Afghan building pieces?

Posted: 2009-07-30 23:36
by badmojo420
After messing around with these building pieces i've found they're rather time consuming to piece together.

So, i'm wondering if we can do anything to make the mappers lives a bit easier, and drastically increase the number of different buildings instantly available to them.

I don't know all the ins and outs of the editor yet, so i'm here asking if this stuff is even possible. My idea is to create a map that is empty except for these afghan buildings. My question, is there any easy way to copy/paste them from one map to another? I'm guessing you can load up one map, copy, load up your map and paste? Does that work? Is there an easier way to import groups of statics?

I wouldn't mind at all spending some time building the buildings. If i know that my work will save the time of other mappers.

Re: [?] Afghan building pieces

Posted: 2009-07-30 23:43
by OkitaMakoto
What people could do, technically, is make a new map, nothing on it
now make a unique complex building out of the afghan buildings
once done, open up the maps staticobjects.con and get the coordinates listing of all the statics you used.

What you do from here is post it up in a new thread for all of us along with a picture of front/side view

Ask for more people to do this and after a few weeks, BAM, we have a collection of coding that has all these buildings for us to use.

The only real issue on mappers parts would be plopping in the coding from what was posted, adding in the object call up for objects they hadn't yet loaded into their map, and then adjusting for height and whereabouts on the map and thats... basically it.

Maybe a standard of always placing your building as near to 0/0/0 as possible would help too, so it would always be about the same location

Complex? A bit...
A great idea? I really think so... I was thinking about this earlier

ex: [note: these are simply random objects from my current map, they will NOT create a building to use]

[image of what my pre-made building looks like]

[2nd image from another angle]


List of used objects: (pretend the objects in this list match the objects in the coordinates list)

Code: Select all

run /objects/staticobjects/_middle-east/city/village_buildings/house_small2/house_small2.con
run /objects/staticobjects/pr/afghan/static/building_walls/afghan_back8m01/afghan_back8m01.con
run /objects/staticobjects/pr/afghan/static/building_walls/afghan_bare12m01/afghan_bare12m01.con
run /objects/staticobjects/pr/afghan/static/building_walls/afghan_doorway&window4m01/afghan_doorway&window4m01.con
run /objects/staticobjects/pr/afghan/static/building_walls/afghan_front8m01/afghan_front8m01.con
run /objects/staticobjects/pr/afghan/static/building_walls/afghan_side12m01/afghan_side12m01.con
run /objects/staticobjects/pr/afghan/static/building_walls/afghan_side12m02/afghan_side12m02.con
run /objects/staticobjects/pr/afghan/static/building_walls/afghan_sidewindow4m02/afghan_sidewindow4m02.con
run /objects/staticobjects/pr/afghan/static/building_walls/afghan_window4m02/afghan_window4m02.con
run /objects/staticobjects/pr/afghan/static/inside_2floor/inside_2floor.con
Placement coding

Code: Select all

rem *** afghan_box01 ***
Object.create afghan_box01
Object.absolutePosition 328.586/50.272/146.500
Object.layer 1

rem *** afghan_chair01 ***
Object.create afghan_chair01
Object.absolutePosition 341.131/50.588/127.589
Object.rotation -93.1/0.0/0.0
Object.layer 1

rem *** afghan_cupboard01 ***
Object.create afghan_cupboard01
Object.absolutePosition 333.043/50.450/151.662
Object.layer 1

rem *** afghan_hangingrugs01 ***
Object.create afghan_hangingrugs01
Object.absolutePosition 337.375/51.800/154.776
Object.layer 1

rem *** afghan_side12m01 ***
Object.create afghan_side12m01
Object.absolutePosition 506.000/51.500/-2.000
Object.rotation -90.0/0.0/0.0
Object.layer 1

rem *** afghan_bare8m01 ***
Object.create afghan_bare8m01
Object.absolutePosition 356.922/51.500/160.354
Object.rotation 136.2/0.0/0.0
Object.layer 1

rem *** afghan_bare8m02 ***
Object.create afghan_bare8m02
Object.absolutePosition 351.388/51.500/166.133
Object.rotation -43.8/0.0/0.0
Object.layer 1

rem *** afghan_bare8m03 ***
Object.create afghan_bare8m03
Object.absolutePosition 357.044/51.500/166.010
Object.rotation 46.2/0.0/0.0
Object.layer 1

rem *** afghan_sidewindow4m02 ***
Object.create afghan_sidewindow4m02
Object.absolutePosition 350.557/51.500/134.882
Object.rotation 136.1/0.0/0.0
Object.layer 1

rem *** afghan_bare4m01 ***
Object.create afghan_bare4m01
Object.absolutePosition 344.633/51.500/120.849
Object.rotation 46.1/0.0/0.0
Object.layer 1

rem *** afghan_sidewindow4m02 ***
Object.create afghan_sidewindow4m02
Object.absolutePosition 341.858/51.500/123.731
Object.rotation 46.1/0.0/0.0
Object.layer 1

rem *** afghan_sidewindow4m02 ***
Object.create afghan_sidewindow4m02
Object.absolutePosition 347.407/51.500/117.967
Object.rotation 46.1/0.0/0.0
Object.layer 1

Re: [?] Afghan building pieces

Posted: 2009-07-30 23:49
by badmojo420
I was thinking about that method. The only drawback is that everyone would have to use a common area to create buildings. Like in the exact middle. So when your mapping you can keep that area clear so you don't end up adding the building to where you already have lots of statics placed. Or we could just edit the location in the code.

Edit: ninja'ed by your edit :(

Re: [?] Afghan building pieces

Posted: 2009-07-31 01:32
by OkitaMakoto
Heh, yeah. I was thinking the same thing. maybe 0/0/0 would be best, because I'm assuming that's a corner? normally mappers don't go static heavy on corners.

Another drawback is that you will still have to alter the height of the placement once you copy and paste the objects. The first one will get placed perfectly, but once you paste them from the original, all pieces will be placed on the ground[roofs, etc] That's not a really big deal though, as its just a matter of dragging them up vertically.

Also, you are limited to one new object each map load... but that too, is not a really big deal...

One final small drawback is that on some maps,t he objects might get placed under the terrain[once again not a big deal]

Re: [?] Afghan building pieces

Posted: 2009-07-31 02:30
by J.F.Leusch69
:D cool

i have serival finished and unfinished buildings :D

if this would end up in a "Show your afghan houses/buldings thread...(IMAGE HEAVY)" thread than i will pack them all in one "map" :D

Re: [?] Afghan building pieces

Posted: 2009-07-31 03:19
by badmojo420
'[R-DEV wrote:OkitaMakoto;1098633']Another drawback is that you will still have to alter the height of the placement once you copy and paste the objects. The first one will get placed perfectly, but once you paste them from the original, all pieces will be placed on the ground[roofs, etc] That's not a really big deal though, as its just a matter of dragging them up vertically.
You can get around this problem if you select the pieces and Ctrl-Click a movement arrow to clone the selection. You'll have to drag it around your map a lot, but it saves the objects from snapping to the terrain every time you copy it.