EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
[SCR] Align ship with ecliptic
Post new topic Reply to topic Goto page 1, 2, 3  Next
View previous topic :: View next topic
Author Message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
modified
PostPosted: Wed, 22. Oct 08, 00:31    Post subject: [SCR] Align ship with ecliptic Reply with quote Print

English / Deutsch


Many spacefighterflygames have a key to align your ship with "the plane".
True 3D is very hard to display on 2D screens so most games (including X3) use basically flat sectors.

Manual Operation:
  • This script provides 1 Hotkey.

  • Allowed Targets:
    If you have one of your own objects targeted then this one will be rotated.
    If not, your own ship will be rotated.

  • Press Hotkey 1x:
    Ship is rotated and aligned with the plane of the ecliptic.

  • Press Hotkey 2x within 3 sec:
    Ship is rotated, aligned with the plane of the ecliptic, and turned "north".

  • Press Hotkey 3x within 3 sec:
    Blahblah . . . "east".

  • Press Hotkey 4x within 3 sec:
    Blahblah . . . "south".

  • Press Hotkey 5x within 3 sec:
    Blahblah . . . "west".

  • Stuff:
    • This script can be interrupted at any time with manual ship control or an autopilot command.

    • Stations do not have autopilot commands so you can not interrupt the script for them. If they appear to lock up you should leave the sector and let the script complete.

    • The turning speeds are roughly equal to the normal turning speeds of the ships.

    • It's nice if you can properly arrange your fleet for a screenshot or just don't want to fly upside down. =)

    • If you rotate or position stations it can be pretty useful if you can normalize the orientation of your own ship.


Automatic Operation:
  • With an AL Plugin you can set this to run automatically and how often.

  • As long as you or the Autopilot control the ship, nothing unusual happens.

  • After (setting) seconds of inactivity the playership will be rotated to the default orientation.

    If the speed = 0 then it will also be aligned with the plane of ecliptic.

  • That way I can conveniently fly my ship from the sector map because the controls are never reversed.



ZIP

Resources used:
1 Hotkey
AL Plugin

Disclaimer:
Rotating objects in the vicinity of other objects may be hazardous to their health. Gazz cannot be held liable for any loss arising directly or indirectly from the use of, or any action taken in reliance on this script.


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.


Last edited by Gazz on Sat, 22. Oct 11, 11:48; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website
Khaak_Slayer





Joined: 18 Apr 2004
Posts: 383 on topic
Location: Suffolk, UK
Thank you for registering your game
PostPosted: Wed, 22. Oct 08, 01:52    Post subject: Reply with quote Print

Thank you very much, this will come very much in handy!


_________________
Rawr.
Back to top
View user's profile Send private message
corhen



MEDAL

Joined: 16 Oct 2008
Posts: 335 on topic
Location: Angle 225.06, Distance: 7,295.43
Thank you for registering your game
PostPosted: Thu, 23. Oct 08, 02:46    Post subject: Reply with quote Print

ok, it works ok.

it seems slow, is there a way to have it maneuver quicker?

And the voice is... edgy. Isn't the default voice generated? and if not, maybe have multiple voices (a deeper one, one more intone with the game)

Back to top
View user's profile Send private message MSN Messenger
Enders Wood





Joined: 05 Apr 2004
Posts: 15 on topic

Thank you for registering your game
PostPosted: Tue, 30. Dec 08, 18:59    Post subject: Reply with quote Print

Hi Smile

I love your script !!! ... hum... in fact, I whant to love it ^^ but I simply don't found how to use it Oops

I look for all Hotkey unasigned, and nothing, I definitly can't found where to set the key Sad

and I even don't know if I realy add the script.... the installer must do everything fine, many other scripts works even with my French game , but don't know why this one dont...

in other hand, how can we set it as automatic ?

thanks Smile

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Tue, 30. Dec 08, 19:14    Post subject: Reply with quote Print

Enders Wood wrote:
and I even don't know if I realy add the script.... the installer must do everything fine, many other scripts works even with my French game , but don't know why this one dont...

All you need to do is extract the ZIP into the TC Folder.

Quote:
in other hand, how can we set it as automatic ?

As described in the first post.

AL Plugins are under Gameplay.


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
OTAS Employee



MEDALMEDAL

Joined: 30 Nov 2008
Posts: 373 on topic
Location: A locked filing cabinet in a disused lavatory with a sign on the door saying Beware of the Leopard
Thank you for registering your game
PostPosted: Tue, 30. Dec 08, 21:01    Post subject: Reply with quote Print

