WIFI EMULATION - ALTWFC Update!

Talk about the shiny-new post-apocalyptic Advance Wars game here.
Post Reply
GipFace
Rank: Lord of Children Games

WIFI EMULATION - ALTWFC Update!

Post by GipFace » Sat Feb 25, 2017 4:16 pm

Image

Nintendo shut down the official wi-fi connection on May 2014. This is a NEW, UPDATED GUIDE to allow Advance Wars 4 wi-fi over ALTWFC, an unofficial server!

REQUIRES 64-bit Windows 7/8/10. Run everything on Administrator privileges!

INSTRUCTIONS
1. Download this specially-constructed package here, which will remove most of the guesswork. Xenesis has given me permission to link this. It contains DeSmuME (emulator), WinPCap (driver), a hacked AW4 ROM, and a full save to unlock all COs.
>>> This is a new package with a patched ROM and updated firmware for ALTWFC. Only the 64-bit version of DeSmuME is now supported.
2. Extract the package.
3. Install the appropriate WinPCap based on your OS. This is the driver that lets the DS see a "wireless" network.
>>> If using Win10PCap, you'll see a bunch of "FATAL Bad Memory Block" errors in the debug window of DeSmuME. Ignore them.
4. Restart the computer, then follow either the LAN or WIRELESS instructions below. The wireless instructions are lengthy!

LAN (wired connection)
1. Run DeSmuME.
2. Config > Wifi Settings, then select your network adapter. Leave mode on infrastructure.
3. File > Recent ROM > select AW4 - WFC Hack
4. To set your name, click the DS icon on the bottom screen, then the green user icon, then the center icon. Do not use Config > Firmware Settings.
5. Now you should be able to connect to ALTWFC. It will say that the game card and DS don't match. Ignore the warnings and allow the game to generate new user information. You'll get a friend code upon first connecting.
If this doesn't work, try using the wireless instructions below, but point the MS Loopback Adapter to your LAN adapter.

WIRELESS: Installing Microsoft Loopback Adapter and linking it with your wireless adapter
WinPCap doesn't detect wireless connections. The workaround is to install a dummy network adapter and point all wireless traffic to it. The Microsoft Loopback Adapter is a built-in solution, but you may also use Hamachi as an alternative.

1. Start > type in hdwwiz. The Add Hardware Wizard should appear.
2. Select Install the hardware that I manually select from a list (Advanced)
3. Select Network Adapters.
4. Select Microsoft as the manufacturer, then select Microsoft Loopback Adapter (Microsoft KM-TEST Loopback Adapter in Win8/10). Install it.
5. Control Panel > Network and Sharing Center > Change Adapter Settings.
6. Right-click on your wireless adapter and go to properties, click on the sharing tab, and enable Allow other network users to connect through this computer's internet connection. If it asks for an available connection, choose the Loopback Adapter. Press OK twice to get out.
7. Right-click on the Loopback Adapter and go to properties, then double-click on Internet Protocol Version 4 (TCP/IPv4). Keep the next window open for now.
8. Start > type in cmd /k ipconfig /all. Scroll up until you see your wireless adapter. Note the gateway value: it should be 192.168.X.1, where X is any number. However, the first two numbers may be different.
9. Go back to the IPv4 properties window. Select use the following IP address, then input the gateway value in step 8 as the IP address and the default gateway. Input 255.255.255.0 as the subnet mask.
10. For DNS server addresses, input the ones provided by your ISP, or use Google DNS: 8.8.8.8 for primary DNS, 8.8.4.4 for alternate DNS.
11. Hit OK, then OK again to get out of the Loopback Adapter properties.

