Jump to content

API List


ChubbyCarlisle

Recommended Posts

Now that BC V3 is out, is there any documentation of API changes? A few of my scripts no longer work and I am having a hard time finding what they have changed to. Any help would be appreciated! 

Link to comment
Share on other sites

Interested to know what no longer works, my crash and hash scripts seem to both function as they should, although I do get an error in crash when using engine.getHistory() "The history API is deprecated, you should store it yourself!"

Link to comment
Share on other sites

is there documentation of the API for v2 at least? if someone has a link please post it. i've hacked together some scripts based on the examples but now I would love to try building something more advanced :)

also i have another question. is there an *actual*  API for bc.game that can be accessed from outside the web UI? I know that 3rd party apps like DiceBot support this casino so I imagine there's some sort of REST API... anyone know what's up with that?

Link to comment
Share on other sites

The only documentation I've been able to find is in the help window in the custom script section, I'd love to get more detailed documentation but not very optimistic about it.

Link to comment
Share on other sites

I get the same history API error.  has there ever been documentation on crash or hashdice on what can be used or accessed?

Link to comment
Share on other sites

well i have been able to discover some properties and what not that i didn't see used in the example scripts, and I am guessing they used an existing game engine, that with a little research we could probably discover which one and find the documentation there.  I will see what i can find.

 

Link to comment
Share on other sites

On 3/27/2021 at 6:32 AM, Skele said:

well i have been able to discover some properties and what not that i didn't see used in the example scripts, and I am guessing they used an existing game engine, that with a little research we could probably discover which one and find the documentation there.  I will see what i can find.

 

Would love to see the findings as i'm also trying to find the documentation to improve my script.

Link to comment
Share on other sites

I can say with certainty that the GAME_ENDED event no longer triggers in Hashdice. Half of my script is busted due to the event not being picked up. Anyone else running into trouble with this event?

Link to comment
Share on other sites

My Stop on Loss code still works

Link to comment
Share on other sites

Looks like there was a problem with the GAME_ENDED event. According to support, it looks like it is fixed now. 

Link to comment
Share on other sites

1 hour ago, ChubbyCarlisle said:

Looks like there was a problem with the GAME_ENDED event. According to support, it looks like it is fixed now. 

I'm curious to know what you're even using game ended for in hashdice. My scripts just call game.bet and use the payout number to determine what happens next, wondering if there is any benefit to doing it differently. The beginning of mine look like this:

 game.onBet = function () {
    game.bet(currentBet, currentPayout).then(function (payout) {

Everything is wrapped in that and I use the returned variable payout (> 1 means a win) to determine what happens next and then it automatically loops until I call game.stop().

It would be really nice to have some more in-depth documentation so we could see what sort of game data is actually available.

Link to comment
Share on other sites

On 4/1/2021 at 12:08 AM, Quiet Earp said:

I'm curious to know what you're even using game ended for in hashdice. My scripts just call game.bet and use the payout number to determine what happens next, wondering if there is any benefit to doing it differently. The beginning of mine look like this:


 game.onBet = function () {
    game.bet(currentBet, currentPayout).then(function (payout) {

Everything is wrapped in that and I use the returned variable payout (> 1 means a win) to determine what happens next and then it automatically loops until I call game.stop().

It would be really nice to have some more in-depth documentation so we could see what sort of game data is actually available.

i guess when you call "game.stop()"  oand use game_ended event to verify it has indeed ended.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...