MoveObject Version 1.xx by Mikero
 

read genreadme.txt
see fixes.htm

-R is deprecated, use dep3d.exe instead

see ListObjects.bat at end of document.

-------------------------------------------------------

MoveObject will rename file paths inside *any*

whether binarised or plain.
 

The intention of moveobject is that  you should be able to extract ANY of these file types from one addon, and place it in another addon without fuss.


For anyone who's been there and dun that, hand editing the path names inside individual p3d's, let alone 30 or so p3d's, well, frankly, just throw money

There are two classes of usage using moveobject. Listing content, and separately, renaming content.
--------

usage



MoveObject [-options...] NameOfFile[.ext] [from] [to]
MoveObject [-options...] NameOfFolder [from] [to]
MoveObject NameOfFile[.ext] replacement.list
MoveObject NameOfFolder replacement.list



[.ext] is p3d by default. Any other file type (wrp eg) must be specified
 

options (case insensitive)  
-P don't pause
-F output list to NameOfFile.lst, not screen
-R Remove old p3d user flags (no replacement list required) deprecated
-X unconditionally replace all file references with lower case (does not affect any that ARE all lowercase)
   
   

=====================================================


-List examples

    MoveObject NameOfRVmat.rvmat

    Moveobject folder >pipe.txt 2>&1 // full folder tree

the list option is used to

a) check what paths are in the model to change
b) check the change took place

Rename Example


    MoveObject MyOldP3d MyGreatAddon\somewhere\data MyNewAddon\Henry\Marbles\wherever\you\want

Note that on success, the original file(s) are not preserved. It is your responsibility to tuck them away safely somewhere.

The target file is NOT altered if an error is encountered.

 


The two tandem batch files in the package are examples of how to make a global change to all files in a given folder
 

There usage may not be necessary with the folder option introduced at a revision i don't now recall. They are preserved for your interest.




Notes:

All renaming must be from start\of\folder.
 

if you specify a leading slash, it will be ignored. It is neither correct, nor incorrect to do so. It is however, extremely convenient to use dos tabbing to fill out the full pathway. Similarly (because of dos tabbing) a drive: specifier is also ignored.

Bis have made their usual cock up of hard versus relative addressing in their file structures. They are unlikely to ever fix what is beyond their abilities. No matter what, no if's and no maybe's. ALL bis addressing is \hard\path. So this makes ooops object modelling a frustrating and pointless waste of effort.

However, because of their own internal mess, *some* path specifications must have a preceding slash, some must *not* have, and other types don't care. Move object takes care of which is what without you worrying about it.

Where you have differing child paths, (and most models have lots of differing child paths) you need to successively invoke MoveObject until you are complete: Starting with children then parents. MoveObject eases this by accepting a replacement.lst file of iterative lists.

Restrictions:

ofp unbinarised p3d's (odol-sp3x) cannot have

Wrp unbinarised ofp files (4WVR) cannot have

wrp unbinarised arma files (8WVR) cannot have

Be prepared to wait a very long time on 1gig wrp files

Replacement.list

the text file must contain the following format (as if each line were passed on the command line)

The name of the text file is irrelevant. replacement.lst is what movefolder uses when firing up moveobject

OldName1 space NewName1
OldName2 space NewName2

the parser for this is very primitive and very unforgiving
 


ListObjects.bat

This batch file produces a sorted list of all files found in any p3d, rvmat, wrp, pew or folder.  (binarised or otherwise).

It is particularly used when upgrading your island to a new engine and evaluation which other addons will be needed

syntax:

ListIslandObjects  Name\of\Folder

ListIslandObjects  Name\of\wrp:p3d.rvmat.pew

The item (or folder) can simply be dropped onto this bat file.

Sorted and output is to NameOf.objects.txt

 

 

 

 


Enjoy