View Issue Details

IDProjectCategoryView StatusLast Update
0005301Multi Theft Auto : San AndreasScriptingpublic2010-04-26 23:03
ReporterAxelAssigned ToCazomino05 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target Version1.0.4Fixed in Version1.0.4 
Summary0005301: Not working correctly function xmlCopyFile
Description

Seems functions xmlCopyFile don't work correctly with paths, tried an experiment:

local map = xmlLoadFile("mapName.map")
local file = xmlCopyFile(map, "mapName2.map")
xmlSaveFile(file)
xmlUnloadFile(file)
xmlUnloadFile(map)

File mapName2.map somehow saved to root directory server "MTA San Andreas\server".

Then try this:

local map = xmlLoadFile("mapName.map")
local file = xmlCopyFile(map, ":resourceName/mapName2.map")
xmlSaveFile(file)
xmlUnloadFile(file)
xmlUnloadFile(map)

File mapName2.map nowhere don't saved, with no errors occurred.

TagsNo tags attached.

Activities

Axel

2010-04-23 14:53

viewer   ~~0011384

If remove the ACL rights ModifyOtherObjects, always writes errors:

ERROR: xmlCopyFile failed; ModifyOtherObjects in ACL denied resource resourceName to access resourceName
WARNING: script.lua: Bad argument @ 'xmlSaveFile' - Line: -
WARNING: script.lua: Bad argument @ 'xmlUnloadFile' - Line: -

Cazomino05

2010-04-26 00:58

reporter   ~~0011389

Nice find, should be fixed in 1.0.4

Issue History

Date Modified Username Field Change