:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::
Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Wed May 22, 2019 1:53 am
All times are UTC + 0
 Forum index » Featured Tools » Community Tools
Object Exchange
Moderators: Community Tools Developpers
Post new topic   Reply to topic Page 1 of 1 [15 Posts] View previous topic :: View next topic
Author Message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Nov 15, 2016 11:47 am    Post subject:  Object Exchange
Subject description: tool to change Buildings on maps into TerrainType objects
Reply with quote

Just a quickly slapped together tool to convert buildings into terrain in a batch process, since needed for TI and DTA.

Installation: extract to any folder and start the exe.

Quick guide:
-add to the left the maps (drag and drop or via the button)
-write to the right the buildingIDs that should be now converted into terrain
-press start

the program will open each map, search for a building with one of the specified ID's, remove that building and add a TerrainType object with the same name on the same place as the building.

All the changes are protocoled in a separate txt file (same path/name as mapfile + .txt extension), so you can check/undo them.

Since terraintypes allow only a single object on each cell, there is a checkbox included to replace a terraintype object if the cell got already one.


Note: This is really quickly slapped together and roughly tested. Be sure to backup the mapfiles and also check the results.


ObjectExchange.png
 Description:
 Filesize:  12.28 KB
 Viewed:  2795 Time(s)

ObjectExchange.png



ObjectExchange.zip
 Description:

Download
 Filename:  ObjectExchange.zip
 Filesize:  56.63 KB
 Downloaded:  7 Time(s)


_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Last edited by Lin Kuei Ominae on Tue Dec 20, 2016 1:17 pm; edited 3 times in total

Back to top
View user's profile Send private message
Aro
Alcohol Fueled


Joined: 10 Sep 2006
Location: Birmingham, United Kingdom

PostPosted: Tue Nov 15, 2016 1:59 pm    Post subject: Reply with quote

Have just converted all TI street lights to terrain objects and everything seems to have worked flawlessly. You can check the results for yourself in the staff update. Smile

Thanks a lot for this, absolutely brilliant. Saved me days of tedious editing.

Back to top
View user's profile Send private message Visit poster's website
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Nov 15, 2016 2:07 pm    Post subject: Reply with quote

glad it helped.
_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Bittah Commander
Defense Minister


Joined: 21 May 2003
Location: The Netherlands

PostPosted: Tue Nov 15, 2016 4:14 pm    Post subject: Reply with quote

This is very useful, thanks! All light posts have been replaced now.
_________________

Back to top
View user's profile Send private message Send e-mail ModDB Profile ID YouTube User URL Facebook Profile URL
G-E
General


Joined: 09 Feb 2015

PostPosted: Thu Nov 17, 2016 8:51 am    Post subject: Reply with quote

Cool I will try this soon, I plan to convert a bunch of objects like the YR barricades and other decorations to terrain...
_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
General


Joined: 09 Feb 2015

PostPosted: Thu Nov 24, 2016 6:17 pm    Post subject: Reply with quote

Hey can you add a second field to allow renaming the objects as well? When converting buildings in RA2 to terrain it often makes sense to use a new naming convention...
_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu Nov 24, 2016 8:13 pm    Post subject: Reply with quote

yes, did that and a few other improvements already, to make this a "round thing" as i like to say in german (no clue if that phrase works in english too).
Though it's not yet finish.
I think I'll upload a new version tomorrow or during the weekend.
_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
G-E
General


Joined: 09 Feb 2015

PostPosted: Thu Nov 24, 2016 10:59 pm    Post subject: Reply with quote

We say make it well-rounded in english Smile
_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Mon Nov 28, 2016 11:12 am    Post subject: Reply with quote

ah, thanks
though sorry, i forgot to copy the files to my other pc, so i can't upload the new version till monday.

\Edit

Version 01.00.00.01 uploaded
-Update: conversion allows to choose between Terrain->Building and Building->Terrain
-Update: conversion also allows to rename object IDs during conversion

If nothing is entered in the renameID column, the ID is kept.
_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Aro
Alcohol Fueled


Joined: 10 Sep 2006
Location: Birmingham, United Kingdom

PostPosted: Mon Nov 28, 2016 12:49 pm    Post subject: Reply with quote

Once again, good work. Smile Very well done.

Back to top
View user's profile Send private message Visit poster's website
G-E
General


Joined: 09 Feb 2015

PostPosted: Tue Dec 20, 2016 6:31 am    Post subject: Reply with quote

I just tried this after converting CAURB01-03 to terrain objects, and even though I know precisely which map it is used on (AICHECK can scan all my maps for missing buildings) the program will not update the map?

Objectexchange.exe is in the RA2 dir... but it still shows "operation complete" in the dialog.
_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Dec 20, 2016 7:34 am    Post subject: Reply with quote

where you place the exe doesn't matter.
is your game in c:\program files and has all maps write protected?

When you start the operation, the program will create txt files next to the map, which include a protocol of the done changes. If there is no txt file, there were either no changes done or no write permission to create such a file.
_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
G-E
General


Joined: 09 Feb 2015

PostPosted: Tue Dec 20, 2016 8:13 am    Post subject: Reply with quote

No it's in c:\cc-ra2 and all the maps are editable with notepad++ if I choose (sometimes do) which is how I verify nothing was done.

It just doesn't do anything, nor does it take any time between clicking start and the dialog popping up.


snippy.jpg
 Description:
 Filesize:  147.11 KB
 Viewed:  2353 Time(s)

snippy.jpg



_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Dec 20, 2016 1:18 pm    Post subject: Reply with quote

can you send me the map?

\Edit
Version 01.00.00.02 uploaded

new zip uploaded (see first post)
-fixed a bug where the default operation wasn't stored in the list and thus no operation done (only after manually setting the operation type it was stored and used)
_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
G-E
General


Joined: 09 Feb 2015

PostPosted: Tue Dec 20, 2016 9:32 pm    Post subject: Reply with quote

Another bug bites the dust!
_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [15 Posts] View previous topic :: View next topic
 Forum index » Featured Tools » Community Tools
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only one of the following words: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

Wildcard SSL Certificates
[ Time: 0.4997s ][ Queries: 15 (0.3718s) ][ Debug on ]