Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 11:58 pm
All times are UTC + 0
Errors adding/modifying buildings in TW
Moderators: Global Moderators
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
valdyr
Civilian


Joined: 15 Oct 2007
Location: Croatia

PostPosted: Sat Sep 17, 2011 2:55 pm    Post subject:  Errors adding/modifying buildings in TW Reply with quote  Mark this post and the followings unread

Greetings!

I have an error when trying to modify a building in TW. I'm trying to modify Nod Power plant so it looks more reminescent of powerplant from TibSun.
The new model is displayed in game but I can't select it, sell it or whatever, like it's not even there xD.

The files that are included in my mod are as follows:

MOD SDK\Mods\TSPowPlnt\data\Mod.xml
MOD SDK\Mods\TSPowPlnt\data\NODPowerPlant.xml
MOD SDK\Art\NB\NBPowerTS.W3X
MOD SDK\Art\NB\NBPowerTS_ASN.W3X
MOD SDK\Art\NB\NBPowerTS.xml
MOD SDK\Art\NB\NBPowerTS.tga
MOD SDK\Art\NB\NBPowerTS_NRM.xml
MOD SDK\Art\NB\NBPowerTS_NRM.tga
MOD SDK\Art\NB\NBPowerTS_SPM.xml
MOD SDK\Art\NB\NBPowerTS_SPM.tga

In NODPowerPlant.xml I have changed only the lines referencing which W3X models to use.

Does anybody know what I didn't do so mod behaves like this. Also if anyone knows a good tutorial about modifying/adding buildings in TW.

Thanks in advance Very Happy

Back to top
View user's profile Send private message
Madin
Plasma Trooper


Joined: 05 Apr 2009

PostPosted: Sat Sep 17, 2011 6:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

If you cannot select your building, then you probably have not made a selection box.

Check the GDI war factory sample art for hints & settings when it comes to making an OBBOX (selection box).

Animation:
You clearly did not attempt to match the coding of the build up of the Nod power plant, nor did you follow the advice of the documentation.

If you are following most buildings XML file, then your building model should be exported has a hierachel model (NBPower_ASN) & the animation is exported has a pure animation file (NBPower_AAN) that uses the skeleton contained in the heirachel model you just exported.

If you need further help, then posting the code of your power plant would help.

And by the way, nice animation!

_________________

Back to top
View user's profile Send private message
valdyr
Civilian


Joined: 15 Oct 2007
Location: Croatia

PostPosted: Sun Sep 18, 2011 3:09 am    Post subject: Reply with quote  Mark this post and the followings unread

Thanks Very Happy,

about the animation, I found what was the problem. I haven't changed the AnimationName string under the AnimationState in NodPowerPlant.xml. I've exported animation with the hierarhical model in the same file. (since it's solved, I removed the question about it from my post, but seems I wasn't quick enough xD)

I'll check that with the OBB, I didn't have the sample art pack for a reference on buildings. Thanks for the info...

Back to top
View user's profile Send private message
valdyr
Civilian


Joined: 15 Oct 2007
Location: Croatia

PostPosted: Mon Sep 19, 2011 10:40 pm    Post subject: Reply with quote  Mark this post and the followings unread

Fixed!
Thanks Very Happy

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
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 two of the following words separated by a sharp: 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

[ Time: 0.1984s ][ Queries: 11 (0.0089s) ][ Debug on ]