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

Pages: [1] 2
1
Try putting @target@ before the /w. From what I've seen it doesn't work properly if you put a @target@ after the whisper.

2
Help/Support / Re: Can I use calculations with a counter?
« on: May 23, 2016, 09:32:22 AM »
It is possible, just use @calc@ = Use operators to calculate mathematical equations. @calc@[op|num1|num2] , Available operations (+,-,*,/). E.g. @calc@[+|5|4].

What would this actually look like in the command?


Here you go guys. Had nothing better to do so I made the command for you. Need to make a custom log with the folder named Death, and inside that folder a txt file named deathcount. I've tested it and it works.

!death
Code: [Select]
@if@[@target@||+||!adddeath||@if@[@target@||-||!subdeath]]
!adddeath
Code: [Select]
@savefile@[Death\deathcount.txt,@calc@[+|@readfile@[Death\deathcount.txt]|1]]
!subdeath
Code: [Select]
@savefile@[Death\deathcount.txt,@calc@[-|@readfile@[Death\deathcount.txt]|1]]
!deathcount
Code: [Select]
You've died @readfile@[Death\deathcount.txt] times.

3
Help/Support / Re: Error trying to update
« on: May 23, 2016, 08:57:33 AM »
Probably should post the actual error log instead of the message saying it made a new error log. Go to your Deepbot folder and look in the logs folder. Find the error log with today's date and paste that.

4
Help/Support / Re: Developing RPG Mini Game
« 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?

5
Help/Support / Re: Developing RPG Mini Game
« 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)

6
Help/Support / Re: Developing RPG Mini Game
« 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.

7
Help/Support / Re: Developing RPG Mini Game
« 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.

8
Help/Support / Re: Developing RPG Mini Game
« on: May 19, 2016, 07:19:55 AM »
From the small amount of testing I can do since the main !fight command causes a crash, I've noticed that...

@readfile@[RPG\Classes\@readfile@[RPG\Users\@user@Class.txt].txt]

No longer works. I'm not sure why, but it won't actually read the txt file. It just shows up as blank. For example:

@^illumiboti: kennygstring, you are a Level 1 . Use !stats to check your Stats. Use !fight to get started

It should say Barbarian after Level 1, but it doesn't.

9
Help/Support / Re: Developing RPG Mini Game
« on: May 19, 2016, 07:07:53 AM »
Yeah it just happened in my stream today. Working on it tonight to see whats up

Here's the crash log:

16 May 20:51:27,354 - Error -Unable to log stream info.
Version : 0.9.1.0
Message : Unable to connect to the remote server
Stack Trace :
   at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)
   at System.Net.WebClient.UploadValues(String address, NameValueCollection data)
   at DeepBot.DeepBotAPI.DeepBotStreamInfo.#lgb.#hlb(Object )
------------------------------

18 May 09:20:30,087 - 0.9.1.0: Crashed Illegal characters in path.
18 May 09:20:30,105 - 0.9.1.0: Crashed    at System.Runtime.CompilerServices.AsyncServices.<ThrowAsync>b__0(Object state)
18 May 09:21:22,980 - 0.9.1.0: Crashed Illegal characters in path.
18 May 09:21:22,980 - 0.9.1.0: Crashed    at System.Runtime.CompilerServices.AsyncServices.<ThrowAsync>b__0(Object state)
18 May 09:21:49,697 - 0.9.1.0: Crashed Illegal characters in path.
18 May 09:21:49,697 - 0.9.1.0: Crashed    at System.Runtime.CompilerServices.AsyncServices.<ThrowAsync>b__0(Object state)
18 May 09:22:06,256 - 0.9.1.0: Crashed Illegal characters in path.
18 May 09:22:06,256 - 0.9.1.0: Crashed    at System.Runtime.CompilerServices.AsyncServices.<ThrowAsync>b__0(Object state)
18 May 19:14:24,643 - 0.9.1.0: Crashed Illegal characters in path.
18 May 19:14:24,643 - 0.9.1.0: Crashed    at System.Runtime.CompilerServices.AsyncServices.<ThrowAsync>b__0(Object state)

10
Help/Support / Re: Developing RPG Mini Game
« on: April 20, 2016, 05:14:56 AM »
Thanks so much for clearing it up and looking into it for us.

11
Help/Support / Re: Developing RPG Mini Game
« on: April 19, 2016, 11:07:54 AM »
UPDATE: So I talked with a support guy today and he mentioned that in our @rand@ problem will be fixed in the next update. We'll have to change the commands from:

@rand@[1|10]

to

@rand@[1|10|unique]

If you add the unique tag at the end, it tells the bot to do what we want. If you don't have it, all the @rand@ values will be the same. So looking forward to that.

12
Help/Support / Re: Developing RPG Mini Game
« on: April 19, 2016, 04:26:38 AM »
I've been working and tweaking this for a couple days now. I've added:

