Changes

Jump to navigation Jump to search

Changes in OS 3.2

162 bytes removed, 13:41, 5 June 2012
Line 7: Line 7:  
==Compatibility mode==
 
==Compatibility mode==
 
Let me first begin with the compatibility mode. TI has 2 "apiLevel's" in 3.2. apiLevel 1.0 provides backwards compatibility for &lt;3.2 OS's by keeping the old API structure.<br />
 
Let me first begin with the compatibility mode. TI has 2 "apiLevel's" in 3.2. apiLevel 1.0 provides backwards compatibility for &lt;3.2 OS's by keeping the old API structure.<br />
'''All''' documents created for 3.1 and previous will run in that apiLevel by default. This is because some changes in the XML structure of the document. So most programs and games should run fine by default.<br /> Then there is apiLevel 2.0. This apiLevel has some big changes to the API structure, so you will have to update some of your code in order to have some of they new 3.2 stuff. However, it is currently not possible to create apiLevel 2.0 documents with [[Luna]] due to changes in the XML structure. I have given the details of the changes to ExtendeD so he will probably update Luna soon.<br />
+
'''All''' documents created for 3.1 and previous will run in that apiLevel by default. This is because some changes in the XML structure of the document. So most programs and games should run fine by default.<br /> Then there is apiLevel 2.0. This apiLevel has some big changes to the API structure, so you will have to update some of your code in order to have some of they new 3.2 stuff. However, it is currently not possible to create apiLevel 2.0 documents with [[Luna]] due to changes in the XML structure (Luna crash). Lua may get updated soon.<br />
 
For the best support and guarantee that you are using the correct apiLevel, you should add the following to the top of new Lua documents you create:
 
For the best support and guarantee that you are using the correct apiLevel, you should add the following to the top of new Lua documents you create:
 
:''platform.apiLevel = "1.0"'' or ''platform.apiLevel = "2.0"''
 
:''platform.apiLevel = "1.0"'' or ''platform.apiLevel = "2.0"''
 
<br />
 
<br />
Please note that using [[platform.apiLevel|apiLevel]] 2.0 with the current Luna will result in an error.<br />
      
==on.create==
 
==on.create==

Navigation menu