lfnetwork.com mark read register faq members calendar

Thread: KAuroraEditor (current version: 0.2)
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 06-30-2007, 03:32 AM   #1
magnusll
Rookie
 
Join Date: May 2007
Posts: 136
Notable contributor Helpful! 
KAuroraEditor (current version: 0.2)

I've released the first version of the walkmesh utility program. You can find it here:

KAuroraEditor

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:

Code:
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:

Code:
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.
magnusll is offline   you may: quote & reply,
Old 06-30-2007, 04:12 AM   #2
glovemaster
Now-a-days GroovyCarrot
 
Join Date: Jan 2007
Location: Liverpool, UK
Posts: 697
Current Game: No time for games, sadly
Helpful! 
Awesome work magnusll!


If you're looking for any of the junk I did a few years ago; you can probably still find it all on filefront
glovemaster is offline   you may: quote & reply,
Old 06-30-2007, 08:52 AM   #3
Master Zionosis
Relax On Air
 
Master Zionosis's Avatar
 
Join Date: Sep 2006
Location: High In The Sky
Posts: 1,280
Current Game: TR 8: Underworld
Contest winner - Modding 
Great work magnusll I'm just gonna give this a whirl

Master Zionosis is offline   you may: quote & reply,
Old 06-30-2007, 01:36 PM   #4
Mindtwistah
Junior Member
 
Mindtwistah's Avatar
 
Join Date: Apr 2007
Location: Derka Derka
Posts: 470
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)


Mindtwistah is offline   you may: quote & reply,
Old 08-22-2007, 02:17 PM   #5
Fred Tetra
Kotor Tool Guy
 
Fred Tetra's Avatar
 
Join Date: Jan 2004
Location: What a creepy photo, eh? Had to use it!
Posts: 947
Hot Topic Starter LFN Staff Member Helpful! Notable contributor 
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!


Kotor Tool Developer
http://kotortool.starwarsknights.com/

"You want to help everyone who asks for aid, answer all of their questions, write that crucial bit of code for which they're searching, and be the hero who saves the day (and their job), but there comes a point when you realize that sleep is sometimes necessary."
—Stephen Toub

Visit the Kotor Tool Forum
Fred Tetra is offline   you may: quote & reply,
Old 09-06-2007, 10:23 AM   #6
ChAiNz.2da
Leave Everything to Me!
 
ChAiNz.2da's Avatar
 
Join Date: Oct 2004
Location: Tennessee (USA)
Posts: 6,848
Newest version (.02) has been uploaded. See original post for download link

And be sure to give magnusll some Major Big Kudos... he's opened a whole new world of possibilties. Read more about the awesomeness.


"Eagles May Soar, But Weasels Don't Get Sucked Into Jet Engines"


| Mods (FF) (DS) | Folding | SWK.com | FB: (LF) (Me) | Steam | The Herd |
ChAiNz.2da is offline   you may: quote & reply,
Old 09-06-2007, 11:31 AM   #7
magnusll
Rookie
 
Join Date: May 2007
Posts: 136
Notable contributor Helpful! 
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
magnusll is offline   you may: quote & reply,
Old 05-25-2009, 11:41 AM   #8
me9gj
Lurker
 
Join Date: Mar 2009
Posts: 2
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..
me9gj is offline   you may: quote & reply,
Old 05-25-2009, 02:26 PM   #9
Quanon
Senior Member
 
Quanon's Avatar
 
Join Date: May 2006
Location: Lost in my own unconsiciousens
Posts: 2,600
Forum Veteran Veteran Modder Helpful! 
AuroraBase


TIQUILAAAAAAAA
Quanon is offline   you may: quote & reply,
Old 05-30-2009, 10:13 AM   #10
magnusll
Rookie
 
Join Date: May 2007
Posts: 136
Notable contributor Helpful! 
For anyone wondering (as if... ): 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.
magnusll is offline   you may: quote & reply,
Old 05-30-2009, 10:46 AM   #11
glovemaster
Now-a-days GroovyCarrot
 
Join Date: Jan 2007
Location: Liverpool, UK
Posts: 697
Current Game: No time for games, sadly
Helpful! 
*Applause* Welcome back


If you're looking for any of the junk I did a few years ago; you can probably still find it all on filefront
glovemaster is offline   you may: quote & reply,
Old 05-30-2009, 11:30 AM   #12
Sithspecter
Big things are coming...
 
Sithspecter's Avatar
 
Status: Moderator
Join Date: Jan 2008
Location: Ebon Hawk
Posts: 1,787
Current Game: Mechwarrior II: Mercenaries
Contest winner - Modding Forum Veteran Veteran Modder LFN Staff Member 
Glad to see you back, Magnus!



Sithspecter is offline   you may: quote & reply,
Old 05-30-2009, 12:02 PM   #13
Quanon
Senior Member
 
Quanon's Avatar
 
Join Date: May 2006
Location: Lost in my own unconsiciousens
Posts: 2,600
Forum Veteran Veteran Modder Helpful! 
OMG! Yehaaaaaaaaaa!

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


TIQUILAAAAAAAA
Quanon is offline   you may: quote & reply,
Old 05-30-2009, 12:05 PM   #14
Marius Fett
Frigged if I know!
 
Marius Fett's Avatar
 
Join Date: May 2007
Location: Wales
Posts: 3,379
Welcome back, Magnusll!

Looking forward to any updated verisions on KAurora.

Quote:
Originally Posted by Quanon View Post
OMG! Yehaaaaaaaaaa!

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





Visit the new JediKnight.net!

Last edited by RedHawke; 05-31-2009 at 01:28 AM. Reason: No need to spam the thread Marius... combining posts.
Marius Fett is offline   you may: quote & reply,
Old 05-30-2009, 03:52 PM   #15
TriggerGod
Senior Member
 
TriggerGod's Avatar
 
Join Date: Mar 2008
Location: hiding
Posts: 2,415
Helpful! 
Sweet, a god of kotor modding has returned to the scene, and hes ready to return to the battlefield, so to speak.

Quote:
Originally Posted by Marius Fett View Post
Translation: Welcome back.

your belgium is a lot better than mine, or you have a better translator. I couldn't understand one bit of what Q said.
TriggerGod is offline   you may: quote & reply,
Old 05-31-2009, 05:07 AM   #16
Quanon
Senior Member
 
Quanon's Avatar
 
Join Date: May 2006
Location: Lost in my own unconsiciousens
Posts: 2,600
Forum Veteran Veteran Modder Helpful! 
T'is te zien hoe nuchter Marius is TG.

K'zijn gewoon content dat MagnussII terug is.


TIQUILAAAAAAAA
Quanon is offline   you may: quote & reply,
Old 05-31-2009, 12:34 PM   #17
Miltiades
Death... by Exile
 
Miltiades's Avatar
 
Join Date: Dec 2005
Location: Bruges, Belgium
Posts: 2,832
Imperialist Meatbags Guild Member The Walking Carpets Guild Member Forum Veteran Folder extraordinaire 
Quote:
Originally Posted by TriggerGod View Post
your belgium
Dutch, Trigger. Dutch.

Good to see you back, Magnussll.


PSN id: BE_Miltiades

Miltiades is offline   you may: quote & reply,
Old 06-04-2009, 02:10 PM   #18
Doc Valentine
Ha-Ha Kotor Modding
 
Doc Valentine's Avatar
 
Join Date: Sep 2003
Location: In the eye of the beholder.
Posts: 1,133
Veteran Modder Helpful! 
Quote:
Originally Posted by magnusll View Post
For anyone wondering (as if... ): 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 .


I don't need you no more in this world. I'll meet you in the next one, and don't be late.
Doc Valentine is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > T3-M4's Astromech Droid Center > KAuroraEditor (current version: 0.2)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:22 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.