Custom Level

Discussion in 'iPhysics [old jailbreak version]' started by bobsod, Jan 30, 2008.

  1. bobsod

    bobsod New Member

    Joined:
    Jan 12, 2008
    Messages:
    14
    Likes Received:
    0
    So I finally got around to trying the custom level editor in the sticky, its great!

    But I have a problem with my own levels. I have everything made, and I added it to my ipod, but when I try and load it, I just get a black screen that allows me to draw stuff that just falls down.

    http://img82.imageshack.us/my.php?image=level1qv5.jpg

    All of my lines are static, and the background is there, so I'm stumped.
  2. Rawd

    Rawd New Member

    Joined:
    Oct 14, 2007
    Messages:
    2,192
    Likes Received:
    4
    I think if you rename Marcos1.JPG to Marcos1.jpg <---- lowercase. That should fix your problem

    Please Register or Log in to view images



    If that doesn't work, post your plist and level.plist here so I can see them..
  3. jmccnz

    jmccnz New Member

    Joined:
    Nov 14, 2007
    Messages:
    169
    Likes Received:
    0
    Did you make your background in Photoshop? I found when I made a background in photoshop and saved it as a jpeg it became an "Adobe Photoshop JPEG file" which wouldn't be read by iPhysics for some reason, when I converted this to a regular jpg file it worked fine.

    If Rawd's solution doesn't work you may want to try checking that.
  4. bobsod

    bobsod New Member

    Joined:
    Jan 12, 2008
    Messages:
    14
    Likes Received:
    0
    I tried renaming it to all lowercase, didn't change anything

    Please Register or Log in to view images




    LevelPack
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
       <key>name</key>
       <string>Marcos</string>
       <key>gravity</key>
       <array><real>150.0</real><real>0</real></array>
       <key>flags</key>
       <integer>10</integer>
       <key>title</key>
       <string>Marcos/Marcos1.jpg</string>
       <key>1</key>
       <string>Marcos/Level_1.plist</string>
    </dict>
    </plist>



    Level_1.plist
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
       <key>bgimage</key>
       <string>Marcos1.jpg</string>
       <key>ballPositionX</key>
       <real>267</real>
       <key>ballPositionY</key>
       <real>446</real>
       <key>targetPositionX</key>
       <real>38</real>
       <key>targetPositionY</key>
       <real>40</real>
       <key>statics</key>
       <array>
           <dict>
               <key>type</key>
               <integer>3</integer>
               <key>points</key>
               <array>
                   <array><real>177</real><real>9</real></array>
                   <array><real>193</real><real>8</real></array>
                   <array><real>213</real><real>9</real></array>
                   <array><real>213</real><real>266</real></array>
                   <array><real>178</real><real>267</real></array>
                   <array><real>179</real><real>266</real></array>
               </array>
           </dict>
           <dict>
               <key>type</key>
               <integer>3</integer>
               <key>points</key>
               <array>
                   <array><real>287</real><real>482</real></array>
                   <array><real>286</real><real>2</real></array>
                   <array><real>282</real><real>1</real></array>
               </array>
           </dict>
           <dict>
               <key>type</key>
               <integer>3</integer>
               <key>points</key>
               <array>
                   <array><real>83</real><real>314</real></array>
                   <array><real>114</real><real>314</real></array>
                   <array><real>115</real><real>473</real></array>
                   <array><real>83</real><real>471</real></array>
                   <array><real>82</real><real>473</real></array>
               </array>
           </dict>
           <dict>
               <key>type</key>
               <integer>3</integer>
               <key>points</key>
               <array>
                   <array><real>52</real><real>219</real></array>
                   <array><real>52</real><real>21</real></array>
                   <array><real>76</real><real>21</real></array>
                   <array><real>75</real><real>221</real></array>
                   <array><real>72</real><real>219</real></array>
               </array>
           </dict>
       </array>
       <key>dynamics</key>
       <array>
           <dict>
               <key>type</key>
               <integer>1</integer>
               <key>x</key>
               <real>266</real>
               <key>y</key>
               <real>363</real>
               <key>radius</key>
               <real>15</real>
           </dict>
       </array>
       <key>joints</key>
       <array>
       </array>
    </dict>
    </plist>
    

Share This Page