Deep Space Explorer - Tranquility (Flyby and follow)

Everything related to 3D programming
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: Deep Space Explorer - Tranquility (Flyby and follow)

Post by Keya »

no luck here either, ive tried on XP32 and two different Win7-64 systems, with and without OpenGL as subsystem
it was crashing at Add3dArchive("sound", #PB_3DArchive_FileSystem)
so I commented that out, but then it crashes at the very next line: CreateCamera(0, 0, 0, 100, 100)
looks amazing from the screenshot!
User avatar
DK_PETER
Addict
Addict
Posts: 904
Joined: Sat Feb 19, 2011 10:06 am
Location: Denmark
Contact:

Re: Deep Space Explorer - Tranquility (Flyby and follow)

Post by DK_PETER »

@Hades & Keya

It's weird.

The first thing I do on a new system is to download and install DirectX 9.0c
https://www.microsoft.com/en-us/downloa ... g=en&id=35
then....
Try loading the sound the default way...
sn = LoadSound(#PB_Any, "sound\rock2.wav")
If it works....Then you should be able to use the
sn = LoadSound3D(#PB_Any, "rock2.wav") too. (The sound folder is specified in the Add3DArchive("sound", #PB_3DArchive_FileSystem)

What does the debug output show?
Do you get valid ids? (non zero).

After applePi's wakeup call on CreateCone() - it works flawlessly here on both PB 5.42 LTS Final x86 and x64.
Edit: ApplePi tried it on Windows XP with success.
Current configurations:
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
User avatar
Hades
Enthusiast
Enthusiast
Posts: 188
Joined: Tue May 17, 2005 8:39 pm

Re: Deep Space Explorer - Tranquility (Flyby and follow)

Post by Hades »

Got it to work, but man...

The only way it worked was when I specified the complete path to the folder with the sound in Add3DArchive().
What you described and anything else I've tried resulted in a crash.
User avatar
DK_PETER
Addict
Addict
Posts: 904
Joined: Sat Feb 19, 2011 10:06 am
Location: Denmark
Contact:

Re: Deep Space Explorer - Tranquility (Flyby and follow)

Post by DK_PETER »

Hades wrote:Got it to work, but man...

The only way it worked was when I specified the complete path to the folder with the sound in Add3DArchive().
What you described and anything else I've tried resulted in a crash.
Damn!! That was something I never thought off...(Complete path)... :shock:
Glad you got it working, though. :wink:
Current configurations:
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
User avatar
Hades
Enthusiast
Enthusiast
Posts: 188
Joined: Tue May 17, 2005 8:39 pm

Re: Deep Space Explorer - Tranquility (Flyby and follow)

Post by Hades »

I'd really like to figure out where the problem was, to avoid future problems.
Have you set any default paths somewhere?
Is there a good way to prevent it from crashing? (Like checking the path PB will actually use to find the file, so you can make sure the file is there?)
User avatar
bbanelli
Enthusiast
Enthusiast
Posts: 544
Joined: Tue May 28, 2013 10:51 pm
Location: Europe
Contact:

Re: Deep Space Explorer - Tranquility (Flyby and follow)

Post by bbanelli »

DK_PETER wrote:
Hades wrote:Got it to work, but man...

The only way it worked was when I specified the complete path to the folder with the sound in Add3DArchive().
What you described and anything else I've tried resulted in a crash.
Damn!! That was something I never thought off...(Complete path)... :shock:
Glad you got it working, though. :wink:
Then I'm the only one who can't get it working? :( Would you mind sending me your compiled exe to see if I get the same error as when I compile it myself?
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/
User avatar
Samuel
Enthusiast
Enthusiast
Posts: 756
Joined: Sun Jul 29, 2012 10:33 pm
Location: United States

Re: Deep Space Explorer - Tranquility (Flyby and follow)

Post by Samuel »

@bbanelli
Try changing InitEngine3D() to InitEngine3D(#PB_Engine3D_DebugLog). You should get a text file in your root directory that will contain a lot of information from Ogre. If it's a hardware issue Ogre might be reporting it.
User avatar
bbanelli
Enthusiast
Enthusiast
Posts: 544
Joined: Tue May 28, 2013 10:51 pm
Location: Europe
Contact:

Re: Deep Space Explorer - Tranquility (Flyby and follow)

Post by bbanelli »

Samuel wrote:@bbanelli
Try changing InitEngine3D() to InitEngine3D(#PB_Engine3D_DebugLog). You should get a text file in your root directory that will contain a lot of information from Ogre. If it's a hardware issue Ogre might be reporting it.
It was the sound issue (I haven't read all the posts thoroughly). However, occasionally, after exiting, I get something like this:

Code: Select all

Problem signature:
  Problem Event Name:	BEX64
  Application Name:	PureBasic_Compilation1.exe
  Application Version:	0.0.0.0
  Application Timestamp:	56d9edf5
  Fault Module Name:	Engine3D.dll_unloaded
  Fault Module Version:	0.0.0.0
  Fault Module Timestamp:	56d5613e
  Exception Offset:	000007fed032bb30
  Exception Code:	c0000005
  Exception Data:	0000000000000008
  OS Version:	6.1.7601.2.1.0.256.1
  Locale ID:	1050
"If you lie to the compiler, it will get its revenge."
Henry Spencer
https://www.pci-z.com/
Post Reply