Seite 313 von 342 ErsteErste ... 213 263 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 ... LetzteLetzte
Zeige Ergebnis 9.361 bis 9.390 von 10238

Lua Programming Help Thread

This is a discussion on Lua Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; ok im started to read all of these...

  
  1. #9361
    Points: 2.295, Level: 28
    Level completed: 97%, Points required for next Level: 5
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    3
    Points
    2.295
    Level
    28
    Downloads
    0
    Uploads
    0

    Standard

    ok im started to read all of these



  2. #9362
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von TurtlesPwn Beitrag anzeigen
    Yea, it sure would be.
    :ROFL: why how i love your attitude XD

    back onto subject, why do you want to create binary code rain?

    p.s. look at the C/C++ tuts on a serch on google most of the first few how to maky my 1st ... 5th program in C/C++ are code rain, lua is much like C/C++ especially if you use one of the older luaplayers.

    but as many people are told you would apparently be better off using pge luaplayer.
    Geändert von FaT3oYCG (08-30-2008 um 09:29 AM Uhr)
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  3. #9363
    Raining
    Points: 7.355, Level: 57
    Level completed: 3%, Points required for next Level: 195
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    In The Fog...
    Beiträge
    545
    Points
    7.355
    Level
    57
    My Mood
    Relaxed
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von FaT3oYCG Beitrag anzeigen
    :ROFL: why how i love your attitude XD

    back onto subject, why do you want to create binary code rain?

    p.s. look at the C/C++ tuts on a serch on google most of the first few how to maky my 1st ... 5th program in C/C++ are code rain, lua is much like C/C++ especially if you use one of the older luaplayers.

    but as many people are told you would apparently be better off using pge luaplayer.
    Well, I think their main point is just for him to learn to code in the first place not really that he is better off using PGE Lua(more like a sub-point if anything).

  4. #9364
    QJ Gamer Blue
    Points: 3.795, Level: 38
    Level completed: 97%, Points required for next Level: 5
    Overall activity: 27,0%

    Registriert seit
    Jul 2007
    Beiträge
    296
    Points
    3.795
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von FaT3oYCG Beitrag anzeigen
    :ROFL: why how i love your attitude XD

    back onto subject, why do you want to create binary code rain?

    p.s. look at the C/C++ tuts on a serch on google most of the first few how to maky my 1st ... 5th program in C/C++ are code rain, lua is much like C/C++ especially if you use one of the older luaplayers.

    but as many people are told you would apparently be better off using pge luaplayer.
    Are you trying to make him disregard what I said?

    Also, are you really that stupid? How does using LuaPlayer make Lua ANY MORE LIKE C++, than it would be using PGE Lua?

  5. #9365
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    no im not trying to disregard what you said, and im not going to come back at that with a smart ass remark, lets forget i even said that and carry on normally.

    *FaT3oY looks at it himself and thinks WTF*

    EDIT:

    *FaT3oY looks at it again and thinks strike the incorrect bit*
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  6. #9366
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    Code:
    NUM_POSITIONS = 400
    
    Position = {}
    
    function ResetPosition(i)
      c = "0"
      if math.random(0,1) == 1 then
        c = "1"
      end
      Position[i] = {x = math.random(0,480), y = -math.random(10,100), speed = math.random(1,4), char = c}
    end
    
    for i = 0, NUM_POSITIONS do
      ResetPosition(i)
    end
    
    while true do
      screen:clear()
      
      for i = 0, NUM_POSITIONS do
        if Position[i].y > 272 then
          ResetPosition(i)
        end
    
        Position[i].y = Position[i].y + Position[i].speed
        
        if Position[i].speed == 1 then
          col = Color.new(0,68,0)
        elseif Position[i].speed == 2 then
          col = Color.new(0, 125, 0)
        elseif Position[i].speed == 3 then
          col = Color.new(0, 188, 0)
        elseif Position[i].speed == 4 then
          col = Color.new(0, 255, 0)
        end
        
        screen:print(Position[i].x, Position[i].y, Position[i].char, col)
      end
      
      screen.waitVblankStart()
      screen.flip()
    end
    Matrix effect?
    Geändert von Mister Chief (08-30-2008 um 06:50 PM Uhr)

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  7. #9367
    QJ Gamer Green
    Points: 39.391, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Bungie Studios
    Beiträge
    7.832
    Points
    39.391
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    Try and keep it civil boys.
    [CENTER][IMG]http://i169.photobucket.com/albums/u240/Murasaki007/3060000000056603.gif[/IMG][COLOR=Lime]

    [/COLOR][CENTER]
    [/CENTER]
    [URL="http://forums.qj.net/showthread.php?t=111647"]All Forum Policies[/URL] [/CENTER]
    [CENTER]
    [/CENTER]

  8. #9368
    Raining
    Points: 7.355, Level: 57
    Level completed: 3%, Points required for next Level: 195
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    In The Fog...
    Beiträge
    545
    Points
    7.355
    Level
    57
    My Mood
    Relaxed
    Downloads
    0
    Uploads
    0

    Standard

    Edit: Problem solved. :humped:
    Geändert von wicked_fable (08-31-2008 um 08:19 AM Uhr)

  9. #9369
    QJ Gamer Green
    Points: 5.875, Level: 49
    Level completed: 63%, Points required for next Level: 75
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Ort
    In your pocket.
    Beiträge
    192
    Points
    5.875
    Level
    49
    My Mood
    Angelic
    Downloads
    0
    Uploads
    0

    Standard

    Code:
    BGMS = 1
    BackroundMusic = {}
    System.currentDirectory(ms0:/music)
    musicList = System.listDirectory()
    musicNumber = Table.getn(musicList)
    
    for a = 1,musicNumber do
         if string.find(musicList[a],".mp3") then
              BackroundMusic[a] = Mp3.load(musicList[a])
         end
    end
    
    Mp3.play(BackroundMusic[BGMS],true)
    BGMS = BGMS + 1
    
    while true do
         if Mp3.EndOfStream == "true" then
              Mp3.play(BackroundMusic[BGMS],true)
              BGMS = BGMS + 1
         end
    
         screen.waitVblankStart() --I know useless =.=
    end
    This won't work for some reason.
    AIM: Digikid91 | PSN: Digikid13 | GaiaOnline: Digikid13

  10. #9370
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    First of all there are two entries in listdirectory - . and .. - that arent even real existing files. Then you have to check that each file is actually an mp3. Then you have to access the names with musicList[i].name. Then you have to actually play each one rather than just loading each one and then going off to play the last one.
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  11. #9371
    QJ Gamer Bronze
    Points: 5.381, Level: 47
    Level completed: 16%, Points required for next Level: 169
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Beiträge
    550
    Points
    5.381
    Level
    47
    Downloads
    1
    Uploads
    0

    Standard

    What fatboy?
    Only things he needs to change to make it work:
    Mp3.load doesn't return anything, call it before you play the file.
    In your file loop, each file is a table. use file.name instead of just file.
    Your directory needs to be a string.
    Lua is case sensitebe. It's "table.getn"

    Some housekeeping issues:
    If you use straight BackroundMusic[a] = blah, then what happens if the file is not a mp3? You'll error when it gets to one. Use table.insert.

    Why do you need to use string.find? ".mp3" is useless if it isn't at the end of a file. use
    Code:
    string.lower(string.sub(item.name, -4)) == ".mp3"
    No need to change the current directory or list the directory in a random table. Also, iterate through a table properly, use:
    Code:
    for i, file in System.listDirectory("ms0:/music")

  12. #9372
    QJ Gamer Green
    Points: 5.875, Level: 49
    Level completed: 63%, Points required for next Level: 75
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Ort
    In your pocket.
    Beiträge
    192
    Points
    5.875
    Level
    49
    My Mood
    Angelic
    Downloads
    0
    Uploads
    0

    Standard

    Can you put up a remade version of mine, because you guys are confusing me?
    AIM: Digikid91 | PSN: Digikid13 | GaiaOnline: Digikid13

  13. #9373
    Raining
    Points: 7.355, Level: 57
    Level completed: 3%, Points required for next Level: 195
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    In The Fog...
    Beiträge
    545
    Points
    7.355
    Level
    57
    My Mood
    Relaxed
    Downloads
    0
    Uploads
    0

    Standard

    Seems to make sense to me if you just follow Nielkie. I don't quite understand what Fatboy means.

  14. #9374
    QJ Gamer Green
    Points: 4.034, Level: 40
    Level completed: 43%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    467
    Points
    4.034
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Is there a way to possibly use Lua to zip files. I really need a way to zip files without a Computer. It can be using PGELua or Luaplayer. I just need help or a nudge in the right direction.
    My Releases:
    ---------------------------------------------------
    [URL="http://forums.qj.net/showthread.php?t=145654"]ROFLFlasher[/URL]

    [URL="http://forums.qj.net/showthread.php?t=144892"]DTS MGS Edition[/URL]

    [URL="http://forums.qj.net/showthread.php?t=143735"]Arkanoid Deluxe Beta[/URL]

    [URL="http://forums.qj.net/showthread.php?p=2144700#post2144700"]SAVIOR![/URL]

  15. #9375
    QJ Gamer Blue
    Points: 4.268, Level: 41
    Level completed: 59%, Points required for next Level: 82
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    497
    Points
    4.268
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    umm I know PGE can unzip zip files. . . look in the documentaion, there are 2 other features for zip files, so see if one of them makes zips. . .

  16. #9376
    QJ Gamer Green
    Points: 4.034, Level: 40
    Level completed: 43%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    467
    Points
    4.034
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    None of them make zips. I was thinking maybe there might be a workaround way.
    My Releases:
    ---------------------------------------------------
    [URL="http://forums.qj.net/showthread.php?t=145654"]ROFLFlasher[/URL]

    [URL="http://forums.qj.net/showthread.php?t=144892"]DTS MGS Edition[/URL]

    [URL="http://forums.qj.net/showthread.php?t=143735"]Arkanoid Deluxe Beta[/URL]

    [URL="http://forums.qj.net/showthread.php?p=2144700#post2144700"]SAVIOR![/URL]

  17. #9377
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    find out how zip files are made and code it
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  18. #9378
    QJ Gamer Green
    Points: 5.875, Level: 49
    Level completed: 63%, Points required for next Level: 75
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Ort
    In your pocket.
    Beiträge
    192
    Points
    5.875
    Level
    49
    My Mood
    Angelic
    Downloads
    0
    Uploads
    0

    Standard

    Code:
    --File created by Miro Lua
    BGMS = 3
    BackroundMusic = {}
    musicList = System.listDirectory()
    maxMusic = table.getn(musicList)
    
    B = 1
    
    while true do
    	if B == 1 then
    		Mp3.load(musicList[BGMS].name)
    		Mp3.play()
    		B = 2
    		BGMS = BGMS + 1
    	end
    
    	if Mp3.EndOfStream == "true" then
    		Mp3.load(musicList[BGMS].name)
    		Mp3.play()
    		BGMS = BGMS + 1
    	end
    
    	if (BGMS == maxMusic) or (BGMS > maxMusic) then BGMS = 3 end
    
    screen.waitVblankStart()
    
    end
    this is what I got and I still got nothing
    AIM: Digikid91 | PSN: Digikid13 | GaiaOnline: Digikid13

  19. #9379
    Lua guy
    Points: 11.690, Level: 71
    Level completed: 10%, Points required for next Level: 360
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Ort
    Wales, cardiff
    Beiträge
    1.442
    Points
    11.690
    Level
    71
    My Mood
    Blah
    Downloads
    0
    Uploads
    0

    Talking

    Zitat Zitat von xXChromeXx Beitrag anzeigen
    None of them make zips. I was thinking maybe there might be a workaround way.
    Chrome: Its good to think that your first thought is to code it. But one simile Have you even thought that there might be a App for it?

  20. #9380
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Digikid13 Beitrag anzeigen
    Code:
    --File created by Miro Lua
    BGMS = 3
    BackroundMusic = {}
    musicList = System.listDirectory()
    maxMusic = table.getn(musicList)
    
    B = 1
    
    while true do
    	if B == 1 then
    		Mp3.load(musicList[BGMS].name)
    		Mp3.play()
    		B = 2
    		BGMS = BGMS + 1
    	end
    
    	if Mp3.EndOfStream == "true" then
    		Mp3.load(musicList[BGMS].name)
    		Mp3.play()
    		BGMS = BGMS + 1
    	end
    
    	if (BGMS == maxMusic) or (BGMS > maxMusic) then BGMS = 3 end
    
    screen.waitVblankStart()
    
    end
    this is what I got and I still got nothing

    i did this a while ago when i was trying to make an mp3 player myself, i had to make a workarround because i found it takes the piddle to get it to work correctly, you can probably make this smaller but atleast it works

    Code:
    white = Color.new(255, 255, 255)
    
    MP3_Table = { }
    Music_Directory = ""
    Music_List = { }
    Music_Number = 0
    
    function organise_mp3()
    	MP3_Table = { }
    	Music_Directory = "ms0:/MUSIC/"
    	Music_List = System.listDirectory(Music_Directory)
    	Music_Number = table.getn(Music_List)
    	for i = 1, Music_Number do
    		if string.lower(string.sub(Music_List[i].name, -4)) == ".mp3" then
    			table.insert(MP3_Table, Music_List[i].name)
    		end
    	end
    end
    
    music_organised = false
    
    function sort_mp3()
    	if music_organised == false then
    		organise_mp3()
    		music_organised = true
    	end
    end
    
    current_mp3 = 1
    loaded_mp3 = false
    
    function play_mp3()
    	if table.getn(MP3_Table) > 0 then
    		if loaded_mp3 == false then
    			current_path = System.currentDirectory()
    			System.currentDirectory("ms0:/MUSIC/")
    			Mp3me.load(MP3_Table[current_mp3])
    			System.currentDirectory(current_path)
    			Mp3me.play()
    			loaded_mp3 = true
    		elseif loaded_mp3 == true then
    			if Mp3me.eos == "true" then
    				Mp3me.stop()
    				current_mp3 = current_mp3 + 1
    				if current_mp3 > table.getn(MP3_Table) then
    					current_mp3 = 1
    				end
    				loaded_mp3 = false
    			end
    		end
    	end
    end
    
    while true do
    
    pad = Controls.read()
    
    screen:clear(white)
    
    -- insert your main code here
    
    --System.setHigh()
    
    sort_mp3()
    play_mp3()
    
    --screen:print(10, 10, "Simple MP3 Player")
    
    --screen:print(10, 30, "Runnung At: " .. System.getCpuSpeed() .. "mhz")
    --screen:print(10, 40, "Song: " .. current_mp3)
    --screen:print(10, 50, "Artist: " .. Mp3me.artist())
    --screen:print(10, 60, "Title: " .. Mp3me.title())
    --screen:print(10, 70, "Album: " .. Mp3me.album())
    --screen:print(10, 80, "Genre: " .. Mp3me.genre())
    --screen:print(10, 90, "Song Time: " .. Mp3me.gettime())
    --screen:print(10, 100, "Song Length: " .. Mp3me.songTime())
    --screen:print(10, 110, "Percent: " .. Mp3me.percent())
    
    --if pad:r() and not oldpad:r() then
    --	Mp3me.stop()
    --	if current_mp3 < table.getn(MP3_Table) then
    --		current_mp3 = current_mp3 + 1
    --	else
    --		current_mp3 = 1
    --	end
    --	loaded_mp3 = false
    --elseif pad:l() and not oldpad:l() then
    --	Mp3me.stop()
    --	if current_mp3 > 1 then
    --		current_mp3 = current_mp3 - 1
    --	else
    --		current_mp3 = table.getn(MP3_Table)
    --	end
    --	loaded_mp3 = false
    --end
    
    --if pad:cross() and not oldpad:cross() then
    --	Mp3me.play()
    --elseif pad:circle() and not oldpad:circle() then
    --	Mp3me.pause()
    --elseif pad:square() and not oldpad:square() then
    --	Mp3me.stop()
    --end
    
    -- insert your main code here
    
    if pad:start() then
    	Mp3me.stop()
    	break
    end
    
    oldpad = pad
    
    screen.waitVblankStart()
    screen.flip()
    
    end
    as i said i was trying to find a workarround so i edited out some of the lines, but they do work!

    hope that helps but im not saying its any good.
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  21. #9381
    QJ Gamer Bronze
    Points: 5.381, Level: 47
    Level completed: 16%, Points required for next Level: 169
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Beiträge
    550
    Points
    5.381
    Level
    47
    Downloads
    1
    Uploads
    0

    Standard

    Why so much code?

    Code:
    function playRecursively(dir)
    	for i, file in System.listDirectory(dir) do
    		local name = file.name
    		if not file.directory then
    			if string.lower(string.sub(name, -4)) == ".mp3" then
    				Mp3me.load(dir .. name)
    				Mp3me.play()
    				while not Mp3me.eos == "true" do
    					System.sleep(100)
    				end
    			end
    		else
    			playRecursively(dir .. name .. "/")
    		end
    	end
    end
    
    playRecursively("ms0:/MUSIC/")
    That should give you the gist of what to do.
    Geändert von Nielkie (09-03-2008 um 09:56 PM Uhr)

  22. #9382
    QJ Gamer Green
    Points: 4.034, Level: 40
    Level completed: 43%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    467
    Points
    4.034
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von dan369 Beitrag anzeigen
    Chrome: Its good to think that your first thought is to code it. But one simile Have you even thought that there might be a App for it?
    I have searched quite abit with no luck. If you know of an app that zips files, please let me know. :)
    My Releases:
    ---------------------------------------------------
    [URL="http://forums.qj.net/showthread.php?t=145654"]ROFLFlasher[/URL]

    [URL="http://forums.qj.net/showthread.php?t=144892"]DTS MGS Edition[/URL]

    [URL="http://forums.qj.net/showthread.php?t=143735"]Arkanoid Deluxe Beta[/URL]

    [URL="http://forums.qj.net/showthread.php?p=2144700#post2144700"]SAVIOR![/URL]

  23. #9383
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    if you want to use your pc then use winrar www.rarlabs.com
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  24. #9384
    QJ Gamer Blue
    Points: 4.268, Level: 41
    Level completed: 59%, Points required for next Level: 82
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    497
    Points
    4.268
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    i think his PC is busted or something, and he uses his PS3, and PSP. but I could be wrong.

  25. #9385
    QJ Gamer Green
    Points: 4.034, Level: 40
    Level completed: 43%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    467
    Points
    4.034
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Ya my PC is busted. I used to have winrar >.>

    Ya I use my PSP and PS3.
    My Releases:
    ---------------------------------------------------
    [URL="http://forums.qj.net/showthread.php?t=145654"]ROFLFlasher[/URL]

    [URL="http://forums.qj.net/showthread.php?t=144892"]DTS MGS Edition[/URL]

    [URL="http://forums.qj.net/showthread.php?t=143735"]Arkanoid Deluxe Beta[/URL]

    [URL="http://forums.qj.net/showthread.php?p=2144700#post2144700"]SAVIOR![/URL]

  26. #9386
    QJ Gamer Green
    Points: 5.875, Level: 49
    Level completed: 63%, Points required for next Level: 75
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Ort
    In your pocket.
    Beiträge
    192
    Points
    5.875
    Level
    49
    My Mood
    Angelic
    Downloads
    0
    Uploads
    0

    Standard

    Thank you I needed this for my game Pong I am going to put both of you in the credit.
    THANKS ^^
    -=Double Post Merge =-
    Better Version of FaT3oYCG's only area with my name in it is mine.

    Code:
    --File created by Miro Lua
    white = Color.new(255, 255, 255)
    
    MP3_Table = { }
    Music_Directory = ""
    Music_List = { }
    Music_Number = 0
    
    function organise_mp3()
    	MP3_Table = { }
    	Music_Directory = "ms0:/MUSIC/"
    	Music_List = System.listDirectory(Music_Directory)
    	Music_Number = table.getn(Music_List)
    	for i = 1, Music_Number do
    		if string.lower(string.sub(Music_List[i].name, -4)) == ".mp3" then
    			table.insert(MP3_Table, Music_List[i].name)
    		end
    	end
    end
    
    music_organised = false
    
    function sort_mp3()
    	if music_organised == false then
    		organise_mp3()
    		music_organised = true
    	end
    end
    
    current_mp3 = 1
    loaded_mp3 = false
    
    function play_mp3()
    	if table.getn(MP3_Table) > 0 then
    		if loaded_mp3 == false then
    			current_path = System.currentDirectory()
    			System.currentDirectory("ms0:/MUSIC/")
    			Mp3me.load(MP3_Table[current_mp3])
    			System.currentDirectory(current_path)
    			Mp3me.play()
    			loaded_mp3 = true
    		elseif loaded_mp3 == true then
    			if Mp3me.eos == "true" then
    				Mp3me.stop()
    				current_mp3 = current_mp3 + 1
    				if current_mp3 > table.getn(MP3_Table) then
    					current_mp3 = 1
    				end
    				loaded_mp3 = false
    			end
    		end
    	end
    end
    
    while true do
    
    pad = Controls.read()
    
    screen:clear(white)
    
    -- insert your main code here
    
    System.setHigh()
    
    sort_mp3()
    play_mp3()
    
    screen:print(10, 10, "Simple MP3 Player")
    
    --screen:print(10, 30, "Runnung At: " .. System.getCpuSpeed() .. "mhz")
    screen:print(10, 40, "Song: " .. current_mp3)
    screen:print(10, 50, "Song Time: " .. Mp3me.gettime())
    screen:print(10, 60, "Song Length: " .. Mp3me.songTime())
    screen:print(10, 70, "Percent: " .. Mp3me.percent())
    
    --Draw Bars to screen, Left sound By [)[email protected][email protected]$t3r
    Image:fillRect(200, Mp3me.visL(1), 5, 500)
    Image:fillRect(210, Mp3me.visL(10), 5, 500)
    Image:fillRect(220, Mp3me.visL(20), 5, 500)
    Image:fillRect(230, Mp3me.visL(30), 5, 500)
    Image:fillRect(240, Mp3me.visL(40), 5, 500)
    Image:fillRect(250, Mp3me.visL(50), 5, 500)
    Image:fillRect(260, Mp3me.visL(60), 5, 500)
    Image:fillRect(270, Mp3me.visL(70), 5, 500)
    Image:fillRect(280, Mp3me.visL(80), 5, 500)
    Image:fillRect(290, Mp3me.visL(90), 5, 500)
    Image:fillRect(300, Mp3me.visL(100), 5, 500)
    
    --Draw Bars to screen, Right sound
    Image:fillRect(320, Mp3me.visR(1), 5, 500)
    Image:fillRect(320, Mp3me.visR(10), 5, 500)
    Image:fillRect(330, Mp3me.visR(20), 5, 500)
    Image:fillRect(340, Mp3me.visR(30), 5, 500)
    Image:fillRect(350, Mp3me.visR(40), 5, 500)
    Image:fillRect(360, Mp3me.visR(50), 5, 500)
    Image:fillRect(370, Mp3me.visR(60), 5, 500)
    Image:fillRect(380, Mp3me.visR(70), 5, 500)
    Image:fillRect(390, Mp3me.visR(80), 5, 500)
    Image:fillRect(400, Mp3me.visR(90), 5, 500)
    Image:fillRect(410, Mp3me.visR(100), 5, 500)
    
    if pad:r() and not oldpad:r() then
    	Mp3me.stop()
    	if current_mp3 < table.getn(MP3_Table) then
    		current_mp3 = current_mp3 + 1
    	else
    		current_mp3 = 1
    	end
    	loaded_mp3 = false
    elseif pad:l() and not oldpad:l() then
    	Mp3me.stop()
    	if current_mp3 > 1 then
    		current_mp3 = current_mp3 - 1
    	else
    		current_mp3 = table.getn(MP3_Table)
    	end
    	loaded_mp3 = false
    end
    
    if pad:cross() and not oldpad:cross() then
    	Mp3me.play()
    elseif pad:circle() and not oldpad:circle() then
    	Mp3me.pause()
    elseif pad:square() and not oldpad:square() then
    	Mp3me.stop()
    end
    
    -- insert your main code here
    
    if pad:start() then
    	Mp3me.stop()
    	break
    end
    
    oldpad = pad
    
    screen.waitVblankStart()
    screen.flip()
    
    end
    Geändert von Digikid13 (09-03-2008 um 09:57 PM Uhr) Grund: Automerged Doublepost
    AIM: Digikid91 | PSN: Digikid13 | GaiaOnline: Digikid13

  27. #9387
    Lua guy
    Points: 11.690, Level: 71
    Level completed: 10%, Points required for next Level: 360
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Ort
    Wales, cardiff
    Beiträge
    1.442
    Points
    11.690
    Level
    71
    My Mood
    Blah
    Downloads
    0
    Uploads
    0

    Standard

    Chrome: Search Tipster's Unzip/Unrar utility v0.3. They only thing is you need IrShell, (it can be used as a plugin for it) because i THINK the Eboot 1.50. Unless you have the 1.50 Kernel :?

  28. #9388
    QJ Gamer Green
    Points: 4.034, Level: 40
    Level completed: 43%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    467
    Points
    4.034
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    It doesn't say anything about zipping files are you sure?
    My Releases:
    ---------------------------------------------------
    [URL="http://forums.qj.net/showthread.php?t=145654"]ROFLFlasher[/URL]

    [URL="http://forums.qj.net/showthread.php?t=144892"]DTS MGS Edition[/URL]

    [URL="http://forums.qj.net/showthread.php?t=143735"]Arkanoid Deluxe Beta[/URL]

    [URL="http://forums.qj.net/showthread.php?p=2144700#post2144700"]SAVIOR![/URL]

  29. #9389
    Banned for LIFE
    Points: 18.744, Level: 86
    Level completed: 79%, Points required for next Level: 106
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    East London, England
    Beiträge
    2
    Points
    18.744
    Level
    86
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Digikid13 Beitrag anzeigen
    Code:
    --Draw Bars to screen, Left sound By [)[email protected][email protected]$t3r
    Image:fillRect(200, Mp3me.visL(1), 5, 500)
    Image:fillRect(210, Mp3me.visL(10), 5, 500)
    Image:fillRect(220, Mp3me.visL(20), 5, 500)
    Image:fillRect(230, Mp3me.visL(30), 5, 500)
    Image:fillRect(240, Mp3me.visL(40), 5, 500)
    Image:fillRect(250, Mp3me.visL(50), 5, 500)
    Image:fillRect(260, Mp3me.visL(60), 5, 500)
    Image:fillRect(270, Mp3me.visL(70), 5, 500)
    Image:fillRect(280, Mp3me.visL(80), 5, 500)
    Image:fillRect(290, Mp3me.visL(90), 5, 500)
    Image:fillRect(300, Mp3me.visL(100), 5, 500)
    
    --Draw Bars to screen, Right sound
    Image:fillRect(320, Mp3me.visR(1), 5, 500)
    Image:fillRect(320, Mp3me.visR(10), 5, 500)
    Image:fillRect(330, Mp3me.visR(20), 5, 500)
    Image:fillRect(340, Mp3me.visR(30), 5, 500)
    Image:fillRect(350, Mp3me.visR(40), 5, 500)
    Image:fillRect(360, Mp3me.visR(50), 5, 500)
    Image:fillRect(370, Mp3me.visR(60), 5, 500)
    Image:fillRect(380, Mp3me.visR(70), 5, 500)
    Image:fillRect(390, Mp3me.visR(80), 5, 500)
    Image:fillRect(400, Mp3me.visR(90), 5, 500)
    Image:fillRect(410, Mp3me.visR(100), 5, 500)
    God, that just screams inefficient.

  30. #9390
    Raining
    Points: 7.355, Level: 57
    Level completed: 3%, Points required for next Level: 195
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    In The Fog...
    Beiträge
    545
    Points
    7.355
    Level
    57
    My Mood
    Relaxed
    Downloads
    0
    Uploads
    0

    Standard

    I don't think he wants to UN-compress he wants to compress the file.


 

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 09:01 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .