Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Battle for Naboo and Win XP

Page: 1 of 1
 netwolf
05-05-2002, 9:28 AM
#1
Hi,

has anybody found a solution / patch /workaround etc. etc. for the problem of BFN and XP non running fluidly.
Lucasarts wrote in an e-mail that they do not know yet whether there will be a patch, but often users know more or better than programmers :-)

You would really help me !

thx

netwolf
 SpawnHappyJake
05-05-2011, 11:26 PM
#2
 RoxStar
05-06-2011, 3:13 PM
#3
For future reference this forum is more for Help and Feedback of the forums in general. Your specific question would have been better directed here. (http://lucasforums.com/forumdisplay.php?f=102)
 SpawnHappyJake
06-28-2011, 12:22 AM
#4
WOW! :O I thought I stayed on top of the threads I posted to, but the day of you posted back and I missed it somehow! I'm super amazed there's a forum dedicated to my childhood game! I'll spend a little time looking around over there. Thanks for the link!
Cheers,
SpawnHappyJake
 CLBrown
11-11-2011, 8:08 PM
#5
I've spent the past several hours digging into this, and have found the real source of the problem...

AND a solution which works perfectly for me!

Mind you, this is not me doing my own coding, just doing "forensics" work.

The game "Battle for Naboo" "requires 3D acceleration," but it's really looking for a 3DFX video card. Failing to find that, it defaults to Direct3D, but to a version of Direct3D which is no longer available or supported.

Also, the sound calls used are from an older version of DirectSound, so you'll need to convert to the newer API.

Sound is easy... run the application in Windows 98 compatibility mode (you can try other modes as well, if you wish). I'm not sure which "fix" in that set is the key one for getting sound to work, but I do plan to pare down the list of fixes eventually.

Video is also easy... by "piggybacking" on the work of others. Go out and do a web search for an application called "dgVoodoo." This is what you'll use to fix the program.

What is dgVoodoo? Basically, it's a "wrapper" which pretends to be the old 3DFX "GLide" API but really just re-routes these calls to Direct3D. Fortunately, it is far more "compatible" (meaning no cheats or optimizations) than the crappy programming used in this program.

SO... the program will think it's writing GLide video calls, which will be intercepted by this and transformed into Direct3D video calls (properly formatted and structured).

There are two EXE files in "Battle for Naboo." BOTH require this emulation. So, you'll be putting a copy of dgVoodoo in the same folder as each of the two "Battle for Naboo" executables. (The first one is the menu executable, but it DOES access some video, which will cause issues, if you don't provide this as well.)

I did those two things... "compatibility mode" to fix sound, dgVoodoo to fix video, and VOILA! "Battle for Naboo" is working FLAWLESSLY on my system.

FYI, my system is an i7-based system on an Asus motherboard based on the Intel X58 chipset. My video card is an nVidia Geforce GTX295 (which is two 280 cards on a single board... so it's essentially "SLI" on a single card). My sound card is an HTOmega Claro+, which is more than sufficient for any gaming purposes, I've found, and is an audiophile-level music player. I'm running Windows XP SP3 (32-bit). I also dual-boot into XP-64 for "work."

I can't promise that this will work perfectly for Win7... but for XP, it is now running flawlessly, and I was just about to abandon my efforts. Now I don't have to. And, hopefully, neither will you guys!

EDIT: By the way, I tried setting the "launcher" applet to Win98 compatibility mode as well, but that caused issues. Basically, the program keeps calling itself from itself, if run from that mode. So ONLY set the BFN.exe file to Win98 compatibility mode, not the "battlefornaboo.exe" file (which is the one which is causing my problem right now).

A brief follow up...

I've determined the elements from the "Microsoft Application Compatibility Toolkit" which need to be set for this to work. I started off with the Windows 98 compatibility mode, and started turning bits off until I found a config which works perfectly for me... everything is very quick, and the sound is working just fine. Some of the items I turned off were slowing down graphics, so I recommend using this setup:

Add Write Permissions To Device Files
Change Authentification Level
Correct Create Event Name
Corect File Paths
Correct Sound Device Id
DirectPlay Enum Order
Emulate Create File Mapping
Emulate Create Process
Emulate Delete Object
Emulate Fine Handles
Emulate Get Command Line
Emulate Get Device Caps
Emulate Get Profile String
Emulate Heap
Emulate Missing EXE
Emulate Play Sound
EMulate Slow CPU
Emulate USER
Emulate Ver Query Value
Emulate Write FIle
Enable Restarts
File Version Info Lie
Force CD Stop
Force Co Initialize
Force Keep Focus
Force Shell Link Resolve No UI
Giveup Foreground
Handle API Exceptions
Handle Reg Expand Sz Registry Keys
Handle Wvsprintf Exceptions
Ignore Exception
Ignore Load Library
Ingore Scheduler
Load Library CWD
Map Memory B0000
No Ghost
ProfileS Env Strings
Profiles Get Folder Path
Profiles Reg Query Value Ex
Sync System And System32
Virtual Registry

I'm not saying that a few of these might not be able to be turned off, but I had no problems with them turned on, so I didn't see any reason to do so.

Hope this helps. Post a note if you find anything more.
Page: 1 of 1