Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 03-25-2004, 10:54 PM   #1 (permalink)
 
Join Date: Mar 2004
Location: Brasil
Age: 26
Posts: 28
Send a message via ICQ to eldor
Lightbulb Knowing gump position

It will be of great use if next version of RunUO incorporates a command to know X and Y of a gump.
Knowing the position of a gump now is an unsolved problem yet , but I think that is the most important problem for now.
Think about possibilities, ok?
If this kind of thing (knowing X and Y of a gump) is impossible, then show alternate solutions, like allowing to refresh a value in a gump withought closing and reopening it.

Thanks for reading this!!
eldor is offline   Reply With Quote
Old 03-25-2004, 11:25 PM   #2 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

Unfortunatlly, RunUO can not do anything that is not supported by the UO client protocols. So what we have is what we get as far as gumps are concerned I'm afraid.
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Old 03-25-2004, 11:25 PM   #3 (permalink)
 
Join Date: Mar 2003
Location: Near a lava pool
Age: 8
Posts: 1,012
Default

I believe this isn't possible because the gump is created and moved on the client, and I don't think the client sends location information back to the server.
__________________
Oxygen should be regarded as a drug.
Arya is offline   Reply With Quote
Old 03-25-2004, 11:28 PM   #4 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

"Near a lava pool" OK, I'm intrigued.
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Old 03-25-2004, 11:56 PM   #5 (permalink)
 
Join Date: Mar 2004
Location: Brasil
Age: 26
Posts: 28
Send a message via ICQ to eldor
Exclamation A deep study on client

I think that we could have some client issues. I don´t know exactely how client gives information to server (actually don´t know what kind of information is given).
If there´s a way to know if a gump´s button was pressed. Maybe we could read two integers from the client that specify X and Y.
That fact still gives me hope that knowing a gump position is possible . Even with a little recompilation of the client (this is illegal, I know).
Remember that we can always appeal to plan B. If everything fails, improvise! Maybe there is a way to change some properties in gump and make it display the changes correctly without closing a gump. Think about it!
eldor is offline   Reply With Quote
Old 03-26-2004, 12:15 AM   #6 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

Then all users of your shard have to use your modified client. Beside the legality issue you point out, that would be a huge red flag to me. I doubt you would have very many players. An awful lot of work too for such a minor issue.
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Old 03-26-2004, 05:20 AM   #7 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

Unless you can read assembly from a disassembled client. Or you know how to do DLL injection (with UOG SDK) and then add it yourself. You are not going to get anywhere. To do what you want, requires alot of programming skill, and one step short of local hacking skills. Unfortunately nobody with the skill will most likely help you, and I highly doubt you have the skill or else by now you would know what it takes.

I wont say its impossible.. but short of modifying the client, or its processes, your up shit creek.
XxSP1DERxX is offline   Reply With Quote
Old 03-26-2004, 12:13 PM   #8 (permalink)
 
Join Date: Mar 2004
Location: Brasil
Age: 26
Posts: 28
Send a message via ICQ to eldor
Thumbs down Some considerations

Well, people see possibilities in a different way. Some peoples see relevance in common facts, others have good sense to know what is really important.
You see, I don´t have skill with C# yet, but I´m making my best as a self-taught person. I don´t intend to modify client font code, although I have capacity to build a client by myself. But this is not the point.
All this discussion, that was inicially intended to add a good resource for Administrators, now becomes a life or death discussion about if it´s possible or no to know that fact.
For now, I know witch ways I can follow. May I have to change client code? It´s possible with UO SDK? This questions I still have. For now I can´t answer them, but hope that I find out what I´m looking for.
Just wanna say that even if you don´t see relevance in my purpose, at least respect it. I don´t see utility in making "bank checks", "New mounts", "new ores", ... but even that, I respect them.

Thanks for reading this.

David, if you see this post I just wanna say that I´m glad that you are here making scripts, I get some of yours here and they all are very good. Really thanks.
eldor is offline   Reply With Quote
Old 03-26-2004, 12:17 PM   #9 (permalink)
 
Join Date: Mar 2003
Location: Near a lava pool
Age: 8
Posts: 1,012
Default

Of course it would also take some tweaking of the communication protocol, a minor issue if compared to the client mod but it adds up. I think the world can live with gumps as it is

David, don't get intrigued because it's a very unintriguing place. Oh and you've been there before [Go 5435 1097 It's something left from the shard I used to work
__________________
Oxygen should be regarded as a drug.
Arya is offline   Reply With Quote
Old 03-26-2004, 12:35 PM   #10 (permalink)
 
Join Date: Feb 2004
Location: Canada eh
Posts: 413
Default

I really have to ask eldor, what would you do with the piece of information, x/y coordinates of a gump? try to re-open it in the same location? That would take client mods too.... I can't see the utility at all yet....

Now if I was going to go to any lengths to hack something into the client, an ability to do the gump refresh or gump re-draw could be useful, but still not useful enough to go to those lengths.

One thing thats been beaten into my head by experience is there's always MANY ways to skin the cat, to solve a computing problem.

Perhaps if you could explain what you're really trying to accomplish and why, the combined brain power of this group might be able to provide you a plan of attack that could work.

