:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::

Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Thu Jul 16, 2020 12:38 pm
All times are UTC + 0
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
Drone crash my game...
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [12 Posts] View previous topic :: View next topic
Author Message
Mr.Hymn
Soldier


Joined: 01 May 2020

PostPosted: Thu Jun 25, 2020 1:39 pm    Post subject:  Drone crash my game... Reply with quote

I want to do like below image from this forum but have no answer after I have replied for the answer.

https://ppmforums.com/viewtopic.php?t=45055

Here is the code of both my tank and my drone. Everything works just fine but if I made drone landable=no. game will crash when I stop the drone from firing and trying to land on my tank.

At least I want them to circle around my unit like attached image. Please help.

I haven't change the drone weapon just yet because I want to make them working first

Code:

;Drone
[MLDRONE]
UIName=NOSTR:Drone
Name=Guardian Drone
Primary=HornetBomb
Secondary=HornetCollision
Strength=75
Insignificant=yes
Category=AirPower
Armor=light
Spawned=yes
TechLevel=-1
Sight=2
RadarInvisible=no
Landable=yes
MoveToShroud=yes
PipScale=Ammo
Speed=12
PitchSpeed=.9
PitchAngle=0
OmniFire=yes
Owner=British,French,Germans,Americans,Alliance
Cost=50
Points=20
ROT=3
;Ammo=1 ; No ammo required.
Crewed=no
GuardRange=30
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=2
VoiceSelect=
VoiceMove=
VoiceAttack=
VoiceFeedback=
DieSound=
CrashingSound=HornetDie
ImpactLandSound=GenAircraftCrash
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
MovementRestrictedTo=Water ; See if this will affect landing only
ThreatPosed=10   ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
AuxSound1=HornetTakeoff ;Taking off
AuxSound2=HornetLanding ;Landing
ImmuneToPsionics=yes
ImmuneToBerserk=no
FlightLevel=500
VeteranAbilities=STRONGER,FIREPOWER
EliteAbilities=STRONGER,FIREPOWER
;Selectable=no   ; SJM: this should be here but is commented out because bug prevents aircraft from landing
ElitePrimary=HornetBombE
ProtectedDriver=yes

[PROTANK]
UIName=NOSTR:Providence Heavy Tank
Name=Providence Heavy Tank
Prerequisite=GAWEAP,RADAR
PrerequisiteOverride=EXPCALAB
Primary=AutoLoader120mm
Secondary=HornetLauncher

Spawns=MLDRONE
SpawnsNumber=1
SpawnRegenRate=600
SpawnReloadRate=150

NoAmmoWeapon=1
NoAmmoAmount=0
Strength=900
Category=AFV
Armor=heavy
Turret=yes
IsTilter=yes
TargetLaser=no
TooBigToFitUnderBridge=true
TechLevel=6
Carryall.Allowed=yes
Sight=8
Speed=7
CrateGoodie=no
Crusher=yes
Owner=British,French,Germans,Americans,Alliance
Cost=1250
PipScale=Ammo
PipWrap=3
Ammo=6
ReloadAmount=1
EmptyReloadAmount=6
Reload=45
EmptyReload=270
InitialAmmo=6
Soylent=1200
Points=25
AllowedToStartInMultiplayer=no
ROT=5
IsSelectableCombatant=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
VoiceSelect=GenAllVehicleSelect
VoiceMove=GenAllVehicleMove
VoiceAttack=GenAllVehicleAttackCommand
VoiceFeedback=
DieSound=GenVehicleDie
MoveSound=GrizzlyTankMoveStart
CrushSound=TankCrush
DeploySound=PlaceBuilding
Maxdebris=3
;origional - Locomotor={55D141B8-DB94-11d1-AC98-006008055BB5}
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
MovementZone=Destroyer
ThreatPosed=40   ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
DamageSmokeOffset=100, 100, 275
Weight=3.5
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
Accelerates=false
ZFudgeColumn=8
ZFudgeTunnel=13
Size=3
OpportunityFire=yes
ElitePrimary=AutoLoader120mmE
BuildTimeMultiplier=1.5;Individual control of build time




a.gif
 Description:
 Filesize:  2.61 MB
 Viewed:  146 Time(s)

a.gif



Back to top
View user's profile Send private message
m7
Commander


Joined: 17 Apr 2009
Location: The Fang

PostPosted: Thu Jun 25, 2020 2:49 pm    Post subject: Reply with quote

The GIF uses Ares' Initial Payload feature to put dummy units that spawn the drones. The dummy units that spawn fire out of the vehicle with OpenTopped logic to send their drones forward. They'll return to the original OpenTopped vehicle to reload. The vehicle has it's own weapon that fires separately.
_________________

Back to top
View user's profile Send private message
Mr.Hymn
Soldier


Joined: 01 May 2020

PostPosted: Thu Jun 25, 2020 2:53 pm    Post subject: Reply with quote

