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 Sat Apr 20, 2024 9:46 am
All times are UTC + 0
why wont this work ?
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [15 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
amartin99
Light Infantry


Joined: 06 Dec 2006

PostPosted: Fri Nov 07, 2008 10:31 pm    Post subject:  why wont this work ? Reply with quote  Mark this post and the followings unread

hello
I used to have sevrall maps (that I moded) where I added a building that if you built it then you could build other stuff
I lost them in a house fire and am trying to re make the coding but for some reason im getting it wrong this time

--------------------------------------------------
[CALAB]
Prerequisite=TECH
Owner=British,French,Germans,Americans,Alliance,Russians,Africans,Confederation,Arabs
Cost=25000
TechLevel=1
Strength=100000
Selectable=yes
IsBase=yes
ClickRepairable=yes
Power=-500

[CANEWY04]
Prerequisite=CALAB
BuildCat=Combat
Owner=British,French,Germans,Americans,Alliance,Russians,Africans,Confederation,Arabs
Name=Supper Power
TechLevel=2
Strength=10000
Cost=25000
Selectable=yes
IsBase=yes
ClickRepairable=yes
Power=10000

[CAOILD]
Prerequisite=CALAB
Cost=5000
Image=CAOILD
Owner=British,French,Germans,Americans,Alliance,Russians,Africans,Confederation,Arabs
BuildCat=Combat
Strength=3000
TechLevel=2
NeedsEngineer=no
ProduceCashAmount=250
ProduceCashStartup=0
--------------------------------------------------

I can't see any reason why it wont work
what am I missing ?

Back to top
View user's profile Send private message
MT
General


Joined: 23 Jun 2008
Location: Wandering Time

PostPosted: Fri Nov 07, 2008 11:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

You have to put them in the BuildingTypes list! (IIRC)

Back to top
View user's profile Send private message
amartin99
Light Infantry


Joined: 06 Dec 2006

PostPosted: Sat Nov 08, 2008 12:04 am    Post subject: Reply with quote  Mark this post and the followings unread

im not sure what you mean

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


Joined: 16 Aug 2006
Location: Germany

PostPosted: Sat Nov 08, 2008 12:16 am    Post subject: Reply with quote  Mark this post and the followings unread

Forget it. MT, the CANEWY04 and CAOILD are original buildings (liberty statue and oil derrick) so they are already in the buildingtypes list. Wink

Though unfortunately i can't see the problem too. They look correct to me. Are you testing it while playing with YuriCountry?

_________________
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
MT
General


Joined: 23 Jun 2008
Location: Wandering Time

PostPosted: Sat Nov 08, 2008 12:28 am    Post subject: Reply with quote  Mark this post and the followings unread

Lin Kuei Ominae wrote:
Forget it. MT, the CANEWY04 and CAOILD are original buildings (liberty statue and oil derrick)


ahh well I wasn't thinking clearly Laughing . Should have checked #LOL

Back to top
View user's profile Send private message
amartin99
Light Infantry


Joined: 06 Dec 2006

PostPosted: Sat Nov 08, 2008 12:37 am    Post subject: Reply with quote  Mark this post and the followings unread

just in Ra2 not fond of YR

Back to top
View user's profile Send private message
Biohazard
Commander


Joined: 17 Jan 2008
Location: MD,USA

PostPosted: Sat Nov 08, 2008 12:56 am    Post subject: Reply with quote  Mark this post and the followings unread

try adding RequiredHouses= and BuildCat=Combat or tech whatever

_________________

Retired YR Player
Steam Account : MAS93
Xfire: msbiohazard

Back to top
View user's profile Send private message Send e-mail Yahoo Messenger Account AIM Address
amartin99
Light Infantry


Joined: 06 Dec 2006

PostPosted: Sat Nov 08, 2008 1:54 am    Post subject: Reply with quote  Mark this post and the followings unread

BuildCat=Combat (was allready in it)
added "RequiredHouses=British" (made no difrence)

notesed something odd though
the CALAB should be killing my power by 500 but it isn't doing anything
ill bet somehow the 2 problems are conected

Back to top
View user's profile Send private message
MT
General


Joined: 23 Jun 2008
Location: Wandering Time

PostPosted: Sat Nov 08, 2008 1:59 am    Post subject: Reply with quote  Mark this post and the followings unread

lol. "Supper Power"

Back to top
View user's profile Send private message
amartin99
Light Infantry


Joined: 06 Dec 2006

PostPosted: Sat Nov 08, 2008 2:01 am    Post subject: Reply with quote  Mark this post and the followings unread

was wondering when somone would notess that hehehe

Back to top
View user's profile Send private message
MT
General


Joined: 23 Jun 2008
Location: Wandering Time

PostPosted: Sat Nov 08, 2008 2:09 am    Post subject: Reply with quote  Mark this post and the followings unread

Rawr! IsBase=yes is not true flag!

Back to top
View user's profile Send private message
amartin99
Light Infantry


Joined: 06 Dec 2006

PostPosted: Sat Nov 08, 2008 3:20 am    Post subject: Reply with quote  Mark this post and the followings unread

yea well I actualy like flushing out my computer and starting from scrach 9do it about every 3 months)
but I just got done doing it

I wondered about "IsBase=yes"
just removed it and still no joy
well im off to bed now
think I may try recoding the hole thing in the morning peace by peace
today I coaded it all at once and just droped it all in "along with 3-4 other things"

im thinking maybe I should have cecked it after every new thing to make sure it was working rite
but that just takes so long
and the coding is so simple
but something is messed up somewhere

Back to top
View user's profile Send private message
amartin99
Light Infantry


Joined: 06 Dec 2006

PostPosted: Sat Nov 08, 2008 5:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

GOT IT

the problem is in what I didn't change

CanBeOccupied=yes
MaxNumberOccupants=10


I was testing yet again and had the comp bace constently sending men to mine I figured that thing is set to stranth of 100000 so ill just drop one in front of my bace throw some men in it and let it deal with the comp's men
well I timed it wrong and droped it just as the cops men arived and they entered it hehehe

then I realised it was being built as wight and changed to the comps color when they entered it

the PROBLEM is that when a building can be Occupied
the game dosen't consider it as belonging to anyone untill it is
so the simple fix is to just send a man in it once it's built
or I think just add the lines
CanBeOccupied=no
MaxNumberOccupants=0

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


Joined: 07 Nov 2006

PostPosted: Sat Nov 08, 2008 5:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

go to the rules.ini, and post the entire code for the buildings. There's some tag that is still being read, that weforgot about.

A cleaner way to do it is just clone the building you want it to act like, and add Image=whatever, and then it should work better. Remember to add the new building to the building lists.

You look like you should clone the battlebunker, and then mod accordingly.

_________________
Please, read the signature rules of the forum.

Back to top
View user's profile Send private message
amartin99
Light Infantry


Joined: 06 Dec 2006

PostPosted: Sat Nov 08, 2008 9:33 pm    Post subject: Reply with quote  Mark this post and the followings unread

thanks all
I got it working good now

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] 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
You cannot post new topics in this forum
You cannot 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.1692s ][ Queries: 11 (0.0149s) ][ Debug on ]