• Welcome to Valhalla Legends Archive.
 

Help with cleanslatebot.ocx

Started by SkullzeD, August 02, 2005, 11:17 AM

Previous topic - Next topic

Networks

Those of you who find that CSB is a bot development programmer's worst enemy, do you think that the fake programmers currently who are copying and pasting your code right now are any  better the those CSB users? I have more respect for a person who is using CSB then a person who is copying and pasting open source code and taking the credit. At least we know they're learning and making an attempt, opposed to the leechers. I see nothing wrong with CSB, if you're afraid to help "newbies" in bot development then don't, I see no difference in posts then what we may already get such as "I want to make a bot where do I start", we'll simply now get "I am stuck on CSB, how do I do such and such", and we point them to a thread like usual.

Also are there not ALREADY 200 look-a-like bots? My conclusion is, CSB cuts down leeching, and provides people a start into not only bot development but into programming. If you don't support it don't use, if hate helping people, don't, just keep in mind that we were all newbies once. I believe CSB distinguishes the new bot dev programmers from the refined unlike what's going on now.

Blaze

I remember someone releasing a csb-type ocx that does wc3 already..

I just searched and found it http://forum.valhallalegends.com/phpbbs/index.php?topic=8185.0 but its no longer on the site.  Ohh well.
Quote
Mitosis: Haha, Im great arent I!
hismajesty[yL]: No

Yegg

I remember that program. I didn't like it too much. But I agree with Networks. CSB could help cut down on source stealing if it were even more updated. Perhaps if it supports all clients? Cdkey and non-cdkey clients?

Mr. Neo

Quote from: Blaze on August 05, 2005, 01:44 PM
I remember someone releasing a csb-type ocx that does wc3 already..

I just searched and found it http://forum.valhallalegends.com/phpbbs/index.php?topic=8185.0 but its no longer on the site.  Ohh well.

I've got a copy of this OCX if anyone is interested in it.  It's just the OCX, no documentation or anything but it seems like it would be pretty self-explanatory.  If you want it, let me know and I can email it to your or something.

Topaz

Do you have the source to it? Seeing as how you mentioned you don't have any documentation for it, we'll need it to utilize the functions.

Mr. Neo

No source either.  To find out the functions you'd need to utilize, I'd recommend you pick yourself up a type library viewer.  But, if your too lazy to do that, then look below for a complete listing of members in the OCX.

TypeInfos:
BNLSLogon

Members:
Event BNETConnected
Event BNETConnecting
Event BNETDisconnected
Event BNETError (Number As Integer, Description As String)
Event BNLSConnected
Event BNLSConnecting
Event BNLSDisconnected
Event BNSLError (Number As String, Description As String)
Event Broadcast (Message As String)
Event ChangePasswordProofResult (Result As Boolean, Message As String)
Event ChangePasswordResult (Result As Boolean, Message As String)
Event CheckRevisionResult (Result As Boolean, ErrorNumber As String, ErrorMessage As String)
Event CreateAccountResult (Result As Boolean, Message As String)
Event FlagsUpdate (Username As String, Ping As Long, flags As Long, Message As String, statsString

As String)
Event HandlePackets (Data As String)
Event JoinedChannel (Channel As String, flags As Long)
Event LoggedOn (UserName As String, Message As String, statsString As String)
Event PasswordHashResult (Result As Boolean, Message As String)
Event PasswordProof (Result As Boolean, Message As String)
Event ReceivedChannels (ChannelList As String)
Event ServerError (Message As String)
Event ServerInfo (Message As String)
Event UserEmote (Username As String, flags As Long, Message As String)
Event UserInChannel (Username As String, Ping As Long, flags As Long, Product As String, Message

As String, statstring As String)
Event UserJoined (Username As String, Ping As Long, flags As Long, Product As String, Message As

String, statstring As String)
Event UserLeave (Username As String, Ping As Long, flags As Long)
Event UserTalks (Username As String, Ping As Long, flags As Long, Message As String)
Event WhisperFrom (Username As String, flags As Long, Message As String)
Event WhisperTo (Username As String, Message As String)

Property CDKey As String
Property CDKey2 As String
Property CDKeyOwner As String
Property ChangePassword As Boolean
Property HomeChannel As String
Property NewPassword As String
Property Password As String
Property Product As String
Property Server As String
Property Use0msPing As Boolean
Property UsePlug As Boolean
Property Username As String

Sub Connect
Sub ConstructPacket (DataType As String, Data As String)
Sub Disconnect
Sub Send (Data As String)
Sub SendConstructedPacket (PacketID As Byte)
Sub strcpy (Source As String, ByVal nText As String)


Networks

Quote from: rabbit on August 05, 2005, 04:54 PM
Quote from: Networks on August 05, 2005, 10:10 AM
Those of you who find that CSB is a bot development programmer's worst enemy, do you think that the fake programmers currently who are copying and pasting your code right now are any  better the those CSB users? I have more respect for a person who is using CSB then a person who is copying and pasting open source code and taking the credit. At least we know they're learning and making an attempt, opposed to the leechers. I see nothing wrong with CSB, if you're afraid to help "newbies" in bot development then don't, I see no difference in posts then what we may already get such as "I want to make a bot where do I start", we'll simply now get "I am stuck on CSB, how do I do such and such", and we point them to a thread like usual.

