Page 1 of 1

[Important] v0.86 Russian Apartment Building Fixes

Posted: 2009-04-22 18:42
by Rhino
Recently I've had to apply many fixes to the Russian/Militia Apartment buildings taxi made, these include the following statics:

/objects/staticobjects/pr/militia/
  • rus_apt_v1_yellow
  • rus_apt_v2_var1
  • rus_apt_v3_var1
  • rus_apt_4_var1
Removed:
  • rus_apt_var1_yellow (clone, older version of rus_apt_v1_yellow, needs to be replaced with rus_apt_v1_yellow on all maps that use it.)


Step 1: Replacing the Removed Statics

First thing we need to do is because there was a clone of one of the statics in the mod that should have not been there, if you placed this in your map you will need to replace it with the correct version of the building as in the next release, this static will be removed from the mod so you need to do this before then and before you do the next stages of this post and before you update your statics. If you do not have this "rus_apt_var1_yellow" static in your map you can move onto the next stage.

Here I have placed 3 of the "rus_apt_var1_yellow" building in my test map which we will need to replace with the real "rus_apt_v1_yellow" building.

Image

There are a few ways of doing this, you can either do a find and replace in your staticobjects.con before you load the map which is what I would normally do but going to show you a little method that most ppl dont know.

First select one of these buildings which we want to replace, then in the top right there is a button called "Select all of same type", click this and it will select all of these buildings that you have placed in your map.

Image

Then after you have selected every "rus_apt_var1_yellow" that is in your map you can then click the button just under "Select all of same type" called "Replace Object(s)". This button will replace all the objects you have selected with any object you choose.

Image

After clicking this button you will see a window pop up with lots of folders, navigate your way to: \staticobjects\pr\militia\rus_apt_v1_yellow\
Then select the rus_apt_v1_yellow.con file and this will replace all your objects you have selected (all the rus_apt_var1_yellow buildings) with the rus_apt_v1_yellow building. Click Ok after selecting the right object.

Image

After that, you should have only the correct "rus_apt_v1_yellow" building in your map and no "rus_apt_var1_yellow" buildings.

Image

After you have done this you can move onto the next step :)



Step 2: Removing "rus_apt_var1_yellow"

To make sure you do not use the wrong static in the future, we will need to remove it from your pr_edit mod. Simply navigate to "\pr_edit\objects\staticobjects\pr\militia\", find the "rus_apt_var1_yellow" folder and delete it, all done.

Image



Step 3: Setting up Snapping Points

One of the big changes was centring the object for export, which means the object is going to be changing position quite a lot on any maps they have already been placed in. This was needed to be done so the object can be culled as easily as possible. If you do not have any of these statics in any of your maps you can move onto the next stage.

The way to fix this isn't going to piss easy but its not going to be that hard either, the worst bit about this is its going to be time consuming...

Going to use this "rus_apt_v2_var1" static on Fallujah to show you the best way IMO of getting the old and new versions of these buildings swapped in and out of your map.
Image

So first of all, BEFORE you download and install the new statics into your pr_edit or w/e, you will need to get your map setup for the swap.

By doing this, I'm going to use my little "reminder1" pin static which you can find in objects/staticobjects/pr/mapping_tools/reminder1/
Image

Drag and drop the reminder1 into your map, then select one of your russian apartment building you will need to replace, in my case the "rus_apt_v2_var1" building I showed you above, right click on it and click on "Copy Transformation"
Image

Then select the reminder1 again, and right click on it and click "Paste Transformation" and it will end up on the same point where the marker is on the building.
Image
Image


Do this for every Russian Apartment building that is listed above as changed that is in your map then save your map, and close the editor.



Step 4: Installing the Fixed Statics #1

NOTE: If you have any of the above fixed statics in your map you need to do Step 1, Step 2 and Step 3 first before doing this!

NOTE #2: If you do not need to do Step 3 then do not do this step and move strait onto Step 6.


The Anchors in these files have been setup to make it as easy as possible to snap these into the same pos as your old statics, but placing these buildings directly onto your terrain as a new object or w/e wont be very easy so you will need to do Step 6 at the end to replace these buildings with ones with Anchors setup for placing these buildings normally. For now just download and install these ones if you have had to do Step 3.


Simply Download this .rar and install it into your "pr_edit" or w/e mod.
Download: http://realitymodfiles.com/rhino/Fixed_ ... ings_1.rar



Step 5: Snapping The Fixed buildings into the Correct Position

After you have done Step 4, reload your map. You will notice after loading that your building will have moved some what out of place.

Image

This is because it was centred into the export scene as explained above. As such, you will now need to snap the buildings into the correct position, but providing you have done Step 3, this should not be too much of a problem.