WIRELESS: DeSmuME setup
1. Run DeSmuME.
2. Config > Wifi Settings, then select MS LoopBack Driver. (It might show up as MS NDIS 6.0 LoopBack Driver.) Leave mode on infrastructure.
3. File > Recent ROM > select AW4 - WFC Hack
4. To set your name, click the DS icon on the bottom screen, then the green user icon, then the center icon. Do not use Config > Firmware Settings.
5. When AW4 starts, Nintendo WFC > Settings
6. Click on Connection 1.
7. Change Auto-obtain IP address to NO. For IP address and Gateway, remember the gateway value you got earlier? Add 10 to the last number. If the value was 192.168.1.1, input 192.168.1.11 as the IP address and Gateway.
8. Input 255.255.255.0 as the subnet mask.
9. Save settings (test connection will not work right now). Then press back twice to get out of WFC settings.
10. Close and restart DeSmuME.
11. FINALLY! You should now be able to connect to ALTWFC. It will say that the game card and DS don't match. Ignore the warnings and allow the game to generate new user information. You'll get a friend code upon first connecting.

The included ROM has the following hacks applied:
ALTWFC patch: Allows the game to connect to the server at 172.104.88.237.
Random wi-fi rotation: If you are 1P, you will only roll one of three maps: 2P-12 Equal Island, 2P-47 Beaker River, or 2P-60 Antipode Map.
Timer: Singleplayer and friend code games have a 2.5 minute (150 second) timer.
>>> The original package had a 3 minute timer, but we found that to be too long in practice.
CO select screen: The text has been changed to display exact boosts instead of ambiguous text:

Image

Troubleshooting:
- Windows likes to screw you and change the Loopback Adapter IPv4 settings without telling you. Redo Loopback Adapter steps 7-11 if that happens.
- If you're having trouble setting up the wireless connection, please look at this video tutorial.
- If you need to reset your Nintendo WFC settings, make sure primary DNS and secondary DNS are set to 104.131.93.87, the altwfc server.
- If the emulator is too slow, Config > Emulation Settings > Enable Use dynamic recomplier, disable Boot from firmware (like the NDS). Make sure you have set your nickname, as you'll be unable to do so once you do this!

Tips:
- To change your controls, Config > Control Config. AW4 can mostly be controlled with the stylus (mouse) but the B button is helpful when you want to cancel.
- Quick screenshot is CTRL+F12. To change this, use Config > Hotkey Config. I like to use INSERT.
- To simulate the look of a DS screen, View > Window Size > 1x, then View > Magnification Filter > Scanline.
- Want to find a player? Try the /r/advance_wars Discord.
- After each game, disconnect from WFC. If you wish to play another, reconnect. The altwfc server tends to give connection errors after a game has finished.

Technical:
- AW4 wi-fi only works on this build of DeSmuME. Do not use the official builds, or a newer SVN build. Official DeSmuME developers intentionally sabotaged wi-fi support, causing the wi-fi coder to drop out of the project. This build has the most recent wi-fi code at the time he dropped out of the project. Neither the official DeSmuME developers nor the wi-fi coder support this build.
- The included resource files are critical for operation. Do not tell DeSmuME to use anything else.
Last edited by GipFace on Mon Jul 10, 2017 12:46 am, edited 49 times in total.

User avatar
Bonesy
Rank: Jenkem Peddler
3DS Code: 0318 8318 0000
Location: Arid Zone

Re: WIFI EMULATION - ALTWFC Update!

Post by Bonesy » Sat Feb 25, 2017 7:26 pm

gip let's play a naval only game

User avatar
Xenesis
Tri-Star CO
Tri-Star CO
Rank: Hydrocarbon Inspector
3DS Code: 2535-4646-7163
Location: 0x020232DD
Contact:

Re: WIFI EMULATION - ALTWFC Update!

Post by Xenesis » Sat Feb 25, 2017 11:23 pm

I've replaced this topic with the old topic as the pin.

Good job.
IST wrote:Even the worst individual needs to discover the joys of a chicken statue that is also a pregnant blonde housewife.

GipFace
Rank: Lord of Children Games

Re: WIFI EMULATION - ALTWFC Update!

Post by GipFace » Wed Mar 22, 2017 11:38 am

There are now DETAILED instructions to get wireless connections working with this! Enjoy!

GipFace
Rank: Lord of Children Games

Re: WIFI EMULATION - ALTWFC Update!

Post by GipFace » Sat Jun 17, 2017 6:08 am

Package updated to V4:
  • All included maps are now de-based: they have 2 base 1 airport.
  • Server IP address changed to 172.104.88.237 (http://zwei.moe) because the old server is down

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest