Page 1 of 1

Fantasy football ... with lasers

Posted: Thu Dec 25, 2014 9:05 pm
by jh145
Hi, new here and not yet warned-off asking stupid questions :D

Has there been any attempt to automatically rank the NPC combat capability of ships, e.g. in five-aside matches (like Pit Vipers versus Viper Interceptors) in some sort of sandbox environment?

Notwithstanding the unreality caveats (e.g. black ships are tougher adversaries for humans than for the computer), I think it would be rather interesting to see the results of series of such deathmatches. But I don't think it can be simulated in an OXP, can it, as the OXP couldn't exert sufficient control to make the match happen and let the player witness it?

But it's Christmas, so who knows ...
:mrgreen: <-- an elf

Re: Fantasy football ... with lasers

Posted: Fri Dec 26, 2014 2:10 am
by Wildeblood
Some particular starting settings of Factions OXP should do it...?

Re: Fantasy football ... with lasers

Posted: Fri Dec 26, 2014 10:01 am
by Norby
There is a somewhat similar effort in [EliteWiki] CCL which produced a Table of Player Ships. Click on the title of the "Standard" column to order by the estimated strength.

Re: Fantasy football ... with lasers

Posted: Fri Dec 26, 2014 11:41 am
by ffutures
Am I regularly getting bounced by fleets of 15-20 pirates because the Boa Cruiser is rated highest in all three columns?

Re: Fantasy football ... with lasers

Posted: Fri Dec 26, 2014 7:20 pm
by jh145
Norby wrote:
There is a somewhat similar effort in [EliteWiki] CCL which produced a Table of Player Ships. Click on the title of the "Standard" column to order by the estimated strength.
Nice, but not really what I had in mind: I wanted to have Oolite pit ships against each other in a controlled environment and observe the outcome.

I know nothing about OXP programming, but I took a quick look at the documentation and it seems doable to manufacture battles of the type I was thinking of. It would go something very (very, very) roughly like this. Your ship arrives at special system X. All ship generation in system X is disabled except for those we choose, so we choose to create two ship groups near the witchpoint. Group 1 is led by a Foobar (fancy names aren't my strong-point) -- an invincible, immovable, unarmed lump of whatever -- with five Mussuranas assigned to protect it. Group 2 is also led by a Foobar, this time with five Imperial Traders escorting. The groups are told by the OXP to go kill each other (they're all bounty-hunting fugitives?). They're so busy wiping each other out that they ignore the player, so you just drift there watching the battle unfold.

It's only a sketch, from close to zero knowledge of the API, but does that look like a plausible way of constructing a battle in a controlled fashion?

Re: Fantasy football ... with lasers

Posted: Fri Dec 26, 2014 7:31 pm
by Smivs
What you describe is do-able certainly, and could probably be more specific in terms of targeting each other as you could write scripts/AIs which specifically tell group A to target group B ships and vice-versa. Also, why have the large group leader? It doesn't sound as though it has any purpose, although each faction could start from a small station, which is then open to attack if the defenders are wiped out. All sorts of possibilities exist.
It may not be as hard as it sounds, so why not have a think about trying it yourself? You will find plenty of help here - most of us OXPers started from a baseline of zero knowledge.
And the cookies are great! :)

Re: Fantasy football ... with lasers

Posted: Fri Dec 26, 2014 8:25 pm
by Fatleaf
What you have described there is exactly what happens outside a [EliteWiki] Space Bar when they come under attack. Except you have a lot of different cool looking ships and you can get involved if you want.

Re: Fantasy football ... with lasers

Posted: Fri Dec 26, 2014 8:46 pm
by jh145
Yep, I'm familiar with Space Bars. Found it best to get involved only from a distance and with good shields!

> It may not be as hard as it sounds, so why not have a think about trying it yourself?

OK. Cage Fight OXP coming soon eventually (maybe) ... :wink:

Re: Fantasy football ... with lasers

Posted: Fri Dec 26, 2014 11:35 pm
by spud42
The dark side has claimed another victim.... :mrgreen: :mrgreen: :mrgreen:

Re: Fantasy football ... with lasers

