Page 1 of 1

me and my sense of adventure

Posted: Wed Jun 27, 2007 10:47 pm
by Red Squirrel
For kicks and gigles I decided to see if I can make a very basic command line UO client. Right now I'm just hard coding everything then I'll add more options later to enter username/password and pick/see chars and stuff.

Because sockets seem to be coded differently between windows and Linux, this will only run in Linux. Maybe later on I'll see if I can pin point the differences and add precompiler directives so it compiles in windows too. I've never use such directives before so should be fun. :P

But anyway, here's it in action so far. :P

http://www.uovalor.com/misc/uocli_dev.jpg

Once I make it attach to a character, I'll throw in zorak's packet into it and log in to demise and bank sit, just because I can. :P Send it client version 1.3.3.7 or something lol. Actually I've yet to run into the client version packet, that probably comes later.

I did not even add bad password handling yet. :P Probably crashes if you get password wrong. It's all hard coded lol.

To make this of good use, I could actually make it into a chat program, so you can chat with guildies without actually logging in with the full blown client. Good for at work and stuff.

Archived topic from AOV, old topic ID:843, old post ID:5449

me and my sense of adventure

Posted: Wed Jun 27, 2007 10:51 pm
by Death
Red Squirrel wrote:For kicks and gigles I decided to see if I can make a very basic command line UO client. Right now I'm just hard coding everything then I'll add more options later to enter username/password and pick/see chars and stuff.

Because sockets seem to be coded differently between windows and Linux, this will only run in Linux. Maybe later on I'll see if I can pin point the differences and add precompiler directives so it compiles in windows too. I've never use such directives before so should be fun. :P

But anyway, here's it in action so far. :P

http://www.uovalor.com/misc/uocli_dev.jpg

Once I make it attach to a character, I'll throw in zorak's packet into it and log in to demise and bank sit, just because I can. :P Send it client version 1.3.3.7 or something lol. Actually I've yet to run into the client version packet, that probably comes later.

I did not even add bad password handling yet. :P Probably crashes if you get password wrong. It's all hard coded lol.

To make this of good use, I could actually make it into a chat program, so you can chat with guildies without actually logging in with the full blown client. Good for at work and stuff.
lol nice. I'll check it out when you get a working model of it.

Archived topic from AOV, old topic ID:843, old post ID:5450

me and my sense of adventure

Posted: Wed Jun 27, 2007 11:07 pm
by Red Squirrel
Yeah this started as a "I wonder if I can pull this off" and "I feel like coding a tcp C++ app that runs on linux" but might turn into an actual useful program depending on how far I decide to go.

I got scared when I ran into encryption packets but RunUO seems to not care all that much about those, its more of an OSI thing.

I have a site that shows most UO packets, so that helps a lot too.


I should send the source code to easyuo once its done, maybe they can extend it to a command line version of easyuo. That would rock so much for bots and stuff.

Archived topic from AOV, old topic ID:843, old post ID:5452

me and my sense of adventure

Posted: Wed Jun 27, 2007 11:31 pm
by Nosferatu
your system looks so much better than mine with its complex programs =[ *sigh*

Archived topic from AOV, old topic ID:843, old post ID:5456

me and my sense of adventure

Posted: Wed Jun 27, 2007 11:34 pm
by Red Squirrel
I got a char to log in through my app. :D This is so exciting, too bad I have to go to bed so freaken early. At this time for me, the day has only begun!


I have no clue how how to read the char list though, looks like they might of threw a few bit flags of some sort so everything got offsetted and is not readable by just doing a substring. I might just make it something like "enter char name:" and "enter slot number:" :P

Speaking of clients, I also downloaded KR, think it finished too. Another toy to play with during my limited time.

Archived topic from AOV, old topic ID:843, old post ID:5457

me and my sense of adventure

Posted: Wed Jun 27, 2007 11:47 pm
by Death
You know what would be fun? Converting the whole uo into retro ascii. You walk around as a happy face icon and battle T and B enemies and cut down trees that look like | marks. Imagine the lagless pvp you could have!

Archived topic from AOV, old topic ID:843, old post ID:5458

me and my sense of adventure

Posted: Wed Jun 27, 2007 11:54 pm
by Red Squirrel
I was thinking that too. Would need to somehow read the client map files though, but for items it could read em off the server packets. Most packets could be discarded, only need itemid and maybe serial. Now that I got this basic interface going, the possibilities are endless. :P


I'm having too much fun but I soooo should go to bed. lol

Archived topic from AOV, old topic ID:843, old post ID:5459

me and my sense of adventure

Posted: Thu Jun 28, 2007 4:24 pm
by Lymus
Imagine the spell mantras being bigger than the characters.

Archived topic from AOV, old topic ID:843, old post ID:5468

me and my sense of adventure

Posted: Thu Jun 28, 2007 4:55 pm
by Red Squirrel
I'd just send the cliloc IDs, let the users figure it out. :P

Archived topic from AOV, old topic ID:843, old post ID:5471

me and my sense of adventure

Posted: Thu Jun 28, 2007 5:03 pm
by Death
Red Squirrel wrote:I'd just send the cliloc IDs, let the users figure it out. :P
Cliloc 150772

"WTF is that?" **Dies in a cloud of asterisks**

Archived topic from AOV, old topic ID:843, old post ID:5472

me and my sense of adventure

Posted: Thu Jun 28, 2007 5:07 pm
by Nosferatu
lol coder talk... newbs. sike lol

Archived topic from AOV, old topic ID:843, old post ID:5475

me and my sense of adventure

Posted: Thu Jun 28, 2007 5:16 pm
by Red Squirrel
Send players as serials too

0x40002BF3 is attacking you!

Archived topic from AOV, old topic ID:843, old post ID:5479