Topic: Mission Question  (Read 4582 times)

0 Members and 2 Guests are viewing this topic.

Offline Hexx

  • Sexy Shoeless Lyran God Of War
  • Captain
  • *
  • Posts: 6058
Mission Question
« on: May 06, 2006, 08:46:00 pm »
Is it possible (sans SQL) to have missions generated on a specific terrain type on the map?
I know base missions can (should) only be generated whwere's there's a base, but can any mission be set up the same way?
IE a mission with those ion storm things only shows up on Neb hexes, randomnly appearing black holes only appear on black hole hexes etc
Courageously Protesting "Lyran Pelt Day"

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: Mission Question
« Reply #1 on: May 06, 2006, 09:18:28 pm »
Yeppers - actually I just posted your requested black hole mission over in the Lyran forum  ;D

Except I forgot to make it only appear in black hole hexes, but I can tweak that easily enough.  Right now the random black holes turn up in addition to whatever other terrain is present.

It's zipped up at http://www3.telus.net/NuclearWessels/sfc/downloads/hexx.zip

Now about that "working harder" bit  ;)

cheers!
dave

Offline Bonk

  • Commodore
  • *
  • Posts: 13298
  • You don't have to live like a refugee.
Re: Mission Question
« Reply #2 on: May 06, 2006, 09:21:31 pm »
Is a "black hole mania" for the D2 possible? I always liked that scenario.

Offline Dizzy

  • Captain
  • *
  • Posts: 6179
Re: Mission Question
« Reply #3 on: May 06, 2006, 09:28:03 pm »
Is it possible (sans SQL) to have missions generated on a specific terrain type on the map?
I know base missions can (should) only be generated whwere's there's a base, but can any mission be set up the same way?
IE a mission with those ion storm things only shows up on Neb hexes, randomnly appearing black holes only appear on black hole hexes etc


Sigh. How quickly you forget. Do you know how many precious resources are WASTED because you can['t remember. I mean, instead of typing this to help you, I could be finding lock picks on Elder Scrolls Oblivion. Btw., does anyone know how to really work that convoluted lock picking mechanism manually?

Your memory is as bad as a Grecian trying to sing their anthem.

http://www.dynaverse.net/forum/index.php/topic,163349781.msg1122489383.html#msg1122489383

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: Mission Question
« Reply #4 on: May 06, 2006, 09:34:30 pm »
Is a "black hole mania" for the D2 possible? I always liked that scenario.

The one I posted up there spawns a new black hole roughly once a minute, just hope you're not sitting where it chooses to spawn.

At the moment it only generates up to 8 of them (in addition to the "normal" terrain in the mission) but it could be boosted to 20 with a minor tweak.

It uses the pseudo-random technique we were talking about in the other thread, so it should be stable in drafting situations.

Other than that it's a pretty normal enemy space patrol.

dave

Offline Bonk

  • Commodore
  • *
  • Posts: 13298
  • You don't have to live like a refugee.
Re: Mission Question
« Reply #5 on: May 06, 2006, 09:50:29 pm »
COOL!  8)

Is the posted copy set to trigger only in black hole hexes yet?  :whip:

Offline Bonk

  • Commodore
  • *
  • Posts: 13298
  • You don't have to live like a refugee.
Re: Mission Question
« Reply #6 on: May 06, 2006, 10:15:20 pm »
Weeeeeeeeeeeeee!

I just tested it out single player as Kzin. Too cool!

It triggered next to and in a black hole hex in enemy space. (I think my singleplayer draft radius might be 1) Gonna play with it some more. I hope it works out OK in multiplayer, I'd love to see this on KAT Fight!

(P.S. - In the included .mct file the quotes on the description are not closed and the mission is numbered 1 instead of 0)

Offline Hexx

  • Sexy Shoeless Lyran God Of War
  • Captain
  • *
  • Posts: 6058
Re: Mission Question
« Reply #7 on: May 06, 2006, 10:52:24 pm »
Is it possible (sans SQL) to have missions generated on a specific terrain type on the map?
I know base missions can (should) only be generated whwere's there's a base, but can any mission be set up the same way?
IE a mission with those ion storm things only shows up on Neb hexes, randomnly appearing black holes only appear on black hole hexes etc


