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 Fri Mar 29, 2024 2:29 am
All times are UTC + 0
[TS] Game crash: secondary weapon on a structure
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [5 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Nod25
Vehicle Driver


Joined: 13 Dec 2019

PostPosted: Mon Jul 04, 2022 2:30 am    Post subject:  [TS] Game crash: secondary weapon on a structure
Subject description: Giving a secondary and a burst weapon to structures could be a cause of game crash
Reply with quote  Mark this post and the followings unread

In the recent weeks, I have been chasing down a hard-to-pinpoint bug that causes the TS mod I've been working on to crash, whenever there is a large scale combat involving base siege. After much testing, the bug turns out to be related to the secondary and the burst weapon on a structure.

Short story, if you have a structure with:
    * Both a primary and a secondary weapon, and

    * A least one of the weapons has burst=2 or larger
Then the game tends to crash whenever there are a lot of such structures involved in combat.

Even the hyper patch does not fix it.

Long story:

This might be resulted from that the TS game client wasn't designed to manage structures with a secondary weapon. In the original Tiberian Sun/Firestorm, all structures, including deployed Tick Tanks, Artilleries, and Juggernauts, did not have a secondary weapon. The game client might not have reserved enough memory to compute complex ROF timings on a structure. If you have a structure with non-bursting primary and secondary weapons, the game client seems to be still able to handle. However, if you have a structure with primary and secondary weapons, and at least one of them have burst>=2, then the game client will occasionally crash.

Many TS mods, including mine, have Lin Kuei Ominae's deployable Nod Redeemer mech art, which is designed to use two weapons in the deployed form. I have been letting it use two non-bursting (i.e. burst defaults to 1) weapons to keep the game stable.

Recently I added a new advanced stealth tank, blending the Tick Tank's deployability and TW Stealth Tank's multiple missile launchers. It has made the game very unstable, often crashing when a lot of such tanks deployed defending a base. Interesting symptoms I have found with the deployed form:
    * If both the primary AG weapon and the secondary AA weapon have burst>=2, then the game client will "forget" the secondary weapon's ROF timing and allows the AA weapon to burst infinitely.

    * If both the primary AA weapon and the secondary AG weapon have burst>=2, then the AG weapon will burst infinitely.

    * If the primary AG weapon has burst>=2, but the secondary AA weapon does not have burst, the unit will appear to work correctly. However, if you or the AI builds a lot of such units, the game will still crash when these units in deployed form engage in combat.
I have therefore given the new stealth tank only a burst=4 primary weapon, handling both AG and AA. It's not as visually appealing, but it has made a game client a lot more stable. Dozens and dozens of these tanks, deployed, can engage in massive battles and the game client has not crashed.

I hope this discovery saves my fellow modder some frustrations!

Back to top
View user's profile Send private message
^Rampastein
Rampastring


Joined: 11 Oct 2008
Location: Gensokyo

PostPosted: Mon Jul 04, 2022 2:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

Do you have an except.txt error log you could upload here?

_________________
CnCNet Client | CnCNet TS patches | More Quality-of-Life Improvements for RA Remastered


Back to top
View user's profile Send private message ModDB Profile ID Facebook Profile URL
Nod25
Vehicle Driver


Joined: 13 Dec 2019

PostPosted: Tue Jul 05, 2022 7:47 am    Post subject: Reply with quote  Mark this post and the followings unread

^Rampastein wrote:
Do you have an except.txt error log you could upload here?

I did not save copies of those except.txt's (the current one is a graphics card-related crash). However, I still kind of remember that the last except.txt was "006BB2A5". The game client was trying to write at that memory location, where it did not have permission.

Back to top
View user's profile Send private message
^Rampastein
Rampastring


Joined: 11 Oct 2008
Location: Gensokyo

PostPosted: Tue Jul 05, 2022 11:32 pm    Post subject: Reply with quote  Mark this post and the followings unread

Are you using the Tiberian Sun Client? If so, the client's crash logs are separate from the actual game's crash logs.

The client's crash logs are stored in <TSC folder>/Client/ClientCrashLogs/, while the game's crash logs are stored in <TSC folder>/Client/GameCrashLogs/.

_________________
CnCNet Client | CnCNet TS patches | More Quality-of-Life Improvements for RA Remastered


Back to top
View user's profile Send private message ModDB Profile ID Facebook Profile URL
Nod25
Vehicle Driver


Joined: 13 Dec 2019

PostPosted: Wed Jul 06, 2022 10:28 am    Post subject: Reply with quote  Mark this post and the followings unread

^Rampastein wrote:
Are you using the Tiberian Sun Client? If so, the client's crash logs are separate from the actual game's crash logs.


No. I'm running the original Westwood game client. My OS does not have .NET Framework 3.5, and cannot run the fan-made game client.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 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.1606s ][ Queries: 11 (0.0095s) ][ Debug on ]