Posted: Tue Nov 19, 2024 12:48 am Post subject:
Crashing Voxel RA2YR
Subject description: A newbie RA2 member needing help with voxels
I apologize if this might be the wrong section to post this, please kindly correct me where this should be posted if so.
The game crashes when the unit dies.
I'm trying to use a new plane model for the paradrop other than the default.
I've made entries on rulesmd.ini for new superweapon, unit, and in artmd.ini to make it work, making sure the "Image=" in rulesmd.ini is set to the voxel file name, also in artmd.ini "Voxel=yes"
They spawn without problems and are able to make the paradrop(tested on empty space on the map), I can spam it many times with no issues.
But as soon as I try to drop it at an enemy base and the enemy is able to kill the unit with anti-air weapons, it gives me the error message and the only option is "OK" then it closes the game. The crash happens when the unit dies before it even hits the ground if that helps.
This other one I tried, works perfectly fine, and can run the game for hours without crashing
I've also attached an except.txt with the error code. I've been reading through this forum for hours and I can't seem to find the right places to conclude but to say the voxel may be corrupted?
Is there anyway I would be able to use the other first two links?
Most likely missing death sequence for the unit being killed, or you have some immunity tags possibly screwing with it.
You can at least test this by making it explode, specify valid DeathAnim=, and giving it a valid DeathWeapon...
Hi G-E! Thank you for your reply! I've actually seen your work with SE and it's absolutely fantastic!
By death sequence do you mean it's something that is encoded to the downloaded voxel file? because the last one I've downloaded works perfectly fine with the same codes, the first 2 are what is causing the crash when they die.
Not sure for any immunity tags sorry, I've only copied the base code of the original para drop plane's rules and art to the new one. Here is the code.
[newparaplane] ; New Paratrooper Drop Plane
UIName=Name:new paradrop pplane
Name=new paradrop pplane
Image=newplane111
Strength=400
Category=AirLift
Armor=light
TechLevel=-1
Primary=ParaDropWeapon ; Doesn't really fire it; dummy weapon
Spawned=yes ; Created by another object and therefore not player controllable
LeadershipRating=10
Selectable=no
RadarInvisible=no
Sight=0
Landable=no
MoveToShroud=yes
PitchAngle=0 ; default is 20 degrees
Speed=15
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
Points=30
ROT=2
Crewed=yes
Ammo=100
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=2
Locomotor={4A582746-9839-11d1-B709-00A024DDAFD1}
MovementZone=Fly
ThreatPosed=0 ; This value MUST be 0 for all building addons
DamageParticleSystems=SparkSys,SmallGreySSys
ImmuneToPsionics=yes
CanPassiveAquire=no ; Won't try to pick up own targets
CanRetaliate=no; Won't fire back when hit
MoveSound=PDPlaneMoveLoop
DieSound=
CrashingSound=PDPlaneDie
ImpactLandSound=GenAircraftCrash
DeathWeapon=SmallExplosion
ARTMD.INI
[newplane111] ;New Paradrop Plane
Cameo=OBMBICON
Voxel=yes
PrimaryFireFLH=0,32,0
DisableVoxelCache=yes ; HY
DisableShadowCache=yes ; HY
I've only added the name and a death weapon, that was it.
With or without the death animation, the first two voxel links both crash regardless when they die. The third link is fine with or without the "DeathWeapon" entry
How do i "specify valid DeathAnim=" for planes, sorry I can only see InfDeath= on my rulesmd.ini, for infantry.
Please let me know how to resolve the issue of the game crashing when the plane dies, it only happens to the first two voxel links QUICK_EDIT
Thanks for the responses everyone, but It was the map that was causing it to crash, I don't know why, it's a custom YR map made from Final Alert 2, as soon as I changed maps the errors no longer occur. Thanks for the help! QUICK_EDIT
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