project-navigation
Personal tools

Author Topic: assertion `texnum > 0' failed during beginning of campaign (skirmish works fine)  (Read 2800 times)

Offline MaxToTheMax

  • Cannon Fodder
  • **
  • Posts: 3
    • View Profile
This is on a laptop running Debian Sid (32 bit) w/ some packages from Experimental repositories. All packages are upgraded fastidiously.

I recently updated the entire mesa stack to 7.6 and am updating X.Org components to 7.5 as they come. However I did not try this game before the upgrades took place so I don't know if that is what is breaking it. In the meantime I have compiled and run Alien Arena (another Q2 based game) probably hundreds of times as part of my development work on it, so if the problem turns out to be broken development headers, they are ones not used in Alien Arena. (I can get a list of those if that would be helpful.)

Graphics hardware is Intel i915, native LCD resolution is 1280*800. Processor is Core2Duo T5550 @ 1.83 Ghz. I have the game settings turned pretty far down, running fullscreen in native resolution with texture compression enabled. Other resolutions and windowed mode have the same effect, disabling texture compression has not made any difference. I am using Metacity as my WM.

Skirmish mode seems to work without any problems, but when I choose campaign mode, I get a crash. First I get a screen with a map of the world and some backstory text which is cut off at both ends so I can't read it. Something about centuries and the human race forgetting things. When I try to click through or hit the spacebar or something, the game instantly exits. This is the command line output:
http://pastebin.com/m6dee9510

This is with an SVN build I checked out last night, and the default build setup built a debugging i386 build.

I also ran it with gdb and here is the backtrace:
http://pastebin.com/m7a540409
EDIT: Here is a 'full' backtrace:
http://pastebin.com/m5259dbec


I doubt it's a problem with my 3D hardware, as Skirmish mode works without failing. I suspect there might be a problem with some opening cinematic messing things up, but that's just my barely-educated guess.



So has anyone had problems like this before, if so how were they solved? Is there a way to disable all cinematics with a cvar or command so I can try that?



EDIT: It is definitely the 2D sequence thingy messing up. I was able to whack up a solution: I commented out a line of GAME_CP_Start_f (src/client/cl_game_campaign.c)
Code: [Select]
static void GAME_CP_Start_f (void)
{
/* get campaign - they are already parsed here */
campaign_t *campaign = CL_GetCampaign(cp_campaign->string);
if (!campaign)
return;

CP_CampaignInit(campaign, qfalse);

/* Intro sentences */
// Cbuf_AddText("seq_start intro;\n");  // commented out so I can play!
}
But that's hardly a good solution...
« Last Edit: November 26, 2009, 11:43:40 pm by MaxToTheMax »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
is the ufopedia and stuff like that (where other long texts are used) working for you?

Offline MaxToTheMax

  • Cannon Fodder
  • **
  • Posts: 3
    • View Profile
Yes, actually. I'm playing the campaign now, all the ingame docs, research trees, menus, etc. are working fine. (Having an absolute blast by the way.)

After I commented out the slideshow intro, it works without a hitch...

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
looks like the rendering of the sequence text is broken in current trunk - so it's not a general text rendering issue, but sequence related