D Paste by frostwork
Description: bulletml error on linux-powerpc
Hide line numbers

Create new paste
Post a reply
View replies

Paste:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
  public static BulletMLParserTinyXML* getInstance(char[] dirName, char[] fileName) {
    if (!parser[dirName][fileName]) {
      char[] barrageName = dirName ~ "/" ~ fileName;
      Logger.info("Loading BulletML: " ~ barrageName);
      parser[dirName][fileName] = 
        BulletMLParserTinyXML_new(std.string.toStringz(BARRAGE_DIR_NAME ~ "/" ~ barrageName));
      BulletMLParserTinyXML_parse(parser[dirName][fileName]);
    }
    return parser[dirName][fileName];
  }


This is a part from barrage.d from ABA-games Val&Rick.
I built it with 3.4.5& gdc-0.19
It also exists in other games & they all crash in this region on a linux-powerpc
system! (torustrooper, tumikifighter, (mu-cade))
The problems in similar non-aba games from http://homepage2.nifty.com/isshiki/
maybe have the same reason:
these games (GradleUnsion, z-lock) build, but either shots, or enemies are missing
Parsec47 uses a similar routine to handle bulletml, but there it works.
Valgrind prints this line as 1st error:
   if (!parser[dirName][fileName]) {

Would be great if someone could look into this...

Replies:

    (some replies deleted)