Sigh. How quickly you forget. Do you know how many precious resources are WASTED because you can['t remember. I mean, instead of typing this to help you, I could be finding lock picks on Elder Scrolls Oblivion. Btw., does anyone know how to really work that convoluted lock picking mechanism manually?

Your memory is as bad as a Grecian trying to sing their anthem.

http://www.dynaverse.net/forum/index.php/topic,163349781.msg1122489383.html#msg1122489383


<sigh>
If it's not on the first page it doesn't exist..


Quote
The one I posted up there spawns a new black hole roughly once a minute, just hope you're not sitting where it chooses to spawn.

At the moment it only generates up to 8 of them (in addition to the "normal" terrain in the mission) but it could be boosted to 20 with a minor tweak.

It uses the pseudo-random technique we were talking about in the other thread, so it should be stable in drafting situations.

Other than that it's a pretty normal enemy space patrol.

dave


20!!!
The sad part is I'm going to end up flying into more of them than anyone...

Guess I'd better start working then,
Courageously Protesting "Lyran Pelt Day"

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: Mission Question
« Reply #8 on: May 07, 2006, 01:03:41 am »
Weeeeeeeeeeeeee!

I just tested it out single player as Kzin. Too cool!

It triggered next to and in a black hole hex in enemy space. (I think my singleplayer draft radius might be 1) Gonna play with it some more. I hope it works out OK in multiplayer, I'd love to see this on KAT Fight!

(P.S. - In the included .mct file the quotes on the description are not closed and the mission is numbered 1 instead of 0)

Whoops - .mct corrected, and script corrected to spawn in black hole hexes.
And it should now spawn the 20 black holes over the first 13 minutes or so of the mission  ;D

dave

Offline Herr Burt

  • Putting the "B" back into SFC
  • Lt. Junior Grade
  • *
  • Posts: 499
  • Gender: Male
  • Providing for the Providers
Re: Mission Question
« Reply #9 on: May 07, 2006, 03:52:58 am »

Hey, Dave.   I just sent you a PM.  I've had a bit of a boo boo.

-Herr Burt
Happy Warmongering!

Offline Bonk

  • Commodore
  • *
  • Posts: 13298
  • You don't have to live like a refugee.
Re: Mission Question
« Reply #10 on: May 07, 2006, 07:41:04 am »
Tried the new one out. Looks good. A black hole popped up at range 2.5 from me!  :o  I let it suck me in just to make sure it was real... it was - boom!  ;D

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: Mission Question
« Reply #11 on: May 07, 2006, 01:04:43 pm »

Hey, Dave.   I just sent you a PM.  I've had a bit of a boo boo.

-Herr Burt

Answered!

dave

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: Mission Question
« Reply #12 on: May 07, 2006, 01:06:37 pm »
Tried the new one out. Looks good. A black hole popped up at range 2.5 from me!  :o  I let it suck me in just to make sure it was real... it was - boom!  ;D

Just did one more revision - now the mission can pop up anywhere, but the random terrain generated depends on the hex type: black holes in a black hole hex, extra asteroids in an asteroid hex, dust clouds in a nebula, and misc. bits in open space  (all in addition to the regular terrain features of course).

OK, this was too much fun  ;D

dave

Offline Bonk

  • Commodore
  • *
  • Posts: 13298
  • You don't have to live like a refugee.
Re: Mission Question
« Reply #13 on: May 07, 2006, 01:47:31 pm »
Neat stuff! I'll check that out.  8)

Do we wanna give this one a spin on The Forge for some testing in the next few weeks or keep it as a treat for KAT Fight?

Offline Hexx

  • Sexy Shoeless Lyran God Of War
  • Captain
  • *
  • Posts: 6058
Re: Mission Question
« Reply #14 on: May 07, 2006, 01:58:51 pm »
Test it if you'd like

I'm sure I'll think of something else to beg Dave about for Kat fight.


Is it possible to put a Sun in a Neb btw?
Courageously Protesting "Lyran Pelt Day"

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: Mission Question
« Reply #15 on: May 07, 2006, 05:26:43 pm »
Test it if you'd like

I'm sure I'll think of something else to beg Dave about for Kat fight.


Is it possible to put a Sun in a Neb btw?

Sure thing - kinda nasty though!  Wish I'd thought of it ;D

dave

Offline KBFLordKrueg

  • Commander
  • *
  • Posts: 3733
  • KBF CO
Re: Mission Question
« Reply #16 on: May 07, 2006, 05:46:45 pm »
Test it if you'd like

I'm sure I'll think of something else to beg Dave about for Kat fight.


Is it possible to put a Sun in a Neb btw?

Seen that already on The Forge.  ;)
Lord Krueg
KBF CO
We are the Dead

Offline Riskyllama

  • D.Net Beta Tester
  • Lt.
  • *
  • Posts: 748
  • Gender: Male
  • Risky
