These are chat archives for ZaneDubya/UltimaXNA

5th
Aug 2015
Zane Wagner
@ZaneDubya
Aug 05 2015 00:00
Wait. Bizarre. my 'vendor buy' commands are not working on RunUO 2.3 / Client 4.0.1.
Is that not the command? 'bank' is working.
Jeff Boulanger
@jeffboulanger
Aug 05 2015 00:09
its vendor buy, vendor sell
so ya "vendor buy the bank guards a beer"
Zane Wagner
@ZaneDubya
Aug 05 2015 00:09
yeah. RunUO isn't responding to that command string.
Jeff Boulanger
@jeffboulanger
Aug 05 2015 00:10
its not suppose to be a string
Zane Wagner
@ZaneDubya
Aug 05 2015 00:10
but bank is working...
Right, I know.
Speech indexes.
Jeff Boulanger
@jeffboulanger
Aug 05 2015 00:10
right
Zane Wagner
@ZaneDubya
Aug 05 2015 00:10
So neither the legacy client nor ultimaxna are getting a response to vendor sell. Wonder what's up with that. Maybe my copy of RunUO?
Jeff Boulanger
@jeffboulanger
Aug 05 2015 00:11
oh
might be AOS
Zane Wagner
@ZaneDubya
Aug 05 2015 00:11
oh? Tell me more.
Jeff Boulanger
@jeffboulanger
Aug 05 2015 00:11
i think if u turn AOS off on the server
Scripts/Misc/Expansion.cs
or something
Zane Wagner
@ZaneDubya
Aug 05 2015 00:11
k
Jeff Boulanger
@jeffboulanger
Aug 05 2015 00:11
you can set it to None i think
i forget the enum
from = e.Mobile;
        if ( m_Mobile is BaseVendor && from.InRange( m_Mobile, Core.AOS ? 1 : 4 ) && !e.Handled )
        {
            if ( e.HasKeyword( 0x14D ) ) // *vendor sell*
            {
                e.Handled = true;

                ((BaseVendor)m_Mobile).VendorSell( from );
                m_Mobile.FocusMob = from;
            }
            else if ( e.HasKeyword( 0x3C ) ) // *vendor buy*
            {
aos has nothing to do with it
off to home ttyl
Zane Wagner
@ZaneDubya
Aug 05 2015 00:13
That worked.
So I set Expansion = Expansion.None.
And it worked. But why?
Safe travels!
Jeff Boulanger
@jeffboulanger
Aug 05 2015 00:15
distance?
from.InRange( m_Mobile, Core.AOS ? 1 : 4 )
1 tile away, vs 4
Zane Wagner
@ZaneDubya
Aug 05 2015 00:17
It was set to Expansion.ML before...
Yup, only one tile away.
Jeff Boulanger
@jeffboulanger
Aug 05 2015 00:20
AOS is true for ML
Zane Wagner
@ZaneDubya
Aug 05 2015 00:20
lol, well, setting as implemented then?
Thanks jeff. I think it's awesome that you knew that off the top of your head.
Jeff Boulanger
@jeffboulanger
Aug 05 2015 00:21
ive spent a lot of time in the RunUO codebase ;)
Ran 3 servers over my RunUO lifetime
ok, now im really going home
Zane Wagner
@ZaneDubya
Aug 05 2015 00:21
Cya!
Deniz Sökmen
@denizsokmen
Aug 05 2015 02:52
I am busy these days
have lots of work in the job :D
Jeff Boulanger
@jeffboulanger
Aug 05 2015 04:56
And installing w10 begins
Jeff Boulanger
@jeffboulanger
Aug 05 2015 05:45
and done ;)
Deniz Sökmen
@denizsokmen
Aug 05 2015 05:52
nice
Deniz Sökmen
@denizsokmen
Aug 05 2015 06:08
@ZaneDubya I tried menus, they work great
Actually I have thought that I can add a new type of gump element that UO never implemented except hardcoded gumps in the client: Scrollable gump, like htmlgump but you can actually put other gump elements in it except just plain text. It would most probably require a hierarchical UI element design but would be a nice feature to have
instead of just plain text*
Jeff Boulanger
@jeffboulanger
Aug 05 2015 06:14
We really just want to close the gap on what the client currently does
Deniz Sökmen
@denizsokmen
Aug 05 2015 06:14
of course that's just an extra thought
never mind my additional features, just thinking for the future :D
Jeff Boulanger
@jeffboulanger
Aug 05 2015 06:15
All of that stuff is going to be left to plugins ;)
Deniz Sökmen
@denizsokmen
Aug 05 2015 06:15
btw most probably I will be finishing .uop loading in the weekend
I have lots of work to do at job :(
cant find time
Jeff Boulanger
@jeffboulanger
Aug 05 2015 06:16
i hear ya
im busy porting 8.1 app to windows 10 at work
Deniz Sökmen
@denizsokmen
Aug 05 2015 06:16
:D
I am working on code generation
Jeff Boulanger
@jeffboulanger
Aug 05 2015 06:16
and some pretty important features just flat out dont work
Deniz Sökmen
@denizsokmen
Aug 05 2015 06:16
llvm stuff etc.
Jeff Boulanger
@jeffboulanger
Aug 05 2015 06:17
whats it for?
i mean i know what llvm is, but your code generation stuff
Deniz Sökmen
@denizsokmen
Aug 05 2015 06:21
Academic research
Jeff Boulanger
@jeffboulanger
Aug 05 2015 06:21
ah
Deniz Sökmen
@denizsokmen
Aug 05 2015 06:22
And some proprietary stuff at job 😀
Jeff Boulanger
@jeffboulanger
Aug 05 2015 06:22
gotcha
Deniz Sökmen
@denizsokmen
Aug 05 2015 06:22
Again code generation
Jeff Boulanger
@jeffboulanger
Aug 05 2015 06:26
@ZaneDubya Im shocked you actually went and did the services container stuff, got rid of all the static enginevar crap, thats awesome. I need to persuade you with more stuff now ;)

            ServiceRegistry.Register<AudioService>(new AudioService());
            Input = ServiceRegistry.Register<InputManager>(new InputManager(Window.Handle));
            UserInterface = ServiceRegistry.Register<UserInterfaceService>(new UserInterfaceService());
these should be registered as interface
and then you should set the local variables "Network" "Input" "UserInterface" after you initialize plugins
that way if someone overrode them with a custom implementation, all your code calls their code instead
Inversion of Control ;)
Deniz Sökmen
@denizsokmen
Aug 05 2015 06:30
:D
Jeff Boulanger
@jeffboulanger
Aug 05 2015 06:43
http://i.imgur.com/6plR1iT.gifv so jealous, i need to find like $3000 so i can get pictures like this
Zane Wagner
@ZaneDubya
Aug 05 2015 11:27
@jeffboulanger Do you mean IAudioService, IInputManager, IUserInterfaceService, etc.?
That could be done. :)
Jeff Boulanger
@jeffboulanger
Aug 05 2015 15:07
Ya,
Zane Wagner
@ZaneDubya
Aug 05 2015 16:11
@denizsokmen The xna client's UI is already hierarchical - and I have implemented something very similar to what you're discussing in the RenderedTextList control; I could definitely see how that could be expanded to handle different controls.
(RenderedTextList is the basis of the scrolling portion of VendorBuyGump).