The option to be able to heal for the cost of channel currency with small, medium, large, and full heal being options. The heal checks to see if the player has made a character and if they have enough currency to purchase it.
Visual things like showing how much XP you need to level and how much HP you have remaining after a fight.
I've integrated mostly all messages into whispers except one that would be interesting to know, such as level ups will be announced in chat.
I did some balancing to it as well. Such as lowering the level chance encounter to 3 instead of 5. Being level 1 and encountering a level 5 and 6 wasn't really fun.

The next thing I'm working on is trying to get the values of each level up to be random. I see what you're saying how it just chooses a random value once, and then applies it to all of the @rand@ commands. I've talked to a couple DeepBot support guys and they didn't really know why either. One said that he has a command with a bunch of @rand@ commands in it, but its not consecutive like it is ours. They said that theirs had @if@ commands before it and it worked fine.

I planned on adding a store with weapons and armor as well. I've already made the initial !store and got it to work. But you can't buy anything just yet. I want to figure out why the @rand@ isn't picking a random value for each one before I implement it. It's doing the same thing as the level up. Do you have steam? It might be a lot easier to stay in contact through that if you're interested.

13
Help/Support / Re: Developing RPG Mini Game
« on: April 15, 2016, 12:08:00 PM »
I noticed whenever you lost a fight, you would lose GP. I also noticed its not keeping track of GP (at least I can't find where it's doing it), so I found this to be useless. I changed it to take away exp. It will go past 0 into the negatives, which I couldn't figure out how to stop. It doesn't seem to like adding positive numbers to negative numbers very well, but its a start, and not useless like taking GP was. Here's how I did it...


!playerdied
Code: [Select]
@user@ has been slain by a @readfile@[RPG\Enemies\log\@user@CurrentMonster.txt], and lost @readfile@[RPG\Enemies\log\@user@ExpPot.txt]Exp... @editpoints@[@user@|@readfile@[RPG\Enemies\log\@user@PointPot.txt]] @savefile@[RPG\Users\@user@Exp.txt,@calc@[-|@readfile@[RPG\Users\@user@Exp.txt]|@readfile@[RPG\Enemies\log\@user@ExpPot.txt] @savefile@[RPG\Users\@user@CurrentHealth.txt,@readfile@[RPG\Users\@user@MaxHealth.txt]]]]
I also added a cooldown, here's how I did it...

!fight
Code: [Select]
@if@[@readfile@[Cooldown/@user@.txt]||||!fightpass||!fightmath]I changed your original fight command to this, run elevated.

!fight1
Code: [Select]
@if@[@readfile@[RPG\Users\@user@.txt]||1||!fightencounter||@user@, you must create a character first. Use the !rpg command.]
This is/was your original !fight command. The reason I did this was because I couldn't figure out how to get it to run !fightencounter after successfully passing the cooldown. So to make the code shorter, I just sepearted it into two parts. It'll make more sense later.

!fightmath

Code: [Select]
@if@[>=||@calc@[-|@unixtime@|@readfile@[Cooldown/@user@.txt]]||@readfile@[Cooldown/limit.txt]||!fightpass||!fightfail @calc@[-|@unixtime@|@readfile@[Cooldown/@user@.txt]]]
!fightpass
Code: [Select]
@savefile@[Cooldown/@user@.txt,@unixtime@]!fight1So here's where I couldn't get it to trigger !fightencounter, and check to see if they've chose a class or not. So to make it easier I just make it into a different command.

!fightfail
Code: [Select]
I'm sorry @user@ but you can only fight every @readfile@[Cooldown/limit.txt] seconds. Prepare yourself and return in @calc@[-|@readfile@[Cooldown/limit.txt]|@target@] seconds.

I have lots more ideas if you would like to PM me. Thanks  8)

14
Help/Support / Re: Developing RPG Mini Game
« on: April 15, 2016, 12:27:45 AM »
I put in all the commands and it seems to work as intended. However, after each fight I get an Access Denied message at the end.

 ~KennyGString: !fight
 @^illumiboti: kennygstring encounters a Level 2 Globetrotting Vadon, with 154HP.
 @^illumiboti: kennygstring has slain the Globetrotting Vadon, and gained 0GP and 3Exp! Access denied

 ~KennyGString: !fight
 @^illumiboti: kennygstring encounters a Level 2 Gangster Familiar, with 167HP.
 @^illumiboti: kennygstring has been slain by Gangster Familiar, and lost 2GP... Access denied


Any ideas on that?

EDIT: You have run monsterdied and playerdied as elevated to stop getting the access denied message

15
Help/Support / Re: Developing RPG Mini Game
« on: April 14, 2016, 11:55:43 PM »
I just found this post, and is exactly what I was looking for. I will implement this and keep you updated on results.

Pages: [1] 2