Forgotten Hope Public Forum

Forgotten Hope 2 => Singleplayer and Coop => Topic started by: ksl94 on 05-04-2012, 15:04:34

Title: Lag and warping of ground units (bots)
Post by: ksl94 on 05-04-2012, 15:04:34
Good Afternoon everyone,
I am having problems with FH2 once more. I am using the absolutely awesome method of changing the affinity of the server and of FH2 (each one assingned to different cores) in order to gain some FPS.
My current settings look like this: Cores 0,1,2 -> server core 3-> FH2.
With these settings I managed to minimize warping of CPU controlled ground units, although its presence is still very common.
Any help would be greatly appreciated.
Title: Re: Lag and warping of ground units (bots)
Post by: djinn on 05-04-2012, 17:04:42
Try doing an error-check on your harddisk from time to time.
Since Fh2 CTDs alot due to WIP SP/COOP, it does create errors.

Also fragment from time to time.

FPS loss is affected by the following:
1. Viruses, SPAM, background processes, errors and fragmented harddisks.
2. Bad installations and installing on the same partition as your OS
3. Low-end gfx capability, low RAM or low-end processers
4. Too many bots, vehicles and gfx intensive maps, usually maps with alot of open buildings eg. Goodwood, Ramelle etc.

Consider juggling between these to get the best performance.
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 06-04-2012, 23:04:34
Thank you for your quick reply Djinn,
but I think that the problem might be ping related. It feels like playing on a Chinese server; all other units lag and move somewhat robotic, vehicles are edgy in all of their movements (FH2 itself runs like a dream and hardware shouldn't be a problem). So, would there be any way to improve my ping?
Title: Re: Lag and warping of ground units (bots)
Post by: Kev4000 on 07-04-2012, 14:04:13
You're running dedicated coop game beside game? Is your Ping at 0?
Try connect to IP - 127.0.0.1
This will connect directly through localhost, if running dedicated coop game, it could very well be attempting to send through network cable.
Title: Re: Lag and warping of ground units (bots)
Post by: MaxP on 07-04-2012, 15:04:23
Quote
You're running dedicated coop game beside game? Is your Ping at 0?
Try connect to IP - 127.0.0.1
This will connect directly through localhost, if running dedicated coop game, it could very well be attempting to send through network cable.
Kev4000, usually connecting to the local IP (i.e. 192.168.1.*) is equal to connecting to loopback IP (127.0.0.1), you can see packet routing via cmd.exe - route print. No packets won't be sent through cable.
But ping to server, of course, must be checked ))

Quote
My current settings look like this: Cores 0,1,2 -> server core 3-> FH2.
On what OS you're running server/client?
On Windows XP x32/64 changing process binding doesn't work for FH2 and all BF2-based games, but you can try a third-party utilities to do this. Not all really works (i.e. CPU Control), but MZ CPU accelerator does.
I think, on Win7/Vista binding for BF2/FH2 will not works too.

P.S. Sorry for my english ))
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 07-04-2012, 21:04:56
Thank you very much for your reply MaxP,
serendipitously I am able to succesfully change the affinity on Windows 7 but I am very grateful your reply and will double-check the issue once more.

I would also like to thank Kev4000,
your idea was veraciously promising, in the end it unfortunately didn't work, since I received an error message telling me that the server canna be found. My ping is ranging from ~16 to about 100-something.
Title: Re: Lag and warping of ground units (bots)
Post by: kummitus on 07-04-2012, 23:04:11
What's your cpu and how many bots?

Modern cpu's can easily handle the drawing of hundreds of bots, just that they can't handle their thinking what causes the warping.

Hence why that superbig server works.
Title: Re: Lag and warping of ground units (bots)
Post by: MaxP on 08-04-2012, 00:04:31
My ping is ranging from ~16 to about 100-something.
ksl94, something wrong with your server. How much RAM do you have? What version of Windows 7?
x32 versions cannot allocate more than 4GB of RAM (escept Home Basic, which can allocate 2GB, as I can remember), but applications can't use more than 2GB without /3GB and /USERVA keys. FH2 client may use up to 1,5-1,7 GB, depedent on settings. If you have 3GB (for example), you'll have not enough RAM for server process, especially with large amount of bots.

