support kingdom reborn

Here you can post threads specific to the current release of the core (099)

Moderator: POL Developer

Post Reply
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

support kingdom reborn

Post by atreiu »

hello all

sorry for maybe stupid question and for my weak english.

is Kingsom Reborn supported by POL?

the question is that i cant find exacly answer. some tops said No but:

Added: support of UO:KR/SA char create packet 0x8D
Added: new gargoyle hair & beard 0x4258-0x425F & 0x42AD-0x42B0
Added: UO:KR/SA face support

does it not supported yet and at this moment this in dev?
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: support kingdom reborn

Post by atreiu »

nobody knows?
xeon
Forum Regular
Posts: 338
Joined: Fri Oct 31, 2008 3:18 am
Location: Italy

Re: support kingdom reborn

Post by xeon »

I think yes, it supports KR. But better to wait someone more knowledged about this :)
Basara
Novice Poster
Posts: 47
Joined: Fri Oct 13, 2006 6:37 am
Location: UK

Re: support kingdom reborn

Post by Basara »

I had a go at getting KR to work with POL99 but couldn't log in, could see the login hitting the server but never got anywhere.
I believe some have got it to work, maybe they could post a setup guide?
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: support kingdom reborn

Post by atreiu »

Turley, is it wil be a surprise? ))
dont stop baby!)))
Zarken
New User
Posts: 1
Joined: Wed Jan 06, 2010 3:38 pm

Re: support kingdom reborn

Post by Zarken »

It can be nice, If will be a KR support. :P 8)
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: support kingdom reborn

Post by atreiu »

It can be nice????
IT WILL BE AWESOME!!!!!!!! : )
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: support kingdom reborn

Post by Turley »

Last time i used the KR client it worked with pol, but OSI disabled KR with the last patch.
SA client is also supported.
Note: Most of the 3d only packets like hotbar/radarmap are not implemented but the whole critical stuff works, the rest can easily be scripted.
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: support kingdom reborn

Post by atreiu »

