Seite 287 von 342 ErsteErste ... 187 237 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 337 ... LetzteLetzte
Zeige Ergebnis 8.581 bis 8.610 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; Zitat von Art Well mine wasn't as simple to code as: Code: RipISO(); // Please I hated the idea of ...

  
  1. #8581
    Points: 2.784, Level: 32
    Level completed: 23%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Mar 2008
    Beiträge
    40
    Points
    2.784
    Level
    32
    Downloads
    0
    Uploads
    0

    Talking

    Zitat Zitat von Art
    Well mine wasn't as simple to code as:
    Code:
    RipISO(); // Please
    I hated the idea of one on a forum. Now there can be hundreds of them.


    Thanks. Funny I thought Time Machine would stuff up the graphics.
    no its graphics look fine compared to my friends fat PSP



  2. #8582
    Points: 2.784, Level: 32
    Level completed: 23%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Mar 2008
    Beiträge
    40
    Points
    2.784
    Level
    32
    Downloads
    0
    Uploads
    0

    Post another question

    Another question, i want to make it where i press a button, text appears, and then it goes away after about 3 seconds, like this for example:

    I press X, and it says on the bottom:

    USB mode activated!

    and then it goes away after 3 seconds.

    I know how to do the USB thing, but as for the txt appearing and going away....

    well, can anyone help?

  3. #8583
    Local Tech
    Points: 9.044, Level: 63
    Level completed: 98%, Points required for next Level: 6
    Overall activity: 27,0%

    Registriert seit
    Oct 2007
    Ort
    home
    Beiträge
    1.821
    Points
    9.044
    Level
    63
    Downloads
    1
    Uploads
    0

    Standard

    so are you gonna release it??

  4. #8584
    QJ Gamer Platinum
    Points: 66.627, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Feb 2006
    Ort
    National Front Disco
    Beiträge
    13.057
    Points
    66.627
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    Merged with the Lua Help Thread. :)

  5. #8585
    QJ Gamer Green
    Points: 3.721, Level: 38
    Level completed: 48%, Points required for next Level: 79
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Beiträge
    612
    Points
    3.721
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    removeUSBTextCounter = 0

    while true do
    if pad:cross() then showUSBText = true System.usbDiskModeActivat e() end
    if showUSBText then
    removeUSBTextCounter = removeUSBTextCounter + 1
    if removeUSBTextCounter > 180 then showUSBText = false removeUSBTextCounter = 0
    screenrint(2,260,"USB mode activated!")
    end
    end

  6. #8586
    Points: 2.784, Level: 32
    Level completed: 23%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Mar 2008
    Beiträge
    40
    Points
    2.784
    Level
    32
    Downloads
    0
    Uploads
    0

    Exclamation ugh...

    thx TurtlesPwn, but now I have another question...

    When I press a button, it executes the command. Then, once its done, it goes back to the menu of my program. example:

    I pressed O to go back on a system message, and it went back to the menu of my app.

    but when it goes back to the menu, I can an longer press any buttons, when I press a button, nothing happins, Once I press a button, its done, i can't press any more

    can anyone help?

  7. #8587
    QJ Gamer Green
    Points: 3.721, Level: 38
    Level completed: 48%, Points required for next Level: 79
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Beiträge
    612
    Points
    3.721
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    Nobody can help with the info youve given us so far

  8. #8588
    Points: 2.784, Level: 32
    Level completed: 23%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Mar 2008
    Beiträge
    40
    Points
    2.784
    Level
    32
    Downloads
    0
    Uploads
    0

    Exclamation

    Zitat Zitat von TurtlesPwn
    Nobody can help with the info youve given us so far
    ok, ill try to be more specific:

    Ok, lets say I pressed O in the program I have created, and it starts to play music, now I want to shut off the music, lets say i pressed X to stop the music, but it does not work...

    Here is another example:

    Lets say i pressed O and it displayed a picture of... a beach. and now I want to go back, Lets say I pressed X to go back, but it doesnt go back, even though i programmed it to go back

    how do I fix this problem?

  9. #8589
    QJ Gamer Green
    Points: 5.889, Level: 49
    Level completed: 70%, Points required for next Level: 61
    Overall activity: 0%

    Registriert seit
    Nov 2007
    Beiträge
    918
    Points
    5.889
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von omegaridley
    ok, ill try to be more specific:

    Ok, lets say I pressed O in the program I have created, and it starts to play music, now I want to shut off the music, lets say i pressed X to stop the music, but it does not work...

    Here is another example:

    Lets say i pressed O and it displayed a picture of... a beach. and now I want to go back, Lets say I pressed X to go back, but it doesnt go back, even though i programmed it to go back

    how do I fix this problem?
    why dont you just ask us to write the program for you, it would be much better than writing 10 posts on how do i do this, i learned how to do that stuff by looking at past posts, you could use the search, its there for a reason
    My Projects
    [URL="http://www.megaupload.com/?d=Q860B1VV"]BUMPER HARVEST MOD - PEGGLE DELUXE BETA 1[/URL]
    working on Zuno, an uno like game
    [QUOTE=FreePlay]It's a picture of a monkey. There, I spoiled it for you.[/QUOTE]

  10. #8590
    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

    You obviously do not understand the flow of your program, that is something we cannot help you with.

  11. #8591
    Points: 2.784, Level: 32
    Level completed: 23%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Mar 2008
    Beiträge
    40
    Points
    2.784
    Level
    32
    Downloads
    0
    Uploads
    0

    Exclamation

    Zitat Zitat von ifiwere1337
    why dont you just ask us to write the program for you, it would be much better than writing 10 posts on how do i do this, i learned how to do that stuff by looking at past posts, you could use the search, its there for a reason
    I just want a code that can loop the program so I wont have to reset the program everytime i execute a command

    can you do that?

  12. #8592
    QJ Gamer Green
    Points: 3.721, Level: 38
    Level completed: 48%, Points required for next Level: 79
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Beiträge
    612
    Points
    3.721
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    Please tell me youre using a while loop.....

  13. #8593
    Points: 2.784, Level: 32
    Level completed: 23%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Mar 2008
    Beiträge
    40
    Points
    2.784
    Level
    32
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von TurtlesPwn
    Please tell me youre using a while loop.....
    yeah, but, i think, well, here is my coding(100% working except for the problem im having):

    Code:
    white = Color.new(255, 255, 255)
    background = Image.load("SYSTEM/images/background.png")
    done = false
    while true do
    pad = Controls.read()
    if pad:cross() and done == false then
    
    System.message("UMD ISO will be dumped in name 9660.ISO, if u have a UMD dumped by this app, rename the ISO in the memory stick. Are you ready to dump the UMD?",1)
    button = System.buttonPressed(1) if button == "yes" then UMD.ripISO("ms0:/ISO/9660.ISO", green) end
    button = System.buttonPressed(1) if button == "no" then System.Quit() end
    done = true end
    if done == false then
    
    Ogg.load("SYSTEM/music/system.ogg")
    Ogg.play()
    screen:blit(0, 0, background, false)
    screen:print(1, 1, "press X to Dump UMD Disk", white)
    end
    
    if pad:circle() and done == false then
    
    System.message("Dumping a UMD video is diffrent than dumping a UMD game. To dump a UMD video, you must enter USB mode and dump it to the PC. When you have USB enabled for UMD drive, it will show up as UMD9660.iso, drag that to your PC and it will start dumping. Do you want to enable UMD USB mode now?",1)
    button = System.buttonPressed(1) if button == "yes" then System.usbDevUMD() end
    button = System.buttonPressed(1) if button == "no" then System.Quit() end
    done = true end
    if done == false then
    
    screen:print(1, 10, "Press O to dump UMD video", white)
    end
    
    if pad:square() and done == false then
    
    System.message("This will show the available amount of free space on your memory stick. Do you wish to continue?",1)
    button = System.buttonPressed(1) if button == "yes" then System.getDevSize("ms0:") end
    button = System.buttonPressed(1) if button == "no" then System.Quit() end
    done = true end
    if done == false then
    
    screen:print(1, 20, "Press [] to see free space on memory stick", white)
    end
    
    if pad:start() and done == false then
    
    System.message("WARNING! This will clock the Central Processing Unit to 20 MHz! Are you sure you want to proceed?",1)
    button = System.buttonPressed(1) if button == "yes" then System.setcpuspeed(20) end
    button = System.buttonPressed(1) if button == "no" then System.Quit() end
    done = true end
    if done == false then
    
    screen:print(1, 30, "Press Start to clock CPU to 20 MHz", white)
    end
    
    if pad:select() and done == false then
    
    System.message("This will clock the Central Processing Unit to 333 MHz, which is higher than default. Are you sure you want to proceed?",1)
    button = System.buttonPressed(1) if button == "yes" then System.setcpuspeed(333) end
    button = System.buttonPressed(1) if button == "no" then System.Quit() end
    done = true end
    if done == false then
    
    screen:print(1, 40, "Press Select to Clock CPU to 333 MHz", white)
    end
    
    if pad:l() and done == false then
    
    System.message("Are you sure you want to exit?",1)
    button = System.buttonPressed(1) if button == "yes" then System.Quit() end
    button = System.buttonPressed(1) if button == "no" then end
    done = true end
    if done == false then
    
    screen:print(1, 50, "Press L trigger To exit", white)
    end
    
    if pad:r() and done == false then
    
    System.message("You are about to shutdown the PSP. Do you want to proceed?",1)
    button = System.buttonPressed(1) if button == "yes" then System.shutdown() end
    button = System.buttonPressed(1) if button == "no" then end
    done = true end
    if done == false then
    
    screen:print(1, 60, "Press R to Shutdown The system", white)
    end
    
    screen.waitVblankStart() 
    screen.flip()
    end

  14. #8594
    QJ Gamer Platinum
    Points: 57.528, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    h0000000rj
    Beiträge
    12.867
    Points
    57.528
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    I would think it's rather obvious.

    The way you have it now, once you set 'done' to true, it never becomes false again, so it never accepts more input.

    Try moving 'done = false' below 'while true do'.
    [I fail @ life]

  15. #8595
    QJ Gamer Green
    Points: 5.889, Level: 49
    Level completed: 70%, Points required for next Level: 61
    Overall activity: 0%

    Registriert seit
    Nov 2007
    Beiträge
    918
    Points
    5.889
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von FreePlay
    I would think it's rather obvious.

    The way you have it now, once you set 'done' to true, it never becomes false again, so it never accepts more input.

    Try moving 'done = false' below 'while true do'.
    i didnt know you knew lua freeplay, i thought you only did c++
    My Projects
    [URL="http://www.megaupload.com/?d=Q860B1VV"]BUMPER HARVEST MOD - PEGGLE DELUXE BETA 1[/URL]
    working on Zuno, an uno like game
    [QUOTE=FreePlay]It's a picture of a monkey. There, I spoiled it for you.[/QUOTE]

  16. #8596
    Points: 2.784, Level: 32
    Level completed: 23%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Mar 2008
    Beiträge
    40
    Points
    2.784
    Level
    32
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von FreePlay
    I would think it's rather obvious.

    The way you have it now, once you set 'done' to true, it never becomes false again, so it never accepts more input.

    Try moving 'done = false' below 'while true do'.
    Thx freeplay, it now works!!!

    but I still have other problems...

    this code is supposed to show how much space I have left on my memory stick:

    Code:
    System.getDevSize("ms0:")
    but it doesnt show anything...

    anyone know?

  17. #8597
    QJ Gamer Green
    Points: 3.721, Level: 38
    Level completed: 48%, Points required for next Level: 79
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Beiträge
    612
    Points
    3.721
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    You dont have to "know" lua to look at and understand a script written in it - it looks like plain english to someone used to lowerlevel programming languages.

  18. #8598
    Points: 2.784, Level: 32
    Level completed: 23%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Mar 2008
    Beiträge
    40
    Points
    2.784
    Level
    32
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von TurtlesPwn
    You dont have to "know" lua to look at and understand a script written in it - it looks like plain english to someone used to lowerlevel programming languages.
    look, i only just turned 13, i know ALOT about programming, except for LUA.

    I can do LUA pretty well, but i always seem to get errors...

  19. #8599
    Points: 2.507, Level: 30
    Level completed: 38%, Points required for next Level: 93
    Overall activity: 0%

    Registriert seit
    May 2008
    Beiträge
    3
    Points
    2.507
    Level
    30
    Downloads
    0
    Uploads
    0

    Standard

    hi my psp screen shows up but the hud isn't working. if any one can help that would be great

  20. #8600
    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

    Zitat Zitat von omegaridley
    look, i only just turned 13, i know ALOT about programming, except for LUA.

    I can do LUA pretty well, but i always seem to get errors...
    You're just proving Turtle's point even more by saying that... lol

    scryeth - that is so vague we can't even begin to help you without atleast some code.

    ...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


  21. #8601
    Points: 2.507, Level: 30
    Level completed: 38%, Points required for next Level: 93
    Overall activity: 0%

    Registriert seit
    May 2008
    Beiträge
    3
    Points
    2.507
    Level
    30
    Downloads
    0
    Uploads
    0

    Standard

    what type of code

  22. #8602
    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

    are you sure you posted on the right thread lol
    -= Double Post =-
    Zitat Zitat von omegaridley
    Thx freeplay, it now works!!!

    but I still have other problems...

    this code is supposed to show how much space I have left on my memory stick:

    Code:
    System.getDevSize("ms0:")
    but it doesnt show anything...

    anyone know?
    some pointers:

    1. use a menu
    2. System.getDevSize() only returns the size, to show it e.g. System.message(System.get DevSize(),0)
    3. that code is bad
    4. i made one of these just to test all of the functions here is the code

    Code:
    System.memclean()
    
    System.usbDiskModeActivate()
    
    white = Color.new(255, 255, 255)
    red = Color.new(255,0,0)
    green = Color.new(0,255,0)
    blue = Color.new(0,0,255)
    
    options = { "PSP Information", "Set Cpu Speed To 133", "Set Cpu Speed To 266", "Set Cpu Speed To 333", "Re-Load" }
    
    current = 1
    
    function printg(x, y, text, colour, display)
    	if colour == nil then
    		colour = Color.new(255, 255, 255)
    	end
    	if display == nil then
    		display = screen
    	end
    	for xbg = -1, 1 do
    		for ybg = -1, 1 do
    			display:print(x + xbg, y + ybg, text, Color.new(0, 0, 0))
    		end
    	end
    	display:print(x, y, text, colour)
    end
    
    function printgc(y, text, colour, display)
    	if colour == nil then
    		colour = Color.new(255, 255, 255)
    	end
    	if display == nil then
    		display = screen
    	end
    	x = 240 - ((string.len(text) * 8) / 2)
    	for xbg = -1, 1 do
    		for ybg = -1, 1 do
    			display:print(x + xbg, y + ybg, text, Color.new(0, 0, 0))
    		end
    	end
    	display:print(x, y, text, colour)
    end
    
    function Display_Menu()
    	for i = 1, table.getn(options) do
    	printgc(30 + ((i - 1) *10), options[i], white)
    	end
    	printgc(30 + ((current - 1) * 10), options[current], green)
    end
    
    if System.powerGetBatteryChargingStatus() == 1 then
    	bat_stat = "Charging"
    else
    	bat_stat = "In Use"
    end
    
    function Menu_Controls()
    	if pad:up() and not oldpad:up() then
    		if current > 1 then
    			current = current - 1
    		else
    			current = table.getn(options)
    		end
    	elseif pad:down() and not oldpad:down() then
    		if current < table.getn(options) then
    			current = current + 1
    		else
    			current = 1
    		end
    	end
    
    	if pad:cross() and not oldpad:cross() and current == 1 then
    		System.message("PSP Version: " .. System.cfwVersion() .. "\nNick Name: " .. System.nickName() .. "\nBattery Status: " .. bat_stat .. "\nBattery Percentage: " .. System.powerGetBatteryLifePercent() .. "%" .. "\nTime Left: " .. System.powerGetBatteryLifeTime() .. "\nLua Player HM: V" .. System.playerVer(), 0)
    	elseif pad:cross() and not oldpad:cross() and current == 2 then
    		System.setLow()
    	elseif pad:cross() and not oldpad:cross() and current == 3 then
    		System.setReg()
    	elseif pad:cross() and not oldpad:cross() and current == 4 then
    		System.setHigh()
    	elseif pad:cross() and not oldpad:cross() and current == 5 then
    		dofile("./function_dump.lua")
    	end
    end
    
    oldpad = Controls.read()
    
    while true do
    
    pad = Controls.read()
    
    screen:clear(blue)
    
    -- insert your main code here
    
    printgc(10, "Lua Player HM Function Dump By [email protected]", green)
    
    Display_Menu()
    Menu_Controls()
    
    printgc(260, "Hi " .. System.nickName(), green)
    
    -- insert your main code here
    
    if pad:start() then
    	break
    end
    
    oldpad = pad
    
    screen.waitVblankStart()
    screen.flip()
    
    end
    Geändert von FaT3oYCG (05-11-2008 um 01:05 AM Uhr) Grund: Automerged Doublepost
    ------ 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).

  23. #8603
    Points: 2.784, Level: 32
    Level completed: 23%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Mar 2008
    Beiträge
    40
    Points
    2.784
    Level
    32
    Downloads
    0
    Uploads
    0

    Post

    thx [email protected], youve helped me yet again!


    ur the best!!!

    so now, what you told me should get the rest of my code to work.

    this leaves me to 1 more question!

    ok, on Ogg playback, the song I have only plays 1 time, How do I make it loop? here is the code I am using:

    Code:
    Ogg.load("SYSTEM/music/system.ogg")
    Ogg.play
    it works, the music plays, but it doesnt loop, so it only plays once

  24. #8604
    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

    looking at the commands in luaplayer hm for ogg files i would say it is probably one of these

    Code:
    Ogg.EndOfStream()
    Ogg.songTime()
    Ogg.mode()
    ------ 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).

  25. #8605
    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

    Yes, looking at the source Ogg.EndOfStream() returns a string "true" when an Ogg file has finished playing so just put in your main loop:
    Code:
    if Ogg.EndOfStream() == "true" then
      Ogg.play()
    end

    ...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


  26. #8606
    Points: 2.784, Level: 32
    Level completed: 23%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Mar 2008
    Beiträge
    40
    Points
    2.784
    Level
    32
    Downloads
    0
    Uploads
    0

    Exclamation

    Zitat Zitat von SG57
    Yes, looking at the source Ogg.EndOfStream() returns a string "true" when an Ogg file has finished playing so just put in your main loop:
    Code:
    if Ogg.EndOfStream() == "true" then
      Ogg.play()
    end
    ok, i understand now, but after I put in that line of code, it game me this error:

    :16: attempt to call field 'EndOfStream' (a nil value)

    here is line 16:

    Code:
    if Ogg.EndOfStream() == "true" then
    it wont work, and the functions.txt even shows the function!!!

    any ideas?

  27. #8607
    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

    did you acctually put code after

    if Ogg.EndOfStream() == "true" then

    ??
    or is that it?
    cause if thats all you put, then you need to add
    Ogg.play() end

  28. #8608
    Points: 2.784, Level: 32
    Level completed: 23%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Mar 2008
    Beiträge
    40
    Points
    2.784
    Level
    32
    Downloads
    0
    Uploads
    0

    Post

    Zitat Zitat von PSProgramer
    did you acctually put code after

    if Ogg.EndOfStream() == "true" then

    ??
    or is that it?
    cause if thats all you put, then you need to add
    Ogg.play() end
    yes, i put code after

    Code:
    if Ogg.EndOfStream() == "true" then
    and it still isnt working...

  29. #8609
    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

    Do you have an Ogg loaded? Looking at the source code of LP, the eof integer is initialized to 0 when an Ogg is loaded so trying to access it before an Ogg is loaded will return nil..

    ...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


  30. #8610
    Points: 2.784, Level: 32
    Level completed: 23%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Mar 2008
    Beiträge
    40
    Points
    2.784
    Level
    32
    Downloads
    0
    Uploads
    0

    Angry

    Zitat Zitat von SG57
    Do you have an Ogg loaded? Looking at the source code of LP, the eof integer is initialized to 0 when an Ogg is loaded so trying to access it before an Ogg is loaded will return nil..
    so ur saying to load the Ogg AFTER this code is executed?:

    Code:
    if Ogg.EndOfStream() == "true" then
    cause, i can easily move the loading code below it
    -= Double Post =-
    Zitat Zitat von omegaridley
    so ur saying to load the Ogg AFTER this code is executed?:

    Code:
    if Ogg.EndOfStream() == "true" then
    cause, i can easily move the loading code below it
    no that didnt work either, i dont understand, is it a bug

    i am using LuaPlayerHM v6.6, and the code u have me is in the functions list!
    Geändert von omegaridley (05-11-2008 um 04:23 PM Uhr) Grund: Automerged Doublepost


 

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 07:54 AM Uhr.

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