Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Transferring CMO map to TOAW map

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Transferring CMO map to TOAW map Page: [1]
Login
Message << Older Topic   Newer Topic >>
Transferring CMO map to TOAW map - 7/13/2020 7:50:41 AM   
DracheTek

 

Posts: 45
Joined: 7/5/2020
Status: offline
I wrote up a piece of code like following:


startN = 26
startE = 119.3

N = startN
E = startE
incN = *something that looked like phone number to the forum system*
incE = *something that looked like phone number to the forum system*


for e = 1,200 do 
    for n = 1,150 do
        terrain = World_GetLocation({latitude = N, longitude = E})
        if terrain.cover ~= nil then
        print(e..":"..n.."  :"..terrain.cover.text)
        else if terrain.altitude ~= nil then
            if terrain.cz~=nil then
                print(e..":"..n.."  :Deep Water")
            else print (e..":"..n.."  :Shallow Water")
            end
        else print (e..":"..n.."  :ERROR")
        end
        end
        --ScenEdit_AddReferencePoint({side = 'BLUE', name = n..":"..e, lat = N, lon = E, highlighted = true})
        N=N+incN
        --break
    end
    N = startN
    E = E+incE
    --break
end



Obviously it can grab the location info of a CMO map and return ground type or "water" in the form of string, but I currently cannot figure out how to transfer this into TOAW ground type. the structure of mml file of TOAW is pretty straightforward, but it lacks of documentation and I am pretty stuck.

If here is anyone who is familiar with TOAW XML, please help. Thank you very much in advance.
Post #: 1
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Transferring CMO map to TOAW map Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

4.688