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")
end
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
r2.displayFeatureHelp("BanditCamp")
end

@ -518,7 +518,7 @@ component.create = function()
debugInfo("Cancel form for 'BossSpawnerFeature' creation")
end
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
r2.displayFeatureHelp("BossSpawner")
end

@ -245,7 +245,7 @@ component.create = function()
debugInfo("Cancel form for 'CounterFeature' creation")
end
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)
end
local function posCancel()

@ -1495,7 +1495,7 @@ local registerFeature = function ()
debugInfo("Cancel form for 'User Component' creation")
end
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
r2.displayFeatureHelp("UserComponent")
end
@ -1568,7 +1568,7 @@ local registerFeature = function ()
debugInfo("Cancel form for 'User Component' creation")
end
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
r2.displayFeatureHelp("UserComponent")
end

@ -562,7 +562,7 @@ component.create = function()
if not r2:checkAiQuota() then return end
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
r2.displayFeatureHelp("DeliveryTask")
end

@ -434,7 +434,7 @@ function component.create()
debugInfo("Cancel form for 'EasterEggFeature' creation")
end
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
r2.displayFeatureHelp("EasterEgg")
end

@ -207,7 +207,7 @@ component.create = function()
debugInfo("Cancel form for 'EmptyFeature' creation")
end
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)
end
local function posCancel()

@ -636,7 +636,7 @@ component.create = function()
resetForm()
end
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
r2.displayFeatureHelp("Fauna")
end

@ -425,7 +425,7 @@ component.create = function()
debugInfo("Cancel form for 'GetItemFromSceneryObject' creation")
end
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
r2.displayFeatureHelp("GetItemFromSceneryObject")
end

@ -481,7 +481,7 @@ component.create = function()
if not r2:checkAiQuota() then return end
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
r2.displayFeatureHelp("GetItemFromSceneryObjectTaskStep")
end

@ -452,7 +452,7 @@ component.create = function()
debugInfo("Cancel form for 'GiveItem' creation")
end
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
r2.displayFeatureHelp("GiveItem")
end

@ -641,7 +641,7 @@ component.create = function()
debugInfo("Cancel form for 'HuntTask' creation")
end
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
r2.displayFeatureHelp("HuntTask")
end

@ -416,7 +416,7 @@ component.create = function()
debugInfo("Cancel form for 'KillNpc' creation")
end
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
r2.displayFeatureHelp("KillNpc")
end

@ -466,7 +466,7 @@ component.create = function()
debugInfo("Cancel form for 'LootSpawnerFeature' creation")
end
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
r2.displayFeatureHelp("LootSpawner")
end

@ -403,7 +403,7 @@ component.create = function()
debugInfo("Cancel form for 'ManHuntFeature' creation")
end
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
r2.displayFeatureHelp("ManHunt")
end

@ -351,7 +351,7 @@ component.create = function()
debugInfo("Cancel form for 'NpcInteraction' creation")
end
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
r2.displayFeatureHelp("NpcInteraction")
end

@ -526,7 +526,7 @@ component.create = function()
debugInfo("Cancel form for 'Quest' creation")
end
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
r2.displayFeatureHelp("Quest")
end

@ -418,7 +418,7 @@ function component.create()
debugInfo("Cancel form for 'RandomChest' creation")
end
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
r2.displayFeatureHelp("RandomChest")
end

@ -498,7 +498,7 @@ component.create = function()
debugInfo("Cancel form for 'RequestItem' creation")
end
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
r2.displayFeatureHelp("RequestItem")
end

@ -369,7 +369,7 @@ component.create = function()
debugInfo("Cancel form for 'RewardProvider' creation")
end
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
r2.displayFeatureHelp("RewardProvider")
end

@ -376,7 +376,7 @@ component.create = function()
debugInfo("Cancel form for 'SceneryObjectInteraction' creation")
end
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
r2.displayFeatureHelp("SceneryObjectInteraction")
end

@ -487,7 +487,7 @@ component.create = function()
r2:checkAiQuota()
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
r2.displayFeatureHelp("SceneryObjectInteractionTaskStep")
end

@ -393,7 +393,7 @@ component.create = function()
debugInfo("Cancel form for 'SceneryObjectRemoverFeature' creation")
end
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
r2.displayFeatureHelp("SceneryObjectRemover")
end

@ -466,7 +466,7 @@ component.create = function()
debugInfo("Cancel form for 'TalkTo' creation")
end
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
r2.displayFeatureHelp("TalkTo")
end

@ -373,7 +373,7 @@ component.create = function()
debugInfo("Cancel form for 'TargetMob' creation")
end
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
r2.displayFeatureHelp("TargetMob")
end

@ -329,7 +329,7 @@ feature.create = function()
debugInfo("Cancel form for 'TimeTrigger' creation")
end
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)
end
local function posCancel()

@ -409,7 +409,7 @@ component.create = function()
debugInfo("Cancel form for 'Timer' creation")
end
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
r2.displayFeatureHelp("Timer")
end

@ -176,7 +176,7 @@ component.create = function()
debugInfo("Cancel form for 'UserItemFeature' creation")
end
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)
end
local function posCancel()

@ -268,7 +268,7 @@ component.create = function(this)
end
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
r2.displayFeatureHelp("UserTrigger")
end

@ -437,7 +437,7 @@ component.create = function()
debugInfo("Cancel form for 'VisitZone' creation")
end
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
r2.displayFeatureHelp("VisitZone")
end

@ -669,7 +669,7 @@ Logic.Components.ChatSequence = {
if r2.mustDisplayInfo("ChatSequence") == 1 then
r2.displayFeatureHelp("ChatSequence")
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)
end
local function posCancel()

@ -4403,7 +4403,7 @@ function Translator.CreateUserComponent(featureName)
end
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)
component.Texts = nil
r2.requestInsertNode(r2:getCurrentAct().InstanceId, "Features", -1, "", component)

Loading…
Cancel
Save