[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 379: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace() [function.preg-replace]: The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
Star Trek Fan Games - View topic - Ship Movement on the system screen
View unanswered posts | View active topics It is currently 03 May 2026, 15:17



Reply to topic  [ 12 posts ] 
 Ship Movement on the system screen 
Author Message
Lieutenant
Lieutenant
User avatar

Joined: 31 May 2006, 01:00
Posts: 451

_________________
-Azh


04 Jun 2006, 20:42
Profile
Chief Software Engineer
Chief Software Engineer
User avatar

Joined: 11 Aug 2005, 01:00
Posts: 2688


04 Jun 2006, 21:12
Profile WWW
Evil Romulan Overlord of Evil - Now 100% Faster!
Evil Romulan Overlord of Evil - Now 100% Faster!
User avatar

Joined: 02 Dec 2004, 01:00
Posts: 7392
Location: Returned to the previous place.


04 Jun 2006, 22:56
Profile WWW
Lieutenant
Lieutenant
User avatar

Joined: 31 May 2006, 01:00
Posts: 451

_________________
-Azh


05 Jun 2006, 15:05
Profile
Chief Software Engineer
Chief Software Engineer
User avatar

Joined: 11 Aug 2005, 01:00
Posts: 2688
I don't think that would be too difficult. I have fleet orders implemented programmatically, so there is a lot of flexibility. We could do your waypoints idea but have a separate fleet order called "Exploration" which recalculates its course every turn based on the unexplored systems in range. Below is the current API for a Fleet Order.



A fleet order can override any of those members, so there are a lot of cool orders we could implement. Players will also be able to script their own orders in C#, which will be compiled dynamically at runtime. You could also extend existing orders. So if you wanted a different Explore order for your big capital ships that would engage enemies rather than avoid them, you could extend the ExploreOrder class and override the WillEngageHostiles member.


05 Jun 2006, 15:42
Profile WWW
Lieutenant
Lieutenant
User avatar

Joined: 31 May 2006, 01:00
Posts: 451
Oh, this is a bit off-topic, but as I was writing this, all of my MSDN stuff came in. I have more software than I know what to do with now.

_________________
-Azh


05 Jun 2006, 15:55
Profile
Chief Software Engineer
Chief Software Engineer
User avatar

Joined: 11 Aug 2005, 01:00
Posts: 2688
Load up Visual Studio 2005. Good stuff :). By the way, if you want a good book to learn .NET and C#, check out Jeffrey Richter's . Even a seasoned developer can learn a thing or two from this book.


05 Jun 2006, 16:14
Profile WWW
Lieutenant
Lieutenant
User avatar

Joined: 31 May 2006, 01:00
Posts: 451
I'll have to order it, thanks.

Got another question on movement :p

How is intercepting ships going to work? I have a few thoughts on it, but I'm curious to see what you have in mind/established already.

_________________
-Azh


13 Jun 2006, 14:46
Profile
Chief Software Engineer
Chief Software Engineer
User avatar

Joined: 11 Aug 2005, 01:00
Posts: 2688
I figured I could create an InterceptOrder class that derives from the FleetOrder class that I posted above. When the InterceptOrder::OnTurn() method gets called during each turn, it could examine all fleets nearby looking for an enemy fleet moving in the approximate direction of your territory. It could then plot an intercept course and store the other fleet's identifier as a private variable, in case it needs more than one turn to catch up (that way it knows which fleet it's tracking). The two would engage in battle, and assuming your fleet survived, it would then try to intercept another fleet (or the same fleet, if it heads for your territory again).


13 Jun 2006, 15:47
Profile WWW
Lieutenant
Lieutenant
User avatar

Joined: 31 May 2006, 01:00
Posts: 451
Perhaps to expand on that a little bit, the player could actually target enemy fleets to intercept. When a player selects the intercept command, they now have the option to target an enemy fleet in scanner range. If targetted, the taskforce will make every attempt to intercept that fleet for as long as the fleet is visible/detectable. If you just want to give the fleet a broad intercept order that will attack anything that comes in range and near your territory, then simply click intercept and rightclick or somehow cancel out of the select enemy fleet process.

This adds a bit more flexibility, and helps alleviate the trouble of intercepting enemy fleets in neutral/enemy territory. Ever get frustrated trying to gun down enemy fleets flying around just outside your space? I have. It also makes pretty logical sense - if a ship is detectable, then you should be able to intercept it assuming you can catch it while it is detectable.

If the ship falls from sensor detection (out of range, cloaks, etc), then the ship's intercept order will get canceled automatically and will not take further action (other then engage hostiles that enter the sector it is currently in.)

Note: just for clearification, I'm thinking that any enemy vessels that are detectable from anything (scanners, science vessels, other ships) can be capable of being targeted by the intercept order. Once the ship disappears from view on the galatic map, the intercept order is canceled.

I think it's a pretty solid idea, allows for a bit more realistic interception, and shouldn't be too difficult to include.

_________________
-Azh


13 Jun 2006, 16:09
Profile
Chief Software Engineer
Chief Software Engineer
User avatar

Joined: 11 Aug 2005, 01:00
Posts: 2688
I think the Pursue order pretty much does what you're describing. Give the masterplan another read over and see if that's the case.


13 Jun 2006, 16:16
Profile WWW
Lieutenant
Lieutenant
User avatar

Joined: 31 May 2006, 01:00
Posts: 451
Perfect, I didn't see that the order the first time through. Thanks.

_________________
-Azh


13 Jun 2006, 16:24
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 12 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by STSoftware.