Build script breaks whenever I edit it...

Discussion in 'Discussion and Q&A Archive' started by ThomasThePencil, Jul 13, 2014.

Thread Status:
Not open for further replies.
  1. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    Not sure if this is a "basic" question, but here goes.

    So,  you know how the build script needs editing if you move Sonic's first running frame to somewhere other than frame $2D? Well, in S2: TRoC, the first running frame is frame $30...

    ...but that's not the issue. The issue comes when I attempt to edit the build script to accommodate this. It will, after editing, show the command prompt window for a split-second, then just as quickly as it appears, it will close without even building the ROM.

    What do I do to fix this?
     
  2. LazloPsylus

    LazloPsylus The Railgun Member

    Joined:
    Nov 25, 2009
    Messages:
    Location:
    Academy City
    Put PAUSE at the bottom of the build script. Should alleviate the issue of the prompt closing before you can read it. Alternatively, you could just pipe the output to an external file, but that may be a bit more complicated than what you're looking for.

    And yes, that is a very basic question.
     
  3. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    That's not exactly what I meant.

    It literally opens for 1 frame and then closes. No error log, no passes, no anything.
     
  4. LazloPsylus

    LazloPsylus The Railgun Member

    Joined:
    Nov 25, 2009
    Messages:
    Location:
    Academy City
    Based on my understanding of your problem, yes it is. PAUSE tells the prompt to wait for user input before proceeding.
     
  5. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    Not really. I honestly most likely wouldn't be posting this if it were the error messages that are the issue. I've already confirmed there exist no errors by running a clean batch file.

    To help explain, here's a shot of the S2: TRoC folder before attempting to run build.bat:

    [​IMG]

    And now here's that same folder afterwards:

    [​IMG]

    No difference.

    There technically should be a new ROM in the folder. There isn't, though, because the batch file simply doesn't run.

    I hope this cleared up what my problem is.
     
  6. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    At the cost of repeating what Evanescence said, if you want to know what happens, add "PAUSE" in a new blank line at the bottom of the batch file. It will keep the command prompt open until you press any key, so you can see what's going on.
     
  7. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    Tried that just now...

    ...still nothing. Batch file still does the same thing.
     
  8. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    You probably broke the batch file in some way then, because it's not possible for a batch file to "not run".


    Which text editor did you use to edit it? I wonder, maybe you saved it in some Unicode format by mistake, making it unusable. This is an extremely random guess but I can't do much better without seeing things.
     
  9. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    I actually found the problem: there was a weird line break in the first part of the file. Oh, the things I can overlook sometimes =P

    As such, this topic is now pretty much useless. Request lock and probably trash. Sorry for wasting your time =/
     
    Last edited by a moderator: Jul 13, 2014
  10. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    You should be more concerned about your postcount than about our time. You got a second chance by saying very appropriate things, implying that you changed and so on, yet once again you asked a question about something simple you overlooked. Personally, I think you have many better ways in which you should handle your fresh new start, but that's just me. The ghost of the "ThomasSpeedrunner help thread" appeared in front of my eyes for a moment when I saw this.


    No, don't reply, you'd use another one of your 20 posts. Save them for something amazing.
     
Thread Status:
Not open for further replies.