Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - BlueSuede

Pages: [1]
1
Hey Seuntjie - I'm not really sure what's happening. I dont know if there's an issue with my script or something with Wolf.Bet. I've been working on a script the past couple days. It works fine when using Bitvest or Bitsler. However, when I'm trying to use it on Wolf.Bet I keep getting this "Encountered unexpected character '<'. ---> System.Xml.XmlException: Encountered unexpected character '<'." appearing in the log. Dicebot will only do the first initial bet, but after that, it stops. Here is the full log.


System.Runtime.Serialization.SerializationException: There was an error deserializing the object of type DiceBot.WolfBetClasses.WolfBetResult. Encountered unexpected character '<'. ---> System.Xml.XmlException: Encountered unexpected character '<'.
   at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, XmlException exception)
   at System.Runtime.Serialization.Json.XmlJsonReader.ReadAttributes()
   at System.Runtime.Serialization.Json.XmlJsonReader.ReadNonExistentElementName(StringHandleConstStringType elementName)
   at System.Runtime.Serialization.Json.XmlJsonReader.Read()
   at System.Xml.XmlBaseReader.IsStartElement()
   at System.Xml.XmlBaseReader.IsStartElement(XmlDictionaryString localName, XmlDictionaryString namespaceUri)
   at System.Runtime.Serialization.XmlReaderDelegator.IsStartElement(XmlDictionaryString localname, XmlDictionaryString ns)
   at System.Runtime.Serialization.XmlObjectSerializer.IsRootElement(XmlReaderDelegator reader, DataContract contract, XmlDictionaryString name, XmlDictionaryString ns)
   at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalIsStartObject(XmlReaderDelegator reader)
   at System.Runtime.Serialization.Json.DataContractJsonSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName)
   at System.Runtime.Serialization.XmlObjectSerializer.InternalReadObject(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
   at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
   --- End of inner exception stack trace ---
   at DiceBot.json.JsonDeserialize[T](String jsonString)
   at DiceBot.WolfBet.placebetthread(Object obj)
<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1"><meta name="title" content="WOLF.BET - Crypto Dice Game - Bitcoin Casino"><meta name="description" content="WOLF.BET is a high-quality dice game with unique features like 7-day streak bonus or wager contest! Each dice roll provides a lot of excitement and fun!🎲"><meta name="google" content="notranslate"><meta name="mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-status-bar-style" content="white"><link rel="apple-touch-icon" sizes="57x57" href="/assets/img/favicon/apple-icon-57x57.png"><link rel="apple-touch-icon" sizes="60x60" href="/assets/img/favicon/apple-icon-60x60.png"><link rel="apple-touch-icon" sizes="72x72" href="/assets/img/favicon/apple-icon-72x72.png"><link rel="apple-touch-icon" sizes="76x76" href="/assets/img/favicon/apple-icon-76x76.png"><link rel="apple-touch-icon" sizes="114x114" href="/assets/img/favicon/apple-icon-114x114.png"><link rel="apple-touch-icon" sizes="120x120" href="/assets/img/favicon/apple-icon-120x120.png"><link rel="apple-touch-icon" sizes="144x144" href="/assets/img/favicon/apple-icon-144x144.png"><link rel="apple-touch-icon" sizes="152x152" href="/assets/img/favicon/apple-icon-152x152.png"><link rel="apple-touch-icon" sizes="180x180" href="/assets/img/favicon/apple-icon-180x180.png"><link rel="icon" type="image/png" sizes="192x192" href="/assets/img/favicon/android-icon-192x192.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/img/favicon/favicon-32x32.png"><link rel="icon" type="image/png" sizes="96x96" href="/assets/img/favicon/favicon-96x96.png"><link rel="icon" type="image/png" sizes="16x16" href="/assets/img/favicon/favicon-16x16.png"><link rel="manifest" href="/assets/img/favicon/manifest.json" crossorigin="use-credentials"><meta name="msapplication-TileColor" content="#ffffff"><meta name="msapplication-TileImage" content="/ms-icon-144x144.png"><meta name="theme-color" content="#ffffff"><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
                     new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
                  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
                  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
               })(window,document,'script','dataLayer','GTM-MLW94ZL');</script><script type="text/javascript" src="/styles_head-d9b7c58.js"></script></head><body><noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MLW94ZL" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript><main id="app"></main><div class="loading loading__data loading--active preloader"><div class="loading--gif"></div></div><script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script><script>var OneSignal = window.OneSignal || [];
         OneSignal.push(function() {
            OneSignal.init({
               appId: "06b097ba-4f6f-44bf-9896-d192859c036c",
            });
         });</script><script type="text/javascript" src="https://10281cf8-35d4-4f92-926f-7573b336f155.snippet.antillephone.com/apg-seal.js"></script><script>console.log(
          '%c--------------------------------------',
          'font-size: 16px'
       );
       console.log(
          "%cDon't paste anything here!",
          'color: #f1001c; font-size: 22px'
       );
       console.log(
          '%cIf someone asked you to paste something here, they are most likely trying to hijack your account and take your coins.',
          'color: #f1001c; font-size: 22px'
       );
       console.log(
          '%c--------------------------------------',
          'font-size: 16px'
       );</script><script type="text/javascript" src="/index-d9b7c58.js"></script><script defer src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon='{"rayId":"528aa26e8e40e960","startTime":1571570762126}'></script>
