The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 5 Votes - 4.8 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Housing
Author Message
babazar
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 10 in 9 posts
Joined: Jun 2013
Reputation: 0



Post: #121
RE: Housing
i fixed this issue, found ur last verion,

but i have this error:
ERROR:UID=04001a841, id=0bd1 '18x18 3-Story Customizable House', Invalid code=2236 (Item flagged as decay but without timer set)
ERROR:UID=04001d951, id=0bd1 'Tower', Invalid code=2236 (Item flagged as decay but without timer set)
ERROR:UID=040021317, id=0bd1 'Keep', Invalid code=2236 (Item flagged as decay but without timer set)
ERROR:UID=040022fd4, id=0bd1 'Wizards Tower', Invalid code=2236 (Item flagged as decay but without timer set)

get this after a save when a door sign has been clicked on

I get this issue when the house decay is set to zero? Also using your last version of this script as im not using the latest version of the script pack
(This post was last modified: 02-05-2014 03:11 AM by babazar.)
02-04-2014 07:32 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #122
RE: Housing
I will investigate the timer issue tomorrow, been a busy day here.

[Image: 2nis46r.jpg]
02-04-2014 01:49 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Mordaunt's post
babazar
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 10 in 9 posts
Joined: Jun 2013
Reputation: 0



Post: #123
RE: Housing
little quick one, with ur system how do you link doors to the house. i.e if a door was removed by mistake?
02-05-2014 03:09 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #124
RE: Housing
V2.3.3 Uploaded:

Added: Check for house sign attr to prevent "timer" error as reported by Babazar
Added: .all_house_timer_reset function which will reset and start timers for all houses on the server. This function MUST be used if changing from a non decay setting to a decay setting. Otherwise houses timers will be set to zero and may be deleted on the next world save.


@Babazar go into debug mode, use .link target the door and target the gembit, if you are talking about the "extra" doors that castles and keeps can have, they are automatically linked when placed from the menu option.

[Image: 2nis46r.jpg]
02-05-2014 03:39 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
babazar
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 10 in 9 posts
Joined: Jun 2013
Reputation: 0



Post: #125
RE: Housing
perfect, pitty i cant use it as im using older script pack, anyway other issue

Im using custom houses with your system, however if someone trys to redeed i get this error

22:45:ERROR:(housing22.scp,1518)Undefined symbol 'i_deed__studio'
22:45:ERROR:(housing22.scp,1518)Undefined symbol 'i_deed__studio

The deed is really called "i_deed_marble_studio" not "i_deed__studio"

line 1518 is "serv.newitem i_deed_<STRSUB 8 30 <ref1.link.baseid>>"

also some of our houses use large foundations "in theory"

23:06:ERROR:(housing22.scp,3848)Undefined symbol ''
23:06:ERROR:(housing22.scp,3861)Undefined symbol 'i_multi_foundation_29x22'
23:06:ERROR:(housing22.scp,3861)Undefined symbol 'i_multi_foundation_29x22'

Is there a way to set this up so the max size foundation that will be placed on the custom side is was dictated in sphere scripts? rather than looking for 29x22
(This post was last modified: 02-05-2014 08:08 AM by babazar.)
02-05-2014 07:48 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #126
RE: Housing
what is your studio deed called? I guarantee it's not i_deed__studio

I don't follow what you are saying with the foundation.
That only really come into effect when players convert their house from a standard one to a custom one. It the foundation created is of equivalent size. If players have deeds to place larger foundations they should work fine.

As for not being able to use it because you are using an older script pack, simply search for m_ and replace it with i_multi_

[Image: 2nis46r.jpg]
02-05-2014 08:50 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
babazar
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 10 in 9 posts
Joined: Jun 2013
Reputation: 0



Post: #127
RE: Housing
The deed is really called "i_deed_marble_studio" not "i_deed__studio"

Your script is showing the error above which states it's called I_deed__studio completely missing out marble

With regards to foundations I don't have foundations that large only standard one that come with sphere, hence why I was wondering can we limit the size ? Or switch off the option so certain houses can't be customized
(This post was last modified: 02-05-2014 10:05 AM by babazar.)
02-05-2014 10:03 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #128
RE: Housing
What is the muti called? As the script extrapolates the deed name from the multi name.

The foundations.. depends on what you want to limit. the script will only allow conversion of houses that have a foundation of matching size. Any others the players would have to have the deed to place. Castle and Keep don't convert at all as there isn't (or wasn't when I wrote the script) a foundation of matching size. If you are wanting to prevent players from customizing certain sized foundation (for reasons that I don't really understand at present).

This is the portion of code that calls the house builder (which is hard coded)
Code:
    elif (<argn>==35) //custom builder
            ref1=<src.region.tag0.sign>
            if (<ref1.tag0.demolition>)
                src.sysmessage @32,,1 This house is scheduled for demolition and cannot be customized.
                return 1
            endif
            if (<src.region.uid> != <region.uid>)
                return 2
            elif (<src.housedesign>)
                src.sysmessage @32,,1 You are already designing <QVAL (<src.housedesign.uid> == <link.uid>)? this:another> building.
                return 1
            elif !(<src.isevent.e_house_customize>)
                src.events +e_house_customize
            endif
            link.customize
            return 1

By adding a tag to the foundations you want to prevent customization upon, or by adding a size check into that button code you can easily prevent the button from doing anything.

[Image: 2nis46r.jpg]
(This post was last modified: 02-05-2014 11:00 AM by Mordaunt.)
02-05-2014 10:54 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
babazar
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 10 in 9 posts
Joined: Jun 2013
Reputation: 0



Post: #129
RE: Housing
Thanks,

The Marble Studio:

[multidef 037]
defname=i_marble_studio
name=Marble Studio

[itemdef i_deed_marble_studio]
defname=i_deed_marble_studio
name= Deed to a Marble Studio

Hope that helps.

In regards to the foundation, The reason behind wnatign certain houses not to customize is I dont have foundations to match there size, These Houses are all ready custom multi houses. So there shouldnt be many reasons for wanting to customize them and use he foundation. For the time being, Till i figure house how to make bigger foundations to match some of there sizes.
02-05-2014 06:39 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #130
RE: Housing
If you follow the normal naming convention i.e. i_multi_marble_studio then it will return the correct deed to you.
Which thinking about it I need to modify for the newer m_ method of naming..

Ok, in that case search out this section:

Code:
page 4
if <QVAL <def.account_ownership>? (<src.acc_is_owner>):(<src.is_owner>)> || (<src.isgm>)
    if (<link.type>==t_multi_custom)
        dtext 57 140 90 Convert into customizable house
        button 7 160 4005 4007 1 0 35
        dtext 57 160 90 Customize this house
    else
        if (<link.baseid>==i_multi_keep) || (<link.baseid>==i_multi_castle) || (<link.region.tag0.noredeed>)
            dtext 57 140 992 Convert into customizable house
            dtext 57 160 992 Customize this house
        else
.........

And add the ones you DONT want to customize to the line:

if (<link.baseid>==i_multi_keep) || (<link.baseid>==i_multi_castle) || (<link.region.tag0.noredeed>)

After that the button will be missing and the text will be greyed out on those houses.

[Image: 2nis46r.jpg]
02-05-2014 11:13 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 11 Guest(s)