Jump to content


Photo

An advice for future NP


  • Please log in to reply
9 replies to this topic

#1 Ryo.Saite

Ryo.Saite
  • New Members
  • 16 posts

Posted 22 November 2007 - 05:10 AM

It's my new idea, may be a new function of NPAE:
Make various type of factorys for different units. Like tanks built from weaponfactory, ships built from navalyard, in another words, they can be built independently at same time.

For exanple, TANK1 cost $50000, TANK2 cost $500, the are build form GAWEAP, if I build TANK1 first, it will take a lot of time to finish this task, so building task of TANK2 will be put off. But if I hanv another weaponfactorys: NEWWEAP, I set some specific code to TANK1 and TANK1 like this:

[TANK1]
...............
Prerequisite=NEWWEAP
BuildFrom=NEWWEAP ; the specific code to set relationship between tanks and weaponfactorys.

[TANK2]
...............
BuildFrom=GAWEAP

[NEWWEAP] ; Copy GAWEAP's code simply
WeaponsFactory=yes
Factory=UnitType

and then, I can build them independently at same time, NEWWEAP can only build TANK1, GAWEAP can olly build TANK2 and other units..

#2 Dupl3xxx

Dupl3xxx
  • Members
  • 38 posts
  •  The true leader of man kind

Posted 22 November 2007 - 08:12 AM

This can already be don. Make the new unit (tank_1_BIG) house=bigtaks
Then make [NEWWEAP] be owner=Allide,Gremany...+bigtanks

I am not 100% shure, but it's something like that :spam:

#3 Jeeves

Jeeves

    I write the interwebz

  • Members
  • 4,156 posts
  •  Friendly neighborhood standards Nazi

Posted 22 November 2007 - 08:58 AM

Hint: Check the tutorials section for articles about kennels...

World Domination Status: 2.7%


#4 VK

VK

    title available

  • Hosted
  • 360 posts
  • Projects:NPatch, ETS, NEngine, etc

Posted 23 November 2007 - 09:38 AM

exist only four types.
AirCraft
Building
Units
Infantry

Yes, I won't do new types because it's need a lot of time and work.
You need to edit a lot of code and at the you will very buggy product.
My site here: http://www.vk.cncguild.net - RP / NP / ETS / TOOLS.
Posted Image

#5 Medusa

Medusa

    the g-man

  • Members
  • 253 posts
  • Location:The Republic of China
  • Projects:none
  •  Misc modder

Posted 23 November 2007 - 03:19 PM

There was this line in the comments in the rules.ini of RA2:

; Factory = type of object to build [InfantryType, AircraftType, UnitType, BuildingType, VesselType] (def=none)

VesselType appears to be leftover from RA1 and does not seemed to work anymore, too bad.
They shall perish...

#6 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 23 November 2007 - 06:49 PM

this cannot be done using kennels. the units will only come out of a seperate factory, and get built when the first one is done.

#7 VK

VK

    title available

  • Hosted
  • 360 posts
  • Projects:NPatch, ETS, NEngine, etc

Posted 23 November 2007 - 11:45 PM

Each house have a 6th building queues in YR: Building,Building defense, Infantry, Units, Aircraft, Ships.
My site here: http://www.vk.cncguild.net - RP / NP / ETS / TOOLS.
Posted Image

#8 Ryo.Saite

Ryo.Saite
  • New Members
  • 16 posts

Posted 24 November 2007 - 10:40 AM

Each house have a 6th building queues in YR: Building,Building defense, Infantry, Units, Aircraft, Ships.


A building have tags "Factory=UnitType" and "WeaponsFactory=yes" , so it is a weapon factory, it can build units in [VehicleTypes] registration section. If I add a tag "Naval=yes" to it, it can build unit with tag "Naval=yes" only.
So, I think VK can make some tags like "Naval=yes" to partition different unit types which in the same registration section, and use different factory type to build them.

e.g. :
[UnitTypes] ;register some types by MODers
0=Normal ;default type for ordinary unit such as tanks
1=Naval ;for ships
2=NewType1 ;added by MODers as their wish
..................

[GAWEAP]
BuildType=Normal ;defaule is Normal

[NEWWEAP]
BuildType=NewType1

[GAYARD]
BuildType=Naval

[MTNK] ;only built by GAWEAP
UnitType=Normal ;default is Normal

[NEWTANK] ;only built by NEWWEAP
UnitType=NewType1

[CARRIER] ;only built by GAYARD
UnitType=Naval

#9 ra2free

ra2free
  • Members
  • 18 posts

Posted 24 November 2007 - 01:11 PM

Each house have a 6th building queues in YR: Building,Building defense, Infantry, Units, Aircraft, Ships.


A building have tags "Factory=UnitType" and "WeaponsFactory=yes" , so it is a weapon factory, it can build units in [VehicleTypes] registration section. If I add a tag "Naval=yes" to it, it can build unit with tag "Naval=yes" only.
So, I think VK can make some tags like "Naval=yes" to partition different unit types which in the same registration section, and use different factory type to build them.

e.g. :
[UnitTypes] ;register some types by MODers
0=Normal ;default type for ordinary unit such as tanks
1=Naval ;for ships
2=NewType1 ;added by MODers as their wish
..................

[GAWEAP]
BuildType=Normal ;defaule is Normal

[NEWWEAP]
BuildType=NewType1

[GAYARD]
BuildType=Naval

[MTNK] ;only built by GAWEAP
UnitType=Normal ;default is Normal

[NEWTANK] ;only built by NEWWEAP
UnitType=NewType1

[CARRIER] ;only built by GAYARD
UnitType=Naval


this is a good idea .i think this way not very hard!!!

#10 Ryo.Saite

Ryo.Saite
  • New Members
  • 16 posts

Posted 24 November 2007 - 03:33 PM

If VK successed adding different unit types, then, we can expand this feature, make some different infantry and aircraft types. I think it is a very useful feature for any MODers.

Edited by Ryo.Saite, 24 November 2007 - 03:34 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users