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


The time now is Tue Apr 23, 2024 11:32 pm
All times are UTC + 0
Peculiar DeathWeapon= crash..
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [9 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Aug 10, 2016 10:28 am    Post subject:  Peculiar DeathWeapon= crash.. Reply with quote  Mark this post and the followings unread

So I've been fiddling with my blimps, and for some reason the Kirov was crashing the game when it was shot down. I traced this to a the JumpjetCrash speed, and increasing it fixed that.

Then I added a different DeathWeapon thinking maybe I should use something more conventional instead of the BlimpHEX fizzle explosion, and tried the same bomb as the Parabombs.... and it freezes the game completely. I tried my hand at fixing this with crash speeds but no luck. Removing the DeathWeapon stops the freezing.

Now the odd part is that my stolen tech blimp uses a different DeathWeapon (same bomb as the American Stealth Bomber fires) with no issues that I've seen, and has never suffered weird crashes from Jumpjet* speeds of any kind.

Anyone else have some experience/insight?

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

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


Joined: 28 Dec 2007
Location: Finland

PostPosted: Wed Aug 10, 2016 10:29 am    Post subject: Reply with quote  Mark this post and the followings unread

Showing the code for the offending DeathWeapon including any related art code could be helpful in trying to pinpoint the reason.

_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Twitter Channel URL
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Aug 10, 2016 10:35 am    Post subject: Reply with quote  Mark this post and the followings unread

The Parabomb weapon:
Code:

[SuicideBomb]
Damage=225
ROF=200
Range=1.5
Projectile=InvisibleAll
Speed=100
OmniFire=yes
RevealOnFire=yes
Warhead=ParabombWH
FireOnce=yes


The Anim is MININUKE and has a report, nothing special.

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
MustaphaTR
Scorpion Sniper


Joined: 22 Jan 2015
Location: Kastamonu, Turkey

PostPosted: Wed Aug 10, 2016 11:06 am    Post subject: Reply with quote  Mark this post and the followings unread

RevealOnFire maybe? Game maybe trying to reveal an unexistant unit. Just guessing not sure.

_________________
CnCD2K Mod: http://www.moddb.com/mods/red-alert-2-yuris-revenge-cncd2k-mod
Changed Dune Mod: http://www.moddb.com/mods/changed-dune
MustaphaTR's D2K Mod: http://www.moddb.com/mods/mustaphatrs-d2k-mod
Generals Alpha: http://www.moddb.com/mods/generals-alpha
Romanov's Vengeange: https://www.moddb.com/mods/romanovs-vengeance

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


Joined: 11 Jun 2016

PostPosted: Wed Aug 10, 2016 4:24 pm    Post subject: Reply with quote  Mark this post and the followings unread

Isn't the [SuicideBomb] weapon already used by the game for another purpose? (blowing everything up when a house gives up, IMO).

Try using it with a renamed copy of that weapon to see if this is the case. (added to the WeaponTypes list of course)

If it isn't, RevealOnFire, OmniFire and FireOnce are the only things different from existing death weapons. OmniFire should be ignored, and FireOnce is irrelevant, so that should narrow it down to RevealOnFire.

Try using it with RevealOnFire commented out.

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Thu Aug 11, 2016 7:42 am    Post subject: Reply with quote  Mark this post and the followings unread

Alright so I solved it... pay attention this is interesting.

After a gazillion tests I realized my Halo was also crashing the same way, so thinking about it more, I was able to find a combination of jumpjet crash/climb/height and speed/ROT that worked, but only for another DeathWeapon. So I can conclusively say speed controls have something to do with this.

This is where I also verified that JumpjetSpeed/JumpjetTurnRate are either ignored or overridden by Speed/ROT. I may have known this before I retired for several years, but now I know for sure.

However the bug was actually related to something I accidentally did for the terrain movement, somehow I made clear 10% for hover speed instead of 100%. This combined with the unit's overall speed must have created a "too slow" scenario to meet the crash condition (divide by zero?), which involves spinning and falling at the same time.

Bumping this up to 50% seemed to fix it, but eventually that crashed too, probably because of some fluke condition of angle/location and what's below it. At 100% it seems to work without crashing, but oddly units are still able to get stuck spinning above something they should have crashed into. Clearly there are ideal ranges that are less problematic than others.

I hope this helps anyone who has something similar, it's been a frustrating journey hah Smile

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Aug 19, 2016 7:00 am    Post subject: Reply with quote  Mark this post and the followings unread

OK so small update, I was able to get it to crash again even with 100% speed... so far it seems:

- Jumpjet=yes dictates whether explicit JumpJetSpeed etc tags are used
- Jumpjet=no appears to use the global Jumpjet controls value for climb/crash, presumably with the correct locomotor
- JumpjetHeight might play a role in whether it crashes too

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

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


Joined: 31 May 2010
Location: Germany

PostPosted: Fri Aug 19, 2016 4:36 pm    Post subject: Reply with quote  Mark this post and the followings unread

I can try to help if you upload the except.txt of that crash.

_________________

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Fri Aug 19, 2016 6:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

Crashes during the game, no except.txt created.

I did consider asking someone about figuring out the code path for this to see what's really going on...

_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [9 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
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.4939s ][ Queries: 11 (0.3315s) ][ Debug on ]