Station Defense Minigame
Moderators: winston, another_commander
- Commander Xvyto
- Competent
- Posts: 47
- Joined: Mon May 28, 2012 10:52 pm
- Location: Raisso
Station Defense Minigame
I'm trying to learn about coding oxp's and I had an idea for one. Essentially, there is a research station in the middle of nowhere (perhaps behind the sun) that the player can dock with. Then, a mission screen comes up, saying that you must launch and defend the station from pirates/political enemies. You launch, and the game will spawn several waves of attackers. Some will be assigned with destroying the station, and others with killing the defenders (you, and several NPCs).
My questions are:
1. How would one create a station behind the sun on a specific planet? (spawning location: planet and in-system)?
2. Spawning enemies/NPC allies with specific AIs (AI assignment and writing, spawning ships)
My questions are:
1. How would one create a station behind the sun on a specific planet? (spawning location: planet and in-system)?
2. Spawning enemies/NPC allies with specific AIs (AI assignment and writing, spawning ships)
Currently in G1.
- Okti
- ---- E L I T E ----
- Posts: 700
- Joined: Sun Sep 26, 2010 1:51 pm
- Location: A GH shop, near witchpoint to Oresrati in Galaxy 8
Re: Station Defense Minigame
I can help you on those, but Xenon a little warning authoring oxp's is addictive . Just PM me.Commander Xvyto wrote:1. How would one create a station behind the sun on a specific planet? (spawning location: planet and in-system)?
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: Station Defense Minigame
Okti's right...once you take your first step on the Path of OXPs, there is no turning back. They will devour and engulf you, and everything else in your life will become un-important.
Having said that it's great fun and you will learn a lot and will get a great sense of satisfaction from your creations.
Welcome to the ranks of The Lost Souls.
Having said that it's great fun and you will learn a lot and will get a great sense of satisfaction from your creations.
Welcome to the ranks of The Lost Souls.
Commander Smivs, the friendliest Gourd this side of Riedquat.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Station Defense Minigame
<this semi-retired test pilot smirks> It's somewhat on the darkside alright! I'll fly the darkside in-game, but I stay well away from OXP'ing!Smivs wrote:Okti's right...once you take your first step on the Path of OXPs, there is no turning back. They will devour and engulf you, and everything else in your life will become un-important.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: Station Defense Minigame
There was one lapse old chap!El Viejo wrote:... but I stay well away from OXP'ing!
El Viejo is made of sterner stuff than most of us...he took The Path, but then returned relatively unscathed!
Commander Smivs, the friendliest Gourd this side of Riedquat.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Station Defense Minigame
Hmm... I stand by my previous statement! Although I did tinker with a plist or two, I admit!El Viejo wrote:I don’t make OXPs, but if I did… The Green Gecko is based on Griff’s Gecko, and I am greatly indebted to him for his help, as I am to several other people (all credited in the readme), from whom I have begged, stolen, and borrowed the constituents of this OXP… all I did was imagine, instigate and assemble it.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: Station Defense Minigame
<Smivs chuckles merrily>
Commander Smivs, the friendliest Gourd this side of Riedquat.
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: Station Defense Minigame
It is a lovely boat though, is the Green Gecko! Goes to show that if a dumb pilot such as I can assemble that, then you should have no trouble making OXPs, Xenon!
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
- Commander Xvyto
- Competent
- Posts: 47
- Joined: Mon May 28, 2012 10:52 pm
- Location: Raisso
Re: Station Defense Minigame
If a bit deadly.It is a lovely boat though, is the Green Gecko
Currently in G1.
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: Station Defense Minigame
To wander back on-topic...
With a bit of time and effort this is within the grasp of most people...even me!
The wiki is the source of information on these matters. Here for the js, and here for the general OXP how-to which includes a section on AIs.
A good start though will be digging into the innards of the core game where you will find lots of examples of AIs in particular, looking at the scripting in OXPs which do similar things to what you want, and of course as the work progresses there is a wealth of knowledge and experience here on the Board.
This is relatively easy. I say relatively because you will need to learn how the game uses javascript (and of course pick up a bit of js if you don't already know any), and also how the games' AIs work.Commander Xvyto wrote:2. Spawning enemies/NPC allies with specific AIs (AI assignment and writing, spawning ships)
With a bit of time and effort this is within the grasp of most people...even me!
The wiki is the source of information on these matters. Here for the js, and here for the general OXP how-to which includes a section on AIs.
A good start though will be digging into the innards of the core game where you will find lots of examples of AIs in particular, looking at the scripting in OXPs which do similar things to what you want, and of course as the work progresses there is a wealth of knowledge and experience here on the Board.
Commander Smivs, the friendliest Gourd this side of Riedquat.
- JazHaz
- ---- E L I T E ----
- Posts: 2991
- Joined: Tue Sep 22, 2009 11:07 am
- Location: Enfield, Middlesex
- Contact:
Re: Station Defense Minigame
This happens in Random Hits OXP. You can be docked at a space bar when alarms ring and there are pirates attacking the bar. You and several other ships launch and take on the attackers.Commander Xvyto wrote:a mission screen comes up, saying that you must launch and defend the station from pirates/political enemies. You launch, and the game will spawn several waves of attackers. Some will be assigned with destroying the station, and others with killing the defenders (you, and several NPCs).
So its already been done, and done well.
JazHaz
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!Gimi wrote:Maybe you could start a Kickstarter Campaign to found your £4500 pledge.drew wrote:£4,500 though! <Faints>
Cheers,
Drew.
- Commander Xvyto
- Competent
- Posts: 47
- Joined: Mon May 28, 2012 10:52 pm
- Location: Raisso
Re: Station Defense Minigame
I know that. I'm just using the idea for learning oxp creation.So its already been done, and done well.
Currently in G1.
- Disembodied
- Jedi Spam Assassin
- Posts: 6885
- Joined: Thu Jul 12, 2007 10:54 pm
- Location: Carter's Snort
Re: Station Defense Minigame
I don't think the suggestion was that, because it has been done elsewhere, you shouldn't do it too – rather that you should take a look at how Random Hits does it, and modify that to suit your needs, instead of starting from scratch. No sense reinventing the (dark) wheel!Commander Xvyto wrote:I know that. I'm just using the idea for learning oxp creation.
- Smivs
- Retired Assassin
- Posts: 8408
- Joined: Tue Feb 09, 2010 11:31 am
- Location: Lost in space
- Contact:
Re: Station Defense Minigame
Some of my best work started life on somebody else's computer.
(Anon)
Commander Smivs, the friendliest Gourd this side of Riedquat.
- Commander Xvyto
- Competent
- Posts: 47
- Joined: Mon May 28, 2012 10:52 pm
- Location: Raisso
Re: Station Defense Minigame
I dunno. For me (at least in programming) I've learned better not by copying stuff but writing it myself, because it forces me to understand.No sense reinventing the (dark) wheel
Currently in G1.