Posted: Sat Dec 27, 2014 2:15 am
by Diziet Sma
Sounds like a fun and interesting project.. I look forward to seeing what becomes of it. 8)
jh145 wrote:
Hi, new here and not yet warned-off asking stupid questions :D
Around here, we work on the principle that there's no such thing as a stupid question. Feel free to ask anything you like, you'll get plenty of helpful answers.. (and you won't be told to RTFM or search for it, either!). We do our best to live up to our reputation as "the friendliest board this side of Riedquat™".

Re: Fantasy football ... with lasers

Posted: Sun Feb 15, 2015 12:01 pm
by jh145
I have something basically working. The add-on spawns two groups of five same-type ships either side of a buoy a little way back (away from the planet) from the witchpoint. They attack the heck out of each other until no-one's left or a timer calls it quits (learnt the hard way from watching two small and inaccurate ships get nowhere fast). The score is logged. Then I've got a Python script that implements some dodgy probability calculations to estimate, from rather sparse data, the "rating" for each ship.

Running this morning on all ships associated with a Random Hits big boss, I have (rating : won-lost : ship) ...
(edit: updated to reflect results of further trials)

Code: Select all

 8.7646 :  9-1  : random_hits_big_boss_fighter_galtech_escort_fighter (GalTech Escort Fighter)
 6.4152 : 11-1  : random_hits_big_boss_impcourier (Imperial Courier)
 5.4611 : 15-1  : random_hits_big_boss_cobra4 (Cobra Mark IV Black)
 3.5026 :  6-1  : random_hits_big_boss_fighter_gnat (Gnat)
 2.8258 :  9-2  : random_hits_big_boss_supercobra (SuperCobra)
 1.6142 :  8-2  : random_hits_big_boss_imptrader (Imperial Trader)
 1.4739 : 13-3  : random_hits_big_boss_fighter_chameleon (Chameleon)
 1.3257 : 11-2  : random_hits_big_boss_fighter_arachnid (Arachnid Mark 1)
 1.0935 :  5-1  : random_hits_big_boss_guard_phaze (Purple Haze)
 0.9142 :  6-2  : random_hits_big_boss_pitviper (Pitviper Mark II)
 0.8305 :  8-3  : random_hits_big_boss_guard_cobra3courierSE-trader (Cobra Courier SE)
 0.6156 :  3-5  : random_hits_big_boss_fighter_dttmk1 (DTT Mark I)
 0.6101 :  4-2  : random_hits_big_boss_guard_cobra3courier (Cobra Courier)
 0.4546 :  8-6  : random_hits_big_boss_guard_cobra3-alternate (Cobra Mark III)
 0.4514 :  7-2  : random_hits_big_boss_wolfmk2SE_spacelane (Wolf Mark II)
 0.4067 :  4-3  : random_hits_big_boss_fighter_mussurana (Mussurana)
 0.3277 :  4-5  : random_hits_big_boss_fighter_asp (Asp Mark II)
 0.3195 :  2-3  : random_hits_big_boss_fighter_aspmk1 (Asp Mark I)
 0.2501 :  5-6  : random_hits_big_boss_fighter_moray (Moray Star Boat)
 0.2275 :  6-6  : random_hits_big_boss_guard_salamander (Salamander)
 0.2011 :  6-4  : random_hits_big_boss_fighter_monitor (Monitor)
 0.1780 :  4-4  : random_hits_big_boss_guard_ferdelance (Fer-de-Lance)
 0.1200 :  2-7  : random_hits_big_boss_fighter_bushmaster (Bushmaster)
 0.1178 :  5-8  : random_hits_big_boss_fighter_manta (DTT Manta)
 0.0853 :  7-4  : random_hits_big_boss_fighter_ghavial (Ghavial)
 0.0573 :  1-8  : random_hits_big_boss_fighter_sidewinderx (Sidewinder Special)
 0.0558 :  2-4  : random_hits_big_boss_fighter_drake (Drake)
 0.0476 :  5-6  : random_hits_big_boss_fighter_sidewinder (Sidewinder Scout Ship)
 0.0464 :  4-7  : random_hits_big_boss_fighter_drake2 (Drake Mark II)
 0.0380 :  1-5  : random_hits_big_boss_fighter_cobra1 (Cobra Mark I)
 0.0296 :  3-6  : random_hits_big_boss_fighter_yacht (Ophidian Yacht)
 0.0287 :  1-5  : random_hits_big_boss_fighter_cobra2x (Cobra Mark II-X)
 0.0274 :  1-8  : random_hits_big_boss_fighter_bug (Bug)
 0.0259 :  1-4  : random_hits_big_boss_fighter_krait (Krait)
 0.0238 :  1-11 : random_hits_big_boss_fighter_griffin1 (Griffin Mk I)
 0.0161 :  1-12 : random_hits_big_boss_fighter_gecko (Gecko)
 0.0087 :  1-9  : random_hits_big_boss_fighter_adder (Adder)
 0.0070 :  1-6  : random_hits_big_boss_fighter_mamba (Mamba)
 0.0012 :  0-16 : random_hits_big_boss_fighter_attackworm (Worm Attack Drone)
The ratings are not trustworthy (and between this and the previous draft of the post they looked quite different), but they are at least somewhat suggestive of how one might rank these opponents in practice.

Re: Fantasy football ... with lasers

Posted: Mon Mar 06, 2023 10:44 am
by Cholmondely
jh145 wrote: Fri Dec 26, 2014 8:46 pm
OK. Cage Fight OXP coming soon eventually (maybe) ... :wink:
Did any of this ever see the light of day?

Re: Fantasy football ... with lasers

Posted: Wed May 22, 2024 11:36 am
by Cholmondely
jh145 wrote: Fri Dec 26, 2014 8:46 pm
OK. Cage Fight OXP coming soon eventually (maybe) ... :wink:
Ahem! did this ever see the light of day?