Just my 2 bits.
---------------------------------------------------------
awdball (old school c coder learning and luvin c#)
__________________
awdball
awdball is offline   Reply With Quote
Old 03-26-2004, 01:24 PM   #11 (permalink)
 
Join Date: Mar 2003
Location: Near a lava pool
Age: 8
Posts: 1,012
Default

I'm pretty sure he wants to place the gump in the same location after a response
__________________
Oxygen should be regarded as a drug.
Arya is offline   Reply With Quote
Old 03-26-2004, 03:01 PM   #12 (permalink)
RunUO Developer/Demise Person
 
ASayre's Avatar
 
Join Date: Mar 2003
Location: California
Age: 20
Posts: 1,700
Default

I'm guessing a 'quickfix' kind of thing would be asking the player to type in a X&Y position for the Gump, saving that, and then jsut have it always open in that X& Y position..

But then players need to know the X&Y postition. Hmm... Maybe a "GRid" thing that fills up whole area starting from 0,0 whcich has labels for common gump places they can either click or with numbers they can type in....

/me stops rambling.
__________________
Andre Sayre, Core Developer
The RunUO Software Team

The day we are born is the day Death inches ever closer...
E-mail: ASayre ( AT ) RunUO ( Dot ) c o m
I'm as graceful as a gazelle galloping over glistening green grass with it's head on fire.
ASayre is offline   Reply With Quote
Old 03-26-2004, 03:18 PM   #13 (permalink)
Forum Expert
 
Join Date: Jan 2004
Posts: 1,377
Default

Quote:
Originally Posted by Arya
I'm pretty sure he wants to place the gump in the same location after a response
What for?
__________________
Dracarys
retired - consider me dead to these boards
Dracarys is offline   Reply With Quote
Old 03-26-2004, 03:35 PM   #14 (permalink)
Account Terminated
 
Join Date: Sep 2002
Location: New York
Age: 22
Posts: 476
Default

int gumpPosX
int gumpPosY

use those and change them using buttons within the gump. have the buttons resend the gump after those ints are changed and print the new numbers.
Dipset is offline   Reply With Quote
Old 03-26-2004, 03:50 PM   #15 (permalink)
 
Join Date: Mar 2003
Location: Near a lava pool
Age: 8
Posts: 1,012
Default

Quote:
Originally Posted by Dracarys
What for?
Well to have the gump appear wherever it was moved once it's been used (for example, you use a craft gump but want it on the right side of the screen so you can see something on the left: once you craft something the gump appears back in its original position).
__________________
Oxygen should be regarded as a drug.
Arya is offline   Reply With Quote
Old 03-26-2004, 05:38 PM   #16 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

Even if you had that info, the client (without changing the protocol, and how the client utilizes the information) wouldn't know what to do.

This is a good feature to ask to have added to UO Iris
XxSP1DERxX is offline   Reply With Quote
Old 03-26-2004, 09:54 PM   #17 (permalink)
 
Join Date: Mar 2004
Location: Brasil
Age: 26
Posts: 28
Send a message via ICQ to eldor
Lightbulb Application

Arya, thanks that you understood me!

Guys, the idea is computate de X/Y position of the gump, so it could be opened in the same place next time.

An immmediate application of this is in a "XP BAR" I created for my shard. The idea is making a gump with a progress bar that raises everytime a monster is killed. But it must be reloaded at each kill and if it keeps going to same position then I have to make it not_movable. And this is not good.
It have some other applications, like...

[...]

Maybe you´re right. The application of that kind of information is restricted in the creation of gumps that must stay open and have some value that must change. [...]

ok, I had another good implementation: Making chat gumps that display messages at real time. Think about a guild (group) chat room that is opened at the black wole of UO screen... good idea hun?

Hugs.
eldor is offline   Reply With Quote
Old 03-27-2004, 07:44 AM   #18 (permalink)
Forum Expert
 
Join Date: Jan 2004
Posts: 1,377
Default

Well, there already is a chat system in uo ?!

I haven't tried it yet but i believe it works with RunUO. You could just modify it but all the gumps are already there.
__________________
Dracarys
retired - consider me dead to these boards
Dracarys is offline   Reply With Quote
Old 03-30-2004, 02:37 PM   #19 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

It works, I use it sometimes.
XxSP1DERxX is offline   Reply With Quote
Old 03-31-2004, 11:03 AM   #20 (permalink)
Moderate
 
David's Avatar
 
Join Date: Nov 2002
Location: USA
Posts: 6,598
Default

You know, you could just park the gump where you want it and set Dragable = false. May not be the best answer but it would work.
__________________
David Forum Moderator
The RunUO.com Forum Moderator Team

Forum Rules and Guidelines
RunUO Forum Search Engine
Download RunUO 2.0 RC2
David is offline   Reply With Quote
Old 04-01-2004, 09:22 PM   #21 (permalink)
 
Join Date: Oct 2002
Age: 23
Posts: 4,689
Default

yeah, that should work
XxSP1DERxX is offline   Reply With Quote
Old 04-04-2004, 09:43 AM   #22 (permalink)
Forum Expert
 
PerfectWing's Avatar
 
Join Date: Oct 2002
Location: USA, Ga.
Age: 24
Posts: 1,205
Send a message via ICQ to PerfectWing Send a message via AIM to PerfectWing Send a message via MSN to PerfectWing Send a message via Yahoo to PerfectWing
Default

Just watch out for conflicting resolutions. I play at 1280x1024 desktop resolution. I have a lot of blackspace to use, that I know most clients don't.
PerfectWing is offline   Reply With Quote
Old 04-07-2004, 03:02 AM   #23 (permalink)
Forum Expert
 
Mortis's Avatar
 
Join Date: Oct 2002
Location: In My Cold Cell
Age: 44
Posts: 1,848
Default

As PerfectWing stated I would like to add I never do this but some play in YUK Full Screen mode.
__________________
I'm waiting in my cold cell when the bell begins to chime
Reflecting on my past life and it doesn't have much time.
Mortis is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5