lemmy101
Emperor
- Joined
- Apr 10, 2006
- Messages
- 1,064
I've found a massively handy way to debug multiplayer I thought I'd share.
If you install this:
http://www.virtualbox.org/
it allows you to create a virtual pc on your PC. you can create an image file for a HD, and install a version of windows on it. It'll run in a window and can emulate being on a network as well as, get this, DX 9 hardware acceleration support!
Since I've been doing a lot of MP debugging lately, I thought I'd give it a try... and lo-and-behold...
It works! A two player direct-ip multiplayer game of civ running on one machine, that perfectly emulates two different PCs playing eachother! This is massively advantageous to running a pitboss game, as there are various things that can go wrong that won't present themselves on pitboss games. Also the debug logging all gets merged into one file making it very hard to debug. This also allows you to install Visual Studio in the guest OS and debug the DLL of two players at the same time.
(Tip: You need to install a 32bit OS to use DX 9 hardware acceleration. Also put Civ in windowed, it works better. You will probably need a decent amount of memory and graphic card memory to run em both though and I'd recommend putting the HD image on a seperate HD to the host's version of Civ if possible. That all said, the slower running guest OS / Civ will probably be a good thing as it will emulate wildly different spec PCs playing to help lure out those pesky OOS's ;D)
If you install this:
http://www.virtualbox.org/
it allows you to create a virtual pc on your PC. you can create an image file for a HD, and install a version of windows on it. It'll run in a window and can emulate being on a network as well as, get this, DX 9 hardware acceleration support!
Since I've been doing a lot of MP debugging lately, I thought I'd give it a try... and lo-and-behold...

It works! A two player direct-ip multiplayer game of civ running on one machine, that perfectly emulates two different PCs playing eachother! This is massively advantageous to running a pitboss game, as there are various things that can go wrong that won't present themselves on pitboss games. Also the debug logging all gets merged into one file making it very hard to debug. This also allows you to install Visual Studio in the guest OS and debug the DLL of two players at the same time.
(Tip: You need to install a 32bit OS to use DX 9 hardware acceleration. Also put Civ in windowed, it works better. You will probably need a decent amount of memory and graphic card memory to run em both though and I'd recommend putting the HD image on a seperate HD to the host's version of Civ if possible. That all said, the slower running guest OS / Civ will probably be a good thing as it will emulate wildly different spec PCs playing to help lure out those pesky OOS's ;D)