Tyrley, meybe you can provide little manual for connection on server by KR/SA? pls
i cant connect by SA. man above too :(
Justae
Expert Poster
Posts: 79
Joined: Thu May 24, 2007 2:12 pm
Location: South Africa

Running UO:SA Client version 7.0 build 3.0.0.122 on POL099

Post by Justae »

Running UO:SA Client version 7.0 build 3.0.0.122 on POL099

Hello People,

I would like to share the information I have with those who want to run the (in my opinion) excellent Stygian Abyss client on POL.
I can only speak in terms of POL099 as that is what I have very recently converted my POL096.7 scriptbase to.
I do have a couple of snags which I hope someone out there may have a suggestion for me. I hope this is the correct thread into which to post to.

Generating the realm files.

Ok, to start with, I stopped trying to generate the realms files with the MULs and IDXs of the UO:SA client.
When I ran uoconvert, it threw-up errors about "illegal graphic 0xxxx at location xxxx yyyy zzz". The graphic values reported as errors where everything above 0x3fff
I expected this, seeing as POL only allows max up to 0x3fff. I had even set the flag MaxTileID=0x7FFF in the POL.CFG file. It seems uoconvert does not see this when the conversion runs.

I used the MULs and IDXs from UO:ML client 6.0.1.7 (because that is what my live shard still uses, clients on live shard are also 6.0.1.7)

My uoconvert.cfg is straight-forward, I generate all the realms (except Ter Mur of course)

uoconvert.bat

Code: Select all

uoconvert multis
copy multis.cfg config

uoconvert tiles
copy tiles.cfg config

uoconvert landtiles
copy landtiles.cfg config

uoconvert map     realm=britannia mapid=0 usedif=1 width=7168 height=4096
uoconvert statics realm=britannia
uoconvert maptile realm=britannia

uoconvert map     realm=britannia_alt mapid=1 usedif=1 width=7168 height=4096
uoconvert statics realm=britannia_alt
uoconvert maptile realm=britannia_alt

uoconvert map     realm=ilshenar mapid=2 usedif=1 width=2304 height=1600
uoconvert statics realm=ilshenar
uoconvert maptile realm=ilshenar

uoconvert map     realm=malas mapid=3 usedif=1 width=2560 height=2048
uoconvert statics realm=malas
uoconvert maptile realm=malas

uoconvert map     realm=tokuno mapid=4 usedif=1 width=1448 height=1448
uoconvert statics realm=tokuno
uoconvert maptile realm=tokuno
Ok so, that generated the necessary \realms files for facets britannia, britannia_alt, ilshenar, malas, tokuno

I have these settings in the servspecopt.cfg file :

servspecopt.cfg

Code: Select all

DefaultDoubleclickRange=2
MovementUsesStamina=1
AllowSecureTradingInWarMode=0
TotalStatsAtCreation=65,80,90-95,100
DefaultDecayTime=10
DefaultContainerMaxItems=250
DefaultContainerMaxWeight=60000
HiddenTurnsCount=1
MaxPathFindRange=50
ItemColorMask=0x4FFF
DefaultLightLevel=8
InvulTag=1
CharacterSlots=6
UOFeatureEnable=0x1e0
The UOFeatureEnable=0x1e0 is the one I am not 100% sure about, if it is the correct bitset for UO:SA. Thing is, it works the best so far of any of the other combinations. All of the spellbooks are in and accessible and useable. All in UO:SA "2.5D" (Looks like a better version of the old 3D)

My POL.CFG is standard and it points to the data files belonging to the UO:ML 6.0.1.7 client. I just copied them into a subdirectory C:\pol099\6017Muls
so the setting is UoDataFileRoot=C:\pol099\6017Muls\

I could not get Razor to run the UO:SA 2.5D client, which is the one I want to use, so I got a hold of a launcher for UO:SA which runs it fine. The launcher also optionally creates a patched, stand-alone client file which you run directly. If there is anyone needing this launcher, pm me in the POL forums. I am not sure if it would be allowed to put the link for it here, seeing as it is not mine, but it is free.

Troubles

Gumps.
Here then is where I need some help. SendDialogGump works 100%, no problem with those gumps at all. In fact, they look even better in UO:SA
However, CreateMenu does not work, nothing comes up. Banks work, NPC Vendor menus work. I just cannot get CreateMenu to work and I need that to work badly, as all my crafting menus use CreateMenu, SelectMenuItem2 extensively and I do not have the time to rewrite all of those. Any ideas on what I can do or will this be something that needs fixing in a later core ?

Tooltips.
I was running the Megacliloc package just fine under POL096.7 with client UO:ML 6.0.1.7
With UO:SA and POL099, I have to disable the package otherwise UO:SA client crashes directly after login.
I would really like to have the Megacliloc package back, if anyone has a solution for this please.

My logon script sets acctref.set_uo_expansion("SA") That runs on logon. I send no additional packets to the client on logon, am I doing this right in these conditions ?

GM Character

It seems that no matter what privileges I enable or disable, any staff character with cmdlevel > 1 can automatically move items which are set to be non-movable. Doors, forges, anvils, anything. I initially had all these privs set :

Privs all clotheany dblclickany equipany freemove hearghosts ignoredoors invul losany seeghosts seehidden seeinvisitems
Settings all clotheany dblclickany desolation equipany freemove hearghosts ignoredoors invul losany seeghosts seehidden seeinvisitems

Which I then changed to :

Privs equipany hearghosts invul seeghosts seehidden
Settings equipany hearghosts invul seeghosts seehidden

Still I am able to (as test cmdlevel with the above settings) move any object which I have explicitly locked-down, set non-movable, simply by clicking on it once and picking it up.

Other than that, everything else works and it all works well. I even have particle effects working well.

Any input on my above issues is greatly apprecited.

Yours sincerely,
Justae
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: Running UO:SA Client version 7.0 build 3.0.0.122 on POL0

Post by Turley »

Justae wrote: Ok, to start with, I stopped trying to generate the realms files with the MULs and IDXs of the UO:SA client.
When I ran uoconvert, it threw-up errors about "illegal graphic 0xxxx at location xxxx yyyy zzz". The graphic values reported as errors where everything above 0x3fff
I expected this, seeing as POL only allows max up to 0x3fff. I had even set the flag MaxTileID=0x7FFF in the POL.CFG file. It seems uoconvert does not see this when the conversion runs.
looks like uoconvert cannot find your pol.cfg, did you start uoconvert from pol root where the pol.cfg is? Second option would be adding "maxtileid=0x7FFF" to start params.
Here then is where I need some help. SendDialogGump works 100%, no problem with those gumps at all. In fact, they look even better in UO:SA
However, CreateMenu does not work, nothing comes up. Banks work, NPC Vendor menus work. I just cannot get CreateMenu to work and I need that to work badly, as all my crafting menus use CreateMenu, SelectMenuItem2 extensively and I do not have the time to rewrite all of those. Any ideas on what I can do or will this be something that needs fixing in a later core ?
dont think that this pkt is still supported, so we cannot fix it.
I was running the Megacliloc package just fine under POL096.7 with client UO:ML 6.0.1.7
With UO:SA and POL099, I have to disable the package otherwise UO:SA client crashes directly after login.
I would really like to have the Megacliloc package back, if anyone has a solution for this please.

My logon script sets acctref.set_uo_expansion("SA") That runs on logon. I send no additional packets to the client on logon, am I doing this right in these conditions ?
Mmmmh works for me. And jep no additional pkts needed.
It seems that no matter what privileges I enable or disable, any staff character with cmdlevel > 1 can automatically move items which are set to be non-movable. Doors, forges, anvils, anything. I initially had all these privs set :
Wierd also no problem for me.
Justae
Expert Poster
Posts: 79
Joined: Thu May 24, 2007 2:12 pm
Location: South Africa

Re: support kingdom reborn

Post by Justae »

Hello Turley,

Thank you for your feedback, much appreciated.

Yes, my POL.CFG is in the root of my POL directory, same as uoncovert.bat and uoconvert.cfg

Any chance I can get your Megacliloc package ? I suspect the one I have may have outdated hooks and packet configurations.

Thank you for the great work you and the rest of the POL Developers team have done, I coudn't use any other emulator with the same power and ease.

Best regards,
Justae.
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: support kingdom reborn

Post by Turley »

Since our megacliloc pkg is highly integrated in our shardsystem it wouldnt be much use.
Here you have a shortened and simplified version (only playerfunction, npc and item looks almost the same (except methodscript usage))
Ignore the cliloc numbers, I think they are all custom.

Code: Select all

Packet 0xD6
{
	Length 		variable
	SendFunction	tooltips:MegaCliloc
}

Enum ClilocOffsets
  OFFSET_SERIAL  :=  5,
  OFFSET_CLILOC  := 15,
  OFFSET_LENGTH  := 19,
  OFFSET_UNICODE := 21
EndEnum

Enum ClilocNumbers
  CLILOC_DUMMY := 1042971
EndEnum


exported Function MegaCliloc(who, byref packet)
    Var object, name;
    object:=SystemFindObjectBySerial(packet.GetInt32(OFFSET_SERIAL));
    If (object)
      packet.SetSize(OFFSET_CLILOC);
      packet.SetInt32(OFFSET_CLILOC, CLILOC_DUMMY);
      If (object.IsA(POLCLASS_MOBILE))
        name:=CAscZ(object.name);
        packet.SetInt16(OFFSET_LENGTH, name.Size()*2);
        packet.SetUnicodeStringFlipped(OFFSET_UNICODE, name, 0);
        If (object.IsA(POLCLASS_NPC))
            GetInfosNPC(object, who, packet);
        Else
            GetInfosPlayer(object, who, packet);
        EndIf
      ElseIf (object.IsA(POLCLASS_ITEM))
        name:=CAscZ(object.desc);
        packet.SetInt16(OFFSET_LENGTH, name.Size()*2);
        packet.SetUnicodeStringFlipped(OFFSET_UNICODE, name, 0);
        GetInfosItem(object, who, packet);
      Else
        Return;
      EndIf
      packet.SetInt32(packet.GetSize(), 0);
    EndIf

    Return(0);
EndFunction

Function GetInfosPlayer(byref object, byref who, byref packet)
  If (object.title_suffix)
    SetCliLocWithText(packet, 1077188, CAscZ(object.title_suffix));//<BASEFONT COLOR=#C0C0C0>~1_TITLE_SUFFIX~
  EndIf
  If (object.title_guild)
    SetCliLocWithText(packet, 1077185, CAscZ(object.title_guild));//<BASEFONT COLOR=#008000>[~1_GUILDTAG~]
  EndIf
  If (object.title_prefix)
    SetCliLocWithText(packet, 1077186, CAscZ(object.title_prefix));//<BASEFONT COLOR=#008000>~1_TITLE_PREFIX~
  EndIf
  If (object.title_race)
    SetCliLocWithText(packet, 1077187, CAscZ(object.title_race));//<BASEFONT COLOR=#008000>~1_TITLE_RACE~
  EndIf

  If ((object.frozen) || (object.paralyzed))
    SetCliLocWithOutText(packet, 1077181);//<BASEFONT COLOR=#0099FF>(frozen)
  EndIf
  If (object.enabled("invul"))
    SetCliLocWithOutText(packet, 1077182);//<BASEFONT COLOR=#0099FF>(invulnerable)
  EndIf
  If (object.poisoned)
    SetCliLocWithOutText(packet, 1077183);//<BASEFONT COLOR=#0099FF>(vergiftet)
  EndIf
  If (object.squelched)
    SetCliLocWithOutText(packet, 1077184);//<BASEFONT COLOR=#0099FF>(stumm)
  EndIf
EndFunction

Function SetCliLocWithText(byref packet, cliloc, text)
  packet.SetInt32(packet.GetSize(), cliloc);
  packet.SetInt16(packet.GetSize(), text.Size()*2);
  packet.SetUnicodeStringFlipped(packet.GetSize(), text, 0);
EndFunction

Function SetCliLocWithOutText(byref packet, cliloc)
  packet.SetInt32(packet.GetSize(), cliloc);
  packet.SetInt16(packet.GetSize(), 0);
EndFunction
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: support kingdom reborn

Post by atreiu »

UO SA build ver. 4.0.8.3
POL099beta-2010-01-02 (VS.NET 2005) compiled on Jan 2 2010 13:53:51

sometimes server receive wrong packet from client (sometime without any character's actions):

"Unknown packet type 0xbf: 9 bytes (IP:127.0.0.1, Account:admin)
0000: bf 00 09 00 13 00 00 00 01 ........ ........ "

Packet Name: General Information Packet. why this appear?

also:
Unknown packet type 0xc8: 2 bytes (IP:127.0.0.1, Account:admin)
0000: c8 12 ........ ........
Unknown packet type 0xd7: 10 bytes (IP:127.0.0.1, Account:admin)
0000: d7 00 0f 00 00 00 01 00 19 00 ........ ........

result:
after some of that packets char cant move. all other is working but moving is impossible. or cant use anything, char said - "I am already performing another action.". or black monitor of client, i hear my character's moving, but cant see anything, pop up menus etc. all black. or just "connection lost".

also wanna understand.

Dear developers, do you have at this moment course on SA/KR clients and is this one of dev tasks on this moment? i ask this because maybe this is don't interesting for you and you dont develop server for that now.
Last edited by atreiu on Fri Aug 20, 2010 5:53 am, edited 3 times in total.
Justae
Expert Poster
Posts: 79
Joined: Thu May 24, 2007 2:12 pm
Location: South Africa

Re: support kingdom reborn

Post by Justae »

Hello Turley,

Thank you so very much for the snippet, I will expand and build on that. Very much appreciated :)
Should I be using empty Cliloc's numbers in place of the numbers you have in your example code ?

Best regards,
Justae.
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: support kingdom reborn

Post by Turley »

"Unknown packet type 0xbf: 9 bytes (IP:127.0.0.1, Account:admin)
0000: bf 00 09 00 13 00 00 00 01 ........ ........ "
Thats the Contextmenu request packet: Sub 0x13
(no new UOSA packet)
Unknown packet type 0xc8: 2 bytes (IP:127.0.0.1, Account:admin)
0000: c8 12 ........ ........
Client view range, also no new packet
Unknown packet type 0xd7: 10 bytes (IP:127.0.0.1, Account:admin)
0000: d7 00 0f 00 00 00 01 00 19 00 ........ ........
Combat Book Abilities, also no new packet
result:
after some of that packets char cant move. all other is working but moving is impossible. or cant use anything, char said - "I am already performing another action.". or black monitor of client, i hear my character's moving, but cant see anything, pop up menus etc. all black. or just "connection lost".
wierd
Dear developers, do you have at this moment course on SA/KR clients and is this one of dev tasks on this moment? i ask this because maybe this is don't interesting for you and you dont develop server for that now.
jep i have SA, development for it isnt my highest priority, but jep we are working on it somehow :)
Turley
POL Developer
Posts: 670
Joined: Sun Feb 05, 2006 4:45 am

