Stucks while running

Forum where anything UOX3-related goes - including, but not limited to: newbie-support, ideas, general questions, comments, etc and-so-forth.
User avatar
thedepthofman
UOX3 Newbie
Posts: 13
Joined: Sat Jun 21, 2014 5:39 am
Has thanked: 0
Been thanked: 0

Stucks while running

Post by thedepthofman »

Hello people. I searched whole forum for that problem, but could not find anything that helps. I builded the server and it runs with no problem, but when I log in and start running with my character, it gets stuck like every 1-2 min. Any solution for that? What did I do wrong?
User avatar
thedepthofman
UOX3 Newbie
Posts: 13
Joined: Sat Jun 21, 2014 5:39 am
Has thanked: 0
Been thanked: 0

Post by thedepthofman »

Well, looks like I have found a solution.

I modified the function in movement.cpp like that and now its ok:

Code: Select all

bool cMovement::VerifySequence( CChar *c, CSocket *mSock, SI16 sequence )
{
    if( mSock != NULL )
    {

+        if (sequence == mSock->WalkSequence())
+            ++sequence;

         if( mSock->WalkSequence() + 1 != sequence && sequence != 256 )
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Interesting fix! Also, welcome :)

Would you mind sharing what version of the UO client you are using, btw?
-= Ho Eyo He Hum =-
User avatar
thedepthofman
UOX3 Newbie
Posts: 13
Joined: Sat Jun 21, 2014 5:39 am
Has thanked: 0
Been thanked: 0

Post by thedepthofman »

Mainly 5.0.8.4 (patch 72) with no encryption but I've also tried with

5.0.8.3
4.0.2a
4.0.1b

all of them was stucking the character. By the way, I just realized that the problem is not completely solved. It still stucks but very very rarely and only 1 time. Actually its so rare that not important, but i will try to fix it too. Also I work on VStudio 2010 professional. In your project sql functions like ODBC is not working in fully, so I remade my own mysql codes. Its about the finish, and I will share them under github repository with cmake configurations.
User avatar
thedepthofman
UOX3 Newbie
Posts: 13
Joined: Sat Jun 21, 2014 5:39 am
Has thanked: 0
Been thanked: 0

Post by thedepthofman »

It took some time but, I managed to finish it. You can look it from the link.

viewtopic.php?f=20&t=2502

BTW, I have some questions.

I realized that when I try to cast spells with different clients, sometimes it works, sometimes not. For example with 5.0.8.4 no problem with casting spells, but with the last version of uo 7.0.35.1 it stucks and does not cast.

With any client I tried I could not see the spells in spellbook, but with Iris2 2D client, (http://iris2.de/index.php/Main_Page) I can see spells in the spellbook. I cannot see death shroud on my character etc.

Do you know any solution? What is the stable client for uox3?
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

I'm not sure about the specifics that cause your issue with spellcasting, but there has been very little work done to support any potential packet changes after client ~7.0.16 or so. Packet changes in the more recent client versions might be messing things up. Without having done much testing with recent client versions, I can't speak for how well they work with UOX3, so based on experience I can only suggest using a client in the 7.0.0-7.0.23 range.

As for not seeing the spells in the spellbook - is this true also without adding spells to the spellbook manually (drag & drop spell scrolls)?
-= Ho Eyo He Hum =-
User avatar
thedepthofman
UOX3 Newbie
Posts: 13
Joined: Sat Jun 21, 2014 5:39 am
Has thanked: 0
Been thanked: 0

Post by thedepthofman »

As for not seeing the spells in the spellbook - is this true also without adding spells to the spellbook manually (drag & drop spell scrolls)?

what do you mean by "without adding spells?" even if I create a new char which is mage and open his mage book, its blank.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

AFAIK all spellbooks added in UOX3 are empty by default, and need to be filled up with magic spells by dragging & dropping magic scrolls onto the spellbook item in your backpack. There's one such scroll in the item menu that will add all spells to the spellbook ('ADD -> MAGIC -> All-In-One scroll or some such).

I guess in regular UO nowadays the spellbook comes with spells from the get-go? :P
-= Ho Eyo He Hum =-
User avatar
thedepthofman
UOX3 Newbie
Posts: 13
Joined: Sat Jun 21, 2014 5:39 am
Has thanked: 0
Been thanked: 0

Post by thedepthofman »

No, you got misunderstood i guess. I'm an old player, so i know how the things works. I'm talking about the spellbooks which comes with the new created mage class. There are few spells as default you know. But i can't see those spells in the book. Also if i add any scroll into an empty spellbook, it shows up still empty. That's the point. If i try to add the same scroll into the same spellbook, i got a message it's already there. Theoretically it is added but i can't see the spells unless i logout and relogin with another client called Iris. (i can't see with the other regular clients)
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Interesting. I tested just now with client versions 5.0.0b, 6.0.4.0, 7.0.8.2, 7.0.9.0 and 7.0.27.9 and UOX3 v0.99.2b/2c, using Razor to start up and remove encryption from the clients. I created a new mage character in each of the clients (tried with both admin account and regular user account), dragged a starter spell onto the spellbook and then opened the spellbook, which displayed the spell I had just dragged onto it.

I'm not sure why it's not showing up for you. Have you modified the CLIENTFEATURES/SERVERFEATURES setting in uox.ini, by any chance?
-= Ho Eyo He Hum =-
User avatar
thedepthofman
UOX3 Newbie
Posts: 13
Joined: Sat Jun 21, 2014 5:39 am
Has thanked: 0
Been thanked: 0

Post by thedepthofman »

Yes of course. My settings are
CLIENTFEATURES = 32777
SERVERFEATURES = 11
I have used the defaults values but it is still the same.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

I tried with your settings, and now my spellbook is empty as well, so it definitely seems related to those settings.
-= Ho Eyo He Hum =-
User avatar
thedepthofman
UOX3 Newbie
Posts: 13
Joined: Sat Jun 21, 2014 5:39 am
Has thanked: 0
Been thanked: 0

Post by thedepthofman »

I also re-downloaded UOX3 v0.99.2b and tried with default settings but still no difference, weird.. Would you please upload your copy which is working, so i can try with that too ?
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Alas, my test-setup is the All-In-One for 0.99.2b, with only one single modification made - the path to the UO folder. I even re-downloaded that myself just now to double-check. :| Whenever I use the client/server-settings you posted, I stop seeing spells in spellbooks. As soon as I switch back to the defaults, the spells reappear. Note that I made all my changes to uox.ini while UOX3 was shut down.

Could you post some more details about your setup? Like, what version of Windows (or Linux) you are using, what program you use to remove client encryption, etc.
-= Ho Eyo He Hum =-
User avatar
thedepthofman
UOX3 Newbie
Posts: 13
Joined: Sat Jun 21, 2014 5:39 am
Has thanked: 0
Been thanked: 0

Post by thedepthofman »

I have Windows 7. I tried with another computer but it has different version of uo and now i can see spells but some spells has wrong sound effects. Could the uo version be all of those strange issues? Which uo version do you have ? Btw i used uog and razor to connect.
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

I'm on Windows 7, using Razor, tested with various UO (classic) clients: 4.0.11c, 5.0.0b, 6.0.4.0, 7.0.8.2, 7.0.9.0 and 7.0.27.9
-= Ho Eyo He Hum =-
User avatar
thedepthofman
UOX3 Newbie
Posts: 13
Joined: Sat Jun 21, 2014 5:39 am
Has thanked: 0
Been thanked: 0

Post by thedepthofman »

I reinstalled uo, now it is working. But there are weird issues with spells. Some spells making the character stuck permanently. Also some of them has wrong sound effects and more important some referring to others. For example; I'm trying to cast recall from my spellbook but it is casting reveal. (I forgot the spell names which causing to this) Do you have the same issues? Or is it because of uo client again. Btw i tried using 7.0.3 , 5.0.x and 4.0.1
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

The sound-effects (and various other spell-settings) can be changed in UOX3/DFNDATA/SPELLS/spells.dfn if they are wrong, but I'm not experiencing the other issues you mentioned, neither getting stuck permanently nor wrong spells being cast. Are you testing as a GM character or as a regular player character?
-= Ho Eyo He Hum =-
User avatar
thedepthofman
UOX3 Newbie
Posts: 13
Joined: Sat Jun 21, 2014 5:39 am
Has thanked: 0
Been thanked: 0

Post by thedepthofman »

They started to work somehow. Some spells like mass dispel must be casted on the ground but it wants a target. Is it default or an issue about something else. (btw is it modifiable under dfn)
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

I tried Mass Dispel myself now, and it asked me for a target, so I target a summoned monster, and the summoned monster plus any nearby summoned monsters are dispelled. Is that not how it is supposed to work?

UO Guide, about the Mass Dispel spell:
Area of Effect: All valid targets within 8 tiles of a single target.
Description: Any summoned creature within an 8 tile radius around the target is dispelled.


One thing I noticed while testing this, though, was that the Dispel/Mass Dispel spells have no effect on creatures summoned with the Summon Creature spell (which summons animals). I'm not sure whether these are also supposed to be dispelled or not, but if they are, it's an easy fix. Just add the following line to the end of case 0 in void cMagic::SummonMonster() in magic.cpp:

Code: Select all

newChar->SetDispellable( true );
-= Ho Eyo He Hum =-
Post Reply