Firstly, try to execute cmd.exe -> tracert [your local server IP] > [path], i.e. tracert 192.168.1.2 > C:\tracrt.txt, and attach the file, or just copy the text to your post.
Secondly, try to trace an amount of RAM and % of CPU load for you server process and for client. You can do it with Riva Tuner (for example), in monitoring tab (just enable appropriate modules). Or - use Task Manager ))

Quote
since I received an error message telling me that the server canna be found
Very strange...
Probably, thirdly you can try to copy the content of route print command (route print > [path] ).
Did you update your Win7? Do you have admininstrative rights?
Title: Re: Lag and warping of ground units (bots)
Post by: Michael Z Freeman on 17-04-2012, 22:04:28
I received an error message telling me that the server canna be found.

Is this when you tried to join the server manually @ 127.0.0.1 from inside the bf2 client ? If so you CANNOT join a localhost server that way. You have to auto-load into the map ... eg:

"C:\Program Files\Battlefield_2\FH2.exe"  +fullscreen 1 +widescreen 1 +szx 1440 +szy 900 +joinServer 127.0.0.1 +port 16567"

When it starts don't touch anything. The FH logo will come up then the map will start loading automatically. Here is my latest serversettings.con as well ...

Code: [Select]
sv.serverName "Phorce Coop/SP"
// sv.GameMode gpm_coop
sv.password ""
sv.internet 0
sv.bandwidthChoke 0
sv.serverIP "127.0.0.1"
sv.serverPort 16567
sv.welcomeMessage "Welcome to Phorce Server"
sv.punkBuster 0
sv.allowFreeCam 1
sv.allowExternalViews 1
sv.allowNoseCam 1
sv.hitIndicator 1
sv.autoBalanceTeam 0
sv.teamRatio 50
sv.teamRatioPercent 100
sv.coopBotRatio 100
sv.coopBotCount 48
sv.CoopBotDifficulty 85
sv.ticketRatio 1500
sv.ManDownTime 15
sv.SpawnTime 10
sv.maxPlayers 1
sv.numPlayersNeededToStart 1
sv.notEnoughPlayersRestartDelay 15
sv.startDelay 15
sv.endDelay 15
sv.endOfRoundDelay 15
sv.roundsPerMap 1
sv.timeLimit 0
sv.scoreLimit 0
sv.soldierFriendlyFire 0
sv.vehicleFriendlyFire 0
sv.soldierSplashFriendlyFire 0
sv.vehicleSplashFriendlyFire 0
sv.FriendlyFireWithMines 0
sv.tkPunishEnabled 0
sv.tkPunishByDefault 0
sv.votingEnabled 0
sv.allowNATNegotiation 0
sv.autoRecord 0
sv.voipEnabled 0
sv.useGlobalRank 0
sv.useGlobalUnlocks 0
sv.noVehicles 0
sv.sponsorText "Welcome to Phorce Server"
sv.sponsorLogoURL "http://files.djbarney.org/sponsor_logo.png"
sv.communityLogoURL "http://files.djbarney.org/sponsor_logo.png"
sv.radioSpamInterval 6
sv.radioMaxSpamFlagCount 6
sv.radioBlockedDurationTime 30
sv.numReservedSlots 0

