introducing "new" units., Modding |
introducing "new" units., Modding |
1 May 2018, 20:12
Post
#1
|
|
Group: Members Posts: 102 Joined: 13 December 2017 From: Caracas, Venezuela Member No.: 16469 |
after:
add unit "x".ini + register in CommandButton + CommandSet What other steps should I follow so that the unit is normally built and there is no problem? and also, that the game is not blocked. |
|
|
2 May 2018, 14:52
Post
#2
|
|
Gamer Girl Group: Legend Posts: 3808 Joined: 19 June 2009 From: Disboard Member No.: 182 Friendly Freelancer |
If you simply want to test a button, copy an existing unit (say, the Crusader), give it a new name (for example AmericaTankCrusader2). Copy the build button of the Crusader, rename it, replace the object being build with your new unit. Now apply the new button's name to the commandset (which could be the American War Factory commandset). In-game you now should have the new button.
Anything else, like changing unit behavior and the like can be done later. Finally: what do you mean with "the game is blocked"? |
|
|
3 May 2018, 14:40
Post
#3
|
|
Group: Members Posts: 102 Joined: 13 December 2017 From: Caracas, Venezuela Member No.: 16469 |
If you simply want to test a button, copy an existing unit (say, the Crusader), give it a new name (for example AmericaTankCrusader2). Copy the build button of the Crusader, rename it, replace the object being build with your new unit. Now apply the new button's name to the commandset (which could be the American War Factory commandset). In-game you now should have the new button. Anything else, like changing unit behavior and the like can be done later. Finally: what do you mean with "the game is blocked"? Yes, I've already done it and it works well. I had a problem but I already solved it.. I meant that the game "broke" / "fell" / "closed" abruptly when trying to build a unit. Thank you very much Shiro - Another question ... when cloning units (like the example you gave with the Crusader) this does not have negative consequences? This post has been edited by TheViking92: 3 May 2018, 14:43 |
|
|
3 May 2018, 15:11
Post
#4
|
|
Gamer Girl Group: Legend Posts: 3808 Joined: 19 June 2009 From: Disboard Member No.: 182 Friendly Freelancer |
Yes, I've already done it and it works well. I had a problem but I already solved it.. I meant that the game "broke" / "fell" / "closed" abruptly when trying to build a unit. Thank you very much Shiro - Another question ... when cloning units (like the example you gave with the Crusader) this does not have negative consequences? Of course not, since the new unit has a separate name, it is entirely independant from whatever it was copied from. The only instance where something can bork is when those things have special abilities available via the sidebar: each special power in this game has a so-called ENUM, which is an engine instruction that tells the game what is supposed to happen if the ability is used. The problem comes when two powers use the same ENUM and you have units/buildings that have those abilities -> the sidebar shortcut no longer works. You can see this in ZH if you have a regular GLA Command Center and Chem General Command Center, which makes the Ambush stop working because regular Ambush and Chem-Rebel Ambush have the same ENUM. Sadly, there is no way around that except by trying to cleverly shuffle things |
|
|
5 May 2018, 1:39
Post
#5
|
|
Group: Members Posts: 102 Joined: 13 December 2017 From: Caracas, Venezuela Member No.: 16469 |
Of course not, since the new unit has a separate name, it is entirely independant from whatever it was copied from. The only instance where something can bork is when those things have special abilities available via the sidebar: each special power in this game has a so-called ENUM, which is an engine instruction that tells the game what is supposed to happen if the ability is used. The problem comes when two powers use the same ENUM and you have units/buildings that have those abilities -> the sidebar shortcut no longer works. You can see this in ZH if you have a regular GLA Command Center and Chem General Command Center, which makes the Ambush stop working because regular Ambush and Chem-Rebel Ambush have the same ENUM. Sadly, there is no way around that except by trying to cleverly shuffle things yes, it's true ... it's happened to me. Now, I have another problem: I introduced a new unit and when this one dies, the corresponding design does not appear and also the game "broke". I have been trying to correct for some time and I need help. |
|
|
5 May 2018, 6:32
Post
#6
|
|
The X General Group: Project Leader Posts: 2166 Joined: 7 June 2009 From: Philippines Member No.: 73 Uniqueness is Overrated |
-------------------- |
|
|
Lo-Fi Version | Time is now: 13 June 2024 - 4:16 |