</body></html>

2
Programmer Mode / Re: Reset on Bet result received does not match
« on: October 14, 2019, 06:37:30 pm »
Alright. Thanks for your insight. Much appreciated! The error handling function will be awesome. I'll keep an eye out for its release. I know your busy, so I'll continue using the latest version. Thansk again.

3
Programmer Mode / Reset on Bet result received does not match
« on: October 14, 2019, 05:23:17 pm »
Seuntjie - I know this error gets brought up quite a bit. But I'm hoping what I'm asking is a little different. I definitely do not want the safety feature removed. I greatly appreciate it. Today it's happened multiple times and Im just assuming it's something on Wolf.bets end. But if I can reset, then cool, if not, then no biggy.
In all of my scripts I create a resetbets() function. The function runs whenever my stoploss is reached or if my target profit has been reached.
The function recalculates my basebet, stoploss, and targetprofit based on my balance.

Is there a way I can run my resetbets() function if Dicebot shows the error "Bet result received does not match last bet place! Stopping for your safety. stopping" ?
I know this is protect us and is a great feature that DiceBot has.

What I'm looking to do is something like the following:

   if (error) then
      if (string.find(error_string, "Bet result received does not match last bet")) then
         resetbets()
      end
   end


This will allow me to start a new series and prevent dicebot from stopping all together. I know this error also happens if dicebot is getting results that are several bets behind, in that case is there a function that will reset the history so I can continue placing bets?

4
Programmer Mode / Re: Need help creating script base on presetlist.
« on: September 18, 2019, 01:33:26 pm »
How many lines are in each presetlist?

You can contact me on discord: XclusiveDigital#8102

5
Programmer Mode / Re: rsest to base bet not work..
« on: August 14, 2019, 12:57:02 pm »
Can you show your settings in Dicebot?

6
Programmer Mode / Re: sum 10 roll
« on: August 14, 2019, 12:20:27 pm »
Code: [Select]
myBasebet = 0.0000001
nextbet = myBasebet
chance    = 50.00
bethigh   = true
betA = 0.0000001   -- Bet this amount if B < A
betB = 0.001    -- Bet this amount if B > A

debugInfo = true

maxProfit = 0.01  -- stop script after profit goal reached
target = balance+maxProfit


resetseed()  -- Reset seed at start of script
resetstats() -- Reset stats at start of script

-- Average Variables

arrayA = {}  -- Array to store last 10 rolls
arrayA_sum = 0
arrayA_avg = 0
arrayA_maxSize = 10


