lfnetwork.com mark read register faq members calendar

Thread: Question on Globals
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 10-10-2012, 11:27 AM   #1
PrimitiveMatter
Lurker
 
PrimitiveMatter's Avatar
 
Join Date: Sep 2012
Posts: 7
Question on Globals

I've recently begun work on a mod that focuses on customising the appearance of your droid party members in TSL and have been trying to think of a way that will allow me to keep track of which line in appearance.2da they are currently using.

I've decided that using globals would probably be the easiest solution, but have been wondering whether there might be a more efficient way to accomplish my objective.

My main concern is that i've read that adding too many new globals can slow the game down. I doubt that adding just two new globals would probably be fine, but I just want to get some input from someone more experienced as to whether what i'm thinking is correct.

If anyone can think of a better way for me to do this, please feel free to post your opinion.
PrimitiveMatter is offline   you may: quote & reply,
Old 10-10-2012, 12:05 PM   #2
Fallen Guardian
Wandering the Galaxy...
 
Fallen Guardian's Avatar
 
Join Date: Aug 2010
Location: Unknown Regions
Posts: 1,286
Current Game: Knights of the Old Republic
Veteran Modder Helpful! 
I'm not sure you can even check what the current appearance.2da line of someone is, though there are definitely ways around that.

As for the globals, they are probably your best bet. I've added WAY more than 2 globals to the game for one of my mods and it doesn't slow down the game at all, so whatever said that they would slow it down was mistaken.

If you're still concerned, the addition of one global number should be all you really need anyway.


The truly fallen cannot return to the light. If someone "falls" and "returns," they never really, truly fell.

Current Work in Progress: Dantooine Tension

Released Works
Blaster Pistol Enhancement
Dustil Restoration
Ebon Hawk Texture Enhancement
Gaffi Stick Improvement
Weapon Model Overhaul Texture Rework (Thanks to Toasty Fresh!)
Sunry Murder Recording Enhancement
VP's Hi Poly Tin Cans - KotOR 1 Version
Fallen Guardian is offline   you may: quote & reply,
Old 10-10-2012, 12:28 PM   #3
Hassat Hunter
Forumite
 
Join Date: Jan 2010
Posts: 560
The appearance file has about 700 entries (with TSLRCM and M4-78).
Globals maximum number is 127.

I... don't think your method will work :/

EDIT: Unless of course you don't want to store the appearance number itself but rather like "1 for skin 1, 2 for skin 2 etc."
Hassat Hunter is offline   you may: quote & reply,
Old 10-10-2012, 01:23 PM   #4
PrimitiveMatter
Lurker
 
PrimitiveMatter's Avatar
 
Join Date: Sep 2012
Posts: 7
Quote:
I'm not sure you can even check what the current appearance.2da line of someone is, though there are definitely ways around that.
Actually, in TSL there is a GetAppearanceType() function in nwscript.nss as well as a ChangeAppearanceOfObject(). I'm not at the computer right now though, so the names of those functions may be slightly off.

I could use the GetAppearanceType() function to track the appearances, but for the amount i'm going to be using, it seems a little clunky.

My original plan was to do as Hassat Hunter said above, so I won't be tracking the appearances per se, but the global values.

I just wanted to know whether anyone knew of an alternative way, but it seems like I may have been right to begin with.

Thank you both for your help.
PrimitiveMatter 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 > Holowan Laboratories > Question on Globals

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 02:05 PM.

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