upl1nk-v01d / cod4x_v01d_mod

0 stars 0 forks source link

question about the gsc scripts. how do you activate them? all is bad command or cvar #24

Closed Daxy7 closed 1 year ago

Daxy7 commented 1 year ago

image

video log of the errors (over 1000)

https://user-images.githubusercontent.com/91396482/201602614-3ddbf630-3981-4d9d-9e36-57a1029206a8.mp4

Daxy7 commented 1 year ago

Okay, I got some of it working, but the scripts like swaying camera and no HUD aren't there. I'll try fixing the game mode. (g_gametype from dom to sab)

https://user-images.githubusercontent.com/91396482/202120489-dbf0c00e-dce5-454e-bf77-c01a252df407.mp4

Daxy7 commented 1 year ago

Damn what happened? image

Daxy7 commented 1 year ago

It kept adding bots indefinitely image

Daxy7 commented 1 year ago

This Is Epic (I finally got it working by not using z_localserver.bat) (idk why my cpu runs so bad) (I have an i5 3330)

https://user-images.githubusercontent.com/91396482/202140347-5d42e9df-749c-4b97-915e-7a04630ed738.mp4

upl1nk-v01d commented 1 year ago

Okay, I got some of it working, but the scripts like swaying camera and no HUD aren't there. I'll try fixing the game mode. (g_gametype from dom to sab) 2022-11-16.07-42-40-2.mp4

You have to set dvar 'set scr_hardcore 1' in your server.cfg file in cod4x mod dir. I provided updated mod with my server.cfg file with my settings in https://drive.google.com/drive/folders/186GyQw-vKV_bFqAfxdYtRPXcxtaSnoCb?usp=share_link

upl1nk-v01d commented 1 year ago

image

video log of the errors (over 1000) 2022-11-14.06-20-51-1.mp4

first of all please download files from my provided Google Drive link with updated mod version and all files from my github repo pressing green button 'CODE' and 'Download ZIP' and extract those github files to your cod4x/mods/v01d/ dir.

https://drive.google.com/drive/folders/186GyQw-vKV_bFqAfxdYtRPXcxtaSnoCb?usp=share_link

image

https://github.com/upl1nk-v01d/cod4x_v01d_mod

image

in _callbacksetup.gsc file located in cod4x/mods/v01d/maps/mp/gametypes/ folder you have to input this line: level thread scripts\main::init();

please see the pic below:

image

and set args on your cod4x executable:

image

At least this is my way to launch cod4x mod successfully. If this helped, then please close this issue.

Daxy7 commented 1 year ago

With +exec server.cfg and after following the steps it does this

image

without exec server.cfg i get this

ezgif-1-b22c2f726a

It only executes half of each mod and fails. How do you have your cod4x_bot_warfare set up?

upl1nk-v01d commented 1 year ago

I uploaded my modified bot warfare code to my git repo under maps/mp/bots. You can test it by deleting your current bot warfare code and replacing by my modified one.

Daxy7 commented 1 year ago

All of it is working now, but how do you disable the log file or add it? logfileerror

Daxy7 commented 1 year ago

On every other map round, half the scripts randomly don't run again. had to do map_restart to fix it

image

This script runtime error happens every time too after half minute of playing but couldn't see it due to the log file spam errors. I think this bug was occuring on your server too?

upl1nk-v01d commented 1 year ago

I added dvars "log_players", "log_motd" and "log_server_con" by default set to 1. Also you can set by your need in your custom.cfg file by setting to 0 ir any other value to disable. If you consider to make your own MOTDs, you can simply put "yyyy-mm-dd.log" format text file, e.g., named "2022-12-07.log" file in your [cod4x]/mods/[yourMod]/motd/ directory and then write your content in it. But then don't forget to set "log_motd" dvar to 1. Line "self _show_hint_msg(0,"buy ammo choosing weapon",1,1,1,0,1,-200,-70);" is now commented out.