Fix string format

ryzomclassic-develop
kaetemi 5 years ago
parent ada4e5bfbf
commit 154ae55165

@ -865,7 +865,7 @@ component.create = function()
debugInfo("Cancel form for bandit camp creation") debugInfo("Cancel form for bandit camp creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of bandit camp at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of bandit camp at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("BanditCamp") == 1 then if r2.mustDisplayInfo("BanditCamp") == 1 then
r2.displayFeatureHelp("BanditCamp") r2.displayFeatureHelp("BanditCamp")
end end

@ -518,7 +518,7 @@ component.create = function()
debugInfo("Cancel form for 'BossSpawnerFeature' creation") debugInfo("Cancel form for 'BossSpawnerFeature' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'BossSpawnerFeature' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'BossSpawnerFeature' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("BossSpawner") == 1 then if r2.mustDisplayInfo("BossSpawner") == 1 then
r2.displayFeatureHelp("BossSpawner") r2.displayFeatureHelp("BossSpawner")
end end

@ -245,7 +245,7 @@ component.create = function()
debugInfo("Cancel form for 'CounterFeature' creation") debugInfo("Cancel form for 'CounterFeature' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'CounterFeature' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'CounterFeature' at pos (%f, %f, %f)", x, y, z))
r2:doForm("CounterFeatureForm", {X=x, Y=y}, paramsOk, paramsCancel) r2:doForm("CounterFeatureForm", {X=x, Y=y}, paramsOk, paramsCancel)
end end
local function posCancel() local function posCancel()

@ -1495,7 +1495,7 @@ local registerFeature = function ()
debugInfo("Cancel form for 'User Component' creation") debugInfo("Cancel form for 'User Component' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'User Component' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'User Component' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("UserComponent") == 1 then if r2.mustDisplayInfo("UserComponent") == 1 then
r2.displayFeatureHelp("UserComponent") r2.displayFeatureHelp("UserComponent")
end end
@ -1568,7 +1568,7 @@ local registerFeature = function ()
debugInfo("Cancel form for 'User Component' creation") debugInfo("Cancel form for 'User Component' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'User Component' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'User Component' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("UserComponent") == 1 then if r2.mustDisplayInfo("UserComponent") == 1 then
r2.displayFeatureHelp("UserComponent") r2.displayFeatureHelp("UserComponent")
end end

@ -562,7 +562,7 @@ component.create = function()
if not r2:checkAiQuota() then return end if not r2:checkAiQuota() then return end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'DeliveryTask' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'DeliveryTask' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("DeliveryTask") == 1 then if r2.mustDisplayInfo("DeliveryTask") == 1 then
r2.displayFeatureHelp("DeliveryTask") r2.displayFeatureHelp("DeliveryTask")
end end

@ -434,7 +434,7 @@ function component.create()
debugInfo("Cancel form for 'EasterEggFeature' creation") debugInfo("Cancel form for 'EasterEggFeature' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'EasterEggFeature' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'EasterEggFeature' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("EasterEgg") == 1 then if r2.mustDisplayInfo("EasterEgg") == 1 then
r2.displayFeatureHelp("EasterEgg") r2.displayFeatureHelp("EasterEgg")
end end

@ -207,7 +207,7 @@ component.create = function()
debugInfo("Cancel form for 'EmptyFeature' creation") debugInfo("Cancel form for 'EmptyFeature' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'EmptyFeature' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'EmptyFeature' at pos (%f, %f, %f)", x, y, z))
r2:doForm("EmptyFeatureForm", {X=x, Y=y}, paramsOk, paramsCancel) r2:doForm("EmptyFeatureForm", {X=x, Y=y}, paramsOk, paramsCancel)
end end
local function posCancel() local function posCancel()

@ -636,7 +636,7 @@ component.create = function()
resetForm() resetForm()
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'FaunaFeature' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'FaunaFeature' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("Fauna") == 1 then if r2.mustDisplayInfo("Fauna") == 1 then
r2.displayFeatureHelp("Fauna") r2.displayFeatureHelp("Fauna")
end end

@ -425,7 +425,7 @@ component.create = function()
debugInfo("Cancel form for 'GetItemFromSceneryObject' creation") debugInfo("Cancel form for 'GetItemFromSceneryObject' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'GetItemFromSceneryObject' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'GetItemFromSceneryObject' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("GetItemFromSceneryObject") == 1 then if r2.mustDisplayInfo("GetItemFromSceneryObject") == 1 then
r2.displayFeatureHelp("GetItemFromSceneryObject") r2.displayFeatureHelp("GetItemFromSceneryObject")
end end

@ -481,7 +481,7 @@ component.create = function()
if not r2:checkAiQuota() then return end if not r2:checkAiQuota() then return end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'getItemFromSceneryObjectTaskStep' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'getItemFromSceneryObjectTaskStep' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("GetItemFromSceneryObjectTaskStep") == 1 then if r2.mustDisplayInfo("GetItemFromSceneryObjectTaskStep") == 1 then
r2.displayFeatureHelp("GetItemFromSceneryObjectTaskStep") r2.displayFeatureHelp("GetItemFromSceneryObjectTaskStep")
end end

@ -452,7 +452,7 @@ component.create = function()
debugInfo("Cancel form for 'GiveItem' creation") debugInfo("Cancel form for 'GiveItem' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'GiveItem' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'GiveItem' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("GiveItem") == 1 then if r2.mustDisplayInfo("GiveItem") == 1 then
r2.displayFeatureHelp("GiveItem") r2.displayFeatureHelp("GiveItem")
end end

@ -641,7 +641,7 @@ component.create = function()
debugInfo("Cancel form for 'HuntTask' creation") debugInfo("Cancel form for 'HuntTask' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'HuntTask' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'HuntTask' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("HuntTask") == 1 then if r2.mustDisplayInfo("HuntTask") == 1 then
r2.displayFeatureHelp("HuntTask") r2.displayFeatureHelp("HuntTask")
end end

@ -416,7 +416,7 @@ component.create = function()
debugInfo("Cancel form for 'KillNpc' creation") debugInfo("Cancel form for 'KillNpc' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'KillNpc' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'KillNpc' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("KillNpc") == 1 then if r2.mustDisplayInfo("KillNpc") == 1 then
r2.displayFeatureHelp("KillNpc") r2.displayFeatureHelp("KillNpc")
end end

@ -466,7 +466,7 @@ component.create = function()
debugInfo("Cancel form for 'LootSpawnerFeature' creation") debugInfo("Cancel form for 'LootSpawnerFeature' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'LootSpawnerFeature' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'LootSpawnerFeature' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("LootSpawner") == 1 then if r2.mustDisplayInfo("LootSpawner") == 1 then
r2.displayFeatureHelp("LootSpawner") r2.displayFeatureHelp("LootSpawner")
end end

@ -403,7 +403,7 @@ component.create = function()
debugInfo("Cancel form for 'ManHuntFeature' creation") debugInfo("Cancel form for 'ManHuntFeature' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'ManHuntFeature' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'ManHuntFeature' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("ManHunt") == 1 then if r2.mustDisplayInfo("ManHunt") == 1 then
r2.displayFeatureHelp("ManHunt") r2.displayFeatureHelp("ManHunt")
end end

@ -351,7 +351,7 @@ component.create = function()
debugInfo("Cancel form for 'NpcInteraction' creation") debugInfo("Cancel form for 'NpcInteraction' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'NpcInteraction' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'NpcInteraction' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("NpcInteraction") == 1 then if r2.mustDisplayInfo("NpcInteraction") == 1 then
r2.displayFeatureHelp("NpcInteraction") r2.displayFeatureHelp("NpcInteraction")
end end

@ -526,7 +526,7 @@ component.create = function()
debugInfo("Cancel form for 'Quest' creation") debugInfo("Cancel form for 'Quest' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'Quest' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'Quest' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("Quest") == 1 then if r2.mustDisplayInfo("Quest") == 1 then
r2.displayFeatureHelp("Quest") r2.displayFeatureHelp("Quest")
end end

@ -418,7 +418,7 @@ function component.create()
debugInfo("Cancel form for 'RandomChest' creation") debugInfo("Cancel form for 'RandomChest' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'RandomChest' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'RandomChest' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("RandomChest") == 1 then if r2.mustDisplayInfo("RandomChest") == 1 then
r2.displayFeatureHelp("RandomChest") r2.displayFeatureHelp("RandomChest")
end end

@ -498,7 +498,7 @@ component.create = function()
debugInfo("Cancel form for 'RequestItem' creation") debugInfo("Cancel form for 'RequestItem' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'RequestItem' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'RequestItem' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("RequestItem") == 1 then if r2.mustDisplayInfo("RequestItem") == 1 then
r2.displayFeatureHelp("RequestItem") r2.displayFeatureHelp("RequestItem")
end end

@ -369,7 +369,7 @@ component.create = function()
debugInfo("Cancel form for 'RewardProvider' creation") debugInfo("Cancel form for 'RewardProvider' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'RewardProvider' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'RewardProvider' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("RewardProvider") == 1 then if r2.mustDisplayInfo("RewardProvider") == 1 then
r2.displayFeatureHelp("RewardProvider") r2.displayFeatureHelp("RewardProvider")
end end

@ -376,7 +376,7 @@ component.create = function()
debugInfo("Cancel form for 'SceneryObjectInteraction' creation") debugInfo("Cancel form for 'SceneryObjectInteraction' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'SceneryObjectInteraction' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'SceneryObjectInteraction' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("SceneryObjectInteraction") == 1 then if r2.mustDisplayInfo("SceneryObjectInteraction") == 1 then
r2.displayFeatureHelp("SceneryObjectInteraction") r2.displayFeatureHelp("SceneryObjectInteraction")
end end

@ -487,7 +487,7 @@ component.create = function()
r2:checkAiQuota() r2:checkAiQuota()
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'SceneryObjectInteractionTaskStep' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'SceneryObjectInteractionTaskStep' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("SceneryObjectInteractionTaskStep") == 1 then if r2.mustDisplayInfo("SceneryObjectInteractionTaskStep") == 1 then
r2.displayFeatureHelp("SceneryObjectInteractionTaskStep") r2.displayFeatureHelp("SceneryObjectInteractionTaskStep")
end end

@ -393,7 +393,7 @@ component.create = function()
debugInfo("Cancel form for 'SceneryObjectRemoverFeature' creation") debugInfo("Cancel form for 'SceneryObjectRemoverFeature' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'SceneryObjectRemoverFeature' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'SceneryObjectRemoverFeature' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("SceneryObjectRemover") == 1 then if r2.mustDisplayInfo("SceneryObjectRemover") == 1 then
r2.displayFeatureHelp("SceneryObjectRemover") r2.displayFeatureHelp("SceneryObjectRemover")
end end

@ -466,7 +466,7 @@ component.create = function()
debugInfo("Cancel form for 'TalkTo' creation") debugInfo("Cancel form for 'TalkTo' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'TalkTo' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'TalkTo' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("TalkTo") == 1 then if r2.mustDisplayInfo("TalkTo") == 1 then
r2.displayFeatureHelp("TalkTo") r2.displayFeatureHelp("TalkTo")
end end

@ -373,7 +373,7 @@ component.create = function()
debugInfo("Cancel form for 'TargetMob' creation") debugInfo("Cancel form for 'TargetMob' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'TargetMob' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'TargetMob' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("TargetMob") == 1 then if r2.mustDisplayInfo("TargetMob") == 1 then
r2.displayFeatureHelp("TargetMob") r2.displayFeatureHelp("TargetMob")
end end

@ -329,7 +329,7 @@ feature.create = function()
debugInfo("Cancel form for 'TimeTrigger' creation") debugInfo("Cancel form for 'TimeTrigger' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'TimeTrigger' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'TimeTrigger' at pos (%f, %f, %f)", x, y, z))
r2:doForm("TimeTriggerForm", {X=x, Y=y}, paramsOk, paramsCancel) r2:doForm("TimeTriggerForm", {X=x, Y=y}, paramsOk, paramsCancel)
end end
local function posCancel() local function posCancel()

@ -409,7 +409,7 @@ component.create = function()
debugInfo("Cancel form for 'Timer' creation") debugInfo("Cancel form for 'Timer' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'Timer' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'Timer' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("Timer") == 1 then if r2.mustDisplayInfo("Timer") == 1 then
r2.displayFeatureHelp("Timer") r2.displayFeatureHelp("Timer")
end end

@ -176,7 +176,7 @@ component.create = function()
debugInfo("Cancel form for 'UserItemFeature' creation") debugInfo("Cancel form for 'UserItemFeature' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'UserItemFeature' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'UserItemFeature' at pos (%f, %f, %f)", x, y, z))
r2:doForm("UserItemFeatureForm", {X=x, Y=y}, paramsOk, paramsCancel) r2:doForm("UserItemFeatureForm", {X=x, Y=y}, paramsOk, paramsCancel)
end end
local function posCancel() local function posCancel()

@ -268,7 +268,7 @@ component.create = function(this)
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'UserTrigger' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'UserTrigger' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("UserTrigger") == 1 then if r2.mustDisplayInfo("UserTrigger") == 1 then
r2.displayFeatureHelp("UserTrigger") r2.displayFeatureHelp("UserTrigger")
end end

@ -437,7 +437,7 @@ component.create = function()
debugInfo("Cancel form for 'VisitZone' creation") debugInfo("Cancel form for 'VisitZone' creation")
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of 'VisitZone' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'VisitZone' at pos (%f, %f, %f)", x, y, z))
if r2.mustDisplayInfo("VisitZone") == 1 then if r2.mustDisplayInfo("VisitZone") == 1 then
r2.displayFeatureHelp("VisitZone") r2.displayFeatureHelp("VisitZone")
end end

@ -669,7 +669,7 @@ Logic.Components.ChatSequence = {
if r2.mustDisplayInfo("ChatSequence") == 1 then if r2.mustDisplayInfo("ChatSequence") == 1 then
r2.displayFeatureHelp("ChatSequence") r2.displayFeatureHelp("ChatSequence")
end end
debugInfo(string.format("Validate creation of 'Dialog' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of 'Dialog' at pos (%f, %f, %f)", x, y, z))
r2.dialogs:newSequenceInst(x, y, z) r2.dialogs:newSequenceInst(x, y, z)
end end
local function posCancel() local function posCancel()

@ -4403,7 +4403,7 @@ function Translator.CreateUserComponent(featureName)
end end
local function posOk(x, y, z) local function posOk(x, y, z)
debugInfo(string.format("Validate creation of '"..featureName.."' at pos (%d, %d, %d)", x, y, z)) debugInfo(string.format("Validate creation of '"..featureName.."' at pos (%f, %f, %f)", x, y, z))
local component = r2.Features[featureName].createUserComponent( x, y) local component = r2.Features[featureName].createUserComponent( x, y)
component.Texts = nil component.Texts = nil
r2.requestInsertNode(r2:getCurrentAct().InstanceId, "Features", -1, "", component) r2.requestInsertNode(r2:getCurrentAct().InstanceId, "Features", -1, "", component)

Loading…
Cancel
Save