Posted: Mon Aug 17, 2020 2:25 am Post subject:
please help me make a sonic turret addon
yeah hi, i really want this disruptor turret addon, i would also rather use the Tiberian Sun Asset Expansion disruptor turret model ( https://www.moddb.com/mods/tiberian-sun-asset-expansion/images/gdi-component-tower-pieces#imagebox ).
How do i extract that, and then add it to the game to make it buildable? I only know i need XCC. I have a sonic addon code from another user on this forum ( https://ppmforums.com/topic-15497/disruptor-upgrade/ ).
It would also be fine to just replace the vulcan with sonic, i tried it with that code but it just makes the vulcan stop firing. Unfortunatly i found no tutorial on how to make a new turret addon thats why im here.
I would also like to make different addons with other turrets that exist in the game.
Sonic add-on for component tower
[GASONIC]
Name=Sonic Upgrade
Image=none
Prerequisite=GACTWR,GAPILE
TechLevel=2
Armor=wood
Sight=7
Owner=GDI
Cost=350
Points=30
Power=-20
Crewed=no
Capturable=no
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
PowersUpBuilding=gactwr
PowersUpToLevel=1
Primary=SonicZap
Turret=yes
TurretAnim=SONICTURRET
TurretAnimIsVoxel=true
TurretAnimX=-8
TurretAnimY=16
TurretAnimZAdjust=-40
ThreatPosed=0 ; This value MUST be 0 for all building addons
IsBaseDefense=yes QUICK_EDIT
Unfortunately the Turrets weren't able to get in the Last Asset Pack in moddb and regulus lost the files for it I think. _________________ ~ Excelsior ~ QUICK_EDIT
A starting point would be to look at the Nod Deployed Artillery structure - it uses a voxel as turret (ART2TUR), which is similar to how you will need to use SONICTUR for a Disruptor turret on a structure.
A good test of the code, for yourself, would be to replace the Deployed Artillery turret voxel with the Disruptor turret. Once you have done that, you'll be able to repeat it simply enough for a plug-in turret too (although they use .shp turrets, which are coded up different - you'll see when you compare it to how the Deployed Artillery uses a voxel turret). _________________ Adapt or die QUICK_EDIT
The actual .shp files are in one of the .mix files (can't remember name now), while the art entry should be in the art.ini file. _________________ Adapt or die QUICK_EDIT
found them in Expand00.mix, but i dont know how to edit these cause i cant extract them. The .shp files are images the voxels atleast have some code. I dont know how to continue QUICK_EDIT
Wait a minute - I think you are misunderstanding the process here.
You don't need to change the physical game (art) file of the turret to make it look different in the game. You can just use the code in rules.ini to make it look different by assigning a different art file to your turret. Using the Nod Deployed Artillery as an example: in the rules.ini file under [GAARTY], you will see that its turret image is defined as ART2TUR. This points to a voxel file, which the game will then use when drawing the turret in-game. Changing the look of that artillery turret is then as simple as making the [GAARTY] entry point to a different voxel or SHP file.
Did you experiment with changing the Artillery's turret into the Disruptor turret as I mentioned earlier? You can do it simply by changing the code in [GAARTY] from ART2TUR to SONICTUR. _________________ Adapt or die QUICK_EDIT
yes i did that but i fail to understand where this would lead me as i already have the voxel in the turret addons code and also the weapon so i am confused, i dont know what else im missing. I tried switching the vulcan with the sonic code (ofc still with vulcan name/ image etc.) but it just makes the vulcan stop firing and it still has the vulcan turret. QUICK_EDIT
When you say you swapped the Vulcan with the Sonic code - did you just change the PrimaryWeapon= tags, or anything else too? _________________ Adapt or die QUICK_EDIT
Posted: Thu Aug 20, 2020 9:55 am Post subject:
Re: please help me make a sonic turret addon
sdfsfs wrote:
Sonic add-on for component tower
[GASONIC]
Image=none
If you tell the upgrade to have "no image", then it won't display correctly. Try some other 1x1 SHP building art (for example GASPOT, the Spotlight Tower) and then see what that looks like.
sdfsfs wrote:
TurretAnim=SONICTURRET
SONICTURRET is not a valid voxel name, so it won't display anything. You need to look inside local.mix to get a list of all the voxels and their names, and then you want to try out one of those voxel names there. For the Disruptor turret, it would be SONICTUR (which matches the sonictur.vxl file inside the .mix file).
Otherwise, just post the entire code entry here and we can look at that. _________________ Adapt or die QUICK_EDIT
I had everything like below, it had the vulcan name and image and what it needed to just replace vulcan, just overlooked the SONICTUR in short and put your GASPOT suggestion in.
And i wouldve used the Disruptor icon, which is SONICICON, does it work with a unit icon aswell or is the image somehow telling the game the size of the building?
; Sonic add-on for component tower
[GASONIC]
Name=Sonic Upgrade
Image=GASPOT
Prerequisite=GACTWR,GAPILE
TechLevel=2
Armor=wood
Sight=7
Owner=GDI
Cost=350
Points=30
Power=-20
Crewed=no
Capturable=no
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
PowersUpBuilding=gactwr
PowersUpToLevel=1
Primary=SonicZap
Turret=yes
TurretAnim=SONICTUR
TurretAnimIsVoxel=true
TurretAnimX=-8
TurretAnimY=16
TurretAnimZAdjust=-40
ThreatPosed=0 ; This value MUST be 0 for all building addons
IsBaseDefense=yes
still not working, if im not completly wrong its PowersUpToLevel=1 this time cause lvl1 is vulcan?
with this one i managed to give the tower the sonic attack but it still has the vulcan turret and it doesnt really attack (with that i mean that it does a very short sonic ray infront of the gun and sonic sound comes but it cant hit anything and it doesnt repeat its attack)
; Vulcan cannon add-on for component tower
[GAVULC]
Name=Vulcan Cannon
Image=GAVULC
Prerequisite=GACTWR,GAPILE
TechLevel=2
Armor=wood
Sight=7
Owner=GDI
Cost=150
Points=30
Power=-20
Crewed=no
Capturable=no
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
PowersUpBuilding=gactwr
PowersUpToLevel=1
Primary=SonicZap
Secondary=SonicZap
Turret=yes
TurretAnim=SONICTUR
TurretAnimIsVoxel=true
TurretAnimX=-8
TurretAnimY=16
TurretAnimZAdjust=-40
ThreatPosed=0 ; This value MUST be 0 for all building addons
IsBaseDefense=yes QUICK_EDIT
1. upgrades are always SHPs. You have to create an SHP turret out of the sonictur VXL (e.g. via VXL Viewer with the right camera angle and taking 32 screenshots for the 32 facings) and also add the correct code for it in art.ini.
2. component tower upgrades are no normal turrets, so things like TurretAnim doesn't work on them.
3. PowersUpToLevel=1 is hardcoded to fire Primary and Secondary at the same time, which doesn't work with the special IsSonic logic of SonicZap.
Use a different turret like RPG or SAM upgrade (PowersUpToLevel=2 or 3). _________________ SHP Artist of Twisted Insurrection: Nod buildings
1. upgrades are always SHPs. You have to create an SHP turret out of the sonictur VXL (e.g. via VXL Viewer with the right camera angle and taking 32 screenshots for the 32 facings) and also add the correct code for it in art.ini.
2. component tower upgrades are no normal turrets, so things like TurretAnim doesn't work on them.
3. PowersUpToLevel=1 is hardcoded to fire Primary and Secondary at the same time, which doesn't work with the special IsSonic logic of SonicZap.
Use a different turret like RPG or SAM upgrade (PowersUpToLevel=2 or 3).
Didn't know any of these things before, please ignore all my earlier "advice" then! _________________ Adapt or die QUICK_EDIT
1. upgrades are always SHPs. You have to create an SHP turret out of the sonictur VXL (e.g. via VXL Viewer with the right camera angle and taking 32 screenshots for the 32 facings) and also add the correct code for it in art.ini.
2. component tower upgrades are no normal turrets, so things like TurretAnim doesn't work on them.
3. PowersUpToLevel=1 is hardcoded to fire Primary and Secondary at the same time, which doesn't work with the special IsSonic logic of SonicZap.
Use a different turret like RPG or SAM upgrade (PowersUpToLevel=2 or 3).
Sounds kind of easy enough but where can i get a vxl viewer or what is considered one? Where would i have to insert the finished .shp? ECache01.mix? How do i find out the angles? Thanks alot for responding! QUICK_EDIT
Voxel viewer can be found by clicking Home link on top, it is available on the left panel -> community tools.
Modders can have their own addon files like ecache02.mix upto ecache99.mix, those can have the new .shp files. Use XCC Mixer to create new mix files and then drag and drop files into the mix files using XCC Mixer.
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