#Playlist Voting Feature

221 messages ยท Page 1 of 1 (latest)

wide jewel
#

Hey, Just need to check Bcs have not setup Playlist change with the help of votes?

I added my playlist inside votingmachine.py nd playlist name inside handle_chat.py is says vote successful, yet it is not fetching the playlist...Its not setup correctly?

#

@old kite

low furnace
#

@wide jewel u put in action part ?

wide jewel
#

Wdym?

low furnace
# wide jewel 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

wide jewel
#

Idk, i did the same which i ws taught by someone for api7

low furnace
wide jewel
#

I wnt bcs ?

low furnace
wide jewel
low furnace
#

Official one

wide jewel
#

Shall i do the same process?

low furnace
wide jewel
#

Oki

wide jewel
low furnace
wide jewel
#

Just a basic script

low furnace
wide jewel
#

U said to try with it

low furnace
low furnace
wide jewel
wide jewel
low furnace
#

It will be difficult to make a whole new ba_root folder

#

Which is compatible with it

wide jewel
#

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

low furnace
#

I thought u tested panda

#

Well nvm

#

Problem is

#

U have to make an action system to run the script change

#

I mean playlist change

wide jewel
low furnace
# wide jewel 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

wide jewel
#

Yeah it doesn't understand how to fetch but in api7 it ws inbuilt in bcs idk why they removed in api9

low furnace
#

There is confirmation text but no execution

wide jewel
#

Yeah!!!!!

low furnace
#

Didn't update it ig

wide jewel
#

-_-

#

Nor they replying

low furnace
wide jewel
#

I dont hve any idea how does tht work

low furnace
wide jewel
#

Will chk

#

Lter

low furnace
wide jewel
#

Will c, thnks for ur time โœจ

sharp moth
#

hii

low furnace
sharp moth
low furnace
sharp moth
#

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

wide jewel
#

Tht also api7

sharp moth
#

bcs api 9 script

#

u r using bcs api 7 or 9??

wide jewel
wide jewel
sharp moth
#

then try that above and edit whatever u want

#

thats working on my server

sharp moth
#

and u can add one command to show all the available playlist in normal_commands.py

wide jewel
sharp moth
wide jewel
#

Like this

                       "min_game_duration_to_start_vote": 1, "voters": []}}```


```        elif vote_type == "big":
            _ba.chatmessage("/playlist 560590")
            _ba.chatmessage("/end")```
sharp moth
#

one min join my server

#

search tam

sharp moth
wide jewel
#

Ok

#

Will try later

low furnace
sharp moth
low furnace
# sharp moth ...

I said bcoz u said that why u adding playlist code in voting machine nah

sharp moth
sharp moth
turbid quartz
#

@low furnace what's the issue

low furnace
turbid quartz
#

/playlist cmd not working

low furnace
#

Ig no action file nah

low furnace
turbid quartz
#

Which script he is using

low furnace
#

Ig they didn't update that

turbid quartz
#

That's not bcs script

low furnace
turbid quartz
#

Bcs script don't have playlist voting system

#

Custom one ig

sharp moth
turbid quartz
#

Playlist***

#

It have but playlist not

low furnace
sharp moth
#

I am using bcs api 9 script, voting system for playlist working ๐Ÿ™‚

sharp moth
sharp moth
low furnace
sharp moth
#

No I'm using bcs api 9 ya ๐Ÿ™ƒ

#

@turbid quartz

turbid quartz
#

Yea but u modified it ryt nah

sharp moth
#

Yes

turbid quartz
#

Hmm

#

So vortic is facing error in playlist cmd itself

#

Ig

sharp moth
#

No he facing error in playlist voting system ๐Ÿ™ƒ

turbid quartz
#

Bruh

sharp moth
#

๐Ÿค—

turbid quartz
#

When u type "solo"
It call the "/playlist (code)" cmd

#

Votingmachine code is working

#

Something is wrong in playlist cmd

sharp moth
#

If I type vp epic it will change it to epic playlist in my server, that's working

turbid quartz
#

Your playlist cmd is working perfectly

sharp moth
#

Yes ๐Ÿ™Œ

turbid quartz
#

But his not nah

sharp moth
#

๐Ÿ˜ต๐Ÿ˜ต

turbid quartz
#

Then add
_ba.chatmessage("/end")

turbid quartz
#

Hmm ๐Ÿค”

#

end cmd not working there

turbid quartz
#

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

low furnace
#

Helping everyone except me nah

turbid quartz
turbid quartz
low furnace
turbid quartz
#

Lol

low furnace
#

U don't want to solve this issue nah

turbid quartz
#

Ah ok cm dm

low furnace
turbid quartz
low furnace
wide jewel
#

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...

turbid quartz
wide jewel
#

Ik wht i hve installed

#

I added myself those codes

#

Guided by someone frm bcs i dont remember his name

wide jewel
#

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 ๐Ÿคท

turbid quartz
wide jewel
turbid quartz
#

Playlist voting system started from vh

#

I mean

wide jewel
turbid quartz
#

For*

wide jewel
#

Nd im using, /playlist only in voting mchine.py thats why it ws fetching in api7

turbid quartz
#

Yes

#

Bcs api9 playlist cmd problem ig

#

Ig habiba have solved it before

wide jewel
#

Nd tht person was beluga who helped m setup voting system in bcs

wide jewel
sharp moth
#

@wide jewel

wide jewel
#

My issue is just that playlist voting isnt working it says playlist voting suceed yet mybe bcs dont hve fetching system+_+ in api9

sharp moth
#

Playlist voting is succeed but the playlist is not applied in the game ?? @wide jewel

wide jewel
#

Hmm...

sharp moth
#

@wide jewel

wide jewel
#

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?

sharp moth
#

Ok ๐Ÿ‘Œ becoz i am using bcs api 9 it's work for me (playlist voting system)

sharp moth
wide jewel
#

Yeah sure

old kite
#

So much chat, I need LLM to summarise

wide jewel
sharp moth
old kite
#

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 .

wide jewel
#

Nd i like ur effects

sharp moth
#

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

sharp moth
turbid quartz
#

In settings.json playlist is there... Because to use that for ** playlist cmd **

wide jewel
#

Hm i will use saravaan files...

#

@sharp moth wht is that effect?

sharp moth
sharp moth