I'm still testing so I'm not sure if lines like "sv.bandwidthChoke 0" are doing anything ... that line should remove bandwidth restrictions for non-internet games. But I no longer have stuttering bots (the kind of effects you get online with a bad connection) with this localhost setup.
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 19-04-2012, 20:04:03
Good Evening DJ Barney,
and thanks for your post; it looked very promising but in the end it didn't change situation at all.  :(
The idea is great nonetheless, thanks for your advice  :) .
Title: Re: Lag and warping of ground units (bots)
Post by: Michael Z Freeman on 19-04-2012, 20:04:44
You mean it would not load straight into the locahost server ? Are you using 1.5 bf2 + 1.5 dedicated server ?
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 20-04-2012, 15:04:48
Good Afternoon DJ Barney,
I use the current (1.5) version of both applications.
I tried two things: (A) I started FH2 (only), the result being an error message telling me that a connection could not be established.
(B) I launched the server, then FH2. FH2 loads the round automatically, but the warping and lagging of the bots is still present.  ???
Title: Re: Lag and warping of ground units (bots)
Post by: Michael Z Freeman on 20-04-2012, 17:04:20
Post maplist.com, serversettings.con and the shortcut switches you are using.

Apart from possible problems with those post the output of commands as recommended in the posts above (tracert, etc).
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 20-04-2012, 17:04:14
Alright,
here is my maplist.con file:
mapList.append crete_1941 gpm_coop 64

This is the content of my serversettings.con:
sv.serverName "Phorce Coop/SP"
// sv.GameMode gpm_coop
sv.password ""
sv.internet 0
sv.bandwidthChoke 0
sv.serverIP "127.0.0.1"
sv.serverPort 16567
sv.welcomeMessage "Welcome to Phorce Server"
sv.punkBuster 0
sv.allowFreeCam 1
sv.allowExternalViews 1
sv.allowNoseCam 1
sv.hitIndicator 1
sv.autoBalanceTeam 0
sv.teamRatio 50
sv.teamRatioPercent 100
sv.coopBotRatio 100
sv.coopBotCount 48
sv.CoopBotDifficulty 92
sv.ticketRatio 1500
sv.ManDownTime 15
sv.SpawnTime 10
sv.maxPlayers 1
sv.numPlayersNeededToStart 1
sv.notEnoughPlayersRestartDelay 15
sv.startDelay 15
sv.endDelay 15
sv.endOfRoundDelay 15
sv.roundsPerMap 1
sv.timeLimit 0
sv.scoreLimit 0
sv.soldierFriendlyFire 0
sv.vehicleFriendlyFire 0
sv.soldierSplashFriendlyFire 0
sv.vehicleSplashFriendlyFire 0
sv.FriendlyFireWithMines 0
sv.tkPunishEnabled 0
sv.tkPunishByDefault 0
sv.votingEnabled 0
sv.allowNATNegotiation 0
sv.autoRecord 0
sv.voipEnabled 0
sv.useGlobalRank 0
sv.useGlobalUnlocks 0
sv.noVehicles 0
sv.sponsorText "Welcome to Phorce Server"
sv.sponsorLogoURL "http://files.djbarney.org/sponsor_logo.png"
sv.communityLogoURL "http://files.djbarney.org/sponsor_logo.png"
sv.radioSpamInterval 6
sv.radioMaxSpamFlagCount 6
sv.radioBlockedDurationTime 30
sv.numReservedSlots 0

The target line can be seen below:

"C:\Program Files (x86)\EA GAMES\Battlefield 2\FH2.exe" +joinServer 127.0.0.1 +port 16567
Title: Re: Lag and warping of ground units (bots)
Post by: Michael Z Freeman on 20-04-2012, 21:04:53
OK, that looks OK. What about the suggested network troubleshooting ? There are a number of guides out there that show you how to troubleshoot windows networking. I use #windows or #hardware on irc.freenode.net if I really get into problems.
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 20-04-2012, 23:04:32
Alright,
I traced my IP via tracert command and the results for the loopback IP and my IP are as follows:
LOOPBACK:

1      >1 ms     >1 ms  USERNAME [127.0.0.1]

My IP:

