Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Coding Help

                  
   
  1. #1
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default Coding Help

    Is there anyway to load another code file from your main one, like something used in gunnar hero? If so, how?

  2. #2
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    83

    Default

    Huh?

    As in loading data files? Please give an example.

  3. #3
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    im going to try to create a psp version of guitar hero, what i want to do is to have a song folder were i could have code or something like that in it for the notes of the song, instead of implementing it in the main code
    Last edited by thehumanidiot; January 25th, 2008 at 00:52.

  4. #4
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    83

    Default

    Short answer, yes. You can load external data files to work with your game.

  5. #5
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    do you know of any tutorials that will show me how to?

  6. #6
    DCEmu Newbie
    Join Date
    Jan 2008
    Posts
    18
    Rep Power
    0

    Default

    Well, if you know all the basics for file reading/writing you can write a function to parse the files and execute them.

  7. #7
    DCEmu Old Pro Wally's Avatar
    Join Date
    Oct 2005
    Posts
    1,170
    Rep Power
    75

    Default

    Read the SDK Samples. They are there for a reason

  8. #8
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    I looked in the SDK Samples, but i couldn't find what I was looking for.
    EDIT: I was looking around on the internet and found an #include function. This would work if I could change the file i was opening, but i don't know how to do that.
    Last edited by thehumanidiot; January 28th, 2008 at 12:08.

  9. #9
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    83

    Default

    Google "File IO C".

  10. #10
    DCEmu Rookie
    Join Date
    May 2007
    Location
    Under your Bed
    Posts
    168
    Rep Power
    0

    Default

    sorry for this extremly late post, but i havn't been on the computer in a long time, i found some stuff but it only showed me how to read and edit numbers or something, im trying to be able to have an entire function in a seperate file and run from my main file whenever i please

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •