ChubbyCarlisle Posted March 25, 2021 Share Posted March 25, 2021 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 More sharing options...
Quiet Earp Posted March 25, 2021 Share Posted March 25, 2021 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 More sharing options...
spiritanimal Posted March 26, 2021 Share Posted March 26, 2021 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 More sharing options...
rungxanhlv Posted March 26, 2021 Share Posted March 26, 2021 I need simple Script for Crash V3. Please help! Link to comment Share on other sites More sharing options...
Quiet Earp Posted March 26, 2021 Share Posted March 26, 2021 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 More sharing options...
kenn3676 Posted March 26, 2021 Share Posted March 26, 2021 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 More sharing options...
Skele Posted March 26, 2021 Share Posted March 26, 2021 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 More sharing options...
zensu66 Posted March 28, 2021 Share Posted March 28, 2021 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 More sharing options...
ChubbyCarlisle Posted March 29, 2021 Author Share Posted March 29, 2021 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 More sharing options...
kenn3676 Posted March 29, 2021 Share Posted March 29, 2021 My Stop on Loss code still works Link to comment Share on other sites More sharing options...
ChubbyCarlisle Posted March 31, 2021 Author Share Posted March 31, 2021 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 More sharing options...
Quiet Earp Posted March 31, 2021 Share Posted March 31, 2021 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 More sharing options...
zensu66 Posted April 3, 2021 Share Posted April 3, 2021 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 More sharing options...
EkoEkey Posted April 4, 2021 Share Posted April 4, 2021 Is there a way in crash to get previous game payout multiplier, without betting, now that history no longer work? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.