Author Topic: Crashing crashing crashing.  (Read 362 times)

Legacy_EzRemake

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
Crashing crashing crashing.
« on: October 02, 2013, 06:19:00 am »


               I'm not newbie when it comes to the toolset. I've been making modules since this game first came out and have never had any problems, nowadays I wish I could say the same thing.

This is the 4th time now where I have invested hours in building, only to have random crashes occur while playing. Locating the source of these crashes seems nearly impossible, but I assumed it was something funky with CEP so I tried making a version of my mod without it.

Well, now I can't even get past the opening scripts of my module without it crashing. I honestly can't even make sense of this anymore.

So here are my very first scripts, the only 2 I have.

When you join it checks to see if you've done the intro, if you haven't it does the intro, else it teleports you to your last checkpoint if available

void main()
{
object oPC = GetEnteringObject();
location lLastfire = GetCampaignLocation("CoN", "Lastfire", oPC);
int iIntro = GetCampaignInt("CoN", "Intro", oPC);

if (!GetIsPC(oPC)) return;

if(iIntro == 0){
    BlackScreen(oPC);
    ActionStartConversation(oPC, "Intro");
    }
else if(GetAreaFromLocation(lLastfire)!=OBJECT_INVALID){
    AssignCommand(oPC, ClearAllActions());
    AssignCommand(oPC, ActionJumpToLocation(lLastfire));
    }
}


And then the script that seems to crash for no reason. The last option in the conversation for the intro cancels the black screen and sets variable to ensure intro doesn't happen again..... Excccept it crashes the game.

void main()
{
object oPC = GetPCSpeaker();

FadeFromBlack(oPC, FADE_SPEED_MEDIUM);
SetCampaignInt("CoN", "Intro", 1, oPC);
}


Anyone see the issue?
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Crashing crashing crashing.
« Reply #1 on: October 02, 2013, 01:54:57 pm »


               If I had to guess, I'd say your bioware database has exploded. To test this theory, comment out the Campaign functions and see if the crashes stop (making sure to comment any custom functions that call Campaign functions, as well). If they do, that's the cause.

There are ways to fix this, as I understand it, though it's not really a problem a serious database program should have. It's one of the major reasons I switched over to NWNX databasing for our PW.

In any event, should your tests confirm the database as the issue, try searching up solutions on here, as I know I've seen someone discussing a way to repair the issue, rather than swapping to a new databasing system. I've never had to do it myself, due to aforementioned switch to NWNX.

Funky
               
               

               


                     Modifié par FunkySwerve, 02 octobre 2013 - 01:12 .
                     
                  


            

Legacy_EzRemake

  • Full Member
  • ***
  • Posts: 220
  • Karma: +0/-0
Crashing crashing crashing.
« Reply #2 on: October 02, 2013, 08:42:40 pm »


               You are absolutely right.

As it turns out, if you create a database with multiple capitals (i.e CoN), it can't create the database and just crashes instead.

I changed my campaign variable to "Culling" and now all is working as intended.

Now I just have to pray something else doesn't cause a crash 40 hours down the road, lol.