Also are there not ALREADY 200 look-a-like bots? My conclusion is, CSB cuts down leeching, and provides people a start into not only bot development but into programming. If you don't support it don't use, if hate helping people, don't, just keep in mind that we were all newbies once. I believe CSB distinguishes the new bot dev programmers from the refined unlike what's going on now.
While I agree that CSB > Leech, CSB gives the impression to people that they can make a bot and be famous with little work and little knowledge in VB.  This leads to numerous "wtfomghelpidunnowhatimdoing" type threads, which are really spam.  If anyone who downloads VB/VS from the internet and gets a copy of CSB, you'd think they'd at least have some knowledge of the "Search" button, but sadly most do not.  I dislike the majority of people CSB has brought to these forums (2 post members, newbies who can't work the '.' key, and people who don't understand the concept of the "Search" feature).

While all that is true in some respects, many of the leechers are the same exact way and I see no difference other then respecting the CSB users much more. Most people don't learn about the search button until the next time around honestly...

Mystical

Well, I dunno why, but about lil less then half a year ago, I found a somthing  that said "Cuphead" made a CleanSlateBot3 But he never got to release public, but Denial had the source, so Denial let it out to the public because Cuphead went to Jail? or somthing? ive looked through the source it self, not to bad.. supported every thing i could see at the moment, but was it made by Cuphead? i might still have the source on a CD somewhere, I'll look into finding it and maybe post it here.

It was fully commented, and yes i am sure it wasnt CleanSlateBot2



Yegg


Networks

Quote from: Yegg on August 08, 2005, 08:15 AM
Wasn't that his "New CSB"?

That was the supposed to be CSBv3 and he was working with Zorm on it however Zorm wasn't, I guess as ethusiastic to work on it so the project stopped and Cuphead had his own issues to attend to.

MyStiCaL: Forged already posted the link back on page 2.

SkullzeD

i support open source programs, because ive learned much with them. when i made a crappy game 3 years ago(i was 10 then =P) i started vb, and copy-pasted parts of different open sources and slightly modified them. but i didnt add a credit to anyone except me. well, after that game i stopped vb and only played war3. one guy made a map, and someone changed it and didnt gave him credit. he was so mad at him that in the next ver of his map he wrote: that bitchass faggot called <name> stole my map! dont play his map it sux.... well, there i realised he was wrong for writing that. he could write smthin like: NOTE: there is another version of this map, named <mapname> by <name>. was that hard? for him, yes.

you may think this babbling i wrote is useless. trust me, it isnt.
2 years after that (i was 12) i modded few td-s. i did that because i loved them so much i wanted to improve them. those who made em had vision, they knew what they wanted to do. sadly, they didnt had skill, and i opened them in map editor to see the source. it was noobish, and i improved all of it, made it easyer to change, added comments.... after i did that, i changed intro screen a lil. at the bottom of the text, i added: 'nerfed by skullzed'. and yes, the version was 1.12 and i made the modded map to be 1.12b. and thats it!

you may now wonder why did i wrote all this.
i wrote it because there are lots of ppl like this mapmaker, and this 'stealer', but not much ppl like i am.
im maybe not the smartest kid in the universe, but i know that if you dnt want to make money with the program/game you make you should make it open-source so others can learn from it. here are few tips if youre making a open source (this tips could be usefull even if youre not making open source cause then it will be harder for you to get lost in your code):
1. Comment
   a. write why you made that part of code.
   b. write what the code is doing
   c. comment variables, for what they are for
2. Learn to work with arrays, so you can escape things like bunny1, bunny2, bunny3. with an array it would look like bunny(1). it also allows you much easier coding.
3. Try not to use commands like goto
4. name variables like life or health if it is a life value of a unit or smthin. NEVER name variables like a, b, c...
5. use sub procedures, it makes your life easier.

i know this post is off-topic, but im working with vb for a year, and i learned some things.
hope it will prove usefull for you all.

btw,
NEVER steal some1's code. LEARN from it, and write it with your own hands, on your own way.

Forged

Quote from: Mr. Neo on August 05, 2005, 03:10 PM
Quote from: Blaze on August 05, 2005, 01:44 PM
I remember someone releasing a csb-type ocx that does wc3 already..

I just searched and found it http://forum.valhallalegends.com/phpbbs/index.php?topic=8185.0 but its no longer on the site.  Ohh well.

I've got a copy of this OCX if anyone is interested in it.  It's just the OCX, no documentation or anything but it seems like it would be pretty self-explanatory.  If you want it, let me know and I can email it to your or something.

I think this aocx uses chronic's bnls id and pass as there is no option to set the id, and for some reason or another I can't seem to get past Connecting to BNLS
QuoteI wish my grass was Goth so it would cut itself

MyndFyre

Quote from: SkullzeD on August 12, 2005, 11:55 AM
1. Comment
   a. write why you made that part of code.
   b. write what the code is doing
   c. comment variables, for what they are for
4. name variables like life or health if it is a life value of a unit or smthin. NEVER name variables like a, b, c...
Interesting post in general.  Not going to say you're wrong, but I wanted to point out my disagreement with 2 of your 3 points of contention with comments.
Writing why you wrote a particular piece of code is worthwhile.  However, writing what a code snippet does is not necessary for several reasons.  Writing what code does 1.) can change as the code is updated, and 2.) a competent programmer should be able to understand what each line of it does.  The *why* should be the bigger purpose comment (for example, "This part of the subroutine updates the state of the object to ensure concurrency with the GUI"), whereas the "This line updates the object state value to match the GUI" is redundant and can be outdated if you come up with a better way to do things.  Finally, commenting variables as they are declared can also be redundant, provided that you used good naming techniques (your #4 note).

Otherwise generally good advice.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

|