Author Topic: How to rescale a model?  (Read 4078 times)

Offline Matt Williams

  • Posts: 19
  • Cookies: 1
How to rescale a model?
« on: October 30, 2009, 07:46:59 PM »
Hi, sorry if this is the wrong section. I have been doing a massive project for my own personal use for well over a year and have yet to discover how to do this. The reason I need to know is because the TOS Romulan BOP dwarfs the D7 and Constitution. I was always under the impression the BOP was a relatively small vessel.

Anyway if somebody can help me that'd be fantastic! Or if someone knows of a Romulan BOP that is the right size a link would be appreciated. These are the two I've found and tried so far: http://bridgecommander.filefront.com/file/Romulan_BOP_TOS_era_revamped;71365 http://bridgecommander.filefront.com/file/TOS_Romulan_BoP;38688

Thanks for your time!

Offline teleguy

  • Posts: 363
  • Cookies: 53
Re: How to rescale a model?
« Reply #1 on: October 30, 2009, 08:09:26 PM »
1. KM comes with a script (scripts/Custom/QBautostart/Rescale.py) that allows rescaling models.
2. Someone posted a tutorial about properly scaling models with Milkshape and the Assimsoft Scaler tool in this forum, just use the search function.

Edit: It's also possible to use Nifskope.

Offline Matt Williams

  • Posts: 19
  • Cookies: 1
Re: How to rescale a model?
« Reply #2 on: October 30, 2009, 09:06:07 PM »
I found the script you referred too and opened it up. I followed the instructions but nothing happened. Did I do something wrong? Here's an exact copy.

Quote
import App
import MissionLib

MODINFO = { "needBridge": 0 }

# use the ShipName of the Hardpoint file as key here
g_dShipScales = {
        "USS Lakota": 0.4,
   "RomulanBOP": 0.3,
   "rombop": 0.3,
}


def ObjectCreatedHandler(pObject, pEvent):
        pShip = App.ShipClass_Cast(pEvent.GetDestination())
        if pShip:
                sShipProbName = pShip.GetShipProperty().GetShipName()
                for sCurName in g_dShipScales.keys():
                        if sCurName == sShipProbName:
                                pShip.SetScale(g_dShipScales[sCurName])
       
        pObject.CallNextHandler(pEvent)


def init():
        App.g_kEventManager.AddBroadcastPythonFuncHandler(App.ET_OBJECT_CREATED_NOTIFY, MissionLib.GetMission(), __name__ + ".ObjectCreatedHandler")

Originally only the USS Lakota name was in the file. 'RomulanBOP' is the ship plugin, and ship file. 'rombop' is the hardpoint file. As for modeling, if I can avoid it I will. lol (Mainly because there are a few other ones that need rescaling as well.)

Offline ACES_HIGH

  • BCC Roleplay Game Narrator
  • Moderator
  • Posts: 1678
  • Cookies: 54
  • while(!(succeed=try()));
    • BCC Roleplay Games
Re: How to rescale a model?
« Reply #3 on: October 30, 2009, 10:12:06 PM »
This pack includes another Romulan BOP, I don't know if it's scaled any different, but I've found it better then those other versions anyway:
http://bridgecommander.filefront.com/file/Starfleet_Museum_Romulan_Pack;36379

Offline Matt Williams

  • Posts: 19
  • Cookies: 1
Re: How to rescale a model?
« Reply #4 on: October 30, 2009, 10:33:44 PM »
I feel  stupid for not checking any ship packs... But yes that is A LOT better!



Can anyone see the size difference? lol

BUT for some other ships that only have uglier counterparts I would still like to know how to use this script.

Again kudos to ACES_HIGH!

Offline ACES_HIGH

  • BCC Roleplay Game Narrator
  • Moderator
  • Posts: 1678
  • Cookies: 54
  • while(!(succeed=try()));
    • BCC Roleplay Games
Re: How to rescale a model?
« Reply #5 on: October 30, 2009, 10:44:07 PM »
thanks, to use the script it looks like you need the shipname from the hardpoint file, not the actual hardpoint file name: to find that, you need to open the Hardpoint and find the "ship property", it will list a shipname, that is what you need to use in the script.

Offline Matt Williams

  • Posts: 19
  • Cookies: 1
Re: How to rescale a model?
« Reply #6 on: October 30, 2009, 11:14:58 PM »
Alright here is a copy from the hard point file.

Quote
RomulanBOP = App.ShipProperty_Create("RomulanBOP")

RomulanBOP.SetGenus(1)
RomulanBOP.SetSpecies(301)
RomulanBOP.SetMass(200.000000)
RomulanBOP.SetRotationalInertia(2000.000000)
RomulanBOP.SetShipName("Romulan Bird Of Prey")
RomulanBOP.SetModelFilename("data/Models/Ships/RomBOP.nif")
RomulanBOP.SetDamageResolution(10.000000)
RomulanBOP.SetAffiliation(0)
RomulanBOP.SetStationary(0)
RomulanBOP.SetAIString("NonFedAttack")
RomulanBOP.SetDeathExplosionSound("g_lsDeathExplosions")
App.g_kModelPropertyManager.RegisterLocalTemplate(RomulanBOP)

I have now added "Romulan Bird Of Prey" to the rescale script with still no success. My game is based off of KM 1.0 with a lot small mods added. Is there any additional script I might need to install? I don't think it's because of anything I've added since so far it has all been ships and stations and shuttles. I appreciate your time trying to help me and I hope we get this resolved soon.

Offline teleguy

  • Posts: 363
  • Cookies: 53
Re: How to rescale a model?
« Reply #7 on: October 31, 2009, 11:11:17 AM »
Just to make sure, you activated qbautostart?

Offline KrrKs

  • Posts: 461
  • Cookies: 25
Re: How to rescale a model?
« Reply #8 on: October 31, 2009, 02:21:27 PM »
Lol, I once rewrote that script for EXACTLY that Romulan Bop. File is attached, but sadly, it only changes the Model size, so your weapons will fire from stupid locations outside the ship.

Offline Matt Williams

  • Posts: 19
  • Cookies: 1
Re: How to rescale a model?
« Reply #9 on: November 03, 2009, 12:47:59 AM »
Appears to be working! Thanks for the modified script!

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: How to rescale a model?
« Reply #10 on: November 28, 2009, 05:42:14 AM »
did you fix the weapons problem ?

Offline dEjavU

  • Posts: 123
  • Cookies: 3
Re: How to rescale a model?
« Reply #11 on: November 28, 2009, 05:44:14 AM »
This is great stuff, awesome modified script KrrKs! I just thought I'd re-post here to emphasise the significance of what came out of this thread. Starships aren't the only thing this is good for, thanks to this script I can now use the Nemisis shipyard to dock some of the more larger Federation vessels that normaly wouldn't fit......



..'preciate this allot, thank you(here's the scale 'case anyone's wondering  ;))

g_dShipScales = {
       "SovereignDrydock": 2.0,
}

Offline dEjavU

  • Posts: 123
  • Cookies: 3
Re: How to rescale a model?
« Reply #12 on: November 28, 2009, 05:46:45 AM »
did you fix the weapons problem ?

That's the great thing about this being particularly for drydocks..no weapon hp's to worry about.

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: How to rescale a model?
« Reply #13 on: November 28, 2009, 05:54:18 AM »
I was hoping this might work for various new enterprises that are in production or already out, no one seems to make it the official size :(

Offline Lionus

  • Posts: 1561
  • Cookies: 79
Re: How to rescale a model?
« Reply #14 on: November 28, 2009, 06:30:18 AM »
and there's a good reason for it. Count the connies.. or enterprises.. and remember that you have to adjust the HP to fit the new size.. and then you notice that all the rest of the ships, stations and planets are off.. and you have to rescale them as well. that's hundreds if not thousands of files to work on. One simply doesn't rescale everything with single button..
Star Trek Quad-nacelle fanboy Extraordinaire

StarFleet Research and Development Crash Test Dummie/Test pilot

"Beyond the rim of the star-light
My love
Is wand'ring in star-flight
I know
He'll find in star-clustered reaches
Love,
Strange love a star woman teaches.
I know
His journey ends never
His star trek
Will go on forever.
But tell him
While he wanders his starry sea
Remember, remember me."

Offline JamesTiberiusKirk

  • Johnny Walker... one of my best friends! Cheers!
  • Posts: 584
  • Cookies: 33
  • Cheers!
    • My Myspace Page ->
Re: How to rescale a model?
« Reply #15 on: November 28, 2009, 07:03:59 AM »
lets hope after the cg, sns and dj galaxy, everyone will size their shups up to those.

"And this... is... to go... even further beyond!"

Offline KrrKs

  • Posts: 461
  • Cookies: 25
Re: How to rescale a model?
« Reply #16 on: November 28, 2009, 09:05:35 AM »
actually, DJ's Galaxy is 1.5 times larger than the sns one

Offline Lord Tribble

  • Posts: 333
  • Cookies: 2
Re: How to rescale a model?
« Reply #17 on: November 28, 2009, 09:20:22 AM »
and there's a good reason for it. Count the connies.. or enterprises.. and remember that you have to adjust the HP to fit the new size.. and then you notice that all the rest of the ships, stations and planets are off.. and you have to rescale them as well. that's hundreds if not thousands of files to work on. One simply doesn't rescale everything with single button..

Don't see what planets have to do with it :s
It's just one ship I'd like to enlarge

Offline Dalek

  • Posts: 1529
  • Cookies: 206
Re: How to rescale a model?
« Reply #18 on: November 28, 2009, 09:29:59 AM »
What he means is about scaling every single thing in BC. And he is right. However, before BC was even modded, the planets were too small. But think about the size of the maps and the battles. You wouldnt want a huge humongous planet in your way.
"To live on as we have is to leave behind joy, and love, and companionship, because we know it to be transitory, of the moment. We know it will turn to ash. Only those whose lives are brief can imagine that love is eternal. You should embrace that remarkable illusion. It may be the greatest gift your race has ever received."

 - Lorien

Offline Lionus

  • Posts: 1561
  • Cookies: 79
Re: How to rescale a model?
« Reply #19 on: November 28, 2009, 09:56:47 AM »
well, not in BC.. :P but I want to have Kuma-maneuver at my disposal once ST:Excalibur will arrive.  :evil For now, I shall make do with fed starbases that are about same size as stars in certain maps.. *cough*battlearena-a*cough*  :funny
Star Trek Quad-nacelle fanboy Extraordinaire

StarFleet Research and Development Crash Test Dummie/Test pilot

"Beyond the rim of the star-light
My love
Is wand'ring in star-flight
I know
He'll find in star-clustered reaches
Love,
Strange love a star woman teaches.
I know
His journey ends never
His star trek
Will go on forever.
But tell him
While he wanders his starry sea
Remember, remember me."