Author Topic: [Solved] Alien Bases detection ?  (Read 4499 times)

Offline robin

  • Commander
  • *****
  • Posts: 1203
  • ULTIMATE ROOKIE
    • View Profile
[Solved] Alien Bases detection ?
« on: November 28, 2019, 10:05:10 pm »
In my mod the enemies main activity is to build bases, so the mod gameplay relies a lot on the player actively searching for them.
For this reason one of the very first equipment the player can research, is a craft radar that increases the sightRange of the craft, making -on paper-, the detection simpler.
The problem is that the detection change is still lackluster, unless I make the sightRange basically world-wide.  (Vanilla sightRange is already large, so 'm not really making it much bigger, because otherwise it's ridiculous).
Is there something more I can do to make the alien base detection more fast and reliable? This would also help with testing, because without being able to find the bases quickly, it's hard to tell if the mission I designed is working correctly (AKA spawning the base) or not.
Thanks
« Last Edit: February 12, 2023, 09:02:29 am by Meridian »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8598
    • View Profile
Re: Alien Bases detection ?
« Reply #1 on: November 28, 2019, 10:45:27 pm »
The algorithm for base detection is very trivial:
- base needs to be in sight range
- the closer you are the higher the chance is to detect it (once every 10 minutes)
The only moddable parameter is the sight range.

What algorithm would you use if you could choose what you want?
« Last Edit: November 28, 2019, 10:47:03 pm by Meridian »

Offline robin

  • Commander
  • *****
  • Posts: 1203
  • ULTIMATE ROOKIE
    • View Profile
Re: Alien Bases detection ?
« Reply #2 on: November 28, 2019, 11:03:44 pm »
I was thinking something "instantaneous", like the detection of UFOs within a craft's radar circle (I'm going to make radarRange and sightRange equal, so the circle is visual a reference for both).
A question I have is: does base detection happens only on patrol or also during flyby?
ufopedia.org says:
Quote
In order to discover an alien base, an X-COM craft must patrol within 1500 nm of the base's location.

I'd like the opinion of other modders too, so we can make something useful for everyone.

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8598
    • View Profile
Re: Alien Bases detection ?
« Reply #3 on: November 28, 2019, 11:18:37 pm »
Only on patrol.

Going back to testing... for that I can make a debug-mode shortcut for you... and secretly for me too :P

Offline robin

  • Commander
  • *****
  • Posts: 1203
  • ULTIMATE ROOKIE
    • View Profile
Re: Alien Bases detection ?
« Reply #4 on: November 28, 2019, 11:29:48 pm »
Wait, I'm dumb. I was not setting world-wide sightRange correctly :-[
Now that I did properly, it seems to be sufficient for testing (unless we decide we want something more drastic, and have bases instantly revealed the moment they are created in debug mode).

Offline robin

  • Commander
  • *****
  • Posts: 1203
  • ULTIMATE ROOKIE
    • View Profile
Re: [suggestion] Alien Bases detection ?
« Reply #5 on: November 29, 2019, 09:27:54 pm »
paging for other modders.
anyone interested in a faster/instantaneous alien base detection?

wcho035

  • Guest
Re: [suggestion] Alien Bases detection ?
« Reply #6 on: November 29, 2019, 09:33:59 pm »
Like it the way it is. You sent a craft on patrol, a few hours, alien base is reveal.

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: [suggestion] Alien Bases detection ?
« Reply #7 on: November 29, 2019, 09:37:22 pm »
Personally I like the fact you have to directly patrol and search for the base, not something that just happens on your way to do something else. The main problem I see is communicating the need to do so to the player, but having regular missions carried out by the base already helps a lot with that.

Offline robin

  • Commander
  • *****
  • Posts: 1203
  • ULTIMATE ROOKIE
    • View Profile
Re: Alien Bases detection ?
« Reply #8 on: November 29, 2019, 11:27:42 pm »
Ok, let's drop this. Maybe I became oversensitive to the detection delay because of testing:
"alright time to test the new mission"
1 second later
"wtf the base hasn't appeared?! the mission doesn't work, whhhyyyyyyaaaaaahh"
Sort of.  :-X

Offline Nord

  • Commander
  • *****
  • Posts: 1625
  • The Gate is open.
    • View Profile
Re: Alien Bases detection ?
« Reply #9 on: November 30, 2019, 07:58:45 am »
Personally i will be happy if there will be some other mechanic for base discovery, aside from crafts, but i can not formulate what i want directly. Something with completed research maybe?

Offline Finnik

  • Colonel
  • ****
  • Posts: 490
  • Finnik#0257
    • View Profile
Re: Alien Bases detection ?
« Reply #10 on: December 02, 2019, 06:21:02 pm »
it would be cool to have some property in deployment for the base that it can't be revealed with patrolling or if it can be revealed with a monthly report (and maybe it could be cool to unhardcode % of that to define it in deployment). that property can be a composite attribute (a bit map) like 'medikitTargetMatrix' (btw, I like that style of defining rules). and with that also would be very good to have some additional properties for deployments, that were spawned from that base. like you have found the clues to what happening here. and also it would be a useful property for a deployment that it can reveal 1 (2, all?) bases in the same region where deployment was spawned.
As for me, I'd like for Alien Embassy in the XCF would not be possible to detect with patrolling and month report (or have it with a tiny chance), but the only option for reveal it would be to fight through some of the missions it is spawning around it.

pretty unrelated topic - may be revealing the base can trigger some alert window (state) to spawn to inform that player had just found it. it would be cool to have some options for that window in deployment (description, background, and color)  :)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Alien Bases detection ?
« Reply #11 on: December 02, 2019, 06:39:50 pm »
Personally i will be happy if there will be some other mechanic for base discovery, aside from crafts, but i can not formulate what i want directly. Something with completed research maybe?

I was going to ask if it was possible to reveal alien bases via a repeatable research topic, however I gather from your post that this is not currently possible.

may be revealing the base can trigger some alert window (state) to spawn to inform that player had just found it. it would be cool to have some options for that window in deployment (description, background, and color)  :)

That would be interesting.

If the message window is configurable perhaps it could be setup to display the type of base (Which aliens are there) automatically?

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11408
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Alien Bases detection ?
« Reply #12 on: December 04, 2019, 01:24:16 am »
Patrol only detection makes sense in X-Com. Not so much in Piratez, where you're supposed to use biker gangs who drive around gathering info... ;D

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8598
    • View Profile
Re: Alien Bases detection ?
« Reply #13 on: February 01, 2020, 12:41:15 pm »
Only on patrol.

Going back to testing... for that I can make a debug-mode shortcut for you... and secretly for me too :P

Ctrl+7 in debug mode to reveal all UFOs and alien bases.

Offline davide

  • Commander
  • *****
  • Posts: 565
    • View Profile
Re: Alien Bases detection ?
« Reply #14 on: February 01, 2020, 04:38:22 pm »
Patrol only detection makes sense in X-Com. Not so much in Piratez, where you're supposed to use biker gangs who drive around gathering info... ;D

An interrogation of some special prisoner or a data disk recovered in some mission could detect the position of bases or special locations