First select one of your "reminder1" you placed in Step 3, and only have one "reminder1" selected and nothing else. Then on the right hand side bar, there is a small section called "Align to Anchor", under that are 2 buttons, "Stamp" and "Align", these 2 buttons we will be using with the reminder1s and the buildings to snap your buildings back to where they where. So with only one "reminder1" selected and nothing else, press the "Stamp" button.

Image

Then select the building nearest fixed Russian apartment building to that reminder 1 that you just Stamped and then with that building selected (and nothing else), hit the "Align" button and if everything is done correctly, the building should snap back into its old position.

Image

Then simply repeat this for every Russian apartment building listed above that is in your map, then move onto the next step :)



Step 6: Installing the Fixed Statics #2

NOTE: Only do this Step once you have done all of the previous steps you need to do.

Once you have done all that, you will want to install the proper statics that will be in the next version of the mod with there lightmap samples and proper anchors etc so they will be easy to place onto the terrain instead of being way up in the sky or sunk into the ground really far, like the current ones are if you drag and drop them onto your map :p

Simply extract this into your pr_edit mod, overwriting all old files.

Download: http://realitymodfiles.com/rhino/Fixed_ ... ings_2.rar





Then your all done, hope this hasn't been too hard but it will be worth it as otherwise these statics would lag your maps out to ****, like they are doing to Fallujah in v0.856 ;)
I've had to spend the last 4 or 5 days working on fixing these solidly so fixing the placement should be a minor task compared to that, did it on fallujah in a few mins :p


Cheers! :D

Re: [Important] Russian Aparment Building Fixes

Posted: 2009-04-22 23:22
by SocketMan
Slightly o/t but:
these apartment building have 5 (not 6/4) floors in rl.
Build during Khrushchev's years and called "Khrushchevka/i" (1 building/many)
There are still a lot of these in Russia,were meant to be temporarily (10 years?)
only but....

There is a lot of new staff that was built since the fall of USSR,but before that most apartment buildings (in Moscow) had either 5,9,12,16 or 23 floors
Don't ask why...

Re: [Important] Russian Aparment Building Fixes

Posted: 2009-04-23 21:50
by BroCop
[R-TEC]SocketMan wrote:Slightly o/t but:
...had either 5,9,12,16 or 23 floors
Don't ask why...
Yugoslavia had (and FYR's still have) those buildings too. Actually I am living in one as we speak. My street consist of 9's and 12's and the neighbouring street has 5's too. So if you want to be die hard realistic then put in a min of 5 floors (but its not like its gonna matter or something)

Re: [Important] Russian Aparment Building Fixes

Posted: 2009-05-06 21:33
by Rhino
bumpy for any one who might have missed this...

Re: [Important] Russian Aparment Building Fixes for v0.86

Posted: 2009-06-21 19:40
by Rhino
bumpy. With v0.86 now out please ensure you take this in, cheers.

Re: [Important] v0.86 Russian Apartment Building Fixes

Posted: 2009-07-25 20:44
by HughJass
problem with rus_apt_v3_var1... i deleted the old files of the russian buildings and put in the new ones, but rus_apt_v3_var1 seems to have missing textures. Uncle sam is all over it.

Re: [Important] v0.86 Russian Apartment Building Fixes

Posted: 2009-07-25 21:24
by J.F.Leusch69
..maybe you deletet some textures that wasnt in the "update" once you put in again?

Re: [Important] v0.86 Russian Apartment Building Fixes

Posted: 2009-07-25 21:50
by HughJass
J.F.Leusch69 wrote:..maybe you deletet some textures that wasnt in the "update" once you put in again?
I didn't even open the folders with the new statics, i just simply moved them to the directory.

Re: [Important] v0.86 Russian Apartment Building Fixes

Posted: 2009-07-25 22:03
by Rhino
HughJass wrote:problem with rus_apt_v3_var1... i deleted the old files of the russian buildings and put in the new ones, but rus_apt_v3_var1 seems to have missing textures. Uncle sam is all over it.
it appears I forgot to include a new colour texture I made to optimize these since that building iirc was using a texture off a mecity texture palette which wasn't that good since it was meant for woodland maps :p

You can find the textures in .86, go into \pr\objects(_client.zip)\staticobjects\pr\textures\militiaback\, in there should be 2 textures called "rus_apt_wall_c.dds" and "rus_apt_wall2_c.dds", extract them to the same place in your pr_edit.

EDIT: after some devs had had the same problem with the textures, it appears that I forgot to repo the textures for v0.86 hehe. They are now in v0.87 and you can download them here: http://realitymodfiles.com/rhino/static ... xtures.rar

Re: [Important] v0.86 Russian Apartment Building Fixes

Posted: 2009-07-27 02:05
by HughJass
thanks rhino