Game Modding | Call of Duty: Black Ops 3 | Scripting
Viralinvlent:
hey i just added some code for a flashlight and it seems to not work and i only get these errors:
"R:\steam games\steamapps\common\Call of Duty Black Ops III\sound\snd_convert.exe" pc usermaps\zm_test usermaps\zm_test zone_source usermaps\zm_test english zm_test
ERROR: r:\steam games\steamapps\common\call of duty black ops iii\share\raw\sound\aliases\user_aliases.csv
ERROR: '//flashlight' Line Number: 0
ERROR: Parse error in column 'VolumeGroup'. Value 'VolumeGroup' is not valid. //flashlight had empty field VolumeGroup.
ERROR: '//flashlight' Line Number: 0
ERROR: Parse error in column 'DuckGroup'. Value 'DuckGroup' is not valid. //flashlight had empty field DuckGroup.
sharpgamers4you:
Can you send the exact code/script?
mrlednor:
if u didnt fix this then remove this line out your csv its not needed '//flashlight'
mario807906:
Can you send the exact code/script?
Sleepy216:
am I able to turn the flash light on and off at will if so how do I do that or even am I able to to make it where when u go in a room it turns off automatically
mario807906:
If you are using the flashlight script i think you are, you turn it off by double tapping the USE key.
If you didn't want it to do that, you can remove the function, and script the flashlights to only be on while a player is touching a trigger multiple.
If you were wanting to do something like nightmare, you just set the clientfield for each player when you want them to turn on.
Sleepy216:
You'd have to script it yourself, the flashlight script(at least the one I found online) just allows the player to turn on/off the flash light by double tapping the USE key. However it'd be pretty easy to change it for what you are wanting.
How exactly are you wanting the flashlight to function?
mario807906:
You'd have to script it yourself, the flashlight script(at least the one I found online) just allows the player to turn on/off the flash light by double tapping the USE key. However it'd be pretty easy to change it for what you are wanting.
How exactly are you wanting the flashlight to function?
Sleepy216:
I want it to just be turned off and on by the player by say just cliking f or something but I tried in game by double clicking but it didn’t work. I don’t really know how to script so if u have a script I can use that be pretty cool.
mario807906:
https://forum.modme.co/threads/usable-flashlight.1213/
this is the one i use, it works like that.
mario807906:
https://forum.modme.co/threads/usable-flashlight.1213/
this is the one i use, it works like that.
Sleepy216:
is there a way to modify or add a script in sg4y's thing. because I tried and downloaded the link one and it didn't work.
mario807906:
Sorry I don't know who that is, or where their flashlight script is. If you download the script from the megalink in the post by dreamzyy , it should work for you.
Like i said, I use it right now, and it works great. The only thing that is wonky with it is throwing nades breaks the flashlight, but after you get it installed, I can send you the fix I made for that issue.
sharpgamers4you:
You can add script (functions) where it triggers the flashlight when you go into a room using trigger multiple.
I am on vacation so can't help at this moment
mario807906:
You can add script (functions) where it triggers the flashlight when you go into a room using trigger multiple.
I am on vacation so can't help at this moment
Sleepy216:
but i want the player to have the choice to turn it off or on but thanks sg4y.
mario807906:
aaaay it works but do you know how when u use it to make it make the button click noise when u turn it off and on, the sound assets and alias came with it i just need to know how to make it play.
Sleepy216:
aaaay it works but do you know how when u use it to make it make the button click noise when u turn it off and on, the sound assets and alias came with it i just need to know how to make it play.
mario807906:
I'm glad it worked for you. So you can open the sound alias they gave and copy the line into a sound alias you are already using in your map, or you can just include that sound alias as well. I recommend just copying the one line to another alias since it is the only thing in there.
That's the line you want to add to one of your aliases.
If you want to add their alias, you can include it in the file located here
root\usermaps\yourmapname\sound\zoneconfig : open yourmapname.szc
only do one or the other, you don't want duplicate sounds
Sleepy216:
hey is this for the sg4y or the other one because it doesn't work for me I am using sg4ys, but when I try to use the other one it never works i put everything in where it is supposed to but i never get a flashlight in game i think it mainly because it doesn't give you anything to put in your gsc and csc unlike sg4y which includes a read me instructions. idk tho
mario807906:
Like I said I don't have sg4y's script. For all I know this is a version of his. Unless Dreamzzy actually made it, which isn't specifically stated just that it was used, nor does it say in the readme file. unless xoxor4d is a username.
I'm guessing that you didn't look at the folders before dragging and dropping them to your root folder?
because there's a folder for "yourmap" which has ther scripts you need to add to your file.
"flashlight\usermaps\yourmap\scripts\zm\"
That's where the 2 scripts called "zm_yourmap.csc/gsc" are.
you just add each chuck of code realtive to where it is in those scripts. that is also where the .zone stuff it that you need to add to your maps zonefile. well it's a few folders back.
Like I said I don't have sg4y's script. For all I know this is a version of his. Unless Dreamzzy actually made it, which isn't specifically stated just that it was used, nor does it say in the readme file. unless xoxor4d is a username.
I'm guessing that you didn't look at the folders before dragging and dropping them to your root folder?
because there's a folder for "yourmap" which has ther scripts you need to add to your file.
"flashlight\usermaps\yourmap\scripts\zm\"
That's where the 2 scripts called "zm_yourmap.csc/gsc" are.
you just add each chuck of code realtive to where it is in those scripts. that is also where the .zone stuff it that you need to add to your maps zonefile. well it's a few folders back.
Sleepy216:
Oh frik I guess I didn’t do it right-well imma go and retry the other one instead of sg4ys and see I can get it to work sorry for me stupidity. Thanks man I will update if it doesn’t work.
Holofya:
Oh boy. So I guess there isn't a release for the flashlight, just small conversations that have links here and there. I'm pretty sure Sleepy216 has the script that I modified when Mr. Lednor discovered the fx broke when the player throws a grenade. I'm going to drop the latest flashlight I have in a release as soon as I finish up the last few tweaks and I'll put the linkie here. Probably best to have a release as a consolidated spot for flashlight talk anyway.
mario807906:
It's all good! I can't tell you how many times I've looked over a simple fix. Sorry if my reply sounded entitled or douchey, that wasn't my intention.
Good luck and I hope it works for you
mario807906:
Oh boy. So I guess there isn't a release for the flashlight, just small conversations that have links here and there. I'm pretty sure Sleepy216 has the script that I modified when Mr. Lednor discovered the fx broke when the player throws a grenade. I'm going to drop the latest flashlight I have in a release as soon as I finish up the last few tweaks and I'll put the linkie here. Probably best to have a release as a consolidated spot for flashlight talk anyway.
dakh:
If you are using the flashlight script i think you are, you turn it off by double tapping the USE key.
If you didn't want it to do that, you can remove the function, and script the flashlights to only be on while a player is touching a trigger multiple.
If you were wanting to do something like nightmare, you just set the clientfield for each player when you want them to turn on.
mario807906:
It would be great if you could give me a script that would turn on the flashlight when the player touches the trigger.
Sleepy216:
Oh boy. So I guess there isn't a release for the flashlight, just small conversations that have links here and there. I'm pretty sure Sleepy216 has the script that I modified when Mr. Lednor discovered the fx broke when the player throws a grenade. I'm going to drop the latest flashlight I have in a release as soon as I finish up the last few tweaks and I'll put the linkie here. Probably best to have a release as a consolidated spot for flashlight talk anyway.
It would be great if you could give me a script that would turn on the flashlight when the player touches the trigger.
mario807906:
Oh boy. So I guess there isn't a release for the flashlight, just small conversations that have links here and there. I'm pretty sure Sleepy216 has the script that I modified when Mr. Lednor discovered the fx broke when the player throws a grenade. I'm going to drop the latest flashlight I have in a release as soon as I finish up the last few tweaks and I'll put the linkie here. Probably best to have a release as a consolidated spot for flashlight talk anyway.
sharpgamers4you:
hey is this for the sg4y or the other one because it doesn't work for me I am using sg4ys, but when I try to use the other one it never works i put everything in where it is supposed to but i never get a flashlight in game i think it mainly because it doesn't give you anything to put in your gsc and csc unlike sg4y which includes a read me instructions. idk tho
Harry Bo21:
Make sure you specify the folders in the sounds, because it will work since it has the same name "flashlight_click"
Should work double check, and try to add it into your useraliases so it's definitely implemented into your map/mod
mario807906:
He said none of it works
He said nothing about sounds
Most likely case is he hasn’t added the #using in gsc/csc
Harry Bo21:
I did for of downloads the one u suggested still didn't work, and sg4ys just didn't play sound and I did the alias in my thing and i did put the #using in my gsc csc.
mario807906:
Then it’s not “auto threaded” there’s prob a init function in the script you have to call
Thread Scriptname::functionname()
It didn’t play a sound because it obv isn’t working “at all”
sharpgamers4you:
yep there is no function in the gsc or csc that calls the sound and i cant script so idk how to do it. basically is anyone able to come up with a script that works.
Holofya:
So are you the original creator of the flashlight script? I would like to properly credit the maker of the script, I'd feel like a dbag otherwise.
Thanks for taking your time to fix it up, can't wait for the release!
Holofya:
sorry to be annoying but any update on that flashlight.
Sleepy216:
I'm not the original creator but I fixed a bug it has. I have the full thing now and someone requested another feature so I'm going to put it up with some instructions. I'll also package it up all nice and neat. (it has double press to turn on as well as auto activation by triggers)
Holofya:
Ah i gotcha! I ended up doing my own fix for the grenades when I found out they break the flashlight. I'm glad you mentioned that you made it workable with triggers, Dakh will be hyped for that!
Do you happen to know the original creator of the script? I heard YAW mention "their flashlight", and it too broke when throwing nades. However I feel Chaos would've put his name in the readme if it was his script. I guess it isn't a huge deal about the credit, but it still makes me feel bad.
Holofya:
Posted my "release" of the updated files I have/made/used. You can find it here: Flashlight v1.0
sharpgamers4you:
Posted my "release" of the updated files I have/made/used. You can find it here: Flashlight v1.0
sharpgamers4you:
Posted my "release" of the updated files I have/made/used. You can find it here: Flashlight v1.0
Holofya:
If its like when entering zone or trigger multi then fuck yeaaa like it better❤👍🏼
sharpgamers4you:
It has both ;)
I work a lot too so I don't exactly have much time either, plenty of little side projects that keep me way too busy on top of that