Quote:
I look for all Hotkey unasigned, and nothing, I definitly can't found where to set the key


Have you activated the script editor?
If not look in the stickies.

Back to top
View user's profile Send private message
Enders Wood





Joined: 05 Apr 2004
Posts: 15 on topic

Thank you for registering your game
PostPosted: Tue, 30. Dec 08, 23:46    Post subject: Reply with quote Print

as I have specify, I have many other mod running Razz so yes, Theresallbewings already done, but not sure this is what you call script editor

found the AL Plugins.... where I have :

Bounty EnhancementOff (too many gold gain lol)
MARS : Not available for AI Ships - v408 (don't know what is it/..)
MARS : BlablaBla
MARS :BlablaBla
MARS :BlablaBla

.... and that's all...nothing about Align... Sad

I have delete and readd the script with the plugin manager... and copy/past files from zip too, to be sure....

I'm sure files are where they must be... but still don't found how to make it work :'(

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Wed, 31. Dec 08, 02:26    Post subject: Reply with quote Print

If scripts don't show up even though they should, maybe you downloaded the Reunion version.

There are 2 download pages.


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
Enders Wood





Joined: 05 Apr 2004
Posts: 15 on topic

Thank you for registering your game
PostPosted: Wed, 31. Dec 08, 03:09    Post subject: Reply with quote Print

Gazz wrote:

There are 2 download pages.


Arg ! don't see that !!! and yes ! there is no .pck for TC version ^^

Thanks ! It work fine Smile (even if a bit slow like Corhen say, but not a big deal ^^)

Back to top
View user's profile Send private message
crimsonhaze





Joined: 31 Dec 2008



PostPosted: Wed, 31. Dec 08, 04:09    Post subject: Reply with quote Print

Thanks, this mod works great! Smile Great tool for idle capital ships, so you can order them to point their turrets at enemy direction. Works well with MARS.

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Wed, 31. Dec 08, 09:54    Post subject: Reply with quote Print

Heh. That's a use I never thought of but yes - you can remote control your other ships to some degree. =)


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
klaatu





Joined: 21 Nov 2003
Posts: 304 on topic
Location: Ceti-Alpha 5
Thank you for registering your game
PostPosted: Wed, 31. Dec 08, 21:37    Post subject: Reply with quote Print

Strange...sometimes this script works for me and other times it doesn't. Sometimes I can press the hotkey and my ship will align with the ecliptic, or turn a direction if pressed multiple times, so it's working. But other times I press the hotkey and absolutely nothing happens. I can press the hotkey multiple times and it says "North", "East", etc. but the ship doesn't change orientation at all. I even tried manually re orientating the ship in case it was already aligned, but still nothing. I'm not absolutely sure, but it seems to start working again at some point, and I'm thinking it's when I change sectors.

Like I said, strange. Oh well, when it works it works well at least. Thanks for that.

Back to top
View user's profile Send private message
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Wed, 31. Dec 08, 21:46    Post subject: Reply with quote Print

klaatu wrote:
But other times I press the hotkey and absolutely nothing happens. I can press the hotkey multiple times and it says "North", "East", etc. but the ship doesn't change orientation at all. I even tried manually re orientating the ship in case it was already aligned, but still nothing. I'm not absolutely sure, but it seems to start working again at some point, and I'm thinking it's when I change sectors.

It's probably working as intended.

The description clearly states when or why the script is interrupted.


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
klaatu





Joined: 21 Nov 2003
Posts: 304 on topic
Location: Ceti-Alpha 5
Thank you for registering your game
PostPosted: Thu, 1. Jan 09, 07:26    Post subject: Reply with quote Print

Yep, could be. Re-reading the description, I wonder if I might have had another of my ships or stations targeted. I suppose I could have been moving one of my own stations around and not even known it! LOL.

Back to top
View user's profile Send private message
Loky77





Joined: 25 Jan 2009
Posts: 110 on topic

Thank you for registering your game
PostPosted: Fri, 30. Jan 09, 10:23    Post subject: Reply with quote Print

Great script and nice piece of code !! Thumb up

May i use it in one of my script conversion ? ( i will only use the rotating part of the code )

Regards

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2, 3  Next
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Thu, 19. Oct 17, 11:08

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.55076 seconds, sql queries = 29