1      >1 ms     >1 ms  USERNAME.ROUTERNAME [MY IP ADRESS]
Title: Re: Lag and warping of ground units (bots)
Post by: MaxP on 21-04-2012, 13:04:04
And how about the rest of? :)
The God of Localhost tell me that you need to do this (http://"http://fhpubforum.warumdarum.de/index.php?topic=17051.msg247827#msg247827") anyway, with anyones help or without. But only if you really want to solve this problem on your current OS.

Even if you not familiar enough with IT, just monitor
Quote
amount of RAM and % of CPU load
with your Task Manager. Make at least it. This is the only way to find the problem by yourself :)
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 21-04-2012, 22:04:45
Good evening everyone,
I finally managed to screenshot the RAM and CPU usage of the server (core 0) and FH2 (cores 1,2,3)  :D .
I attached the file to my post.

And sorry MaxP, but your link doesn't work  :-\
Title: Re: Lag and warping of ground units (bots)
Post by: MaxP on 22-04-2012, 18:04:48
And sorry MaxP, but your link doesn't work  :-\
Sorry, there is a my mistake in tags (http://"http), but the link points to my previous post with description of your possible actions.
If you wish, I may try to help you with primary diagnostics via TeamViewer, contact with me by ICQ (215002630), jabber (maxpv1981@jabber.ru) or email (maxpv1981@gmail.com). All I need is a TeamViewer ID, you can get it at application start (and, of course, not running any torrent/downloads).
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 14-03-2013, 17:03:54
I just checked on the ping and it ranges from 15 to 78. On top of that I would like to mention that I have a very bad hit detection; using SMGs is plain useless, those bastards mow me down with their pistols after I pumped half a magazine into them with my Thompson  :P . It is very obvious that those issues must be inter-woven. This really makes FH2 impossible to play, bots can't shoot me when I am flat on the ground. Bloody hell, I even survived a salvo from an MG42, although each shot hit me. Into my head. In the end, I just got back up and walked away  :-\ .
Title: Re: Lag and warping of ground units (bots)
Post by: Michael Z Freeman on 15-03-2013, 15:03:23
You should be getting better ping from local host than that. BTW I don't think BF2 measures localhost ping accurately, although it's obvious enough in the gameplay if your ping is OK or not. In my testing BF2 usually takes a few seconds to settle down when you fist start it - you may see soldiers and vehicles jumping along for a few seconds to begin with.

Vista and, I think, Win7 handle CPU core scheduling automatically, at least in my testing there is not need for an affinity setter in Vista (but XP needs it).

From the sound of it you need to go thoroughly through some kind of hardware/OS tweaking guide such as this ...

http://www.tweakguides.com/TGTC.html

It can take some time but is a lot better than randomly trying different solutions and getting more and more frustrated. The owner of that website ( http://www.tweakguides.com/Contact.html ) is a genuine technical guru when it comes to this kind of thing.
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 15-03-2013, 15:03:32
Thanks for your reply, DJBarney! I will check it out immediately. I just ragequit from a round on Bardia, everything was plain lovely except those pesky bots hopping around the map being invulnerable. Actually, I shot an Italian straight into the face three times at a distance of less than a hundred yards and he returned fire killing me  :P .
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 15-03-2013, 17:03:47
I would like to add that bardia is especially bad. Also, I just randomly checked my ping and it was at 125, shortly after spiking to 2153 and then returning to 31  :P .
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 16-03-2013, 20:03:06
Unfortunately, the tweaking guide you sent me contained no solution for my problem, but I found some other, very interesting hints for improving performance init. Thanks for posting  ;) . Does anyone know how this high and unstable ping comes into being? If I play SP, everything is back to normal, same with COOP. As soon as I run the round with a dedicated server, I am getting the aforementoined issues.
Title: Re: Lag and warping of ground units (bots)
Post by: Michael Z Freeman on 17-03-2013, 12:03:21
Did you work through the guide or did you just look through it ? You need to at least read the introduction. If you are unwilling to do that then, by the sound of it, I don't think you will find a solution.
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 17-03-2013, 12:03:46
I studied it thoroughly, but since the matter is very complicated I assume that I will have to read it at least twice in order to obtain the information needed. Actually, I am really desperate for finding a solution, because FH2 is not too enjoyable the way it is right now. I shall post my progress in this thread.
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 17-03-2013, 22:03:49
I researched the data of my CPU and RAM. Here it goes:
CPU: Intel Core i5-750 @ 2.67 GHZ, socket 1156 LGA
RAM: DDR3, 6144 MB

Also, I did as recommended and conducted a route map and took a screenshot. However, it is larger than 200kb, so I am unshure if I can attach it. Errm, ok, I just realised that it is not possible. How can I check if everything is in order? How should it look like? I'd be very grateful for any replies.
Title: Re: Lag and warping of ground units (bots)
Post by: [QPS]_Sex_Bomb on 19-03-2013, 00:03:15
Beware, you can fiddle with your network settings hours and easily ending in a situation worst than when you started.  My recommendation is that u find an application that will handle your network settings for u.  Those apps can analyze your traffic and network settings and optimize them.  They can also diagnose any problem and correct it. Finally, they let you rollback any changes made thru them.

I was always skeptical about this kind of software until i got one for "free" bundled with my mobo.  The app is named  "asus ROG Gamefirst II", and it shapes your network traffic by prioritize games connections over apps.  For weeks, i decided to not install the software, thinking that it just another useless "bloatware" as thousand others packaged with mobos.  At some point, I decided to giving it a try mostly because i was not satisfied by the fact that, even if my FPS was near perfect in FH2, the hit detection wasn't working as it should (and as i experienced on my friend rig with much lower specs).  The game was also "rubberbanding" and i got a strange feeling of lag like hanging in game static models.      The result is that since it's installed and running in background, i can kill someone with SMG even when i'm connected to european servers (i'm canadian), what was nearly impossible before.  I can also jump thru windows on first attempt.

Now the bad news, Gamefirst app is not free and cannot be bough retail.  Fortunately, it's only a rebranding for a tier party application called "cFosSpeed" that u can find at this address http://www.cfos.de/en/cfosspeed/cfosspeed.htm?__ntrack_pv=1 (http://www.cfos.de/en/cfosspeed/cfosspeed.htm?__ntrack_pv=1).   The app is not cheap (around 15$) but you can probably find a free software alternative.   I can't assure you that it will fix your particular issue, but for me it worked far beyond my expectations, and that's why i took some of my time to share my experience.   Hope it can help you (or someone else).  BTW, I'm not linked with CfosSoftware or Asus.
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 19-03-2013, 22:03:57
Thanks a lot, mate! I bought it shortly after you posted the link! Now I am just waiting for the lads to find my payment. I will try it out immediately after I will have installed it. I shall post the results right here.
Title: Re: Lag and warping of ground units (bots)
Post by: [QPS]_Sex_Bomb on 20-03-2013, 17:03:02
Your welcome!  :)

Before judging if it fixes your networking issues, use the "calibrate line" functionality at least one time.  Also, add the forgottenhope.exe inside your game listing and give it the highest priority.  Finally, be sure that the global setting "Favor Ping" is activated before gaming.  You can switch back easily to "favor downloads" when you really need the max download bandwidth.
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 20-03-2013, 17:03:35
Thank you for your hints! There is one more question I have though, what priority should I give the dedicated server I run? Also, does cfos deal with 127.0.0.1 (loopback), too? This is of utmost importance to me here, since I don't play COOP over the internet, but on a local set-up.
Title: Re: Lag and warping of ground units (bots)
Post by: [QPS]_Sex_Bomb on 20-03-2013, 17:03:25
Use also the highest for your server.  The application should bias any network connection, even the localhost (127.0.0.1).
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 20-03-2013, 18:03:25
Thanks a lot once more  :D ! I am testing it with these settings right now and have to admit that there isn't much of a change yet. However, I shall do as you advised and give this wonderful little tool some time to do it's work properly. I will keep you all up to date with my progress!
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 21-03-2013, 20:03:09
Well, it is now calibrated but I still have a very unstable and horrific ping. In the small window on the lower right of my screen no major ping activity is shown, however.
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 26-03-2013, 16:03:18
Having just received a reply to an e-mail I sent to the cFos support team I can confirm that what I feared to be the case is true-the issue cannot be resolved with the aid of cFos and it is not routed within the msconfig (time to reach 127.0.0.1 is exactly 0ms). I therefore concluded that the issue must lie in the server or it's set-up. Does anyone still have an idea how I could end this nightmare  :-\ ?
Title: Re: Lag and warping of ground units (bots)
Post by: kummitus on 27-03-2013, 12:03:57
You said in the other thread you had like 4 years or more old installation of windows? Could do miracles to reinstall it.
Title: Re: Lag and warping of ground units (bots)
Post by: [QPS]_Sex_Bomb on 27-03-2013, 18:03:35
Having just received a reply to an e-mail I sent to the cFos support team I can confirm that what I feared to be the case is true-the issue cannot be resolved with the aid of cFos and it is not routed within the msconfig (time to reach 127.0.0.1 is exactly 0ms). I therefore concluded that the issue must lie in the server or it's set-up. Does anyone still have an idea how I could end this nightmare  :-\ ?

