Kuribo64
Views: 9,828,764 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
08-20-19 08:39 PM
Guest:

0 users reading Windows/Linux NKM Editor | 1 bot

Main - Misc. ROM hacking - Windows/Linux NKM Editor New reply


Garhoogin
Posted on 02-10-19 09:40 PM (rev. 2 of 02-10-19 09:44 PM) Link | #97186
I hope I'm posting this in the correct forum.
A while back, I made an NKM Editor for Mario Kart DS. It works on Windows and Linux, I made a Linux one. It is a fairly simple and straightforward program to use, and I hope that it helps some people.
Download: garhoogin.com/mkds/nkm.html

The features in this program are adding/removing entries from sections, editing entries, and a map viewer for some of the sections. The map viewer can also display points on top of a loaded KCL, if there is one.

If this is all super confusing, here's a simple guide to using it.
To load an NKM file, you can set the NKM to open with the editor, run it with command line arguments, or just type the path of the file in when you open it.
Examples:
Run with command line arguments:
nkm course_map.nkm
Type file path into the program:
nkm
File name: course_map.nkm

The commands in the editor are:
add, autoy, calc, clear, delete, edit, exit, help, kcl, map, reload, save, saveas, select, switch, unselect, view, window.
Each command takes either no parameters or one parameter, so don't put quotation marks around parameters. It'll mess things up.
In order, these are how to use the commands.


add
Adds an entry to the current section.
add
Upon running the code add command, you will be prompted for section specific information.

autoy
autoy
Toggles auto-y, which is disabled by default, and can only be enabled when a KCL is loaded. This is useful for EPOI, IPOI, etc. for when you just know the x and z coordinate. When it is enabled, some sections won't prompt for a y-coordinate and will only prompt for it afterward if it determines that the specified x and z coordinates don't contain any triangles.

calc
calc
Only for the CPOI section, and is used for calculating things like sin and cos, as well as distance.

clear
clear
This clears out all entries in the current section.

delete
delete
Deletes the currently selected item from the current section. Although be careful, the program still crashes if the selected item is out of bounds. (28th item in a 27 item list).

edit
edit
Edits the currently selected item of the current section. This prompts the user for some section-specific information and writes the changes to the selected item. Empty fields default to zero and are still updated.

help
help
Views a list of commands, and a brief overview of their functionalities.

kcl
kcl
Loads a KCL. Upon running this command, the user is prompted for a KCL file to open. This KCL is then used for things like auto-y and the map view.

map
map
Views the loaded KCL from a bird's eye view, along with some of the sections. This only works once a KCL has been loaded.

reload
reload [i]section[/i]
or
reload all
Reloads a specific section from the file, in case you mess something up, or reloads the entire file.

save
save
Saves the changes made to the NKM to the disk. The file will not save unless you run this command.

saveas
saveas
This does the same thing as the save command, except it allows saving to another file or location.

select
select n
This selects the nth item from the current section. Useful for editing/deleting.

switch
switch s
This command allows you to switch to edit/view a different section. In the command, s is the name of the section you wish to switch to.

unselect
unselect
If you want to be sure that you aren't currently selecting anything, this command unselects the currently selected item.

view
view
This command views all of the entries in the current section, and all their information.

window
window
This command sets the viewport for the map command. It prompts the user for xmin, xmax, ymin, and ymax.


Anyway, I hope this helps some people, and isn't a completely useless waste of space.

Hey, why not check out my website while you're here?
garhoogin.com - I put stuff I make here.
tgaconv - Converter for Nitro TGA


Main - Misc. ROM hacking - Windows/Linux NKM Editor New reply

Page rendered in 0.025 seconds. (2048KB of memory used)
MySQL - queries: 28, rows: 195/195, time: 0.018 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.