Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

KAuroraEditor (current version: 0.2)

Page: 1 of 1
 magnusll
06-30-2007, 3:32 AM
#1
I've released the first version of the walkmesh utility program. You can find it here:

KAuroraEditor (http://www.starwarsknights.com/tools.php#skmo)

Please understand this is an alpha and as such, it's bound to have problems [for example, I've already noticed that if you try and replace m27aa_01c (the room in the Manaan Sith Embassy, where you can't really go, which is only used to visualize the commander and the droids coming to get you once the "Sith receptionist" gives the alarm) the script breaks as it looks like the NPCs can't cross the room boundary... even if you can].

The README gives all the necessary info. I'm just going to point out that you will need .NET Framework 2.0 and the redistributable of DirectX SDK Update February 2005 (or later), both of which can be freely downloaded from Microsoft. If you lack both, install the framework first, as otherwise the SDK setup could skip the installation of some necessary libraries.

Another thing: to work on the exported ascii walkmeshes I used Gmax 1.2 with NWMax 0.7. It looks like there's some problem in the algorithm used by NWMax to generate the walkmesh's AABB tree; at the very least, it uses a huge amount of memory. To allow Gmax to work with some of the more complex ones, I had to comment out the AABB tree generation code (the utility doesn't need that info as it generates its own AABB tree, using the Kotor algorithm which is different from the one used in the scripts).

If you have problems while importing/exporting the meshes from Gmax, try the following:

- go into the scripts\NWmax\nw_ie_inc directory under Gmax
- locate the aurora_fn_export.ms file
- open it (it's a text file, so you can use notepad, wordpad etc.)
- locate the following function:


fn WriteAABBTree node verbose:false =
(
-- From Waylands original script
local facemids =#()
local facelist = #()
local aabbData = #()
if ((mod node.mesh.numfaces 2) == 1) then
(
--MessageBox("Odd number of faces in AABB tree. Expect problems.");
)
for i=1 to node.mesh.numfaces do
(
v3 = getface node.mesh i
p1 = getvert node.mesh v3.x
p2 = getvert node.mesh v3.y
p3 = getvert node.mesh v3.z
mid = (p1+p2+p3) / 3
append faceMids mid
append facelist i
)

if verbose then format " aabb " to:g_strBuffer -- no newline here, NWN chokes if the data doesn't start on the same line
BuildAABBTreeNode node faceMids facelist 0 aabbData verbose
return aabbData
)


and change it to look like this:


fn WriteAABBTree node verbose:false =
(
-- From Waylands original script
local facemids =#()
local facelist = #()
local aabbData = #(" ")
if ((mod node.mesh.numfaces 2) == 1) then
(
--MessageBox("Odd number of faces in AABB tree. Expect problems.");
)

/*
for i=1 to node.mesh.numfaces do
(
v3 = getface node.mesh i
p1 = getvert node.mesh v3.x
p2 = getvert node.mesh v3.y
p3 = getvert node.mesh v3.z
mid = (p1+p2+p3) / 3
append faceMids mid
append facelist i
)
*/

if verbose then format " aabb " to:g_strBuffer -- no newline here, NWN chokes if the data doesn't start on the same line
/* BuildAABBTreeNode node faceMids facelist 0 aabbData verbose */
return aabbData
)


This will effectively comment out the creation of the whole AABB tree from the exported model.

I'll use this thread to keep track of any request or problems you might have.
 glovemaster
06-30-2007, 4:12 AM
#2
Awesome work magnusll!
 Master Zionosis
06-30-2007, 8:52 AM
#3
Great work magnusll I'm just gonna give this a whirl :thumbsup:
 Mindtwistah
06-30-2007, 1:36 PM
#4
Awesome! I will support this. (Not that I will use it but this is one step closer to costume modules and that is worth supporting for)
 Fred Tetra
08-22-2007, 2:17 PM
#5
Looks quite interesting; I'll have to take a look at it.

I've spent many hours working with the wok and bwm files and it'll be nice to see someone else's work in the area. I thought I was the only one that had any interest in it for the longest time! :)
 ChAiNz.2da
09-06-2007, 10:23 AM
#6
Newest version (.02) has been uploaded. See original post for download link :D

And be sure to give magnusll some Major Big Kudos (http://www.jumpstationz.com/gallery/emotes/kudos.jpg)... he's opened a whole new world of possibilties. Read more about the awesomeness (http://www.lucasforums.com/showthread.php?t=182069).
 magnusll
09-06-2007, 11:31 AM
#7
A very quick run down on what you need if you want to come up with an entirely new area:

- build the area geometry with NWMax. At the moment, you're limited to trimeshes only plus one walkmesh. You can add AuroraLights, they will be included in the .mdl and won't crash the game, but on first look they don't seem to work; further tests will be needed. Hint: to easily create the walkmesh, just clone the area editable mesh, add the AuroraWalkmesh modifier, and assign the material to the faces. Also take note that if your UV mapping ends up creating a number of tverts <> verts, the texture will look messed up in the game (until I write the code which duplicates the right verts to equalize the numbers again). A simple planar UV mapping should be rendered correctly
- link everything to the AuroraBase and export with the NWMax scripts
- import the ascii model in KAurora. The model and the walkmesh will be autoloaded in memory.
- if you're going to displace the room in the .lyt file [i.e. assign coordinates other than (0, 0, 0)], you need to hit the "refactor" option in the walkmesh menu and insert the displacement coordinates before exporting the .wok
- create the mdl, mdx and wok files and put them into the override directory
- fetch the .ARE, .GIT and MODULE.IFO files from some other area
- edit them to point to your new area (at a minimum, you should change the room list, the various fields pointing to the area name, and insert the value 16777215 into the SunDiffuse and SunAmbient fields. Now it is also a good time to delete all the various placeables, npcs etc. that you won't be needing)
- use KotorTool to create a .MOD including the above three files (plus any other you might need e.g. sounds, npcs etc.) and put it into the Modules directory
- copy the .LYT and .VIS file from another area and modify them. They're simple text files so Notepad will do. Figuring them out should be pretty easy: the .LYT file will need a list of rooms and their displacements, while the .VIS simply tells the game which rooms you can see from any other room. If you only have one room, you just need one line with the room name followed by a "0". After you're done, put the two files into the override
- fire up Kotor, warp to your area and marvel at your mad modelling skillz ;P
 me9gj
05-25-2009, 11:41 AM
#8
I am new to all this modding/editing I am trying to create a new look for Atris So that when she walks down the long ramp her legs are visible (shorter skirt) I used kotor tool, MDLops, NWMax, Gmax, anyway its the export where I am having a problem it is only saved as a GMax scene file how can I save it in the file format that I need to use in the game "help" please..
 Quanon
05-25-2009, 2:26 PM
#9
AuroraBase
 magnusll
05-30-2009, 10:13 AM
#10
For anyone wondering (as if... :p): I'm still alive, although I've not been working on the tool in the last several months.
Maybe I'll be able to restart in the next weeks, although I cannot promise anything as of yet. In any case, it will require a significant amount of time just to refamiliarize myself with all the model data formats.
 glovemaster
05-30-2009, 10:46 AM
#11
*Applause* :lol: Welcome back :)
 Sithspecter
05-30-2009, 11:30 AM
#12
Glad to see you back, Magnus!
 Quanon
05-30-2009, 12:02 PM
#13
OMG! Yehaaaaaaaaaa! :p

Great to see you're still alive and kicking some serious coding b*tt.
 Marius Fett
05-30-2009, 12:05 PM
#14
Welcome back, Magnusll! :D

Looking forward to any updated verisions on KAurora. ;)

OMG! Yehaaaaaaaaaa! :p

Great to see you're still alive and kicking some serious coding b*tt.

Translation: Welcome back.

:p
 TriggerGod
05-30-2009, 3:52 PM
#15
Sweet, a god of kotor modding has returned to the scene, and hes ready to return to the battlefield, so to speak.

Translation: Welcome back.

:p

your belgium is a lot better than mine, or you have a better translator. I couldn't understand one bit of what Q said. :¬:
 Quanon
05-31-2009, 5:07 AM
#16
T'is te zien hoe nuchter Marius is TG. :lol:

K'zijn gewoon content dat MagnussII terug is.
 Miltiades
05-31-2009, 12:34 PM
#17
your belgium Dutch, Trigger. Dutch. :p

Good to see you back, Magnussll. ;)
 Doc Valentine
06-04-2009, 2:10 PM
#18
For anyone wondering (as if... :p): I'm still alive, although I've not been working on the tool in the last several months.
Maybe I'll be able to restart in the next weeks, although I cannot promise anything as of yet. In any case, it will require a significant amount of time just to refamiliarize myself with all the model data formats.

Help us MagnusII, you're our only hope! I'm so glad to see you are back, Your tool is amazing, and I am deeply in love with it. I cant wait to see what other beauties you have in store for us :).
Page: 1 of 1