m7 wrote:
The GIF uses Ares' Initial Payload feature to put dummy units that spawn the drones. The dummy units that spawn fire out of the vehicle with OpenTopped logic to send their drones forward. They'll return to the original OpenTopped vehicle to reload. The vehicle has it's own weapon that fires separately.


Hi tHnaks for the reply. I did not use InitialPayload logic but instead using NoAmmoWeapon instead so I don't have to us infantry that fires Drone inside the vehicle. I can do and make them just fine. The problem is my drone doesnt required ammo to operate and I want them to never land on my tank at all. I have changed the landable=no and when they return to the tank. Game is crash. That's why I am asking this question. If I am remember correctly I have a case like this before with aircraft but they don't crash my game, they just floating around the airfield.

Back to top
View user's profile Send private message
Mr.Hymn
Soldier


Joined: 01 May 2020

PostPosted: Thu Jun 25, 2020 3:06 pm    Post subject: Reply with quote

m7 wrote:
The GIF uses Ares' Initial Payload feature to put dummy units that spawn the drones. The dummy units that spawn fire out of the vehicle with OpenTopped logic to send their drones forward. They'll return to the original OpenTopped vehicle to reload. The vehicle has it's own weapon that fires separately.


Anyway after reading your idea about InitialPayload gave me one amazing idea because opentopped would work better for passive attack or guard because each infantry inside opentopped will target the enemy on their own which mean the tank itself and infantry can passively attack different target on their own.

One thing that come to mind. Do the drone required to be primary weapon in order not to land? I will test with regular aircraft carrier. If it's working then must have initial Payload instead of NoAmmoWeapon.

Back to top
View user's profile Send private message
Mr.Hymn
Soldier


Joined: 01 May 2020

PostPosted: Thu Jun 25, 2020 4:04 pm    Post subject: Reply with quote

Something strange happened. I am successfully made the drone to fly around but even drone have no limit ammo after the first ordered finish the drone will try to land but can't due to landable=no and that makes drone ignored everything after that even tank is attacking other target the drone will simply fly around and don't attack anything.

Back to top
View user's profile Send private message
silverwind
Rocket Cyborg


Joined: 11 Jun 2016

PostPosted: Thu Jun 25, 2020 5:44 pm    Post subject: Reply with quote

does it fly around above the unit? you might be able to use that to your advantage by giving it (the drone) an initial payload passenger with the same weapon as the drone.

Back to top
View user's profile Send private message
Mr.Hymn
Soldier


Joined: 01 May 2020

PostPosted: Fri Jun 26, 2020 1:40 am    Post subject: Reply with quote

silverwind wrote:
does it fly around above the unit? you might be able to use that to your advantage by giving it (the drone) an initial payload passenger with the same weapon as the drone.


It does fly around above the spawner but they don't accept ay new orders. I might use initial payload to the drone so they can attack after the first order (not star wars) Normally the drone should go for a tank target if I choose my tank to attack something.

Back to top
View user's profile Send private message
Mr.Hymn
Soldier


Joined: 01 May 2020

PostPosted: Fri Jun 26, 2020 2:05 am    Post subject: Reply with quote

silverwind wrote:
does it fly around above the unit? you might be able to use that to your advantage by giving it (the drone) an initial payload passenger with the same weapon as the drone.


Gosh I must not give the spawn (drone) any weapon because they paradroop the infantry that inside the drone instead. I forgot that weapon on aircraft will be use as dummy paradrop if there are any passengers inside.

Back to top
View user's profile Send private message
cxtian39
Commander


Joined: 11 Feb 2016

PostPosted: Fri Jun 26, 2020 4:53 am    Post subject: Reply with quote

Landable=no?
_________________
I DON'T extract models from Rivals.
I play Rivals tho, PM me for a fight.

Back to top
View user's profile Send private message Skype Account
Mr.Hymn
Soldier


Joined: 01 May 2020

PostPosted: Fri Jun 26, 2020 5:00 am    Post subject: Reply with quote

cxtian39 wrote:
Landable=no?


I am successfully make drone no longer land but after first attack they refuse to attack again. Just flying wandering over the spawner.

Back to top
View user's profile Send private message
cxtian39
Commander


Joined: 11 Feb 2016

PostPosted: Fri Jun 26, 2020 6:02 am    Post subject: Reply with quote

Ammo=2147483647
_________________
I DON'T extract models from Rivals.
I play Rivals tho, PM me for a fight.

Back to top
View user's profile Send private message Skype Account
Mr.Hymn
Soldier


Joined: 01 May 2020

PostPosted: Fri Jun 26, 2020 6:08 am    Post subject: Reply with quote

cxtian39 wrote:
Ammo=2147483647


I see... Ammo=-1 can't do the trick.. Well then.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [12 Posts] View previous topic :: View next topic
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
Jump to:  
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.3778s ][ Queries: 13 (0.0302s) ][ Debug on ]