• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Console Error? -Solved-

Ceejzor

Murica Born N Raised!
Joined
Jul 5, 2008
Messages
2,293
Reaction score
188
Location
USA - Philippines
Could anyone help me what is causing this?

Code:
[08/04/2010 12:29:31] [Error - GlobalEvent Interface] 
[08/04/2010 12:29:31] buffer
[08/04/2010 12:29:31] Description: 
[08/04/2010 12:29:31] (luaGetHouseInfo) House not found

[08/04/2010 12:29:31] [Error - GlobalEvent Interface] 
[08/04/2010 12:29:31] buffer
[08/04/2010 12:29:31] Description: 
[08/04/2010 12:29:31] [string "loadBuffer"]:6: attempt to index a boolean value
 
Last edited:
Hmm 29 view's no suggestions?

here is my globalevents.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<globalevents>
    <globalevent name="save" interval="1800" event="script" value="save.lua"/>
	<globalevent name="clean" interval="28800" event="script" value="clean.lua"/>
	<globalevent name="serverstart" type="start" event="script" value="start.lua"/>
	<globalevent name="playersrecord" type="record" event="script" value="record.lua"/>
	<globalevent name="shop" interval="30" script="shop.lua"/>  
    <globalevent name="autobroadcast" interval="800" script="autobroadcast.lua"/>	
	<!-- <globalevent name="timer_example" time="21:35" event="script" value="my_script.lua"/> -->
</globalevents>
 
Could it be this?

cleanhouses.xml
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Clean houses mod" version="1.0" author="nsanee" contact="otland.net" enabled="yes">
    <description>
        This mod will clean houses of inactive players and move their items to the depot.
        
        config explained:
            
            days - If the player hasn't logged in for this number of days his house will be freed.
            log - true/false, whether to enable logging of which houses have been cleaned.
            file - path to the log file, where logs will be stored. Ignored if 'log' set to false
        
            DO NOT remove doSaveServer() at the end, otherwise if your server happens to crash before the nearest server save you will regret it =)
    </description>

    <config name="cleanhouses_conf"><![CDATA[
    
        config = { 
            days = 7,
            log = true,
            file = getDataDir() .. "/logs/cleanhouses.txt"
        }
        
    ]]></config>
    <globalevent name="cleanhouses" type="start" event="buffer"><![CDATA[
        domodlib('cleanhouses_conf')
        local house = db.getResult("SELECT `owner` ,`id` FROM `houses` WHERE `owner` IN (SELECT `id` FROM `players` WHERE `lastlogin` < UNIX_TIMESTAMP() - "..config.days.. "*24*60*60)")
        local logs = " :: Houses cleaned:\n\n"
        if house:getID() ~= -1 then
            repeat
                logs = logs .. getHouseInfo(house:getDataInt('id')).name ..", owned by " .. getPlayerNameByGUID(house:getDataInt('owner')) .. "\n"
                setHouseOwner(house:getDataInt('id'), 0)
            until not house:next()
        else
            logs = logs .. "There were no houses to clean."
        end
        if config.log then
            doWriteLogFile(config.file, logs)
        end
        doSaveServer()
    ]]></globalevent>
</mod>
 
Umm, yea :).
Code:
                logs = logs .. getHouseInfo(house:getDataInt('id')).name ..", owned by " .. getPlayerNameByGUID(house:getDataInt('owner')) .. "\n"
Something wrong with that line ... can't point out what exactly.
 
Can't say for sure, and I won't say a thing unless I'm sure of it.
And what's with the thread title? I barely did anything.
 
Back
Top