#Playlist Voting Feature
221 messages ยท Page 1 of 1 (latest)
@wide jewel u put in action part ?
Wdym?
U have to make a separate part to make the voting machine act for the playlist
It's like there is json file but no py file to guide
Idk, i did the same which i ws taught by someone for api7
Do u know how?
Umm ig try with Eric scripts
I wnt bcs ?
Try in that first then see if that works then problem is action file
Eric script? The default one which is in ballistica.net?
Yep
Official one
Shall i do the same process?
Yes if u are currently doing on api 9
Oki
@old kite
The default script doesnt have ba_root folder , shall i create it on my own?
That was the navigation path which was missing in your script so yeah make it
Whole ba_root ?
Yeah as its default script so it doesn't contain ba_root
Just a basic script
Oh u talking about eric scripts
No i thought u talking about bcs
It worked?
There is no ba_root folder
I ws talking about bcs!
Let me be clear u tested in eric scripts and there was no ba_root folder ryt
It will be difficult to make a whole new ba_root folder
Which is compatible with it
Sussh
The first msg i send while creating this ticket it ws for bcs script!
Thn u said try in default eric script
So i came bcz there is no ba root folder in eric
Yeah Ik that after I told u to try it on eric scripts and when u send today's msg i thought u said bcs don't have ba_root. I was be like wtf
I thought u tested 
Well nvm
Problem is
U have to make an action system to run the script change
I mean playlist change
Wdym by this?
U just have only json file which helps to run command. u have to make a playlist changer algorithm for your commands or vote to work. Now game will show that vote successful but it doesn't know how to do it
Yeah it doesn't understand how to fetch but in api7 it ws inbuilt in bcs idk why they removed in api9
There is confirmation text but no execution
Yeah!!!!!
Ig they became lazy 
Didn't update it ig
I dont hve any idea how does tht work
Just observe from api 7 and convert it by noticing all change in api 9
In api7 i just edited stuff in votingmachinr handlechat so idk whr that fetches frm xxd
Will chk
Lter
Ask chatgpt if u don't know much
Will c, thnks for ur time โจ
hii
Np
U id spoofer ?
what ๐
id spoofer means??
the above file commands like this i think u already know type vp <playlist-name>
before checking this add playlist for api 9 in setting.json
@wide jewel
Ur talking about vh script
Tht also api7
So we dont hve to do anything in votingmachine.py and handlechat.py?
9
no i modified that both handlechat.py and votingmachine.py
and u can add one command to show all the available playlist in normal_commands.py
See i added my playlist codes in votingmachine.py
Thn added tht playlist name in handlechat.py
Thn i went into game nd chk if working it says successful but doesnt end the playlist
I did not do anything in setting json.
why u add playlist code in votingmachine.py u can get it form setting.json , set the both name and code in setting.json "playlists": {
"elim": 412172,
"epic": 569393,
"ffa": 412175,
"ffasmash": 412179,
"smash": 412151,
"soccer": 412160,
"team": 12345,
"dm": 569392,
"vp1": 569391
},
like this
In api7 one of the bcs modder told m to use votingmachine for tht
Like this
"min_game_duration_to_start_vote": 1, "voters": []}}```
``` elif vote_type == "big":
_ba.chatmessage("/playlist 560590")
_ba.chatmessage("/end")```
if u set that playlist name and code in setting.json others can also easily modify the playlist code or if they want to add, they can add it easily from setting.json โ๏ธ
He want to make a voting system to change playlist as per players interest that's why voting machine is important
...
I said bcoz u said that why u adding playlist code in voting machine 
๐ ๐ broo i said to him dont add playlist name and code on .py file , u can set and get that from setting.json and that's for if other's using their script they dont know where to change the voting playlist name and code ๐
Oh sorry bro 
try this if any error, ping me ๐ฎ
Well the playlist change confirmation text shows but no execution
/playlist cmd not working
Ig no action file 
Only showing text that it happened but no execution
Which script he is using
That's not bcs script
He said he using bcs 
Bcs script has voting system ๐๐
Ohh i see but this negga telling me it was there in api 7 
I am using bcs api 9 script, voting system for playlist working ๐
U sure ?
I just modified little things in handlechat.py and voting machine.py
Yes โ
Well then ok
That's vh code

Yea but u modified it ryt 
Yes
No he facing error in playlist voting system ๐
Bruh
๐ค
When u type "solo"
It call the "/playlist (code)" cmd

Votingmachine code is working
Something is wrong in playlist cmd
See here
If I type vp epic it will change it to epic playlist in my server, that's working
Your playlist cmd is working perfectly
Yes ๐
But his not 
Ohh
Playlist working too?
๐ต๐ต
Lol
def end_game():
"""
Ends the currently running BombSquad game safely.
"""
try:
activity = bs.get_foreground_host_activity()
if activity is not None:
with activity.context:
activity.end_game()
except Exception:
pass
_ba.chatmessage("/playlist ")
end_game()
Try this
Helping everyone except me 

This is small issue tho
Ig I'm the issue ๐คง
Lol
U don't want to solve this issue 
Ah ok cm dm
Jk
Nub 

It has
As far as i ws using in api7 it had nd it worked...
But the same thing i tried in Api9 so its not fetching...
It's vh script
Not tht dumb
Ik wht i hve installed
I added myself those codes
Guided by someone frm bcs i dont remember his name
Say is this VH?
This is bcs api7,
I dont hve backup file for api9 i deleted bcz it wsnt fetching...
But i hve did same thing in Api9 too...
Why will i even create ticket in bcs for VH Script ๐คท
I'm not saying ur dumb.. 
.
.
So whts playlist.py file dng in bcs tools folder?
It's for playlist cmd
For*
So dont tell its VH
Nd tht person was beluga who helped m setup voting system in bcs
Not working it alwyz say failed attempt 1-2-3-4-5...goeson
Hmm
Which cmd is not working?? /playlist??
@wide jewel
@sharp moth this ws not for my concern or issue
My issue is just that playlist voting isnt working it says playlist voting suceed yet mybe bcs dont hve fetching system+_+ in api9
Playlist voting is succeed but the playlist is not applied in the game ?? @wide jewel
Hmm...
I will hve to install bcs api9 again i will try nd letu know
I hve to add playlist name nd code in setting.json as well aprt frm those file?
Ok ๐ becoz i am using bcs api 9 it's work for me (playlist voting system)
Yes but in setting.json that has already playlist name and code but that is api 7 games u need to modify to use ur api 9 game playlist on there
Yeah sure
So much chat, I need LLM to summarise
Bcs api9 playlist voting not working(after successful text )...fetching of playlist via votes are available in api9
So it's an existing feature in bcs api 9
Or you added this your own ?
From message it appears that you added something.
Nvm
Is playlist change working with chat command ?
If not , then first fix that.
votimachine was designed in a manner that should allow adding new votes action easily , so it shouldn't be a problem if playlist vote is not already available .
def show_available_playlists(clientid: int) -> None:
try:
playlists = setting.get_settings_data().get('playlists', {}) or {}
names = sorted(playlists.keys())
except Exception:
names = []
if not names:
send("No playlists configured in settings.json (playlists).", clientid)
return
msg = "\ue046______________|AVAILABLE PLAYLISTS|________________\ue046\n"
for i, name in enumerate(names, 1):
if i % 7 == 1:
msg += "\n\ue046 || " + name
else:
msg += ", " + name
msg += "\nUse: vp <name> to start a vote."
send(msg, clientid)
add this in ur commands/normal_commands.py to show all available playlist name in game from setting.json
elif command in ['sap']:
show_available_playlists(clientid)
and also add these in Excelcommand method in normal_commands.py instead of sap what u want u can change and add that command name in commands array
i already send u that both votingmachine.py and handlechat.py try that
Playlist voting system not available in api9 ๐
In settings.json playlist is there... Because to use that for ** playlist cmd **
Added by own ...
I created that, refered by surrounder effect, I will send effect method when I reach home ๐ก @wide jewel
Okie
I see ๐