Author Topic: Can't scan cargo of a ship unless its objecttype is "cargo"  (Read 2249 times)

0 Members and 1 Guest are viewing this topic.

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Can't scan cargo of a ship unless its objecttype is "cargo"
Is there a good workaround for this? I also added "$Scannable: YES" to the ship's objecttype via -obt.tbm but that does nothing. There are a number of AI-related reasons I'm not going to use a "cargo" objecttype for this ship.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Can't scan cargo of a ship unless its objecttype is "cargo"
Are you creating a whole new class or modifying one of the existing ones?  Have you added cargo content to the ship in FRED?

I am assuming that the Scannable option refers to whether or not a ship can carry cargo.  If this is the case, I am surprised to see in the sample default table in the Wiki that the "cargo" and "freighter" classes have this set to TRUE, when it seems that it should be "Cargo" and "Transport".
The Trivial Psychic Strikes Again!

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Can't scan cargo of a ship unless its objecttype is "cargo"
I'm not creating a new class (its normal class is "capital" though it doesn't work with others as well), and the ship has cargo in FRED.

The source of he problem is the "cargo" objecttype because I can change the type to "cargo" and it suddenly works - and like I said, using an objecttypes tbm to add "Scannable: YES" to the "capital" objecttype does nothing.

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Can't scan cargo of a ship unless its objecttype is "cargo"
There is no good workaround.  You need to make your ship class either "cargo" or "transport", or else mess with objecttypes.tbl.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Can't scan cargo of a ship unless its objecttype is "cargo"
or else mess with objecttypes.tbl.

using an objecttypes tbm to add "Scannable: YES" to the "capital" objecttype does nothing.
This gives the impression that perhaps the objecttypes setting may be broken/behaviour is hardcoded?
(´・ω・`)
=============================================================

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Can't scan cargo of a ship unless its objecttype is "cargo"
yeah it's hardcoded. I found in a poast that there's a bunch of objecttypes options such as "$Allow Checking Cargo:" (which I assume is what I want), but when I added "$Allow Checking Cargo: YES" the parser complained, so it hasn't been implemented. Looks like antipodes 10 will be The Big Objecttypes Update which is when I imagine all this stuff will be added.

Droid: "scannable" probably does something slightly different than "allow checking cargo" because scanning and checking cargo technically are two different things. idk, FS is weird. Dunno why this is even an objecttypes flag when it could be controlled entirely from within FRED.

 

Offline Wobble73

  • 210
  • Reality is for people with no imagination
    • Steam
Re: Can't scan cargo of a ship unless its objecttype is "cargo"
"scannable" and "allow Checking Cargo" are probably different as you can normally scan subsystems?
Who is General Failure and why is he reading my hard disk?
Early bird gets the worm, but the second mouse gets the cheese
Ambition is a poor excuse for not having enough sense to be lazy.
 
Member of the Scooby Doo Fanclub. And we're not talking a cartoon dog here people!!

 You would be well adviced to question the wisdom of older forumites, we all have our preferences and perversions

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Can't scan cargo of a ship unless its objecttype is "cargo"
Yes, that's what I just said.

 

Offline Wobble73

  • 210
  • Reality is for people with no imagination
    • Steam
Re: Can't scan cargo of a ship unless its objecttype is "cargo"
I was trying to point out why they are different.
Who is General Failure and why is he reading my hard disk?
Early bird gets the worm, but the second mouse gets the cheese
Ambition is a poor excuse for not having enough sense to be lazy.
 
Member of the Scooby Doo Fanclub. And we're not talking a cartoon dog here people!!

 You would be well adviced to question the wisdom of older forumites, we all have our preferences and perversions

  

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Can't scan cargo of a ship unless its objecttype is "cargo"
You can normally "scan" ships too but it won't reveal its cargo - will just say "scanned", instead of showing cargo - whatever.
Yeah.
(´・ω・`)
=============================================================