:: 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 Tue Oct 23, 2018 1:33 am
All times are UTC + 0
 Forum index » Modding Central » Red Alert 2 Editing Forum » Ares (Unofficial Forum)
Help with a crash.
Moderators: Ares Support Team at PPM, Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [9 Posts] View previous topic :: View next topic
Author Message
cxtian39
Cyborg Commando


Joined: 11 Feb 2016
Location: United States

PostPosted: Thu Oct 11, 2018 7:44 am    Post subject:  Help with a crash. Reply with quote

It happened twice with the same eip. There is a significant lag before it crashed.
Both happen just a few minutes after the game start, no building is built, no AI.
I'm testing start units. I order them to attack it sometimes crashes sometimes doesn't.[/code]


except.txt
 Description:

Download
 Filename:  except.txt
 Filesize:  5.29 KB
 Downloaded:  2 Time(s)


except.txt
 Description:

Download
 Filename:  except.txt
 Filesize:  5.29 KB
 Downloaded:  0 Time(s)


_________________
Aircraft Factory Mod
Command & Conquer: Genetic Rhapsody

Back to top
View user's profile Send private message Skype Account
AlexB
Commander


Joined: 31 May 2010
Location: Germany

PostPosted: Thu Oct 11, 2018 3:40 pm    Post subject: Reply with quote

It's a blitter crash happening while drawing an animation, though I haven't looked deeper yet.
_________________

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


Joined: 11 Feb 2016
Location: United States

PostPosted: Thu Oct 11, 2018 11:11 pm    Post subject: Reply with quote

Upload a video right before crash and code:


Rules
Code:
[GJEEP]
UIName=NOSTR:Technical
Name=Technical
Category=AFV
TechLevel=2
Prerequisite=CAWEAP
Primary=JeepGrenade
ElitePrimary=JeepGrenadeE
Armor=light
Strength=180
Sight=8
Speed=10
ROT=5
Size=3
Cost=700
Soylent=700
Points=25
OpportunityFire=no
IsTilter=yes
Turret=no
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
CrateGoodie=yes
Crusher=no
Locomotor={4A582741-9839-11d1-B709-00A024DDAFD1}
MovementZone=Normal
Accelerates=true
VoiceSelect=TechnicalSelect
VoiceMove=TechnicalMove
VoiceAttack=TechnicalAttackCommand
VoiceFeedback=
VoiceDeploy=TechnicalUnload
MoveSound=RocketBuggyMoveStart
DieSound=GenVehicleDie
ThreatPosed=15
VeteranAbilities=STRONGER,FIREPOWER,SIGHT,FASTER
EliteAbilities=SELF_HEAL,STRONGER,FIREPOWER,ROF
DamageParticleSystems=SparkSys,SmallGreySSys
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
MaxDebris=2
TooBigToFitUnderBridge=true
IsSelectableCombatant=yes
ImmuneToVeins=yes
BuildTimeMultiplier=1.5
Passengers=3
PipScale=Passengers
SizeLimit=2
EnterTransportSound=EnterTransport
LeaveTransportSound=ExitTransport
AllowedToStartInMultiplayer=no
[JeepGrenade]
Damage=1
ROF=25
Range=4
Projectile=JeepGrenadeProj
Speed=40
Warhead=JeepGrenadeWH
Report=MRVGrenadeAttack
Anim=GUNFIRE
[JeepGrenadeE]
Damage=1
ROF=25
Range=4
Projectile=JeepGrenadeProj
Speed=40
Warhead=JeepGrenadeWH
Report=MRVGrenadeAttack
Anim=GUNFIRE
Burst=2
[JeepGrenadeProj]
Image=BOMBD
Arcing=true
SubjectToCliffs=no
SubjectToElevation=yes
SubjectToWalls=no
SubjectToBuildings=yes
AttachedSystem=SparkSys
Splits=yes
AirburstWeapon=GrenadeJump
Cluster=1
High=yes
Inaccurate=yes
FlakScatter=yes
[GrenadeJump]
Damage=50
ROF=150
Range=5
Projectile=Optimus3Proj
Speed=100
Warhead=GrenadeImpact
Bright=yes
[GrenadeImpact]
CellSpread=1
CellSpread.MaxAffect=1
PercentAtMax=.5
Wall=yes
Wood=yes
Verses=25%,25%,15%,100%,75%,75%,25%,50%,25%,60%,100%
Versus.defence=75%
Conventional=yes
InfDeath=4
AnimList=GJEEPEXP
PreImpactAnim=OPDEBRIS2
PreImpactAnim.Moves=yes
ProneDamage=50%
[Optimus3Proj]
Arcing=yes
Vertical=yes
DetonationAltitude=0
Art
Code:
[GJEEP]
Voxel=yes
CameoPCX=gjeep.pcx
AltCameoPCX=gjeep2.pcx
PrimaryFireFLH=15,50,175
[GJEEPEXP]
Image=ten
Start=0
End=2
Next=INITFIRE
TrailerAnim=S_CLSN16
TrailerSeperation=1
[BOMBD]
Shadow=no
AnimLow = 0
AnimHigh = 15
AnimRate = 1
TrailerAnim=YELLOWDOT
TrailerSeperation=1
[OPDEBRIS2]
Image=BOMBD
AltPalette=yes
Elasticity=0.0
MaxXYVel=10
MinZVel=10
ExpireAnim=NULLANIM
Damage=0
DamageRadius=80
Warhead=DbrisHE
LoopStart=0
LoopEnd=16
LoopCount=-1
RandomRate=220,600
Bouncer=yes
TrailerAnim=YELLOWDOT
TrailerSeperation=1
UseLineTrail=yes
LineTrailColor=255,182,67
LineTrailColorDecrement=16
[YELLOWDOT]
Normalized=yes

