Author |
Message |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Fri Nov 04, 2005 8:30 am Post subject: Java: Class Reload for Bot |
 |
|
|
|
I want to be able to make updates to my bot without shutting it down and spawning it again. Im looking for a class reloader to reload: bdbot2.class bdbot2$1.class and bdbot2$2.class.
Please help
thanks |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:42 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Fri Nov 04, 2005 3:00 pm Post subject: |
 |
|
|
|
Its a bit hard to do, and heres why:
1) The only way to 'reload' a class in java without restarting the VM is to load the class with a new ClassLoader.
2) Classes loaded through different ClassLoaders are considered different, even if they are identical.
3) As your bots class loads, it loads any classes that are directly referenced in your bots class, and branches out from there loading any classes necessary. This means, if the class you want to reload is defined/declared in a class that is loaded by the system class loader, if you loaded the same class through a custom class loader, you will get odd errors like (MyClass1 instanceof MyClass1) == false
Basicly, youll need to modify the hell out of the TWCore, or hope they provide such functionality in the next build. _________________ There are 7 user(s) ignoring me right now. |
|
Back to top |
|
 |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Fri Nov 04, 2005 5:07 pm Post subject: |
 |
|
|
|
Maybe i should talk to qan about it. That's a good suggestion.  |
|
Back to top |
|
 |
Quan Chi2 Member of "Sexy Teenagers that Code" Group

Age:34 Gender: Joined: Mar 25 2005 Posts: 860 Location: NYC Offline
|
Posted: Sat Nov 05, 2005 3:12 pm Post subject: |
 |
|
|
|
Talk to who? I hope you didnt mean Quan. You banned me from your zone! |
|
Back to top |
|
 |
Contempt+ Server Help Squatter
Age:36 Gender: Joined: May 15 2005 Posts: 682 Location: Home Offline
|
Posted: Sat Nov 05, 2005 3:52 pm Post subject: |
 |
|
|
|
qan is one of the owners of Trench Wars. _________________ SSE Network Administrator |
|
Back to top |
|
 |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Sat Nov 05, 2005 5:43 pm Post subject: |
 |
|
|
|
ty contempt+...
Quan (sai) i said qan...if i were to say Quan then maybe i would be referring to you, besides you don't even use twcore. You just edit MERVBot from other people's plugins. Err nvm  |
|
Back to top |
|
 |
Default Server Help Squatter

Age:44 Gender: Joined: Aug 25 2005 Posts: 286 Offline
|
Posted: Sat Nov 05, 2005 7:08 pm Post subject: |
 |
|
|
|
Trench Wars owners is not Quan Chi2.. |
|
Back to top |
|
 |
Contempt+ Server Help Squatter
Age:36 Gender: Joined: May 15 2005 Posts: 682 Location: Home Offline
|
Posted: Sat Nov 05, 2005 11:46 pm Post subject: |
 |
|
|
|
Contempt+ wrote: | qan is one of the owners of Trench Wars. |
qan and Quan are not the same people. |
|
Back to top |
|
 |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Sun Nov 06, 2005 12:22 pm Post subject: |
 |
|
|
|
If Quan owned Trench wars the the population would be 36, but they would all be merv bot edits... |
|
Back to top |
|
 |
Quan Chi2 Member of "Sexy Teenagers that Code" Group

Age:34 Gender: Joined: Mar 25 2005 Posts: 860 Location: NYC Offline
|
Posted: Sun Nov 06, 2005 1:08 pm Post subject: |
 |
|
|
|
I dont just edit from other peoples plugins you idiot! I code my own now! Some not good.. but I still code em! Like this malicious plugin I'm still coding. Its almost done. Now it kicks anyone that even trys a command! It will completely destroy a zones population! Its made for people who want "intelligent revenge" against zone owners that piss them off. I can demonstrate what it does on my server. Just look for a zone called Dragonball Halloween Party!(thats a disguise! cool huh!?!). |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sun Nov 06, 2005 2:35 pm Post subject: |
 |
|
|
|
I want "intelligent revenge" on you, Quan(dre). _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Mon Nov 07, 2005 12:07 am Post subject: |
 |
|
|
|
TWCore uses Apache's AdaptiveClassLoader which does what Cerium has described. Any changes to the core require a total reboot, but you kill a bot and respawn it without restarting the core and any updates you have made will take effect.
AdaptiveClassLoader wrote: | When the classloader reports its creator that one of the classes it has loaded has changed on disk, it should discard the classloader and create a new instance using reinstantiate. The classes are then reloaded into the new classloader as required. |
Having a bot be able to reload itself in the middle of operation would require a lot of modifications and would probably end up being very messy, so its best to just do your modifications and then spawn it again. _________________
 |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:42 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Mon Nov 07, 2005 12:58 am Post subject: |
 |
|
|
|
Ahh... those clever fellows in the Apache group.
Scanned through that class... pretty nifty, though its kind of a mess to read... maybe editplus fucked up the tabbing. |
|
Back to top |
|
 |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Mon Nov 07, 2005 8:12 am Post subject: |
 |
|
|
|
Quan Chi2 wrote: | I dont just edit from other peoples plugins you idiot! I code my own now! Some not good.. but I still code em! Like this malicious plugin I'm still coding. Its almost done. Now it kicks anyone that even trys a command! It will completely destroy a zones population! Its made for people who want "intelligent revenge" against zone owners that piss them off. I can demonstrate what it does on my server. Just look for a zone called Dragonball Halloween Party!(thats a disguise! cool huh!?!). |
OMG how hard is it to make the bot send *kill to a player when they type something that starts with " ! " , " . " or "@" |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Mon Nov 07, 2005 2:05 pm Post subject: |
 |
|
|
|
I don't think anyone wants any plugins to be malicious. This would hurt the reputation of all bot builders since everyone would require to see the source if the plugin(s) aren't malicious.
Giving ideas is even worse, BDwinsAlt.
Someone please close this topic _________________
|
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:42 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Mon Nov 07, 2005 3:21 pm Post subject: |
 |
|
|
|
This thread doesnt need to be closed, quan simply needs to be restricted to Trash Talk, or better yet: banned. Anyone who takes pride in editing plugins to be malicious needs to be thrown infront of a train. |
|
Back to top |
|
 |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Mon Nov 07, 2005 4:35 pm Post subject: |
 |
|
|
|
Yes Yes, then God can Judge him and send him into the lake of fire.  |
|
Back to top |
|
 |
Guest
Offline
|
Posted: Tue Nov 08, 2005 8:40 am Post subject: |
 |
|
|
|
Quan Chi2 wrote: | I dont just edit from other peoples plugins you idiot! I code my own now! Some not good.. but I still code em! Like this malicious plugin I'm still coding. Its almost done. Now it kicks anyone that even trys a command! It will completely destroy a zones population! Its made for people who want "intelligent revenge" against zone owners that piss them off. I can demonstrate what it does on my server. Just look for a zone called Dragonball Halloween Party!(thats a disguise! cool huh!?!). |
That would be futile.
The bot would need moderator priveledges in the zone at bare minimum. Sysop to do it full-blown.
But there is still a huge problem is that it can't find people in other arenas.
This bot plugin you have in mind is bad over over 5 reasons.
1. It won't work unless it is in yhour own zone which would be just right out stupid.
2. It gives bot programmers a bad reputation.
3. It has no form of productivity and will be frowned on.
4. Nobody will put it on the web for you and if you put it up on GeoCities or something it will only cause someone's IP to be banned from a Zone/Server/Group.
5. Causing harm to an individual's property by using malicious software directed specifically at them is a federal offense. (footnote 1)
So in other words, it is completely useless and if you do somehow manage to hack a server to change that CheckSysop=1 to CheckSysop=0 you'd have a criminal record.
Footnotes:
1.
http://laws.justice.gc.ca/en/C-46/42972.html wrote: | PART IX
OFFENCES AGAINST RIGHTS OF PROPERTY
Interpretation
Definitions
321. In this Part,
"break" «effraction»
"break" means
(a) to break any part, internal or external, or
(b) to open any thing that is used or intended to be used to close or to cover an internal or external opening; |
|
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Wed Nov 09, 2005 4:18 pm Post subject: |
 |
|
|
|
I don't think the government is really going to care on this one. Actually, I would be quite mad at the feds if they diverted resources into a case like this.
Dr Brain brought up a good point on AIM when he said that any sysop dumb enough to fall victim to someone like Quan deserves whatever happens. |
|
Back to top |
|
 |
BDwinsAlt Agurus's Posse

Age:34 Gender: Joined: Jun 16 2003 Posts: 1145 Location: Alabama Offline
|
Posted: Wed Nov 09, 2005 5:01 pm Post subject: |
 |
|
|
|
No one will dl it so it won't matter. Couldn't the SS admins block Sai Saici's zone from the Directory servers? Give him hell rofl |
|
Back to top |
|
 |
Quan Chi2 Member of "Sexy Teenagers that Code" Group

Age:34 Gender: Joined: Mar 25 2005 Posts: 860 Location: NYC Offline
|
Posted: Thu Nov 10, 2005 11:10 am Post subject: |
 |
|
|
|
Give me hell?! Have you forgotten that this is JUST the internet? lol... So let me get this straight. Banning some 15 year old named Sai Saici will make him go crazy or "give him hell" as you say it. Nice assumption, genius.
BD, it isnt hard to send a *kill when someone types . ! @ and blah blah blah. Have I EVER said that it was complicated in any size, shape, or form? When the plugin is loaded it will annoy the shit out of alot of players when they type a command. This is just until the bot host decides to unload the bot. Mabye the bot host or zone owner will ban the bot. How they would ban it.. I don't know. I have to think about it. Mabye I can get the plugin to write itself to the spawns text so that it can load when the owner restarts the bot.
I could catch newbies with this. Just changing the name. It doesn't mean that I would like to destroy subspace.. Its a fun game. I just want to annoy alot of the people. Why not make a malicious plugin? Mabye later on when Im better at coding in C++, I can make my own bot-core(if im still playing this game). Mabye my bot core could have malicious functions built in. Mabye I could make my own biller.
There are tons and tons of possibilities! The thing is, there are other things to do in the "real world" besides coding on some computer; like making money, bagging bitches, school(homework), and many more things, I guess.
Ruining the reputation of bot coders- nah...
The reputation of a bot coder is souly up to the coder themself and the judge of how a bot-coder thinks. From experience with sports, games, girls, school I think this can apply to anything you do. This about how people in the NFL play, or the NBA. If one player doesn't play too well, does that ruin the reputation of the NBA? The NFL? No.. It doesn't. It just ruins that players rep.
Look, I want to be a professional coder one day(atleast that is what im interested in atm but I might change that). I would love to make viruses or hack legally for the government one day. Mabye? It would be cool. I wont ever get there if I don't know one thing about how people think. Why not use malicious software to annoy people on some game server? Wait thats a stupid question to ask people who actually play the game. Ok, why not use coding skill to get revenge on a server, or one person? Yes, it would be illegal if I actually destroyed a server. I would probably get a knock on my door and hear voices saying "FBI!" (lets get real) I wouldn't try to crash a server if I didnt have permission to do it. Im getting tired of these noobs comming in a zone where I'm playing and having fun, saying "WHY DID YOU TRY AND CRASH MY BILLER" OR "WHY DID YOU TRY AND CRASH MY SERVER YOU FUCKING IDIOT!" I don't blame anyone for doing this, but give me a damn break already you losers! Yes, I made that type of reputation for myself, but if a person is THAT good(not saying I am at all that advanced yet) dont you think you shouldnt provoke him? wtf? Any 4 year old would stay away from danger.
Anyway, I have things to do. Its my weekend. Get Rich or Die Trying is new. I should go watch it with someone.
I'll be back on this forum later to see the stupid ass replies to this post. Yes, quote away. I have an answer for almost everything. |
|
Back to top |
|
 |
Cerium Server Help Squatter

Age:42 Gender: Joined: Mar 05 2005 Posts: 807 Location: I will stab you. Offline
|
Posted: Thu Nov 10, 2005 1:44 pm Post subject: |
 |
|
|
|
This topic needs to be split, badly.
Quan, Youve just made it abundantly clear how socially inept you are. Only someone like you would use programming of any kind to establish a bully-like persona on the internet. Perhaps you should spend more time making friends in the real world, and you wont need to be accepted or feared in the virtual one (Though just so its clear: youre not feared by anyone and I would never befriend a tool like you, online or off).
If youre interested at all at being a 'professional coder' someday, you need to seriously reevaluate your behavior and habits, or kill yourself now and save everyone a great deal trouble.
Just remember: down the street, not across.
-------------------------
Edit:
Another thing that bothers me: You havent added a single bit of useful text to the original discussion in this thread. Why even bother posting, you goddamn attention whore. |
|
Back to top |
|
 |
Quan Chi2 Member of "Sexy Teenagers that Code" Group

Age:34 Gender: Joined: Mar 25 2005 Posts: 860 Location: NYC Offline
|
Posted: Thu Nov 10, 2005 4:07 pm Post subject: |
 |
|
|
|
lol You see? Thats hilarious. You posted exactly what I expected you to post. I think that I made it clear that I have other things to do in the real world, but mabye you read my post so quickly that you didn't see me post what made it clear.
As for being a professional coder - I dont care about what you think I need to do about my behavior. I actually couldn't care less. Im not trying to become an online bully. If something ever pushes me to become one, I'll make sure that you're the first one I bully. Hows that? (that question wasn't to be answered) I bet you have that "see if I care?" or "you cant do anything to me you noob" attitude toward that question.
Im doing all of this coding shit for fun. It isn't a business.
Mabye I should stop posting in this topic at this post, because I see that it is getting out of hand. It went completely off topic. Im not saying sorry, but I see that these posts were worthless.  |
|
Back to top |
|
 |
Solid_Fire Server Help Squatter

Age:35 Gender: Joined: Dec 22 2004 Posts: 327 Location: NV. Dont stalk me..plz.. Offline
|
Posted: Thu Nov 10, 2005 7:27 pm Post subject: |
 |
|
|
|
Or just stop posting on these forums? _________________ Unknown Webmaster, Confused Game Player |
|
Back to top |
|
 |
|