lfnetwork.com mark read register faq members calendar

Thread: Kotor/TSL Utility Proposal - Warning: Concerns Programming
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 11-16-2005, 10:15 PM   #1
coaxmetal
Rookie
 
coaxmetal's Avatar
 
Join Date: Jan 2005
Location: two
Posts: 20
Kotor/TSL Utility Proposal - Warning: Concerns Programming

Hello all,

Since I'm not so good with modeling, skinning, or anything but file editing and some in-game scripting, I've decided to try and tackle a utility.

I'm wondering if anyone's currently working on/planning to create a utility that runs as a Windows service/daemon for NTFS to shift around Kotor mods? The program in question would work a bit like a mod manager, but would also be able to create a schedule of mod installations/deletions to move various files into and out of your override directory at various points in the game as detailed by debug/output the game produces at various points (saves, other stuff) by interpreting game files and so forth.

The question is, has anyone done this? Because while I'm willing to try it now that i have the time and some of the knowledge, I'd hate to reinvent the wheel.

Some specifics
(warning to non-programmers: scrolling down may lead to a migraine)

This would be useful for:
-Switching custom models/force powers/skins/whatever in and out of use at different times, which effectivley removes restrictions on what modifications are allowed in-game due to hardcoded limitations.
-A quick and dirty workaround for some compatibility issues with mods for modders who are uncomfortable with editing .2da files/people who handle lots of such files and are sick of editing everything by hand.
-Playing with the soundset/music files?
-Testing of new mods?

Preferred languages for writing one of these things seems to be C/C++/C# or VB.net, I think.

The main algorythm as i envision it breaks down into something like this:
-User establishes scheduled file transfer events, indicating triggering event, files to be transfered, etc,
-User fires up game and plays until user triggers a scheduled event and reaches an autosave point
-Application receives event trigger
-Application executes on Autosave when it detects a savegame creation/update
EDIT: -Application displays game load screen and shuts down game
-Application transfers files to Override folder (renaming files if necessary? bit of a strech, i suppose).
EDIT: -Application restarts the game (so the mods load properly), using mouse&keyboard macros to do what can't be done with code.
-Application then returns to dormancy to await next trigger.

And sorry if this was supposed to be posted in another forum.

Last edited by coaxmetal; 11-17-2005 at 09:18 PM.
coaxmetal is offline   you may: quote & reply,
Old 11-16-2005, 11:34 PM   #2
Det. Bart Lasiter
obama.png
 
Det. Bart Lasiter's Avatar
 
Join Date: Mar 2005
Location: `(.)~
Posts: 7,997
Current Game: all
Forum Veteran LF Jester 
If I'm understanding you correctly, I'm fairly sure that Windows blocks file modifications (ie copying, moving, deleting) when it's being used, and the game would be using it. Also, most modern games use a lot of system resources, and running another application would reduce game performance. However, there is a mod installer/uninstaller that cchargin made called KMM.



"No, Mama. You can bet your sweet ass and half a titty whoever put that hit on you already got the cops in their back pocket." ~Black Dynamite
Det. Bart Lasiter is offline   you may: quote & reply,
Old 11-17-2005, 07:13 AM   #3
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
Another problem with this would be that the game engine caches some resources into memory when a game is loaded to cut down on disk accesses (which are a big source of slowdowns). Thus switching the content of the override folder while the game runs would have no effect in some cases, and produce strange results in other.

stoffe is offline   you may: quote & reply,
Old 11-17-2005, 09:31 PM   #4
coaxmetal
Rookie
 
coaxmetal's Avatar
 
Join Date: Jan 2005
Location: two
Posts: 20
More newbie thoughts.

Quote:
I'm fairly sure that Windows blocks file modifications (ie copying, moving, deleting) when it's being used, and the game would be using it. Also, most modern games use a lot of system resources, and running another application would reduce game performance. However, there is a mod installer/uninstaller that cchargin made called KMM.
Thanks for showing some interest. Although I did make a boneheaded mistake when I wrote the algorythm above (I had meant to have the daemon terminate the swkotor.exe process, thus closing the game, before shifting files around, I edited the error), I believe there are workarounds to what windows will and won't let you do while certain files are in use; it all seems to depend on how much of the NTFS API one has access to.

And I was aware of KMM, but what I'm proposing would work to switch mods in and out of the game when playing instead of just coordinating installations; for example, say you've got some unique item or appearance in a plot mod, like a new villian or an object in a custom-made module. This utility would allow you to import the models for the new character/object when the PC enters the module that the character/object appears in. When the PC leaves and you don't need those models, the files in question are removed, restoring original content or a slot for the next custom model to be inserted. Or it could be used to replace a default head with a custom retexture/reskin for part of the game and then switch back to the default head or another custom head, if there's ever a mod that uses more than the hardcoded max number of heads (is there a hardcoded upper limit on heads.2da? i forgot).

Quote:
the game engine caches some resources into memory when a game is loaded to cut down on disk accesses (which are a big source of slowdowns). Thus switching the content of the override folder while the game runs would have no effect in some cases, and produce strange results in other.
Thanks for the reply. You're dead right on that count, and I edited the process to account for that.
coaxmetal 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 > Kotor/TSL Utility Proposal - Warning: Concerns Programming

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 01:19 AM.

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