Author Topic: Developing RPG Mini Game  (Read 10205 times)

0 Members and 3 Guests are viewing this topic.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Developing RPG Mini Game
« Reply #15 on: May 19, 2016, 10:44:54 AM »
I am trying to understand what is wrong exactly. Trying to reproduce what KennyGString is getting, but I don't know what @readfile@[RPG\Classes\.txt] would be and what it contains.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

WasabiIceCream

  • Youngling
  • *
  • Posts: 21
  • Karma: +2/-0
    • View Profile
    • Gameoverse
  • Twitch Name: Gameoverse
Re: Developing RPG Mini Game
« Reply #16 on: May 19, 2016, 06:44:14 PM »
I am trying to understand what is wrong exactly. Trying to reproduce what KennyGString is getting, but I don't know what @readfile@[RPG\Classes\.txt] would be and what it contains.

The .txt files there just contain the names of the 5 different character classes, unless he's changed it.
So, in his example, his "RPG\Users\@user@Class.txt" would contain a "2", and the file "RPG\Classes\2.txt" would contain the string "Barbarian".
I've documented all the code on the first page. Ours differ a bit in a few places, but crash just the same.

KennyGString

  • Youngling
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
  • Twitch Name: KennyGString
Re: Developing RPG Mini Game
« Reply #17 on: May 19, 2016, 08:03:57 PM »
What Wasabi said is correct. I haven't changed anything but maybe what things said, not the actual code itself.

KennyGString

  • Youngling
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
  • Twitch Name: KennyGString
Re: Developing RPG Mini Game
« Reply #18 on: May 22, 2016, 10:21:14 PM »
Update to version v.0.9.2.1 seems to have fixed the issue. Everything seems to be working again. I'll keep updating with results.

KennyGString

  • Youngling
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
  • Twitch Name: KennyGString
Re: Developing RPG Mini Game
« Reply #19 on: May 23, 2016, 01:42:04 AM »
Everything works, however whenever someones uses my heal command, it crashes the bot. Still does the command as intended though. I just get a popup box saying it crashed. Heres the log, if you need me to post my heal command setup, I will. It is 18 commands long though so, if this is all you need I think it would be easier.

22 May 13:35:48,496 - 0.9.2.1: Crashed Value cannot be blank
Parameter name: text
22 May 13:35:48,868 - 0.9.2.1: Crashed    at Discord.Channel.SendMessage(String text)
   at #W8b.#75b.#d7b(String #2q, String #Lc, Int32 #sac)
   at DeepBot.ChanMsg.ChanMsg.#r8b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
22 May 13:36:01,662 - 0.9.2.1: Crashed Value cannot be blank
Parameter name: text
22 May 13:36:01,662 - 0.9.2.1: Crashed    at Discord.Channel.SendMessage(String text)
   at #W8b.#75b.#d7b(String #2q, String #Lc, Int32 #sac)
   at DeepBot.ChanMsg.ChanMsg.#r8b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
22 May 13:36:36,162 - 0.9.2.1: Crashed Value cannot be blank
Parameter name: text
22 May 13:36:36,162 - 0.9.2.1: Crashed    at Discord.Channel.SendMessage(String text)
   at #W8b.#75b.#d7b(String #2q, String #Lc, Int32 #sac)
   at DeepBot.ChanMsg.ChanMsg.#r8b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
22 May 13:37:55,555 - 0.9.2.1: Crashed Value cannot be blank
Parameter name: text
22 May 13:37:55,556 - 0.9.2.1: Crashed    at Discord.Channel.SendMessage(String text)
   at #W8b.#75b.#d7b(String #2q, String #Lc, Int32 #sac)
   at DeepBot.ChanMsg.ChanMsg.#r8b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
22 May 13:38:16,364 - 0.9.2.1: Crashed Value cannot be blank
Parameter name: text
22 May 13:38:16,364 - 0.9.2.1: Crashed    at Discord.Channel.SendMessage(String text)
   at #W8b.#75b.#d7b(String #2q, String #Lc, Int32 #sac)
   at DeepBot.ChanMsg.ChanMsg.#r8b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Developing RPG Mini Game
« Reply #20 on: May 23, 2016, 03:36:17 AM »
Looks like there is certain text or message it can't send to Discord channel. Probably something with in the message of the command.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

DaZCSGO

  • Youngling
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
  • Twitch Name: DaZCSGO
Re: Developing RPG Mini Game
« Reply #21 on: May 23, 2016, 04:20:49 AM »
There's no fight steps, like you do !fightencounter and it just states you have slain or been slain but you can keep spamming that command even at low HP.
« Last Edit: May 23, 2016, 04:33:22 AM by DaZCSGO »

KennyGString

  • Youngling
  • *
  • Posts: 16
  • Karma: +1/-0
    • View Profile
  • Twitch Name: KennyGString
Re: Developing RPG Mini Game
« Reply #22 on: May 23, 2016, 05:45:30 AM »
Looks like there is certain text or message it can't send to Discord channel. Probably something with in the message of the command.

It all works though. Every message. Every action. It just gives me that error every time.

There's no fight steps, like you do !fightencounter and it just states you have slain or been slain but you can keep spamming that command even at low HP.

I don't believe you correctly added the commands. You start with !fight, not !fightencounter. Also thats why I included a cooldown timer, to prevent spam. Yes you can fight with low HP, why would you not be able to?