Author Topic: Rott Problem Compiles Fine But....  (Read 4917 times)

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Rott Problem Compiles Fine But....
« on: April 24, 2006, 08:38:25 am »
I'm trying to get ROTT to run. It's a old favorite 3D shooter for those that may not have played it. It was supposed to have been a sequel to Wolfenstien 3-D. Linux port source code can be found here: http://www.icculus.org/rott/

It compiles natively fine on my Z but when the binary runs it crashes with a not so helpful
Code: [Select]
# ./rott
Rise of the Triad Startup Version 1.4
Shareware Version
Z_INIT: 8950000 bytes
IN_Startup; Mouse Present
OH NO OH NO ROTT CRASHED!
Here is where:
Stack dump:
{
}

I've looked through the source code, but I'm no coder so nothing jumped out at me. I've tried running the ROTT ipk that's in OZ when I've flashed to OZ/GPE and that binary doesn't crash, rather it hangs while loading the wad file.

To add insult to injury, I tried compiling ROTT on my Ubuntu/Dapper box and it fails on the SDL-mixer portion of the compile.  

Anybody ever got this puppy to run on a Z? Any help would be appreciated!

Cheers,
Jerry
« Last Edit: April 24, 2006, 08:39:27 am by jerrybme »
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
Rott Problem Compiles Fine But....
« Reply #1 on: April 24, 2006, 09:13:53 am »
Are you using SWAP ?  
This maybe because of signed char bug in GCC/ARM, too ....    
You can try use CFLAGS=-fsigned_char or change all variable declarations on source from char to signed char ...
« Last Edit: April 24, 2006, 09:22:53 am by anunakin »
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Rott Problem Compiles Fine But....
« Reply #2 on: April 24, 2006, 10:28:21 am »
Quote
Are you using SWAP ?   
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124356\"][{POST_SNAPBACK}][/a][/div]
Yes, I've got 256 mg of swap. I'll try changing the CFLAGS to see if that helps.
Thanks!
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Rott Problem Compiles Fine But....
« Reply #3 on: April 24, 2006, 10:51:48 am »
Hmm, I added -fsigned_char to the CFLAGS line in the MakeFile and it errored out:
Code: [Select]
gcc -fsigned_char -g -I/opt/native/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/SDL -D_REENTRANT -DUSE_SDL=1 -DPLATFORM_UNIX=1 -W -Wall -Wno-unused -DUSE_EXECINFO=1   -c -o cin_actr.o cin_actr.c
cc1: error: unrecognized command line option "-fsigned_char"
make: *** [cin_actr.o] Error 1
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

anunakin

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
    • http://vivaphp.net
Rott Problem Compiles Fine But....
« Reply #4 on: April 24, 2006, 12:01:02 pm »
Quote
Hmm, I added -fsigned_char to the CFLAGS line in the MakeFile and it errored out:
Code: [Select]
gcc -fsigned_char -g -I/opt/native/arm/3.4.6-xscale-softvfp/armv5tel-cacko-linux/include/SDL -D_REENTRANT -DUSE_SDL=1 -DPLATFORM_UNIX=1 -W -Wall -Wno-unused -DUSE_EXECINFO=1   -c -o cin_actr.o cin_actr.c
cc1: error: unrecognized command line option "-fsigned_char"
make: *** [cin_actr.o] Error 1
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124366\"][{POST_SNAPBACK}][/a][/div]

Try change all variable declarations on source from char to signed char ...
[img]http://www.vivaphp.net/imagens/rev2.jpg\" border=\"0\" class=\"linked-sig-image\" /]
Anunakin (Marcus Fazzi)

Nokia N900 32GB + microSD 2GB
Nokia N810 w/ microSD 8GB
Nokia 5310 XpressMusic w/ microSD 1GB
HP48GX->Psion Sienna->Palm m130->Tungsten T->Zaurus SL-5500->C3000->C3100 ALL SOLD

My FEED(On Line AGAIN!!!)

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Rott Problem Compiles Fine But....
« Reply #5 on: April 24, 2006, 03:31:30 pm »
Crap, after all of the find & replacing, no joy: same error

I hope someone smarter than I takes a crack at this, it's a fun game. One of the things I like over doom is the anti-gravity pads that allow you to jump to areas of the map & collect items as you fly through the air
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

merli

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • http://
Rott Problem Compiles Fine But....
« Reply #6 on: April 25, 2006, 02:37:47 am »
Quote
Crap, after all of the find & replacing, no joy: same error

I hope someone smarter than I takes a crack at this, it's a fun game. One of the things I like over doom is the anti-gravity pads that allow you to jump to areas of the map & collect items as you fly through the air
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124407\"][{POST_SNAPBACK}][/a][/div]