Really sry to hear that.  I just hope you can benefit from your money investment when playing online.

Sry for my lack of reply in the last days, my girlfriend broke an ankle and i was on her side most of my spare time.
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 28-03-2013, 11:03:24
Thanks for your replies! No worries, QPS this tool was worth every penny since it helped me solve various other networking issues. Also, I hope that your girlfriend gets well again soon!
As for re-installing my Windows, I decided against it for two practical reasons: First, I will leave Europe for good in July and when I return to the US I will have alot of things to do, rendering gaming impossible for a year or maybe even longer. Secondly, getting my PC shipped would be more expensive than the PC's current value itself  :-X . After this hiatus, I will buy a new one that can easily run FH2 and ARMA II.. But the idea is very good indeed. Such an old installation of Windows truly does more harm than good. What I am thinking of though, is to buy a disc version of BF2 and to replace my current EA-download with it. I am confident that this might help.
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 29-03-2013, 15:03:41
I will now try to re-install BF2 for the first time ever. I will keep you up to date and will let you know if I survived it  :P .
Title: Re: Lag and warping of ground units (bots)
Post by: |7th|Nighthawk on 29-03-2013, 15:03:55
It is a long and painfull process but once you did it over and over (like me), it won't bother you anymore :P
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 29-03-2013, 16:03:23
Awesome. The EA downloader is FUBARed, proving once more that EA's customer support is, well, unique.
I will have to order it online as a disc version, and it might over a bloody week to arrive  >:( !
Title: Re: Lag and warping of ground units (bots)
Post by: |7th|Nighthawk on 29-03-2013, 18:03:16
EA downloader --> First thing to uninstall.
I don't like the idea of not having the game as hardware.
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 29-03-2013, 18:03:48
Well, me neither  ;D . The first thing which I will do as soon as I receive the disc version will be deleting all of this EA junk.
Title: Re: Lag and warping of ground units (bots)
Post by: LuckyOne on 29-03-2013, 18:03:06
Try running the key through Origin, if it's possible...  Maybe you can download it from there...
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 30-03-2013, 17:03:30
I just noticed something awkward: According to cmd, my ping is at 0. FH2 however says otherwise. Looking at the ping indicator when having selected my local dedicated server, I am shown pings ranging from 16 to above 60, at times even 2000 something. Does anyone have a logical explanation for this? Also, look what I found here: http://www.tweakguides.com/BF2_7.html
The section "Usersettings.con" is of special interest to me, but unfortunately altering the latency compensation didn't do much. However, I would greatly appreciate it if someone could tell me what is wrong with the ping issue and if someone could educate me on the use of the latency compensation  :-\ .
Title: Re: Lag and warping of ground units (bots)
Post by: ksl94 on 02-04-2013, 17:04:13
While searching for a cure for my issue, I stumbled across this: http://www.battlefieldsingleplayer.com/forum/lofiversion/index.php?t11286.html . I noticed that I am having pretty much the same questions and issues, apart from my CPU using more processing power on the server but still not 100% of it.