DSHack.org Archive
This is a read-only archive from DSHack.org, as seen in 2008-2015.
Click here to join our newer Forum.
Page: 1
pabloh&g
Posted 2015年04月30日 - 4:50 JST #20847

On 26/09/2014, at 9:25 pm, Yamilla Hoshi wrote:> ????

Members
167 Posts

-Requeriments

 

- KMPtools

- EveryFileExplorer (will be called as EFE)

- Excel

- Hexadecimal editor. HxD recomended.

 

To make a Custom Track, you will need to edit a track szs, inside Course folder. There are 3 important files: Course.bcmdl (model), Course.kcl (collision), Course.kmp (Kart map).

 

- Model

 

The model is what you currently can see on screen. You can generate is using EFE. File -> New from file -> Nintendo 3ds plugin -> CTR graphics. After you load the .obj, you will get a window asking for the model name. You should put the name of the szs you will put the model in. So if you are going to use Toad Circuit slot (Gctr_ToadCircuit.szs) the model must be named Gctr_ToadCircuit.

However, the model generation with EFE can be buggy, you can PM me with your model in .obj so I can generate it correctly. (Before sending it to me, test it before with EFE. I won't be scaling, fixing or modifying the model) To get the correct scale of the model, compare it with an existing course (you can export a course to .obj with EFE). The VRAM cannot be greater than 1MB (Only a few members can check this, me included). After you done the model, keep it in a safe place.

 

- Collision

 

The collision is the "model" that the kart can touch, this includes out of bounds. You can generate it on EFE. File -> New from file -> Mario Kart plugin -> Mario Kart 7 kcl.

You can set a kcl ID (floor, wall, boost) by Material. The list of all the kcl IDs can be found here. Make sure the model and the collision are in the same coordinates, and above Y=0.

 

- KMP

 

The kmp have two parts. The header and the body.

 

-Header.

It has some information about the file, such as the file size and the section offsets.

Its size is always 0x58 for tracks. The section offsets can be calculated with offset calculator with the following command

"Offset calculate.exe" -w txt "kmp filename"

 

The output will be generated in a txt.

 

bkKji8F.png

 

More things soonish...

 

You can download kmptools and generate your own kmp with HxD, but you will need a bit of hex skills.

KMP saving will be added to EFE soon.

 

KMP documentation 

 

 

 

This tutorial will be updated soon, explaining how kmptools works.


MKGirlism
Posted 2015年04月30日 - 5:03 JST #20848

I'm cutely evil, aren't I?

Führer
8388607 Posts
I've turned this into a Sticky, even though this Guide doesn't explain much, yet.

pabloh&g
Posted 2015年04月30日 - 5:20 JST #20850

On 26/09/2014, at 9:25 pm, Yamilla Hoshi wrote:> ????

Members
167 Posts

I don't have time now, as i said, I will give more information soon.


Jesse
Posted 2015年04月30日 - 6:07 JST #20853



Members
41 Posts

why do I need exel. I hate exel


pabloh&g
Posted 2015年04月30日 - 7:03 JST #20855

On 26/09/2014, at 9:25 pm, Yamilla Hoshi wrote:> ????

Members
167 Posts
You need excel to convert the point values to a hex, so you can inject it to the kmp

Jesse
Posted 2015年05月01日 - 2:05 JST #20858



Members
41 Posts

I guess there are alternatives for converting a float to decimal. getting excel just to do that is a bit... unnecessary.


pabloh&g
Posted 2015年05月01日 - 4:01 JST #20860

On 26/09/2014, at 9:25 pm, Yamilla Hoshi wrote:> ????

Members
167 Posts
Well, you can spend 1 hour with excel, or 10 hours with HxD direcly

Gericom
Posted 2015年05月02日 - 16:52 JST #20863

Feature-Length Nut Expansion Pak

Moderator
1377 Posts
You can simply use an online converter I assume.

http://gregstoll.dyndns.org/~gregstoll/floattohex/

MKGirlism
Posted 2015年05月02日 - 16:54 JST #20864

I'm cutely evil, aren't I?

Führer
8388607 Posts
But unlike that Calculator, you can Generate many Hex Values at once, making things go much easier.

TheZoroark007
Posted 2015年06月03日 - 19:54 JST #21137



Members
39 Posts
Will this tutorial ever be updated ?

pabloh&g
Posted 2015年06月03日 - 23:17 JST #21141

On 26/09/2014, at 9:25 pm, Yamilla Hoshi wrote:> ????

Members
167 Posts

Will this tutorial ever be updated ?

Probably, I'm busy atm


Wingcapman Eleven
Posted 2015年06月22日 - 4:19 JST #21370



Members
10 Posts

Since it needs some more little documentation,... I've been wondering, how many polygons can you use for your track model (and collision model) without getting slowdown issues (if it's a thing)?? I've been working on a 3D model for Mario Kart Wii for quite a while, and since I reduced the amount of polygons, I might will try out using it for Mario Kart 7 some day (I also have my own version of DS dokan_course (renamed as Warp Pipe Island), which doesn't even have 10k polygons.

The model I'm using now is around 15000-17000 polygons, I don't know how strong Mario Kart 7 actually is with keeping track with those.

 

So what I want to know for now, is what would you recommend us for a good amount of polygons without getting problems. Oh, and if this amount becomes too big, is there a way to make loading zones so that it doesn't load the whole track's design at once?? :)


pabloh&g
Posted 2015年06月22日 - 4:58 JST #21373

On 26/09/2014, at 9:25 pm, Yamilla Hoshi wrote:> ????

Members
167 Posts

Mario Circuit is 15000 triangles.


MKGirlism
Posted 2015年06月22日 - 5:36 JST #21374

I'm cutely evil, aren't I?

Führer
8388607 Posts
It's still unclear, how many Triangles a 3DS allows, but according to an official Statement, it differs from Game to Game, depending on how you Programmed your Command List.

Wingcapman Eleven
Posted 2015年06月22日 - 6:23 JST #21375



Members
10 Posts

It's still unclear, how many Triangles a 3DS allows, but according to an official Statement, it differs from Game to Game, depending on how you Programmed your Command List.

Ah I see... Then I don't think that my custom track Heart of China would have any trouble. xD

I was aware about how everything's rendered, connected and loaded though, I got this issue with Mario Kart Wii back when I started, so I wondered if this can be a problem for other games as well (and found out that's a thing). Interesting how 3D models work, though. Can't wait to bury Google SketchUp in the grave and start working with some better 3D programs. xD


Page: 1