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 Thu Apr 18, 2024 5:35 am
All times are UTC + 0
Peculiar crash vs no crash effect with my mod...
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [19 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sun Dec 27, 2015 5:01 am    Post subject:  Peculiar crash vs no crash effect with my mod... Reply with quote  Mark this post and the followings unread

So yesterday I took a copy of my mod to my cousin's place who wasn't able to get my mod working since sometime earlier this year, namely it always froze 2/3 of the way on the loading bar...

Anyway, I tried the XWIS downloadable copy figuring maybe something was wrong with his old copy, and it too crashed.

Last night mulling over possible reasons, I concluded if it's not the mod, or his RA2, then it is likely something in his registry, and I emailed him what I located in my registry by email ahead of my arrival.

Today I went there again, but this time I took a known good retail copy with update and no-cd patch, with my mod already installed in it, the whole thing to be sure it wasn't the files... and it crashed again.

Having sent the westwood key branches under software and the wow64 node sections, we did some comparing, nothing unusual, but for simplicity I relocated my RA2 copy to the same dir I use c:\cc-ra2... still crash.

Then going through the registry again, deleted all the Windows "ra2" related entries, including the mui and compatibility tables, then doing the right-click compatibility menu, I set the ra2.exe to win98 and administrator...  voila! game worked!

.....

Now the curious bit is that the vanilla game worked fine in each case where my mod would crash... as far as I can tell you, this only started happening earlier this year (around april would be my guess), prior to that my mod didn't apparently need to be forced into win98 compatible mod.

Anyone have any ideas what could be in my mod that would fundamentally alter the compatibility of RA2 ???

Back to top
View user's profile Send private message
FurryQueen
General


Joined: 24 Jul 2010
Location: Liyue

PostPosted: Mon Dec 28, 2015 2:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

RA2 is really picky. I always set it to Win98/ME compatibility before I even start the game. Usually solves any nonsense the game throws at you.

_________________
KGR | AT
AZUR
Discord: theastronomer1836
Steam

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


Joined: 09 Feb 2015

PostPosted: Mon Dec 28, 2015 6:18 pm    Post subject: Reply with quote  Mark this post and the followings unread

The funny thing about this is the crash is your typical access violation, unable to read a resource, usually the result of a corrupted mix... so I have to assume the wrong compatibility mode interferes with loading the expansion files, but how/why it would is beyond me?

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

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


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Dec 29, 2015 1:13 am    Post subject: Reply with quote  Mark this post and the followings unread

Sounds like the DemandLoad key error as described in Getting rid of the "needs Win98 comp mode" problem

Since RA2 doesn't uses DemandLoad anymore, it might be some other key which you've used wrong.
Like you have set some ini keys wrong, saying the game to load SHPs from mix files, which don't have them.
Win98 compat mode makes the game load from mix files differently, thus allowing it to find the files anyway.

_________________
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
E1 Elite
General


Joined: 28 May 2013

PostPosted: Tue Dec 29, 2015 5:50 am    Post subject: Reply with quote  Mark this post and the followings unread

Try renaming all your ecache to expand, that should solve the w98 compat issue. At first glance, you
don't seem to have any file that needs ecache in your beta2 mod. Remember ecache is also accessible
to YR.

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


Joined: 19 Nov 2003

PostPosted: Tue Dec 29, 2015 6:02 am    Post subject: Reply with quote  Mark this post and the followings unread

Hard to say what issue might be as most mod YR and not plain RA2 these days.

It's not definitely demandload tho, that system is entirely out and ini file clutter remains.

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


Joined: 09 Feb 2015

PostPosted: Tue Dec 29, 2015 7:33 am    Post subject: Reply with quote  Mark this post and the followings unread

Interesting, but I was having problems with files not loading in priority when using expandXX.mix...  I don't remember the exact issue but anytime I needed to override an existing object it would crash or not show up or something.

Ever since I started using ecacheXX.mix I didn't have those problems, and I've further divided my assets into even more mixes to avoid corruption at least while I keep updating them so often...

LKO: I think you're right, the compatible mode would have to be loading files differently, but I'm not specifying the mixes anywhere, it would have to detect them itself in either case ?

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

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Tue Dec 29, 2015 8:07 am    Post subject: Reply with quote  Mark this post and the followings unread

As far as I remember, the mix file loading order for RA2 is higher for ecache than that of YR. Also files
like trees need to be in ecache for RA2. There is also the problem that if you have duplicated such files
in expand, it would not load such files.

What you can do is, to rename all ecache to expand and whichever files is not loaded in-game, move
only those files to ecache, only single copy, no duplicates.

A corrupted file in lower loading order might escape the crash too.

Also the OS might supply a different set of filenames than expected for loading in ecache cases.

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


Joined: 09 Feb 2015

PostPosted: Tue Dec 29, 2015 7:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

I don't see why the OS would pass filenames in the wrong order, if the game globs expand*.mix first it will get that first, if it gets both ecache and expand filenames at the same time, it's still the game that chooses which to open first...

But I do agree there seems to be some contention between expands and ecaches, though I've always used ecaches, originally I only had ecache05 (units) and ecache06 (buildings), and all the other "loose" files (load screens, inis, etc) I only belatedly added to expand10. This arrangement worked fine for everyone for years, until I started breaking out the files into more mixes as the frequency of mix corruption increased. When I started adding terrain fixes, I used to keep them with the buildings.

Now I have ecache01-08 and expand10, which creates this weird problem.

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

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Wed Dec 30, 2015 5:38 am    Post subject: Reply with quote  Mark this post and the followings unread

For the 3rd time - it took me only a few seconds to rename your ecache files to expand and see
the loading go through without the Win98 compat setting. Re-organize your content, use expand
and avoid ecache as much as possible.

To avoid mix corruption, use new empty mix files. Drag and drop using XCC Mixer.

For fetching ecache*, look for the WinAPI explanation - http://modenc.renegadeprojects.com/Mix

As for overrides, expand should be higher than ecache in loading order wherever applicable. And
ecache should be higher than ra2.mix for RA2. For YR 1.001, ecache is lower than ra2.mix. In case
of expandXX, higher number is higher in loading order, e.g. expand90 > expand02. There is no
certainty when it comes to ecache*, so duplicate content should be avoided. And care should be
taken as ecache* is accessible to both RA2 and YR.

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


Joined: 09 Feb 2015

PostPosted: Wed Dec 30, 2015 7:13 am    Post subject: Reply with quote  Mark this post and the followings unread

Sorry I didn't know what you meant by "higher", but it still doesn't explain why it didn't previously have this problem with ecache06-08, and only now manifests after dividing...  by your assertion it should never have worked.

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

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Wed Dec 30, 2015 9:09 am    Post subject: Reply with quote  Mark this post and the followings unread

I didn't say that it would never work with ecache. It is even necessary to use ecache for files like trees
in RA2. I too use ecache in a limited fashion to share unique content between RA2 and YR like music.

Corrupted content or mix files, compounded by duplicate files etc. could have gone wrong. Only
gave reasons why to prefer expand over ecache and a solution for your Win98 compat problem.

Back to top
View user's profile Send private message
4StarGeneral
General


Joined: 14 Sep 2006
Location: Limbo

PostPosted: Wed Dec 30, 2015 12:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

Try using elocal* instead ecache*; same contents, read after ecache. But most likely it's a corrupted mix.

_________________
"Don't beg for things; Do it yourself or you'll never get anything."

Back to top
View user's profile Send private message Send e-mail YouTube User URL
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Dec 30, 2015 11:27 pm    Post subject: Reply with quote  Mark this post and the followings unread

E1: I've slowly expanded the number of ecache's I've used from 5 to now 8, somewhere along the line I started having this crashing on copies not set to 98 compat. That's why I called in peculiar, because while I use more ecacheXX.mix files, the files inside are the same ones...

But yes I understand terrain things have to be in ecache, I think that's what I discovered earlier when terrain bits weren't overriding the game, as I recall I first put them into expand10.

4th: I've gone through countless cycles of fixing corrupted mixes, unfortunately it happens with all the tools: ccmix, XCC Mixer, XCC Mix Editor...

My RA2 (with 98 compat.) crashed on bad mixes too, so those errors behave consistently at least. I have also discovered the game will crash with a corrupted item in a mix, yet will load fine if the mix is deleted entirely.

I will experiement with elocal/expand (and reducing the number of mixes) when I've got a 1.0 grade release, until then I'm satisfied that it can be fixed in Windows...

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

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Fri Jan 01, 2016 1:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

Civil building SHPs being in ecache is causing the Win98 non-compat setting crash in your mod.

Re-organize the content like the following for RA2:
ecache: terrain stuff (sno/tem/urb/shp etc.), side specific buildings (g*/n*.shp), infantry/unit shp,
cameo, anims etc.
expand: civil buildings shp (c*.shp), vxl/hva, ini, vpl, palette etc.

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


Joined: 09 Feb 2015

PostPosted: Sat Jan 02, 2016 2:10 am    Post subject: Reply with quote  Mark this post and the followings unread

I always had civilian structures in ecache, even before the win98 compat. issue cropped up, but that's very interesting.

So ecache06-07 in my case could be renamed expandXX, and it would solve that? Because I actually suspect it's the fact that I'm using ecache01-03 for the voxels, they used to be ecache07 at one point, and I recall it worked then.

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

Back to top
View user's profile Send private message
E1 Elite
General


Joined: 28 May 2013

PostPosted: Sat Jan 02, 2016 7:32 am    Post subject: Reply with quote  Mark this post and the followings unread

Re-packaged it for you. Check your mod thread.

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


Joined: 09 Feb 2015

PostPosted: Mon Jan 04, 2016 1:00 am    Post subject: Reply with quote  Mark this post and the followings unread

So I moved all my civilian structures to ecache07 and left player structures in 06, but when I did this I made quick copies of the two just in case they got corrupted... and I noticed a weird side effect, it was loading one of my old assets. So I deleted them and played again, this time it was fine.

Then did an experiment, see below Smile



funnymixing.jpg
 Description:
 Filesize:  163.59 KB
 Viewed:  2157 Time(s)

funnymixing.jpg



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


Joined: 09 Feb 2015

PostPosted: Mon Jan 04, 2016 1:19 am    Post subject: Reply with quote  Mark this post and the followings unread

Even betterer hahaha!



namedmixes.jpg
 Description:
 Filesize:  315.77 KB
 Viewed:  2155 Time(s)

namedmixes.jpg



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