its done i cant edit title<_<
Ehm this sys is for 0.3.6 or 0.4[19/08/2010 12:44:19] Zaju has logged in.
[19/08/2010 12:44:19] Lua Script Error: [CreatureScript Interface]
[19/08/2010 12:44:19] buffernLogin
[19/08/2010 12:44:19] [string "loadBuffer"]:4: attempt to call global 'getCreatureStorage' (a nil value)
[19/08/2010 12:44:19] stack traceback:
[19/08/2010 12:44:19] [string "loadBuffer"]:4: in function <[string "loadBuffer"]:2>
[19/08/2010 12:44:19] Zaju has logged out.
Help please TFS0.3.5 PL1
doPlayerSetStorageValue = doCreatureSetStorage
setPlayerStorageValue = doPlayerSetStorageValue
getPlayerStorageValue = getCreatureStorage
[Error - Action Interface]
data/actions/scripts/quests/system.lua:onUse
Description:
data/actions/scripts/quests/system.lua:97: attempt to index global 'rep' (a nil value)
stack traceback:
data/actions/scripts/quests/system.lua:97: in function <data/actions/scripts/quests/system.lua:9>
the current system is a mod, i stopped scripting it at luaTFS 0.3.6 , i add all from instruction
Code:[Error - Action Interface] data/actions/scripts/quests/system.lua:onUse Description: data/actions/scripts/quests/system.lua:97: attempt to index global 'rep' (a nil value) stack traceback: data/actions/scripts/quests/system.lua:97: in function <data/actions/scripts/quests/system.lua:9>
i add loadmodlib('repSystem') to the end 050-function.lua
but where is this file repsystem.lua ?
mhm, help
mods/rep.xml:114: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xA9 0x20 0x4F 0x54
rs` ADD COLUMN `rep` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Cyber''s REPSystem
^
> Loading rep.xml...[Error - ScriptingManager::loadFromXml] Cannot load mod mods/rep.xml
Line: 114, Info: Input is not proper UTF-8, indicate encoding !
Bytes: 0xA9 0x20 0x4F 0x54
<globalevent name="rep_start" type="start" event="script"><![CDATA[
domodlib('repSystem')
function onStartup()
if getGlobalStorageValue(rep.update) == EMPTY_STORAGE then
setGlobalStorageValue(rep.update, 1)
local query = db.getResult("SELECT `rep` FROM `players` LIMIT 1;")
if isInArray({-1,'',nil,false},query:getID()) then
print('>> [REP_SYSTEM] Installing Reputation System...')
db.executeQuery("ALTER TABLE `players` ADD COLUMN `rep` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Cyber''s REPSystem © OTLand.net';")
print('>> [REP_SYSTEM] System successfully installed.')
else
print('>> [REP_SYSTEM] Updating Reputation System...')
db.executeQuery("ALTER TABLE `players` CHANGE COLUMN `rep` `rep` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Cyber''s REPSystem © OTLand.net';")
print('>> [REP_SYSTEM] System successfully updated.')
end
query:free()
end
print('>> [REP_SYSTEM] Current Revision: 6.0')
print('>> [REP_SYSTEM] Reputation System successfully loaded.')
return true
end
]]></globalevent>
ALTER TABLE `players` ADD COLUMN `rep` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Cyber''s REPSystem © OTLand.net';
[20/08/2010 13:56:44] >> Initializing game state modules and registering services...
[20/08/2010 13:56:44] mysql_real_query(): SELECT `rep` FROM `players` LIMIT 1; - MYSQL ERROR: Unknown column 'rep' in 'field list' (1054)
[20/08/2010 13:56:44] >> [REP_SYSTEM] Installing Reputation System...
[20/08/2010 13:56:44] >> [REP_SYSTEM] System successfully installed.
[20/08/2010 13:56:44] >> [REP_SYSTEM] Current Revision: 6.0
[20/08/2010 13:56:44] >> [REP_SYSTEM] Reputation System successfully loaded.
[20/08/2010 13:56:45] > Global address: localhost
[20/08/2010 13:58:32] >> Initializing game state modules and registering services...
[20/08/2010 13:58:32] >> [REP_SYSTEM] Updating Reputation System...
[20/08/2010 13:58:33] >> [REP_SYSTEM] System successfully updated.
[20/08/2010 13:58:33] >> [REP_SYSTEM] Current Revision: 6.0
[20/08/2010 13:58:33] >> [REP_SYSTEM] Reputation System successfully loaded.
That is OK Players with 0(zero) rep are not ranked When players get > 0 or < 0 rep they'll appear thereI have a problem. here do not appear in the player rep page that exists in my database. excuse my English, here is a SS.
that's pretty weird. did you make a server save to test that?hym, dont work?
player have rang Avoved and rep page is again clear .. :/