[WIP] The Fourth Dimension: A Super Mario 3D land level editor

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by exelix11, Apr 24, 2016.

  1. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    542
    384
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    I'll try to implement these changes, i already have an idea on how to move the c0list editor in the main window, not sure about nested children.
    But not before the end of the week, in this period i'm really busy with school, so... stay tuned ;)
     
    mustafag32g likes this.


  2. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    542
    384
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    upload_2016-11-11_15-33-59.png
    Got working both the multi object property editor and the C0List editing, but i'm not releasing yet, mainly because the C0List editing required a LOT of changes, so there is a lot to test.

    If someone would like to help testing, compile the latest commit from github and if you find a crash PM me the way you got it to crash (if you know how to use visual studio, send also a screenshot of the code with the exception).
    The biggest changes were in the clipboard code and the undo stuff, try messing around with those.
     
    mustafag32g and AtlasFontaine like this.
  3. Louiskovskie

    Louiskovskie Advanced Member

    Newcomer
    89
    44
    Jul 26, 2016
    Germany
    Looks nice!
    But how exactly do i start this build? Do i have to inject some files into the latest release, or do i have to use Visual Studio?
    (Sorry if this is a stupid question :P)
     
  4. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    542
    384
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    From github download the zip of the repo, then open the .sln file in visual studio and click the run button, maybe tomorrow i'll post a compiled beta version.
     
  5. mustafag32g

    mustafag32g GBAtemp Advanced Fan

    Member
    640
    438
    Jul 30, 2014
    Argentina
    Also exelix I looked at the file structure of some 3d world objects and compared the same objects in 3d land. The info inside is almost the same however I know 3d world uses big endian and 3d land uses small :P. Would it be possible to port some objects over :P ?
     
  6. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    542
    384
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    As far as i understood on how objects work, each object in the CCNT is linked to what the file calls "class", that most probably means a class in the code, so no, unless there is already the same class implemented in 3d land's code.

    Anyway you can experiment, to convert a byml from big endian to little endian drag it over the4Dimension.exe and you just need to change this line in the editor: <isBigEndian Value="False" /> (it's not a value of the byml, it'is a flag the editor adds to the xml)
     
  7. Louiskovskie

    Louiskovskie Advanced Member

    Newcomer
    89
    44
    Jul 26, 2016
    Germany
    Oh! Visual Studio is bigger than 8 GB!!:unsure: I think i have to wait...
    For the multi object properties, i would recommend, that selected objects are marked, so you see exactly, which objects are selected ;)
    Something like this:
    Warning: Spoilers inside!
     
    Last edited by Louiskovskie, Nov 12, 2016
  8. Louiskovskie

    Louiskovskie Advanced Member

    Newcomer
    89
    44
    Jul 26, 2016
    Germany
    Is it also possible to add a romfs and cia generator? That would make testing faster :download:
     
    exelix11 and mustafag32g like this.
  9. mustafag32g

    mustafag32g GBAtemp Advanced Fan

    Member
    640
    438
    Jul 30, 2014
    Argentina
    that would BE FANTASTIC!! ^
     
  10. Louiskovskie

    Louiskovskie Advanced Member

    Newcomer
    89
    44
    Jul 26, 2016
    Germany
    Found out a new camera code !
    This camera is like the frozen camera from Mario 64 !

    Frozen Camera:
    This camera is similary to the fixed camera, but the camera does not look at a specific point, it looks at Mario and follows him by only rotating the view. It's like the frozen camera in Super Mario 64!

    Code:
            <C1 Name="CameraPos">
              <D2 Name="X" StringValue="XXXX" />
              <D2 Name="Y" StringValue="YYYY" />
              <D2 Name="Z" StringValue="ZZZZ" />
            </C1>
            <A0 Name="Category" StringValue="Map" />
            <A0 Name="Class" StringValue="FixPos" />
            <D1 Name="UserGroupId" StringValue="XY" />
            <A0 Name="UserName" StringValue="CameraArea" />
    CameraPos: Camera's position
    UserGroupId: The camera ID

    Here are other camera codes:
    http://neomariogalaxy.bplaced.net/?page=thread&id=274#post2231
     
    exelix11 and mustafag32g like this.
  11. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    542
    384
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    It took more than expected but here it is, this adds also highlighting selected objects and some other minor stuff.
    Since it's not fully tested save often, don't relay too much on undo, and, if you want to help debugging crashes,add EnableDebugDumps.reg to the registry, this will enable saving debug infos to C:\T4D_Dumps if the editor crashes, the other reg file disables it.
    So if the editor crashes you can send me the dump so i can quickly see what went wrong.

    A while ago i thought about adding a button that built the 3ds and automatically run it in citra, but I was never able to build a working 3ds nor a cia :/
    I think the fastest way would be making a batch file that does everything.
     

    Attached Files:

    Louiskovskie likes this.
  12. Louiskovskie

    Louiskovskie Advanced Member

    Newcomer
    89
    44
    Jul 26, 2016
    Germany
    Ok, it's really nice! Children Editing is now REALLY, REALLY GOOD! It's sooo easy now. And also multi object property editing is really nice! I would suggest the option, to select multiple objects also in the model view, maybe selecting more object while holding shift.
    I also like the idea to view a yellow square around selected objects!
    I really often get an error when trying to undo, especially when editing Childrens. That's the only error i got.

    And another suggest: We know if we hold CTRL and ALT, we can move the object every 100 units. Do you could implement the feature, to also move an object every 50 units? Maybe when holding only the ALT button?

    Anyway, good job! ;D
     
  13. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    542
    384
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    Can you explain what actions you try to undo when you get the error ? Or do that crash dump thing and send me the files ?
    I can easily add snapping every 50 units, probably multi selection from the 3d view too, but dragging multiple objects may be a little tricky to pull out.

    Also two new hotkeys were added, press C to directly edit the children objects of the selected object and B to go back while editing a C0List
     
  14. mustafag32g

    mustafag32g GBAtemp Advanced Fan

    Member
    640
    438
    Jul 30, 2014
    Argentina
    what excactly does multi objecter property editing mean? any examples :-)?
     
  15. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    542
    384
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    You can select many objects in the list and edit the CameraId proerty for all of them with a few clicks
     
  16. StarLight42

    StarLight42 Advanced Member

    Newcomer
    70
    72
    Nov 8, 2014
    United States
    I'm having a problem. Whenever I add "tinyplanet" to the CCNT it must delete itself or something right after I save because the planet won't show up on my game. It's weird because the planet worked for Louiskovskie when he added it to his CCNT so i honestly have no idea what's wrong.

    To be clear, the planet just doesnt show up at all ingame, Mario falls through a void of nothingness.
     
  17. exelix11
    OP

    exelix11 GBAtemp Advanced Fan

    Member
    542
    384
    Feb 25, 2015
    Italy
    C:\users\exelix11\
    Did you copy the CCNT from the editor's directory to the game romfs/layeredFS folder ?
     
  18. StarLight42

    StarLight42 Advanced Member

    Newcomer
    70
    72
    Nov 8, 2014
    United States
    Of course. Why would I not?
     
  19. Louiskovskie

    Louiskovskie Advanced Member

    Newcomer
    89
    44
    Jul 26, 2016
    Germany
    The error happens, when i changed the position of an object and try to undo. A very strange thing is, that there does not happens an error, when the object's position was changed in the properties.
    And also, it is not possible to undo actions, that was made via changing properties of multiple objects.
    There is also a bug with the yellow square when undo:
    Warning: Spoilers inside!

    I can't find the crash dump files! C:\T4D_Dumps doesn't exist, though i clicked on the enablefile.
     
  20. Louiskovskie

    Louiskovskie Advanced Member

    Newcomer
    89
    44
    Jul 26, 2016
    Germany
    Last edited by Louiskovskie, Dec 3, 2016
    exelix11 and mustafag32g like this.