Re: support kingdom reborn

Post by Turley »


Thank you so very much for the snippet, I will expand and build on that. Very much appreciated :)
Should I be using empty Cliloc's numbers in place of the numbers you have in your example code ?
You only need a "~NOTHING~" cliloc for the name, for the rest you can use custom clilocs to reduce the packetsize or also use a "~NOTHING~" cliloc. Depends if you want to give your players a custom cliloc.
Justae
Expert Poster
Posts: 79
Joined: Thu May 24, 2007 2:12 pm
Location: South Africa

Re: support kingdom reborn

Post by Justae »

Thank you again, Turley.

I'm striving to keep the packet sizes reduced, weighing that up against having a custom cliloc file which players to my shard would have to download :)

One last thing, I know you say you're not totally focused on any Dev for SA, but may I get you advice on the
UOFeatureEnable=0x1e0 which I am currently using ? It works, all the spellbooks etc open in the SA interface style. Only thing I am still battling with is gumps, specifically those gumps which let you type data into fields. The cursor appears almost at the bottom of the screen, completely out of the gump. It kind of works but obviously not ideal by any means.

Also, any input text - prompt at the bottom of the screen does not appear. I suspect this is due to the way the chat windows function differently to the standard single-line type-in style.

Cheers,
Justae.
Post Reply