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

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,062
Country
Italy
How do I go about getting a fresh CCNT?
From an unmodified RomFs of the game it's the file SystemData\CreatorClassNameTable.szs

It hangs on the process. I tried my Windows 10 laptop, and it works.
But, now, I have an even greater problem. When I import ANY model, when I try to Generate now (CollisionsMng) I'm greeted with this: View attachment 53379

No matter what I type, it says "file not found, error" or something. This does it with ANY model I import.

*edit*

Fixed when you put your obj to the desktop... Weird... Needs a fix, I think.
That's s dos limitation, looks like i forgot the quotes in the command args, use a path without spaces and special characters. If you don't want to move the file to another folder, manually drag your obj over CollisionsMng.

On the other pc the problem may be that you don't have .net framework 4.5.2 (or directx since it uses 3d rendering ?) installed, and if you have switchable graphics card, try running it with the high performance one.

Your stage1.zip level freezes for me, dude.
What region is your game ? Did you copy everything and then patched the CCNT ? If you copied both stages files and then patched once it won't work, the second stage's patch file overwrote the one for the first stage

error: wrong magic number when importing an szs game model :|

--------------------- MERGED ---------------------------

View attachment 53395
wrong magic number appears when the file you are loading isn't a byml (if you're opening a szs the byml inside it isn't a byml, probably it's corrupted), what file are you trying to open ? From File-> Open you must open stages, not models
 
Last edited by exelix11,

ILoveUnity

Banned!
Banned
Joined
Jun 16, 2016
Messages
114
Trophies
0
Age
31
XP
41
Country
United States
From an unmodified RomFs of the game it's the file SystemData\CreatorClassNameTable.szs


That's s dos limitation, looks like i forgot the quotes in the command args, use a path without spaces and special characters. If you don't want to move the file to another folder, manually drag your obj over CollisionsMng.

On the other pc the problem may be that you don't have .net framework 4.5.2 (or directx since it uses 3d rendering ?) installed, and if you have switchable graphics card, try running it with the high performance one.


What region is your game ? Did you copy everything and then patched the CCNT ? If you copied both stages files and then patched once it won't work, the second stage's patch file overwrote the one for the first stage


wrong magic number appears when the file you are loading isn't a byml (if you're opening a szs the byml inside it isn't a byml, probably it's corrupted), what file are you trying to open ? From File-> Open you must open stages, not models
i went to other modding creatorclass then loaded an szs i made
 

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,062
Country
Italy
i went to other modding creatorclass then loaded an szs i made
Merging from file works only with another CreatorClassNameTable (szs, xml or byml is because it can be in those formats,like the CCNTPatch.xml from my levels), to add an entry you write the name you choose for the object in the Object name field, then click add and then save, if you are adding a level model the class must be "FixMapParts".
 

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,062
Country
Italy
To everyone who has the app crashing at startup without any message, with the power of google i discovered that's there is a way for me to check what's wrong: dump files.
If you add to the System register the reg file i put in the attachments every time the editor crashes a memory dump will be saved to C:\T4D_Dumps\ if you send that to me i can try to fix it.
Dumps are about 100mb, but with a good compressor (i use 7zip) you can reduce them to 25mb or so.
Even if you don't have the crash at startup, you should consider to add this key, so if the editor crashes for an unknown bug i can fix it quickly.
Dumps are generated by windows itself, don't contain any personal information, only some details about the computer, like timezone, architecture, the path of the editor and the list of modules loaded at runtime, if you use this, make sure the editor name is "The4Dimension.exe" or else it won't work.

To disable this you just need to remove the "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\The4Dimension.exe" key with regedit
 

Attachments

  • EnableDebug.zip
    382 bytes · Views: 117
Last edited by exelix11,

ILoveUnity

Banned!
Banned
Joined
Jun 16, 2016
Messages
114
Trophies
0
Age
31
XP
41
Country
United States
uh I added me model into the creator class name thing and when putting it in the level it shows up as a blue suare not as the model
 

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,062
Country
Italy
uh I added me model into the creator class name thing and when putting it in the level it shows up as a blue suare not as the model
This has been said other times in this thread,rename your .obj model to the name you set to the object and copy it in the models folder.
Don't rename the mtl and the textures folder, you just need to copy them to the models folder ,it will work the same
 

ILoveUnity

Banned!
Banned
Joined
Jun 16, 2016
Messages
114
Trophies
0
Age
31
XP
41
Country
United States
Ok so model just isn't there in game
I added it to the creatorclassname thing and set the clipping ratio to a high number dudes
 

ILoveUnity

Banned!
Banned
Joined
Jun 16, 2016
Messages
114
Trophies
0
Age
31
XP
41
Country
United States
@exelix11 Ok so model just isn't there in game!
I added it to the creatorclassname thing and set the clipping radius to a high number dudes and put the szs in the folder with the name
model shows up in editor
 

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,062
Country
Italy
Just wait, i'm not 24h on 24 here.
Is the collision there ? How big is the object szs ? did you check the model scale before importing ? If you changed the object scale in the editor it won't work, the scale property isn't implemented in this way in the game.
Did you use a bcmdl or an obj ? obj to bcmdl converter doesn't always work, you should try to convert it with the nw4c toolkit
 

ILoveUnity

Banned!
Banned
Joined
Jun 16, 2016
Messages
114
Trophies
0
Age
31
XP
41
Country
United States
Just wait, i'm not 24h on 24 here.
Is the collision there ? How big is the object szs ? did you check the model scale before importing ? If you changed the object scale in the editor it won't work, the scale property isn't implemented in this way in the game.
Did you use a bcmdl or an obj ? obj to bcmdl converter doesn't always work, you should try to convert it with the nw4c toolkit
i used a bcdml from a 3ds game so the size should be good, I DID NOT RESIZE IN EDITOR IT WAS RIGHT SIZE ALREADY. i dunno what to do :(
 

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,062
Country
Italy
i used a bcdml from a 3ds game so the size should be good, I DID NOT RESIZE IN EDITOR IT WAS RIGHT SIZE ALREADY. i dunno what to do :(
how big (filesize) are the bcmd, kcl and the whole szs ? Did you copy the szs in the ObjectData folder with the same name you added in the CCNT ?
Looks like not every game are using the same bcmdl format, right now i'm trying to import a model from mario kart 7 and i have the same issue, i'm checking where could be the problem.
From what game is your bcmdl ?
 

ILoveUnity

Banned!
Banned
Joined
Jun 16, 2016
Messages
114
Trophies
0
Age
31
XP
41
Country
United States
how big (filesize) are the bcmd, kcl and the whole szs ? Did you copy the szs in the ObjectData folder with the same name you added in the CCNT ?
Looks like not every game are using the same bcmdl format, right now i'm trying to import a model from mario kart 7 and i have the same issue, i'm checking where could be the problem.
From what game is your bcmdl ?
same as yours (Cart 7)
 

mustafag32g

Well-Known Member
Member
Joined
Jul 30, 2014
Messages
806
Trophies
0
Age
34
XP
2,331
Country
Argentina
when my models do not show up in the editor, even though i put obj in models files. I usually just dele the models file and open up 4dimension and restart the process where it converts my models to obj. It should work then :-)

As long as you have the edited obj.szs in the objectData folder :-)
 

ILoveUnity

Banned!
Banned
Joined
Jun 16, 2016
Messages
114
Trophies
0
Age
31
XP
41
Country
United States
when my models do not show up in the editor, even though i put obj in models files. I usually just dele the models file and open up 4dimension and restart the process where it converts my models to obj. It should work then :-)

As long as you have the edited obj.szs in the objectData folder :-)
know some good objs?
 

exelix11

Developer
OP
Developer
Joined
Feb 25, 2015
Messages
915
Trophies
1
Location
C:\users\exelix11\
XP
3,062
Country
Italy
when my models do not show up in the editor, even though i put obj in models files. I usually just dele the models file and open up 4dimension and restart the process where it converts my models to obj. It should work then :-)

