Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 88 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
Author Topic: Weird Lags With a Script
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Sunday, Aug. 29, 2010 04:48 pm
ivan_cro writes...
Quote:
Well maybe beacuse those "15 servers" aren't home servers?
(That makes difference if you did not knew)



cresuso has said he is running the server in a VPS, running a home server does not mean high CPU usage either.
Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Sunday, Aug. 29, 2010 08:17 pm
.KiLL3R. writes...
Quote:
ivan_cro writes...
Quote:
Well maybe beacuse those "15 servers" aren't home servers?
(That makes difference if you did not knew)



cresuso has said he is running the server in a VPS, running a home server does not mean high CPU usage either.


Yeh exactly...this high cpu usage is a mod issue. And if i ran a server on my comp it'll be more powerful than on that VPS. (But thats not an hardware issue anyway)
Share |
BraX
General Member
Since: Apr 29, 2008
Posts: 413
Last: May 26, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Sunday, Aug. 29, 2010 09:42 pm
Maybe CPU usage is higher because you have invaild models in mod?
By saying invaild models i mean that some files from models are missing lmaybe you have xmodel without xmodelparts or xmodelsurfs. This may use CPU because CoD is searching for these files.
CPU usage may be higher if you have more players on server that sends too much commands to players, so if your code is too long, messed up and causes too many functions to run this can be issue.

And you should know that getentarray() with more than 64 entities in array may cause script runtime error that slow down cpu. In my advice you should start home server with +set developer 1 command to see if you have errors in script then just fix them.
edited on Aug. 29, 2010 05:47 pm by BraX
Share |
.KiLL3R.
General Member
Since: Oct 26, 2006
Posts: 1437
Last: Jul 3, 2017
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Sunday, Aug. 29, 2010 09:55 pm
BraX writes...
Quote:
Maybe CPU usage is higher because you have invaild models in mod?
By saying invaild models i mean that some files from models are missing lmaybe you have xmodel without xmodelparts or xmodelsurfs. This may use CPU because CoD is searching for these files.


Game assets are only loaded once when the map loads, if there is a problem with a model then it doesn't get loaded, if the model is then requested some time later by a script then it will produce the "model has not been precached" error.

BraX writes...
Quote:

And you should know that getentarray() with more than 64 entities in array may cause script runtime error that slow down cpu.


The game can use getentarray and loop well over 64 times before it slows down.
Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Tuesday, Aug. 31, 2010 04:15 pm
Hmm, Kill3r tried to help me yesterday....and we came up to put original zom mod.

I did it, i started renaming iwds to unknown extension (so game doesn't recognize them). I kept only paulus zom mod, and removed also all maps. I tried on a stock map, and cpu usage was exactly same (with or without weapon mod, with or without custom maps, with or without zom mod).

Kill3er told me he's running a cod4 server on a single core 2.4Ghz. And im running this cod2 server on single core 2.5Ghz with 1Gb of ram and 1Gb of swap...

So what is wrong ? Maybe cfg ? (im using same cfg for a while now).

Here are two cfgs if you wanna check :

Server.cfg : http://pastebin.com/fFtYC7ap

Zom.cfg : http://pastebin.com/Z89fUEFQ

I don't see what to check anymore :s
Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Sep. 1, 2010 01:10 pm
I changed today host again. Now i'm running server on linux and cpu usage is same as before...

I'll try to put only paulus mod and see what happens again.
Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Sep. 1, 2010 02:11 pm
Ok i put original paulus mod again without anything else (no extra mod) and cpu is 6-9% with 8 players oO

What is wrong here ?? Maybe the files i'm using to run server ? where can i download cod2 files ?
Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Sep. 1, 2010 02:35 pm
I launched my server with dm...on a custom map and cpu never goes above 3% with 7-8 people.

So problem is with Paulus mod i guess.

What different zom mod can i use for 1.0 ?
Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Wednesday, Sep. 1, 2010 08:48 pm
Can someone explain me how can i do this :

I got aaaZ which has size of ~370Kb. Now i removed some files from this iwd and when i put on server, people download that iwd but once file is downloaded, they get disconnected while connecting to server....

Whats wrong ?

I tried it on local, its working fine (no error). But when i upload, i get disconnected after file is downloaded (Same for others).

So how do i use iwd which has smaller size than old one (now its 300Kb instead of 370Kb).

Thanks in advance.
Share |
cresuso
General Member
Since: Aug 29, 2009
Posts: 51
Last: Apr 14, 2011
[view latest posts]
Level 3
Category: CoD2 Scripting
Posted: Saturday, Sep. 4, 2010 11:03 am
up....(please answer to last post if possible, i need solution)
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»