- Check dock sizes. No, really*...
If ship cannot fit in, AI should not even try this dock. In case of PC ships, only proper docks should be made visible.
At this stage here's only generic "size" for dock and cargo size for ship, just compare latter with some sensible* function of former... And free hold volume (for internal docks), of course.
* I.e. Ox should never try to "dock" through interceptor garage pod of fighter barrack or inner dock of medical station. I could illustrate this point with handful of rather ridiculous screenshots, but i have vague suspicion that you all saw it more times than you wanted. - Scoop via dock.
On all ships of decent size place one of those "SPECIAL" mounts behind main dock, so tractor beam could be installed here.
Forced scoop happens when target enters dock area and is moved by tractor beam. And use the same check function as (1), instead of separate enigmatic mesh measurements. - Eject cargo via dock.
- Docks! More docks!
There's no reason why even Shroedinger should not have dock, though only good for small cargo containers and lesser drones.
That is, if dock sizes are really checked and Ox will not try to dock here.
Docks (and Scoop)
-
- Elite Venturer
- Posts: 753
- Joined: Sat Apr 15, 2006 2:40 am
- Location: chthonic safety
Docks (and Scoop)
"Two Eyes Good, Eleven Eyes Better." -Michele Carter
-
- Elite
- Posts: 8014
- Joined: Fri Sep 05, 2003 4:03 am
- Location: Montreal
- Contact:
I've no idea how docks are coded; but if they are a class, as they should be, a simple private method bool check_it_fits(ship const & it) should do it.
Latest version of Cinemut Opaque
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
-
- The Shepherd
- Posts: 5841
- Joined: Fri May 13, 2005 8:37 pm
- Location: Ottawa
- Contact:
because of deficiencies in the AI code it can't dock you may see AI controlled ships go through stations if there velocity is to great for capture.
Enjoy the Choice
Enjoy the Choice
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
-
- Elite
- Posts: 8014
- Joined: Fri Sep 05, 2003 4:03 am
- Location: Montreal
- Contact:
Alright, let me guess: ports are probably instances of "unit" and there's a "port flag" that identifies them as ports.
Or is it even worse?
Or is it even worse?
Latest version of Cinemut Opaque
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
-
- The Shepherd
- Posts: 5841
- Joined: Fri May 13, 2005 8:37 pm
- Location: Ottawa
- Contact:
And that's where they are defined as well location and size all part of a units stats you really must have a close look at units.csv
Enjoy the Choice
Enjoy the Choice
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
-
- Bounty Hunter
- Posts: 164
- Joined: Tue Jul 11, 2006 6:20 pm
- Location: Some small planet, Parallel Earth, Resources Negligeble
- Contact:
"It's not what you think... it's much, Much worse"
I don't know the code myself, but just judging by how docking appears to work and the topics that have talked about docking issues on stations and large ships... it's probably worse... they're probably just co-ordinates on the mesh and docking is a matter of proximity to that point when requesting to dock.
I don't know the code myself, but just judging by how docking appears to work and the topics that have talked about docking issues on stations and large ships... it's probably worse... they're probably just co-ordinates on the mesh and docking is a matter of proximity to that point when requesting to dock.
-
- The Shepherd
- Posts: 5841
- Joined: Fri May 13, 2005 8:37 pm
- Location: Ottawa
- Contact:
Yeap that's exactly what happens and if those co-ords are inside the mesh good luck docking i've fixed a few stations with that problem the Factory model my first.it's probably worse... they're probably just co-ordinates on the mesh and docking is a matter of proximity to that point when requesting to dock.
Enjoy the Choice
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 19.2/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and Lenovo ideapad 320-15ARB Win 10/Mint 19.2
-
- Confed Special Operative
- Posts: 334
- Joined: Thu Jan 11, 2007 4:10 am
you know.. it just struck me..
docking objects..
you need like 3 objects.. for 3 different styles of docks..
so you got a ship? well stick a 'dock' on it as something like a turrets done.. subobject..
for stations its easier... just put a second object in space there, lodged inside the station (no collision detection or anything here)
could even automate it.. but anyhow.. <.< an object you can place would.. to me.. seem easier than other ideas.
docking objects..
you need like 3 objects.. for 3 different styles of docks..
so you got a ship? well stick a 'dock' on it as something like a turrets done.. subobject..
for stations its easier... just put a second object in space there, lodged inside the station (no collision detection or anything here)
could even automate it.. but anyhow.. <.< an object you can place would.. to me.. seem easier than other ideas.
-
- Elite
- Posts: 7243
- Joined: Mon Apr 18, 2005 2:40 pm
- Location: LS87, Buenos Aires, República Argentina
-
- Elite
- Posts: 8014
- Joined: Fri Sep 05, 2003 4:03 am
- Location: Montreal
- Contact:
Couldn't be that difficult to write AI code from scratch. Probably much easier than try to understand the existing code. Maybe we can work on that after CineMut.
Latest version of Cinemut Opaque
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
Latest version of LaGrande noodleworks (scroll down).
An evolving La Grande How-To...
The non-working, but latest, CineMut test_bike
PU (Privateer: Parallel Universe's Home). WC or Privateer Drayman for you?
WCpedia --The Wing Commander Encyclopedia-- From Angel Deveraux through Belisarius to Zachary Banfeld...
WC Nexus forum, the Moonbase Tycho of WC fans.
-
- Confed Special Operative
- Posts: 334
- Joined: Thu Jan 11, 2007 4:10 am
-
- Elite Venturer
- Posts: 753
- Joined: Sat Apr 15, 2006 2:40 am
- Location: chthonic safety
Re: Docks (and Scoop)
Also, if docks were just normal explicit sub-units (with some flag), auto-docking would be a bit easier to implement: sub-units have direction vector. Then once you placed dock so it points into free space, docking ship would just arrive at some point along that vector, then turn and move in, and unlikely to ram anything in process.
"Two Eyes Good, Eleven Eyes Better." -Michele Carter