As long as you have the edited obj.szs in the objectData folder :-)
They don't show up because the editor once has loaded the model for an object keeps it in memory, so if the object is duplicated it won't load the model again from the disk, you just need to restart the editor and it will work

For the mario kart 7 models i still can't make it work, i guess the problem is the size, once i convert the obj to kcl i get a 500kb file, which is far bigger than the biggest kcl in the game.
Now i'm trying to convert the mario kart 7 kcl to a 3d land kcl
 

ILoveUnity

Banned!
Banned
Joined
Jun 16, 2016
Messages
114
Trophies
0
Age
31
XP
41
Country
United States
They don't show up because the editor once has loaded the model for an object keeps it in memory, so if the object is duplicated it won't load the model again from the disk, you just need to restart the editor and it will work

For the mario kart 7 models i still can't make it work, i guess the problem is the size, once i convert the obj to kcl i get a 500kb file, which is far bigger than the biggest kcl in the game.
Now i'm trying to convert the mario kart 7 kcl to a 3d land kcl
zelda model pls? download for obj in description
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • The Real Jdbye @ The Real Jdbye:
    both of which work well in potplayer
  • The Real Jdbye @ The Real Jdbye:
    amd is a bit cheaper though
  • Psionic Roshambo @ Psionic Roshambo:
    Cheaper and they are less stingy with the RAM not a big issue now but I can imagine in a yard or two things might be different
  • Psionic Roshambo @ Psionic Roshambo:
    Year not yard lol
  • The Real Jdbye @ The Real Jdbye:
    the vram is one advantage when it comes to AI but ends up being slower even with that and really AI is the only use case that needs more than 12gb vram right now
  • Psionic Roshambo @ Psionic Roshambo:
    Interesting lol
  • Psionic Roshambo @ Psionic Roshambo:
    I think I watched a video where two games at 4K where eating just over 16GB of RAM and it's the one case where the 7900XT and XTX pulled ahead (minus RTX of course)
  • Psionic Roshambo @ Psionic Roshambo:
    So my opinion is that they could age a bit better in the future, and maybe AMD will continue improving them via drivers like they tend to do. No guarantee there but they have done it in the past. Just a feeling I have.
  • The Real Jdbye @ The Real Jdbye:
    cyberpunk at 4k without DLSS/fidelityfx *might* exceed 12gb
    +1
  • The Real Jdbye @ The Real Jdbye:
    but that game barely runs at native 4k
  • Psionic Roshambo @ Psionic Roshambo:
    I think it was some newer games and probably poorly optimized PS4 or PS5 ports
  • The Real Jdbye @ The Real Jdbye:
    they definitely will age better but i feel dlss might outweigh that since it looks about as good as native resolution and much less demanding
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    When I played Cyberpunk on my old 2080 Ti it sucked lol
  • The Real Jdbye @ The Real Jdbye:
    AMD could introduce something comparable to DLSS but nvidia's got a lot more experience with that
  • The Real Jdbye @ The Real Jdbye:
    least amd 7xxx has tensor cores which the previous generations didn't so there is the potential for AI upscaling
  • Psionic Roshambo @ Psionic Roshambo:
    They have FSR or whatever it's called and yeah it's still not great
  • The Real Jdbye @ The Real Jdbye:
    so AMD seem to finally be starting to take AI seriously
  • Psionic Roshambo @ Psionic Roshambo:
    Oh yeah those new 8000 CPUs have AI cores built in that's interesting
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe they plan on offloading to the CPU?
  • Psionic Roshambo @ Psionic Roshambo:
    Would be kinda cool to have the CPU and GPU working in random more
  • Psionic Roshambo @ Psionic Roshambo:
    Tandem even
  • The Real Jdbye @ The Real Jdbye:
    i think i heard of that, it's a good idea, shouldn't need a dedicated GPU just to run a LLM or video upscaling
  • The Real Jdbye @ The Real Jdbye:
    even the nvidia shield tv has AI video upscaling
  • The Real Jdbye @ The Real Jdbye:
    LLMs can be run on cpu anyway but it's quite slow
    The Real Jdbye @ The Real Jdbye: LLMs can be run on cpu anyway but it's quite slow