OwnerTimout on Horses/Warhorses

Place for sharing your game modifications for Life is Feudal: Your Own

Flocky
 
Posts: 9
Joined: 06 Oct 2014, 19:16

OwnerTimout on Horses/Warhorses

Post by Flocky » 07 Jan 2016, 16:54

Hey Folks,

in order to not take care of your horse while visiting a claim i wanted to raise up the ownertimeout for warhorses.

i've edited the owner timeout of horses at dump.sql to 1200 seconds. After server restarts, heidiSQL shows me this 1200 seconds in objects_types.


But real timeout is still 3 Minutes. I also havent found any client-side timeout configuration for this.

Does anyone have an idea?


Blackdrakon
 
Posts: 20
Joined: 01 Feb 2016, 09:27

Re: OwnerTimout on Horses/Warhorses

Post by Blackdrakon » 17 Mar 2016, 09:21

I'm resurrecting this thread because I'd also like to know the answer to this.


Halvdal
 
Posts: 107
Joined: 20 Jan 2016, 13:36

Re: OwnerTimout on Horses/Warhorses

Post by Halvdal » 26 Apr 2016, 08:29

I want to know this too.

User avatar
Cattoaster
 
Posts: 110
Joined: 03 Nov 2014, 16:13
Location: Medieval Germany

Re: OwnerTimout on Horses/Warhorses

Post by Cattoaster » 26 Apr 2016, 08:50

Have you changed the owner timeout for a warhorse as inventory item or as a 'real' warhorse?

If you read carefully dump.sql you'll find two different object types for warhorses

a warehorse as an inventory item (parent id) is 1041
Code: Select all
(1041,1034,'Warhorses (item)',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',NULL,NULL),


a warehorse as a 'real' horse object (parent id) is 774
Code: Select all
(774,772,'Warhorse',0,0,0,0,0,0,0,0,0,0,'',0,0,0,0,0,0,'','',NULL,300),


So far, if you want to change the owner timeout of a 'real' warhorse edit the values of the following warhorse (object ids): 775 (spirited warhorse), 776 (hardy warhorse), 777 (heavy warhorse), 1139 (royal warhorse) .. and 1108 (horse "stallion") and 773 (horse)


Halvdal
 
Posts: 107
Joined: 20 Jan 2016, 13:36

Re: OwnerTimout on Horses/Warhorses

Post by Halvdal » 26 Apr 2016, 09:38

Both ways doesn't work. Thats why i'm asking.

User avatar
Cattoaster
 
Posts: 110
Joined: 03 Nov 2014, 16:13
Location: Medieval Germany

Re: OwnerTimout on Horses/Warhorses

Post by Cattoaster » 26 Apr 2016, 17:14

Tried it myself and can confirm it. I don't know how to achieve this

There is a 'horses' database table and a stored procedure 'p_createHorseObject' which fills this table when a player rides a horse out of his inventory. However OwnerID and DroppedTime are not updated instead they are filled with default values..


Halvdal
 
Posts: 107
Joined: 20 Jan 2016, 13:36

Re: OwnerTimout on Horses/Warhorses

Post by Halvdal » 30 Apr 2016, 04:12

Would be great if there is anyone out there who's working this out.


Alakar
Beta Tester
 
Posts: 202
Joined: 23 Jan 2015, 07:39

Re: OwnerTimout on Horses/Warhorses

Post by Alakar » 30 Apr 2016, 04:52

Have you tried changing

Code: Select all
$horses::ownershipTimeout = "180";


to some other value on the server?

-Alakar
http://arkhaya.com/


Halvdal
 
Posts: 107
Joined: 20 Jan 2016, 13:36

Re: OwnerTimout on Horses/Warhorses

Post by Halvdal » 30 Apr 2016, 22:00

YOU are awesome! It works like a charm. I've set it to 360 = 6 minutes and it works very well.

Should i execute this on every restart or can i add this somewhere?


Alakar
Beta Tester
 
Posts: 202
Joined: 23 Jan 2015, 07:39

Re: OwnerTimout on Horses/Warhorses

Post by Alakar » 30 Apr 2016, 23:15

Halvdal wrote:YOU are awesome! It works like a charm. I've set it to 360 = 6 minutes and it works very well.

Should i execute this on every restart or can i add this somewhere?


Could at it to the end of main.cs I would imagine.

-Alakar
http://arkhaya.com/

User avatar
Cattoaster
 
Posts: 110
Joined: 03 Nov 2014, 16:13
Location: Medieval Germany

Re: OwnerTimout on Horses/Warhorses

Post by Cattoaster » 01 May 2016, 05:29

Alakarsiann wrote:[..]
Code: Select all
$horses::ownershipTimeout = "180";

[..]

-Alakar
http://arkhaya.com/


Thanks Alakarsiann!

Could you briefly explain me where does this variable come from? Asking because this could be helpful to answer my question here.

User avatar
Cattoaster
 
Posts: 110
Joined: 03 Nov 2014, 16:13
Location: Medieval Germany

Re: OwnerTimout on Horses/Warhorses

Post by Cattoaster » 03 May 2016, 08:23

*friendly push*


Alakar
Beta Tester
 
Posts: 202
Joined: 23 Jan 2015, 07:39

Re: OwnerTimout on Horses/Warhorses

Post by Alakar » 04 May 2016, 03:01

Code: Select all
$CmMaintenance::forestMaintenanceDayCount = "1";
$CmMaintenance::performAtQuit = "0";
$CmMaintenance::skipAnimalRespawn = "0";
$CmMaintenance::skipClaimsMaintenance = "0";
$CmMaintenance::skipCropsMaintenance = "0";
$CmMaintenance::skipForestMaintenance = "0";
$CmMaintenance::skipGeoDecay = "0";
$CmMaintenance::skipHoneyFlow = "0";
$CmMaintenance::skipMaintenance = "0";
$CmMaintenance::skipObjectDecay = "0";
$CmMaintenance::skipPatchMaintenane = "0";


Just set any of the skips to 1 to skip that maintenance cycle. Or you can skip all with skipmaintenance.

-Alakar
http://arkhaya.com/

User avatar
Cattoaster
 
Posts: 110
Joined: 03 Nov 2014, 16:13
Location: Medieval Germany

Re: OwnerTimout on Horses/Warhorses

Post by Cattoaster » 04 May 2016, 13:17

Awesome, it works as intended. Thank you Alakar! :good:
* Although I still have no idea where these variables come from - but I'll find it out, sooner or later *

Return to Game mods