I doubt if it's the new PreImpactAnim.Moves causes crash
_________________
Aircraft Factory Mod
Command & Conquer: Genetic Rhapsody

Back to top
View user's profile Send private message Skype Account
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Fri Oct 12, 2018 6:46 am    Post subject: Reply with quote

Versus.defence=75%
Does that exist? defence really written in lowercase?
Defense written in British English?

[GJEEPEXP]
Image=ten
Does "ten" exist? Looks wrong with all lowercase, while anims and images are case sensitive and IDs commonly written in uppercase

[OPDEBRIS2]
ExpireAnim=NULLANIM
Warhead=DbrisHE
Does NULLANIM exist? art.ini section and listed in rules.ini [Animations] list?

Are all other anims listed correct in [Animations]? e.g. YELLOWDOT

Is DbrisHE listed correct?


Have you tried narrowing down the problem?
Looks like an unnecessary big code, where half of it could achieve the same.
e.g.
what's that GrenadeJump supposed to do? When hitting a target, vertically jumping up-down and then hitting the same target again? But with DetonationAltitude=0 making it explode immediately when spawned on height 0, thus making this whole second stage redundant.

Is secondary stage weapon GrenadeJump listed under [Weapons] ?

Modenc about Vertical=yes used with Arcing=yes
modenc wrote:
When combined with Arcing, unforseen projectile and weapon behaviour results - the projectile will be invisible, no damage will be dealt and the weapon will be unable to fire after a few shots.

you sure your code is supposed to be this way?


btw, code is easier to read when there is an empty line before each new section.

P.S.: can't play your video (not supported by my browser), so no clue what is shown there.
_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

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


Joined: 11 Feb 2016
Location: United States

PostPosted: Fri Oct 12, 2018 10:39 pm    Post subject: Reply with quote

Lin Kuei Ominae wrote:
Versus.defence=75%
Does that exist? defence really written in lowercase?
Defense written in British English?
defence is a user-defined armor and it's case-insensitive.
Code:
[ArmorTypes]
defence=steel
Lin Kuei Ominae wrote:
[GJEEPEXP]
Image=ten
Does "ten" exist? Looks wrong with all lowercase, while anims and images are case sensitive and IDs commonly written in uppercase
ten.shp exists and does play
Lin Kuei Ominae wrote:
[OPDEBRIS2]
ExpireAnim=NULLANIM
Warhead=DbrisHE
Does NULLANIM exist? art.ini section and listed in rules.ini [Animations] list?

Are all other anims listed correct in [Animations]? e.g. YELLOWDOT

Is DbrisHE listed correct?
They all exist and are listed. I changed all debris warhead from HE to DebrisHE looong ago.
Lin Kuei Ominae wrote:
what's that GrenadeJump supposed to do? When hitting a target, vertically jumping up-down and then hitting the same target again? But with DetonationAltitude=0 making it explode immediately when spawned on height 0, thus making this whole second stage redundant.
Immediately explodes after spawned, but not immediately explodes because it needs to play its PreImpactAnim first, which is a Bouncer debris, and then explodes. Because of PreImpactAnim.Moves=yes, it explodes at where the debris finishes playing. So this weapon hits it target, dealing 1 damage, and then bounce off once and hit the ground or luckily hit something else, dealing 50 splash damage.
Lin Kuei Ominae wrote:

Modenc about Vertical=yes used with Arcing=yes
modenc wrote:
When combined with Arcing, unforseen projectile and weapon behaviour results - the projectile will be invisible, no damage will be dealt and the weapon will be unable to fire after a few shots.

you sure your code is supposed to be this way?
I removed arcing and still produce this crash easily.
Lin Kuei Ominae wrote:
btw, code is easier to read when there is an empty line before each new section.
In notepad++ you don't need an empty line between sections to make it more readable... it's fairly readable already
Lin Kuei Ominae wrote:
can't play your video (not supported by my browser), so no clue what is shown there.
The video shows that after this unit firing a dozen times of this weapon continuously, the game gets slower and slower and finally crashes (crash not shown because win10 recording ends when program exits)
_________________
Aircraft Factory Mod
Command & Conquer: Genetic Rhapsody

Back to top
View user's profile Send private message Skype Account
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Fri Oct 12, 2018 11:44 pm    Post subject: Reply with quote

cxtian39 wrote:
Lin Kuei Ominae wrote:
[OPDEBRIS2]
ExpireAnim=NULLANIM
Warhead=DbrisHE
Does NULLANIM exist? art.ini section and listed in rules.ini [Animations] list?

Are all other anims listed correct in [Animations]? e.g. YELLOWDOT

Is DbrisHE listed correct?
They all exist and are listed. I changed all debris warhead from HE to DebrisHE looong ago.

DebrisHE or DbrisHE?

cxtian39 wrote:
In notepad++ you don't need an empty line between sections to make it more readable... it's fairly readable already

this is not notepad++ and a wall of code is not easy to read here.

cxtian39 wrote:
The video shows that after this unit firing a dozen times of this weapon continuously, the game gets slower and slower and finally crashes (crash not shown because win10 recording ends when program exits)

could have described it this way in first post.
This description implies a memory issue like an object getting created but never removed from memory.

Does INITFIRE exist and is listed correct?

Other than that, you can only remove parts of the code, try again,
crash? -> remove more
no crash? -> undo some removed parts
try again
to narrow down the problem.
_________________
SHP Artist of Twisted Insurrection:  Nod buildings

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

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


Joined: 11 Feb 2016
Location: United States

PostPosted: Sun Oct 14, 2018 11:36 pm    Post subject: Reply with quote

Checked every file and found that yellowdot.shp is no longer open-able. Anyone has any idea about how can an SHP file possibly become corrupted?

Edit: seems like XCC mixer corrupts the file. I put it in my mix and extract it back I did not get the same thing.


yellowdot.shp
 Description:

Download
 Filename:  yellowdot.shp
 Filesize:  33 Bytes
 Downloaded:  1 Time(s)


_________________
Aircraft Factory Mod
Command & Conquer: Genetic Rhapsody

Back to top
View user's profile Send private message Skype Account
4StarGeneral
Commander


Joined: 14 Sep 2006
Location: Constant Flux

PostPosted: Mon Oct 15, 2018 2:00 am    Post subject: Reply with quote

Not sure how you're getting it corrupted, but I'm using XCC Mixer 1.47 and putting it into and out of a mix isn't corrupting it no matter how many times I try.
_________________
"Don't beg for things; Do it yourself or you'll never get anything."
Lin Kuei Ominae wrote:
wrong forum. this is not minecraft.


Back to top
View user's profile Send private message Send e-mail
cxtian39
Cyborg Commando


Joined: 11 Feb 2016
Location: United States

PostPosted: Mon Oct 15, 2018 7:16 am    Post subject: Reply with quote

Sometimes files become unknown after some random length of time
At least at the time I tested them they aren't broken, then I put them into mix and everything was good for sometime...
And now I suddenly find some of them broken


QQ??20181015000944.png
 Description:
 Filesize:  6.47 KB
 Viewed:  148 Time(s)

QQ??20181015000944.png



_________________
Aircraft Factory Mod
Command & Conquer: Genetic Rhapsody

Back to top
View user's profile Send private message Skype Account
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [9 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

Wildcard SSL Certificates
[ Time: 0.1517s ][ Queries: 14 (0.0065s) ][ Debug on ]