Still only trying to do blind shot but try use -fpack-struct (never helped me, but they advice to do it), or use __attribute__ ((packed)) at structures. These old dos fps games have problems with ARM porting. I've tried:
dukenukem3d - compiles runs OK but has problem with save/load (corrupted).
descent d1x rebirth - compiles OK but segfault on run.
descent d2x cvs or rebirth - compiles, runs OK till you get hit. Then some memory is overwriten and of course segfault.
I want to try also heretic and hexen, but i am frustrated right now from unsuccesfull attempts. Problem can be ARM signed/unsigned chars and structure alignment. But I am not rael c/c++ programmer to easy solve thous problems.
BTW: Don't you know how our version of gcc handles structure alignment in ARM by default?
merli
------
SL-C1000 - pdaxii13 5.3.3 but considering go back to beta1
Wifi D-link DCF-650W CF card - not using
bluetooth Billionton BT CF card and Samsung SGH-i310 GPRS
Pretec Cheetah 133x 4GB SD, Pretec Cheetah 80x 1GB CF

jerrybme

  • Hero Member
  • *****
  • Posts: 639
    • View Profile
    • http://
Rott Problem Compiles Fine But....
« Reply #7 on: April 25, 2006, 08:28:16 am »
Quote
Still only trying to do blind shot but try use -fpack-struct (never helped me, but they advice to do it), or use __attribute__ ((packed)) at structures. These old dos fps games have problems with ARM porting. I've tried:
dukenukem3d - compiles runs OK but has problem with save/load (corrupted).
descent d1x rebirth - compiles OK but segfault on run.
descent d2x cvs or rebirth - compiles, runs OK till you get hit. Then some memory is overwriten and of course segfault.
I want to try also heretic and hexen, but i am frustrated right now from unsuccesfull attempts. Problem can be ARM signed/unsigned chars and structure alignment. But I am not rael c/c++ programmer to easy solve thous problems.
BTW: Don't you know how our version of gcc handles structure alignment in ARM by default?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124448\"][{POST_SNAPBACK}][/a][/div]

Well, sorry I'm even less of a c/c++ coder than you. You're way ahead of me as I don't know what a structure alignment is  

Also bummed to hear about Dukenukem, another of my old favorites, I'd love to have that on my Z too. Even though it doesn't Save/load, would you mind posting it somewhere? I'd love o see it run on my Z.

BTW, I did finally get ROTT to compile & run in Ubuntu.

Cheers,
Jerry
SL-C3100
Angstrom-GPE
Lexar SD 1 GB
PQI 2GB CF
Ambicom WL1100 CF

merli

  • Full Member
  • ***
  • Posts: 227
    • View Profile
    • http://
Rott Problem Compiles Fine But....
« Reply #8 on: April 25, 2006, 09:08:40 am »
Quote
Quote
Still only trying to do blind shot but try use -fpack-struct (never helped me, but they advice to do it), or use __attribute__ ((packed)) at structures. These old dos fps games have problems with ARM porting. I've tried:
dukenukem3d - compiles runs OK but has problem with save/load (corrupted).
descent d1x rebirth - compiles OK but segfault on run.
descent d2x cvs or rebirth - compiles, runs OK till you get hit. Then some memory is overwriten and of course segfault.
I want to try also heretic and hexen, but i am frustrated right now from unsuccesfull attempts. Problem can be ARM signed/unsigned chars and structure alignment. But I am not rael c/c++ programmer to easy solve thous problems.
BTW: Don't you know how our version of gcc handles structure alignment in ARM by default?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

Well, sorry I'm even less of a c/c++ coder than you. You're way ahead of me as I don't know what a structure alignment is  

Also bummed to hear about Dukenukem, another of my old favorites, I'd love to have that on my Z too. Even though it doesn't Save/load, would you mind posting it somewhere? I'd love o see it run on my Z.

BTW, I did finally get ROTT to compile & run in Ubuntu.

Cheers,
Jerry
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124488\"][{POST_SNAPBACK}][/a][/div]

I did't know too what is structure alignment .... I searched ... but it didn't help me still to fix problem. I posted duke nukem binaris here [a href=\"https://www.oesf.org/forums/index.php?showtopic=18105&hl=duke+nukem]https://www.oesf.org/forums/index.php?showt...5&hl=duke+nukem[/url]

enjoy

Who will fix save/load problem?
merli
------
SL-C1000 - pdaxii13 5.3.3 but considering go back to beta1
Wifi D-link DCF-650W CF card - not using
bluetooth Billionton BT CF card and Samsung SGH-i310 GPRS
Pretec Cheetah 133x 4GB SD, Pretec Cheetah 80x 1GB CF