《命令与征服™:重制版》

《命令与征服™:重制版》

评价数不足
Adding Units TD (OLD / OUTDATED - SEE NEW GUIDE)
由 DatBoi 制作
Hey Guys,

This straightforward guide shows you how to add a unit to your barracks or airfield!!

While this is a super basic guide, this will help guide you in the ways to adding a unit for you to deploy!
   
奖励
收藏
已收藏
取消收藏
Making our own guides since EA won't
Hey Guys,

So there's a Nuke Tank guide out there that explains the functions of the Nuke Tank mod. You'll probably want to check that out before looking at this guide. This will show you what they skipped over

I'm also making this for myself since there's really no guides out right now and playing a modded C&C is always a good time


So basically Get Visual Studio and open up CNC Remastered source code with it.

You'll want to change to the Build settings to use the win 10 sdk. And you'll need to download AML and MFC individual components.


You'll also have to do those settings in the preprocessor in C++ settings so it won't complain about the wrong header settings

Once you've done all that go ahead and define the nuke tank mod in your source code by enabling the example mod (Basically allowing it to define)
Once you build the file and create the mod. You'll then need some XML files to get it to work properly. Which of course EA didn't really talk about

You just did the first half and created the classes with logic, now you need to edit some xml to include your unit's info so you'll be able to click on it, see details and deploy it from your build window

However

What you need to do is Subscribe to the Nuke Tank mod and then go to the directory that has your mods from the workshop. Mine was located at D:\SteamLibrary\steamapps\workshop\content\1213210

Once you're there grab the other files that are with the mod and drag them into your directory


You'll need to edit the csv to include the name of the unit you want to deploy

Then go to this directory and open the csv file and copy paste the nuketank template and edit it so it matches up with what you added in the first csv


Once you've done that you'll have a unit that you can actually click on and deploy.
7 条留言
jfwfreo 2020 年 7 月 3 日 下午 4:14 
I installed the correct SDK and the correct compiler version and everything worked like magic. No need to change the SDK or compiler version at all.
DatBoi  [作者] 2020 年 7 月 3 日 上午 11:25 
Um, nope, So far every build i've needed to change the sdk
jfwfreo 2020 年 7 月 3 日 上午 3:23 
You shouldn't be changing the SDK to the Windows 10 SDK. You need to install and use the Windows 8.1 SDK.
DatBoi  [作者] 2020 年 6 月 26 日 上午 7:09 
Hey,

If you want to replace art you need to just edit the TD_units file in the tilesets folder

Basically use notepad++ to replace the location of the art. Then you'll need to navigate to the data -> art > tiberian dawn -> and see where nuke tank art is and make our custom art folder there for your unit
Hybrid V 2020 年 6 月 24 日 上午 11:10 
Is this method still required if you want to do simple replacements of art or audio and nothing more?
DatBoi  [作者] 2020 年 6 月 8 日 上午 8:56 
Ooh sorry, i was really tired when i made this guide Lol.

There are 3 Files that you need to edit to get a unit to deploy. ModText.csv , CNCModGameCommands.xml, TD_Units

You need to make sure there is a refrence to each unit that you want to deploy. For example. Nuke Tank has the reference

<Command Name="NTNK">
<GameCommand>GAME_COMMAND_TD_MOD_CUSTOM_BUILD1</GameCommand>
</Command>

So in turn you need to add in the name of the unit you've added the logic for
<Command Name="STEG">
<GameCommand>GAME_COMMAND_TD_MOD_CUSTOM_BUILD2</GameCommand>
</Command>

FanOfReproductiveSystem 2020 年 6 月 8 日 上午 12:21 
“Then go to this directory and open the csv file and copy paste the nuketank template and edit it so it matches up with what you added in the first csv”

Which csv files are you talking about?