1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Event ID 1012

Discussion in 'Bugs' started by JOHN007, Feb 18, 2015.

  1. JOHN007

    JOHN007 New Member

    Using the Control Centre version 1.10.0 and the clients using Client launcher 1.8 an error occurs on all units when starting the program with the same event ID. Here is the event viewer log.

    DNS Client Events
    Event ID 1012
    There was an error while attempting to read the local hosts file.
    ErrorCode 3221225485

    Any help would be greatly appreciated as non of the units have any problems or warnings in the event viewer.

    Thankyou for your time.
     
  2. Wilson212

    Wilson212 Administrator Staff Member

    Does this error occur when you start the application? Or when you click Begin Hosts Redirect?
     
  3. JOHN007

    JOHN007 New Member

    Thankyou for the quick reply.

    I've tried to narrow it down to what causes the error, by implementing a time log on the host and client, I did each stage every minute, the results are.

    Host PC can start the control centre and launch server without error,

    Client starts the Client Launcher with no errors. However starting the game the error occurs, but still the game proceeds to the login screen. The client then joins the online profile and the onscreen message says ''Cannot connect to server''. Client then has to quit BF2, remove hosts, then redirect hosts again on Client Launcher, then joins online.

    The Host can start the game without error and even login online without error no problems there. However the error occurred while in game for both the host and client. Here are the times just for one completed map.

    20:55 for the Host - While ingame
    20:21 for the client - Clicked ''Play Battlefield 2''
    21.01 for the client - While ingame

    No errors while snapshot is saving no problems there. If I leave the server on for a few hours there are multiple errors which looks like most of them are ingame so to speak.

    I hope this helps and thankyou for your time I hope to speak soon.
    John.
     
  4. Wilson212

    Wilson212 Administrator Staff Member

  5. JOHN007

    JOHN007 New Member

    Thanks for the reply,

    I'm going to reinstall BF2 and reset the hosts file and see if that does the trick, seeing as you don't have this problem it must be the install, maybe its bugged ?

    I'll report back thanks again, hope maybe reinstalling might fix this read error and latency issue.
     
  6. JOHN007

    JOHN007 New Member

    Hello,

    Reinstalled BF2, AIX 2 and the new 2.1.0 Control Centre, reset host file aswell., I can confirm that the error still occurs multiple times, sometimes you cannot view your own stats everything is reset and the leaderboard disappears aswell.

    I've managed to track the time of the errors which happen exactly when the round ends and sometimes ingame. If you change the ticket ratio from 100 to any other number eg 300, the error occurs even more.

    Can anyone check their Event Viewer to see if this error occurs?

    Any help would be greatly appreciated thankyou.
     
  7. Wilson212

    Wilson212 Administrator Staff Member

    There is... one solution... You can download and install SimpleDNS and set that as your DNS server. Ive used it before when i had HOSTS file problems. Windows API really sucks when it comes to managing the DNS cache, so i had to use the HOSTS file route... which as you can see, doesn't work for everyone. I have a cracked Simple DNS that you can download here. Basically just install it, copy over the cracked .exe file and then start it. From there, you need to add the gamespy addresses to it, and then point your newtwork adapter's DNS address to localhost. I will link some images below to get you in the right direction

    Press Edit DNS Records:
    [​IMG]

    Next, press "Quick Zone Wizard" at the top:
    [​IMG]

    Now you see all those addresses there on the bottom lefts, you need to add each of those address using the Quick Zone Wizard button, and setting the address to your local network where your gamespy emulators and stats servers are located.

    Next is setting your network settings to point to your simple dns. On windows 7, You open up your Control Panel, and pick "Network and Sharing Center". Then click "Change Adapter Settings" on the top left in the side menu. Next you need to select the network adapter that provides your PC with internet access, Right click it and select "Properties".

    [​IMG]

    On this next form that pops up, select IPv4 (TCP IPv4) from the items box, and press the "Properties Button". Enter your information as so, and then press OK:

    [​IMG]
     
  8. JOHN007

    JOHN007 New Member

    Thankyou ever so much for taking the time out to help an old BF2 veteran.

    I've done as requested on the host pc, however I downloaded the free trial of Plus DNS thinking it wouldn't be that expensive but then realized its 300 Dollar for the full version? So I basically setup the DNS server and started the Control Centre. Am I correct in saying that you don't need the ''Host Redirect'' active for this to now work? The section on the GUI has a red cross next to Hosts Redirect Active.

    You are a genius sir, I can confirm that the host pc is error free, all stats are saving at the end of the round and you can access the stats no problem. Thankyou!

    Now the client pc, since I cannot use the Client launcher because if I use that program the client cannot see any stats after the round has ended, very strange. So I installed the DNS Plus on the client pc, copying the hosts files ip addresses from the Hosts.file accordingly. So now I start up BF2 through the AIX2 shortcut with the DNS Plus server running, and I can confirm that the clients stats are saved each round and you can view your stats. One small problem, the client pc takes about 2 minute to actually start up? Seems it hangs on a black screen then proceeds to the login, may I ask is this something to do with bf2web.gamespy.com?

    Thankyou once again for this epic mod and your time and expertise and hope to speak soon.

    John.
     
  9. Wilson212

    Wilson212 Administrator Staff Member

    If you download DNS plus from that link in my other post, it contains the cracked executable files so you don't have to pay $300 :confused: . But im glad everything is working for you now :) . One thing to note, if your ports are open on one of your PC's, you should only need to install 1 DNS server on your network, and just point both PC's to that computers LAN address in the adapter settings
     
  10. JOHN007

    JOHN007 New Member

    Thanks for the quick reply,

    Since the setup is on LAN, the host pc should open ports through windows firewall under ''New Rule'' Am I correct? And basically what ports need opening may I ask?

    Port 16567 is the dedicated server,
    Port 53 is the DNS Plus server, from looking at the options I think?

    Im just not quite sure which ports need opening if you could kindly help us once again,

    Thanks again,

    John
     
  11. Wilson212

    Wilson212 Administrator Staff Member

    The ports you need open are as follows:

    16567 : Bf2 Server Port
    29900 / 29901 : Login Server Ports
    27900: (optional) Master.Gamespy (aka: Bf2Available) port
    80: Stats Server Port
    53: DNS Port
     
  12. JOHN007

    JOHN007 New Member

    Thanks for the reply,

    Done as requested on the host PC, I opened the following ports through Windows Firewall, under ''Inbound Rules'', applied the ports on TCP and UDP.

    Now your saying that the clients don't need the ports opening am I correct? Basically the client cannot connect to the online bf2 server using the AIX shortcut, message says ''cannot connect to the server''.

    What must the client pc do to connect to the bf2 server?

    Many thanks and hope to speak soon,

    John.
     
  13. Wilson212

    Wilson212 Administrator Staff Member

    Your clients dont need to open thier ports, that is correct... but they must use the HOSTS file redirect, and set the IP to your External IP address, so their battlefield 2 knows where to connect to
     
  14. JOHN007

    JOHN007 New Member

    Thanks for the reply,

    The clients, using the Client launcher can login to the online account but still cannot see their stats and stats aint saving either, plus DNS errors occur aswell.

    The host pc can login and see their stats no problem, there must be another way besides the host redirect for the clients? Seems its bugged out, plus 2 client PC's are brand new no problems with over 100 programs and new games.

    So basically the host pc has the dns server running with all ports open and the control centre running the bf2 server, but clients using your client launcher cannot see their stats?

    Thanks for your time and hope to speak soon,
     
  15. MrNiceGuy

    MrNiceGuy Founder Staff Member

    Lets not hope the owner of the software files a complaint, so this site get's taken down... :eek:
     
  16. Wilson212

    Wilson212 Administrator Staff Member

    If a complaint is filed i will remove it immediatly
     
    MrNiceGuy likes this.