.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old January 25th, 2007, 07:59 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Trying To Add Ship Set, Keeps Crashing the Gam

Look in your modeller to find where you put the 0,0,0 origin.

The firing point coordinates will be relative to that. If you can point your mouse at a location and pull coordinates off that, it should make your life much easier.
You may or may not have to multiply the above coordinate by the scaling factor you specified in the text file.
Reply With Quote
  #2  
Old January 25th, 2007, 09:10 PM

shinigami shinigami is offline
Corporal
 
Join Date: Mar 2006
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
shinigami is on a distinguished road
Default Re: Trying To Add Ship Set, Keeps Crashing the Gam

From this thread: link

Engine Glows and Weapon Flares

Getting the engine glows and weapon flares placed on your model can be extremely frustrating. Hopefully this will make it a little bit easier for you.

Assuming that you are using a test mod to check out your new ships (highly recomended) add a Pictures folder and then an Effects subfolder in it. In the Effects folder add copies of "EngineGlow.bmp" and "weapon_flare.bmp." In your test empire folder add a copy of "BitmapEffects_Combat.txt" and the shipset viewer. Edit the "BitmapEffects_Combat" file so that only the entries for Engine Glow and Firing Flare remain.

Once you've done all that go into the "_Ships_XFileClasses.txt" and find your ship. Change the number of Engine Points to 1, set all the coordinates to 0 (including the offsets,) and make the glow radius 0.9. Save and open the viewer. Go to your ship, zoom in a bit, and press "G" to make the engine glow brighter. To get a really good idea of where the glow is at you may want to zoom in very close and spin the ship.

Now you should have a good idea of which direction you need to move the engine point. In the "_Ships_XFileClasses" file the coordinates are laid out like this;

* x = left and right, positive is right and negative is left
* y = front to back, positive is front (away from the camera) and negative is back (towards the camera)
* z = up and down, positive is down and negative is up (yeah, that's backwards from any 3d I've ever worked with too)


The offsets are just to move the glow off of the model, you can choose to use them or just make the engine points equal the glow points. Once you've got the first one set where you want it you can add the second one and so on. The weapon flares can be done the same way.

It takes some (a lot) of trial and error so you'll find yourself bouncing in and out of the veiwer often but at least it loads quick.

Hopefully this'll help someone out. Any questions please feel free to post them here or pm me. Now, back to working on my set!

[Edit] If you have a hard time finding your engine glow you can always use a weapon flare slot to help you pin down the location. Set one to a 90 degree arc and the arc lines will form an arrow for you. Once you have it nailed down you just put those coordinates back into the engine glow slot. Hope that makes sense!
Reply With Quote
  #3  
Old January 25th, 2007, 11:27 PM
Atrocities's Avatar

Atrocities Atrocities is offline
Shrapnel Fanatic
 
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
Atrocities is on a distinguished road
Default Re: Trying To Add Ship Set, Keeps Crashing the Gam

Thank you for that information, I have one question though, the viewer?
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
Reply With Quote
  #4  
Old January 25th, 2007, 11:47 PM

shinigami shinigami is offline
Corporal
 
Join Date: Mar 2006
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
shinigami is on a distinguished road
Default Re: Trying To Add Ship Set, Keeps Crashing the Gam

The shipset viewer.
Reply With Quote
  #5  
Old January 25th, 2007, 11:51 PM
Atrocities's Avatar

Atrocities Atrocities is offline
Shrapnel Fanatic
 
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
Atrocities is on a distinguished road
Default Re: Trying To Add Ship Set, Keeps Crashing the Gam

Ok found the viewer file. Can you tell me what a bounding box is, and how do I adjust it. In the viewer mine are not placed correctly. Instead of being even and encompassing the ship, they are centered but facing up and down.

I have included an image.
Attached Images
File Type: png 490407-boundbox.PNG (562.6 KB, 150 views)
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
Reply With Quote
  #6  
Old January 26th, 2007, 12:07 AM

shinigami shinigami is offline
Corporal
 
Join Date: Mar 2006
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
shinigami is on a distinguished road
Default Re: Trying To Add Ship Set, Keeps Crashing the Gam

Yuck, use the hex or square instead and turn off the centering lines. You'll get a much better idea of scaling and centering problems that way.
Reply With Quote
  #7  
Old January 26th, 2007, 01:06 AM
Atrocities's Avatar

Atrocities Atrocities is offline
Shrapnel Fanatic
 
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
Atrocities is on a distinguished road
Default Re: Trying To Add Ship Set, Keeps Crashing the Gam

I don't know how to turn on the hex thing. I am getting the firing arcs down though. (Thank you.)

About that bounding box.... what the hell is it, and do you know how I can adjust it? Could it be for the shields???
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
Reply With Quote
  #8  
Old January 26th, 2007, 01:11 AM
Atrocities's Avatar

Atrocities Atrocities is offline
Shrapnel Fanatic
 
Join Date: Dec 2000
Location: USA
Posts: 15,630
Thanks: 0
Thanked 30 Times in 18 Posts
Atrocities is on a distinguished road
Default Re: Trying To Add Ship Set, Keeps Crashing the Gam

I have made some progress.
Attached Images
File Type: png 490417-viewer.PNG (194.1 KB, 160 views)
__________________
Creator of the Star Trek Mod - AST Mod - 78 Ship Sets - Conquest Mod - Atrocities Star Wars Mod - Galaxy Reborn Mod - and Subterfuge Mod.
Reply With Quote
  #9  
Old January 26th, 2007, 01:16 AM

shinigami shinigami is offline
Corporal
 
Join Date: Mar 2006
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
shinigami is on a distinguished road
Default Re: Trying To Add Ship Set, Keeps Crashing the Gam

Hit "H" twice to get the hex.
The bounding box is based on the model's dimensions and spatial coordinates. Haven't a clue if the game actually uses it.

The first two ships in your pic, did you rotate them in your modeling program or in the XFileClasses file?
Reply With Quote
Reply

Bookmarks


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 On

Forum Jump


All times are GMT -4. The time now is 01:29 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.