arrayB = {}  -- Array to store last 30 rolls
arrayB_sum = 0
arrayB_avg = 0
arrayB_maxSize = 30




function dobet()


table.insert(arrayA, lastBet.Roll)
if(table.getn(arrayA) > arrayA_maxSize) then
table.remove(arrayA, 1)
end
arrayA_sum = 0
for k, v in ipairs(arrayA) do
arrayA_sum += v
end
arrayA_avg = arrayA_sum / table.getn(arrayA)

table.insert(arrayB, lastBet.Roll)
if(table.getn(arrayB) > arrayB_maxSize) then
table.remove(arrayB, 1)
end
arrayB_sum = 0
for k, v in ipairs(arrayB) do
arrayB_sum += v
end
arrayB_avg = arrayB_sum / table.getn(arrayB)

if(arrayB_avg > arrayA_avg) then
nextbet = betB
else
nextbet = betA
end


if(debugInfo) then
print("=====Debug: Additional Info=====")
print("arrayA: " .. table.concat(arrayA,", "))
print("arrayA Size: " .. table.getn(arrayA))
print("arrayA Sum: " .. arrayA_sum)
print("arrayA Avg: " .. arrayA_avg)
print("================================")
print("arrayB: " .. table.concat(arrayB,", "))
print("arrayB Size: " .. table.getn(arrayB))
print("arrayB Sum: " .. arrayB_sum)
print("arrayB Avg: " .. arrayB_avg)
end



end


I believe this is what you're looking for. If you need any adjustments, please let me know.

7
Programmer Mode / Re: sum 10 roll
« on: August 14, 2019, 12:12:37 am »
actualyy, I want to sum last 10  99/Roll value(A)   and  sum last 30   99/Roll  Value(B)
while  A<B  I want to make bet amount 0.0001   else 0.0000001


I'm not sure I'm understanding clearly. Lets say the last 10 rolls are 14.72, 13.18, 18.05, 61.47, 8.04, 72.03, 98.04, 77.88, 43.59, 13.91. You want to add all these up, which comes out to 420.91. From here you want 99/420.91, which comes out to 0.235204675583854. This number gets added to variable A.

Then the same thing is done for B, but with the sum of the last 30 rolls.


8
Programmer Mode / Re: sum 10 roll
« on: August 13, 2019, 11:24:27 pm »
Do you want the sum of the last 10 rolls to be the next bet amount? The payout amount?

9
Programmer Mode / Re: how to write if win then change to 60%~90% chance
« on: August 13, 2019, 01:48:50 pm »
Thanks, I've updated the variable.

wins is an internal variable and cannot be used as in BlueSuedes example. See https://forum.seuntjie.com/index.php?topic=2.0 for a list a of variables. Or just look in the variables tab in DiceBot.

look at the internal variable currentstreak.

From https://steemit.com/dicebot/@seuntjie/dicebot-programmer-mode-tutorial-1-1-variables
Quote
currentstreak, type double. Permission: Read Only. Shows the current winning or losing streak. When positive (>0), it's a winning streak. When negative (<0) it's a losing streak. Can never be 0. Only set after first bet.

10
Programmer Mode / Re: how to write if win then change to 60%~90% chance
« on: August 13, 2019, 12:57:33 pm »
This should work..

chance = 49.50
bethigh = true
basebet = balance
nextbet = balance
myWins = 0

function dobet()
   if (win) then
   myWins+=1
   if (myWins == 1) then
      chance = 60
      nextbet = balance
   elseif (myWins == 2) then
      chance = 70
      nextbet = balance
   elseif (myWins == 3) then
      chance = 80
      nextbet = balance
   elseif (myWins == 4) then
      chance = 90
      nextbet = balance
   elseif (myWins == 5) then
      chance = 70
      nextbet = balance
   elseif (myWins == 6) then
      chance = 80
      nextbet = balance
   elseif (myWins == 7) then
      chance = 90
      nextbet = balance
   end
   end
end

Pages: [1]