Jump to content

I can crate new units or structures?


Usagi

Recommended Posts

This is possible for offline-games or mods, with limitations. For online games, you have to modify existing units.

Iran made a tutorial on this,  but I cannot find this thread anymore.

You also need a special RA95.exe for this. In the CNCnet version the possibility of adding units is removed because it caused out-of-sync-errors or something like this.

 

I added support for adding new UnitTypes (vehicles) to the game, they internally are setup like the Medium Tank but you can use RULES.INI keys to configure the newly added vehicle. I'll have to add more useful RULES.INI keys for vehicles in the future. Example of adding a new vehicle called 'DERP':

[UnitTypes]
0=DERP
..

; 2TNK medium tank clone
[DERP]
Prerequisite=weap
Primary=90mm
Strength=400
Armor=heavy
TechLevel=6
Sight=5
Speed=8
Owner=allies
Image=2TNK ; use 2TNK.shp and 2TNKICON.shp instead of DERP.shp and DERPICON.shp
Cost=800
Points=40
ROT=5
Tracked=yes
Crewed=yes

 

Those are straightforward to add but it requires a lot of time, I first need to setup a system for every type to extend them and to clear the extended memory when loading savegames (with extra check for 3.03 savegames), clear memory when loading a scenario and I need to get a system working to extend TechnoTypeClass memory for every derived type.

Anyway, I've added support for adding new infantry (set up like E1 internally), buildings (set up like ATEK internally), aircrafts (set up like HELI internally) and vessels (set up like DD internally). Adding new vessels at the moment isn't practical as drawing the turrets on them is hard-coded based on their ID, e.g. it checks if the vessel has the ID for the Cruiser to draw the Cruiser turrets, etc.

[VesselTypes]
0=DD2
1=DD3

[AircraftTypes]
0=HII2
1=HII3

[BuildingTypes]
0=HERP
1=DERP

[InfantryTypes]
0=FLAM
1=OFFI

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...