SonLVL

Discussion in 'Utilities' started by MainMemory, Mar 29, 2011.

  1. MainMemory

    MainMemory Well-Known Member Member

    Joined:
    Mar 29, 2011
    Messages:
    922
    Stop reading my mind, I was thinking of that earlier.
     
  2. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    So this happened after I tried to open SonLVL after the latest update:

    Operating system: Microsoft Windows NT 6.2.9200.0
    System.ArgumentException: Only 8bpp (256 color) images are supported.
    File: "C:\Users\Owner\Tools\SonLVL\HUD\spc.png"
       at SonicRetro.SonLVL.API.BitmapBits..ctor(String filename) in C:\Users\Mike\Documents\GitHub\SonLVL\SonLVLAPI\BitmapBits.cs:line 74
       at SonicRetro.SonLVL.GUI.MainForm.MainForm_Load(Object sender, EventArgs e) in C:\Users\Mike\Documents\GitHub\SonLVL\SonLVL\MainForm.cs:line 178
       at System.Windows.Forms.Form.OnLoad(EventArgs e)
       at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
       at System.Windows.Forms.Control.CreateControl()
       at System.Windows.Forms.Control.WmShowWindow(Message& m)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Halp.
     
    Last edited by a moderator: May 16, 2015
  3. MainMemory

    MainMemory Well-Known Member Member

    Joined:
    Mar 29, 2011
    Messages:
    922
    Sounds like you somehow ended up with an old SonLVLAPI.dll. I don't know how that could happen though.
     
  4. Niko

    Niko All's well that ends well, right? Member

    Joined:
    Mar 1, 2014
    Messages:
    245
    Location:
    $C800
    As much as I like the tool, it still has a few things that need fixing.
    This message always shows up when I chose "save."
    It saves it just fine, and I know to use S1LVL.ini, because S1LVL.rev01.ini isn't the revision my assembly is set to build.

    But, really!

    And, about those loops..
    Is that what this yellow box is for?
    I can't find any of the debug ring-strips like in Sonic 2's loops.
    I'll check my settings..

    SonLVLerror.png

    EDIT: Never mind, I just had to make an .ini that uses the "misc/Start Location Array - Levels.bin" files in my SVN and Git hybrid ASM.  
     
    Last edited by a moderator: May 27, 2015
  5. Pacca

    Pacca Having an online identity crisis since 2019 Member

    Joined:
    Jul 5, 2014
    Messages:
    1,175
    Location:
    Limbo
    Sonic 1 has a different way of handling loops then S2; just double click on a loop in the chunk editor, and it will work normally. As for the error message popping up, your gonna need to actually give us the log file its' generating before anyone can help you; it should be in the same folder as your S1LVL.ini.
     
  6. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    Out of curiosity, I deleted SonLVL.exe and SonLVLAPI.dll, lowered the SonLVL version number in the updater's INI file by 1, and re-downloaded to see if this was the problem.
    As it turns out, it was. Thanks =D
     
    Last edited by a moderator: May 17, 2015
  7. jubbalub

    jubbalub Mania fanboy Member

    Joined:
    Dec 25, 2014
    Messages:
    286
    I have the same problem as Calvin; it's saving fine, but that message keeps popping up.

    Logs.
     
    Last edited by a moderator: May 17, 2015
  8. Clownacy

    Clownacy Retired Staff lolololo Member

    Joined:
    Aug 15, 2014
    Messages:
    1,020
    Figures. The 'easy to use' disassembly is harder to use.

    Sigh, I don't recommend using the thing nowadays, especially when some of its changes are so badly done (read: the uncompressed chunk/block bug) and it's so horrifically outdated, but here's the idea: ReadySonic is from a time when the Git disasm lacked split Sonic spawn locations (leaving them part of some ASM file, I imagine). SonLVL is currently set to use said split files, which it obviously can't. You can split the start positions yourself, or stop SonLVL from trying to load them by removing the lines responsible from SonLVL.ini.

    Please note that ReadySonic and Git are not the same, and crossing components will result in compatibility issues, as seen here.

    ...

    Put another way, don't blame the tool for your mistakes. I don't recall ReadySonic being listed as a supported disasm.
     
    Last edited by a moderator: May 19, 2015
  9. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    So I just realized I can no longer access the File screen to load my stuff.
    Is this normal with the new update?
     
  10. Misinko

    Misinko Oh SHIT it's the Biolizard! Member

    Joined:
    Apr 30, 2013
    Messages:
    722
    Location:
    Ohio
    Shouldn't be. 

    Just updated SonLVL the other day, and I can still use the file tab just fine. 

    Screenshot.png
     
  11. MainMemory

    MainMemory Well-Known Member Member

    Joined:
    Mar 29, 2011
    Messages:
    922
    Yeah we solved this in IRC, he accidentally hid the menu (F5).
     
  12. Pacca

    Pacca Having an online identity crisis since 2019 Member

    Joined:
    Jul 5, 2014
    Messages:
    1,175
    Location:
    Limbo
    I found a funny little error; when SonLVL has no levels loaded (or even no game loaded at all), the "Delete Unused" buttons are still selectable; clicking them will result in an error (in the case of the one for the chunks, it even spits out the usual warning message about scrambling other acts with the same chunks). Not program breaking, but odd nonetheless.
     
  13. MainMemory

    MainMemory Well-Known Member Member

    Joined:
    Mar 29, 2011
    Messages:
    922
    SonLVL update!

    I fixed some bugs, including the one that Pacguy64 reported, and Clownacy added a "Find Previous" option.
     
  14. MainMemory

    MainMemory Well-Known Member Member

    Joined:
    Mar 29, 2011
    Messages:
    922
    Update: SonLVL had a bug that caused unnecessary duplication of blocks when importing blocks/chunks/layout with collision data. If you've been using this feature, you may want to redo the imports.
     
  15. Niko

    Niko All's well that ends well, right? Member

    Joined:
    Mar 1, 2014
    Messages:
    245
    Location:
    $C800
    @MainMemory, would it be too much to ask for a "bucket tool" in the tile editor, like the one in many basic graphic editors? 

    "Fill all of the pixels this colour here" sort of thing?
    I would find it helpful, since manually scraping the pixels one-by-one takes awhile when editing a lot of tiles.
     
     
  16. MainMemory

    MainMemory Well-Known Member Member

    Joined:
    Mar 29, 2011
    Messages:
    922
    Flood fill is not an easy thing to program. I've tried, I can't understand how to do it.
     
  17. EMK-20218

    EMK-20218 The Fuss Maker Exiled

    Joined:
    Aug 8, 2008
    Messages:
    1,067
    Location:
    Jardim Capelinha, São Paulo
    What about a editor for the collision angles? I never seen such thing before. Would it be a good idea?
     
  18. MainMemory

    MainMemory Well-Known Member Member

    Joined:
    Mar 29, 2011
    Messages:
    922
    Unless I'm mistaken, both SonED2 and SonLVL have the ability to edit solidity data.
     
  19. rika_chou

    rika_chou Adopt Member

    Joined:
    Aug 11, 2007
    Messages:
    689
    Both have collision editors that can change what angle is used, but editing angles has always confused me...it would be nice to have some kind of visual editor.
     
  20. Pacca

    Pacca Having an online identity crisis since 2019 Member

    Joined:
    Jul 5, 2014
    Messages:
    1,175
    Location:
    Limbo
    I believe that the last tab in the SonLVL menus (where you select chunks, blocks, etc.) has just that.