me and my sense of adventure

Anything regarding UO or Age of Valor
Locked
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

me and my sense of adventure

Post 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
Honk if you love Jesus, text if you want to meet Him!
User avatar
Death
Posts: 7919
Joined: Thu Sep 30, 2004 10:12 pm

me and my sense of adventure

Post 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
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

me and my sense of adventure

Post 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
Honk if you love Jesus, text if you want to meet Him!
Nosferatu
Posts: 797
Joined: Thu Mar 15, 2007 4:36 pm

me and my sense of adventure

Post 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
What?
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

me and my sense of adventure

Post 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
Honk if you love Jesus, text if you want to meet Him!
User avatar
Death
Posts: 7919
Joined: Thu Sep 30, 2004 10:12 pm

me and my sense of adventure

Post 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
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

me and my sense of adventure

Post 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
Honk if you love Jesus, text if you want to meet Him!
Lymus
Posts: 737
Joined: Wed Dec 13, 2006 2:21 pm

me and my sense of adventure

Post by Lymus »

Imagine the spell mantras being bigger than the characters.

Archived topic from AOV, old topic ID:843, old post ID:5468
If you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime.
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

me and my sense of adventure

Post 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
Honk if you love Jesus, text if you want to meet Him!
User avatar
Death
Posts: 7919
Joined: Thu Sep 30, 2004 10:12 pm

me and my sense of adventure

Post 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
Nosferatu
Posts: 797
Joined: Thu Mar 15, 2007 4:36 pm

me and my sense of adventure

Post by Nosferatu »

lol coder talk... newbs. sike lol

Archived topic from AOV, old topic ID:843, old post ID:5475
What?
User avatar
Red Squirrel
Posts: 29209
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

me and my sense of adventure

Post by Red Squirrel »

Send players as serials too

0x40002BF3 is attacking you!

Archived topic from AOV, old topic ID:843, old post ID:5479
Honk if you love Jesus, text if you want to meet Him!
Locked