callofduty4x / CoD4x_Server

Extended Call of Duty 4 server
https://cod4x.ovh
GNU Affero General Public License v3.0
335 stars 121 forks source link

problem starting bots with my mod #393

Closed gasofa closed 1 year ago

gasofa commented 2 years ago

Hi guys. I'm trying to add the cod4x bots to my mod When I start my server it gives me this error I don't know if it can be solved?

Grettings

File Handles:

24644 files in iwd files Adding fastfile 'mp_crossfire' to queue Loading fastfile 'mp_crossfire' used 42.96 MB memory in DB alloc Waited 219 msec for asset 'maps/mp/mp_crossfire.d3dbsp' of type 'col_map_mp'. ------- Game Initialization ------- gamename: Call of Duty 4 gamedate: Feb 12 2009 fs_ignoreLocalized is cheat protected. fs_ignoreLocalized is cheat protected. Loaded fastfile 'mp_crossfire' in 326ms (1ms waiting) Error: Error: script compile error Error: unknown function: @ 50210


----- Server Shutdown -----

With the reason: Server fatal crashed: script compile error unknown function

(see console for details)

Resolving cod4master.activision.com Sending master heartbeat from 192.168.1.41:28969 to 84.21.7.14:20810 Sending master heartbeat from 192.168.1.41:28969 to 188.165.57.239:20810 cod4master.activision.com resolved to 185.34.107.159:20810

gasofa commented 2 years ago

I keep seeing and starting the server in developer it gives me this

Waited 179 msec for asset 'maps/mp/mp_crossfire.d3dbsp' of type 'col_map_mp'. ------- Game Initialization ------- gamename: Call of Duty 4 gamedate: Feb 12 2009

Game: G_SetupWeaponDef

fs_ignoreLocalized is cheat protected. fs_ignoreLocalized is cheat protected. Loaded fastfile 'mp_crossfire' in 289ms (1ms waiting) Mistake: Error: script compile error Error: unknown function: (file 'maps/mp/bots/_bot_internal.gsc', line 424) if ( maps\mp\gametypes_missions::getWeaponClass( weap ) != "weapon_sniper" ) *


----- Server Shutdown -----

With the reason: Server fatal crashed: script compile error unknown function if ( maps\mp\gametypes_missions::getWeaponClass( weap ) != "weapon_sniper" ) (see console for details)

gasofa commented 2 years ago

Can somebody help me??

ineedbots commented 2 years ago

image Should exist unless you have another GSC that overrides the _mission script and removes this function

ineedbots commented 2 years ago

ModWarfare image

gasofa commented 2 years ago

Hi friend. Thanks for your answer.

I'm not exactly sure how to do it?

ineedbots commented 2 years ago

Remove mods that modify _missions

gasofa commented 2 years ago

ok modify in my mod the file _missions.gsc

and add these lines

init() { }

lastManSD() { }

still if it works

gasofa commented 2 years ago

now I this

Game: G_SetupWeaponDef

fs_ignoreLocalized is cheat protected. fs_ignoreLocalized is cheat protected. Loaded fastfile 'mp_crossfire' in 357ms (3ms waiting) Mistake: Error: script compile error Error: unknown function: (file 'maps/mp/bots/_bot_internal.gsc', line 424) if ( maps\mp\gametypes_missions::getWeaponClass( weap ) != "weapon_sniper" ) *


----- Server Shutdown -----

With the reason: Server fatal crashed: script compile error unknown function if ( maps\mp\gametypes_missions::getWeaponClass( weap ) != "weapon_sniper" ) (see console for details)

exeLocates commented 2 years ago

ok modify in my mod the file _missions.gsc

and add these lines

init() { }

lastManSD() { }

still if it works

no you misunderstood what @ineedbots said. in your mod you need to replace your mods _missions.gsc with the _missions.gsc in raw\maps\mp\gametypes aka the original cod4 _missions.gsc

gasofa commented 2 years ago

If the mod finally starts, you are the best !!!

The bots come out without a weapon, is that fixed?

thank you very much to all

gasofa commented 2 years ago

hi all it seems that the server is stable but the bots do not have weapons nor do they shoot

gretting

exeLocates commented 2 years ago

since whatever mod your using modified _missions.gsc its entirely possible it is modifying other vanilla GSC's aswell, BotWarfare is built to run with vanilla game files, beyond that you will have to modify the scripts to be able to run your mod.

most likely if the bot is spawning but with no weapon, the classes menu is modified somehow.

Is the pick a class menu different in your mod? what mod are you using here?

gasofa commented 1 year ago

Hi, thanks for your response The mod I use is the extreme in version 2.0

I don't know which files to modify, could you help me? I would greatly appreciate it Cheers

gasofa commented 1 year ago

no one can help me??

gasofa commented 1 year ago

After a few days I managed to solve it.

Thank you very much for your help

slimline33 commented 7 months ago

Hi, I have the same problem. Also that my bots have no weapons. Can you possibly tell me what exactly you did?

ineedbots commented 7 months ago

Use the latest commit of bot warfare, as well as the latest commit of cod4x server, you will need to compile it from source.

slimline33 commented 7 months ago

I tried already 😅 the compiling is not the problem. But now my server run for 10 minutes, then stops with "Server received signal: Segmentation fault"

proxict commented 6 months ago

Your issue isn't related to the server but rather to the mod. Please, open an issue at the relevant repository, which I believe is here.