Re: Mission Question
« Reply #17 on: May 07, 2006, 05:58:10 pm »
can we not put planets in nebulas? or make holes in the neb where the planet is?
Everything is sweetened by risk. ~Alexander Smith

Offline Bonk

  • Commodore
  • *
  • Posts: 13298
  • You don't have to live like a refugee.
Re: Mission Question
« Reply #18 on: May 07, 2006, 06:06:49 pm »
can we not put planets in nebulas? or make holes in the neb where the planet is?

I edited most of the planets out of neb hexes, I must have missed a few, I can clear either the nebulas or the planets from the remaining combos.

Offline Riskyllama

  • D.Net Beta Tester
  • Lt.
  • *
  • Posts: 748
  • Gender: Male
  • Risky
Re: Mission Question
« Reply #19 on: May 07, 2006, 07:03:08 pm »
there's one or two near the klink-lyran homeworld zone.
Everything is sweetened by risk. ~Alexander Smith

Offline Bonk

  • Commodore
  • *
  • Posts: 13298
  • You don't have to live like a refugee.
Re: Mission Question
« Reply #20 on: May 07, 2006, 07:59:46 pm »
I'll put it on my list...

Hang on, it will only take a second... one query - just need to backup the db before (and after) the edit, just in case...

Code: [Select]
UPDATE maphex SET TerrainType = 67108864 WHERE PlanetType <> 0 AND TerrainType IN (4096,8192,16384,32768,65536,131072);
This query will set all planet hexes with nebulas to normal space.

... done!  (hmm... 29 rows affected!  :o I guess I missed more than a few...  :-[) Hard to pick those out in Artifex.

edit: looks like we're due for the first db clean soon... not too bad for three weeks in.

edit2: I loaded the webmap in my browser before and after and I'm flipping back and forth between the copies...  8) sometimes small things amuse me a great deal.  ;D
« Last Edit: May 07, 2006, 08:10:11 pm by Bonk »

Offline NuclearWessels

  • Evil Dave
  • Serverkit Development Team
  • Lt. Commander
  • *
  • Posts: 1249
  • Scripter and general nuisance
    • NukeDocs
Re: Mission Question
« Reply #21 on: May 09, 2006, 11:42:27 pm »
Is it possible (sans SQL) to have missions generated on a specific terrain type on the map?
I know base missions can (should) only be generated whwere's there's a base, but can any mission be set up the same way?
IE a mission with those ion storm things only shows up on Neb hexes, randomnly appearing black holes only appear on black hole hexes etc

Ion storms added to nebs (can't believe I forgot them first time round), I'll update the posted version shortly

I can spew out the combination in use (which are open to change if ya'd like) in case you want to think about maps:

Space1,3,5 hexes get small dust clouds generated
Space2,4,6 hexes get large dust clouds
space(any) in planet hexes get ion storms

asteroid1,3,5 get large asteroids generated
asteroid2,4,6 get small asteroids
asteroid(any) in planet hexes get ice asteroids

nebula1,3,5 get large dust clouds generated
nebula2,4,6 get ion storms
nebula(any) in planet hexes get small dust clouds

blackhole1,3,5 get large black holes generated
blackhole2,4,6 get small black holes
blackhole(any) in planet hexes get ... ummm ... I didn't write it down  ::) I think it was ion storms

dave
« Last Edit: May 09, 2006, 11:59:56 pm by NuclearWessels »

Offline Bonk

  • Commodore
  • *
  • Posts: 13298
  • You don't have to live like a refugee.
Re: Mission Question
« Reply #22 on: May 10, 2006, 10:47:17 am »
I think I'll give this a whirl for some testing on The Forge once Economic War starts winding down.

Offline GDA-S'Cipio

  • Brucimus Maximus
  • Captain
  • *
  • Posts: 5749
  • Gender: Male
  • If I took the bones out, it wouldn't be crunchy.
Re: Mission Question
« Reply #23 on: May 10, 2006, 10:54:41 am »
Sigh. How quickly you forget. Do you know how many precious resources are WASTED because you can['t remember. I mean, instead of typing this to help you, I could be finding lock picks on Elder Scrolls Oblivion. Btw., does anyone know how to really work that convoluted lock picking mechanism manually?

I normally jussst point a plasssma-R at the door, then tell them to open up, "or elssse."

My resssults have been encouraging.

-S'Cipio
"I cannot undertake to lay my finger on that article of the Constitution which granted a right to Congress of expending, on the objects of benevolence, the money of their constituents."  - James Madison (chief author of the Constitution)

-----------------------------------------
Gorn Dragon Alliance member
Gorn Dragon Templar
Coulda' used a little more cowbell
-----------------------------------------