Feature #3714

QueryAddons.exe autodetect if pbo is mission/addon/campaign

Added by Yoma about 6 years ago. Updated about 6 years ago.

Status:Closed Start date:08/17/2009
Priority:Normal Due date:
Assignee:mikero % Done:

0%

Category:QueryAddons (Dos Tools)
Target version:Completed
Affected Version:

Description

Would it be possible to do this and change output accordingly?
This way i wouldn't have to try to use different commandline options on different files (which depends heavily upon file naming/location).

History

Updated by mikero about 6 years ago

  • Category set to QueryAddons (Dos Tools)
  • Status changed from New to Feedback
  • Assignee set to mikero

I have altered the text to read ':Mission Addons:' ':Campaign Addons:' or ':Addon Addons:' respectively. is this enough?

Updated by mikero about 6 years ago

  • Target version set to Completed

Updated by kju about 6 years ago

xxx

Updated by kju about 6 years ago

The CL doesn't mention it either - not yet released?

+1.53
+provided err status on bad pbo
+fixed utf8 failure via the dll

Updated by kju about 6 years ago

My fault.. its out already :)

Updated by kju about 6 years ago

1 T:\pbodll>QueryAddons.exe "P:\missions\Ambush%20Convoy.Chernarus\mission.sqm" 2 QueryAddons.exe Version 1.54, Dll Version 2.38 3 :Mission Addons 4 ... 5 6 T:\pbodll>QueryAddons.exe P:\campaigns\PMC_Chernarus_cmp.pbo 7 QueryAddons.exe Version 1.54, Dll Version 2.38 8 :Mission Addons 9 ... 10 11 T:\pbodll>QueryAddons.exe P:\campaigns\OTK.pbo 12 QueryAddons.exe Version 1.54, Dll Version 2.38 13 :Campaign Addons: 14 ...

The PMC_Chernarus_cmp.pbo campaign of SM seems to be faulty.
What are you checking to determine if its a campaign mikero?

Updated by mikero about 6 years ago

kju wrote:

The PMC_Chernarus_cmp.pbo campaign of SM seems to be faulty.
What are you checking to determine if its a campaign mikero?

the fact that i encounter more than one mission.sqm in the pbo

I could, detect the embedded folder but above seems good enuff

Updated by Yoma about 6 years ago

It's a minor detail but it outputs
":Mission Addons"
instead of
":Mission Addons:"
What i'll be doing for my tool is provide an extra field "Type" inside the AddonsDetail table
//0=:Addon Addons:
//1=:Mission Addons
//2=:Campaign Addons:
This should improve query possibilites later on :-)
Thanks for coding this in.

Updated by Yoma about 6 years ago

Would there be a way of detecting an addon is an island too?

Updated by kju about 6 years ago

class cfgWorlds would give a good indication.

Updated by mikero about 6 years ago

  • Status changed from Feedback to Resolved

latest version (1.56) corrects that small typo and detects an :Island Addon: if a wrp file is detected in the folder or pbo. Or the config contains a cfgWorlds

Updated by kju about 6 years ago

Hm does not yet seem to work all the time:

1 T:\pbodll>QueryAddons.exe P:\x\CAA1\addons\w_desert 2 QueryAddons.exe Version 1.56, Dll Version 2.38 3 Addon Addon: 4 5 T:\pbodll>QueryAddons.exe P:\x\CAA1\addons\w_desert2 6 QueryAddons.exe Version 1.56, Dll Version 2.38 7 Addon Addon: 8 9 T:\pbodll>QueryAddons.exe P:\x\CAA1\addons\w_sara 10 QueryAddons.exe Version 1.56, Dll Version 2.38 11 Addon Addon:

These all contain a wrp (no config with cfgWorlds).

1 T:\pbodll>QueryAddons.exe P:\x\CAA1\addons\m_IntroAnims 2 QueryAddons.exe Version 1.56, Dll Version 2.38 3 Addon Addon:

Mission addon with multiple .sqm.

1 T:\pbodll>QueryAddons.exe P:\campaigns\PMC_Chernarus_cmp.pbo 2 QueryAddons.exe Version 1.56, Dll Version 2.38 3 :Mission Addon:

This campaign contains multiple .sqm.

1 T:\pbodll>QueryAddons.exe P:\campaigns\OTK.pbo 2 QueryAddons.exe Version 1.56, Dll Version 2.38 3 :Campaign Addon:

Works fine.

1 T:\pbodll>QueryAddons.exe P:\campaigns\1985 2 QueryAddons.exe Version 1.56, Dll Version 2.38 3 :Mission Addon:

Unpacked campaign with multiple .sqm.

If you need the files, tell me please.

Updated by kju about 6 years ago

It seems for worlds there is a coding error:

1 T:\pbodll>QueryAddons.exe P:\x\CAA1\addons\c_enablePorto 2 QueryAddons.exe Version 1.56, Dll Version 2.38 3 Addon Addon:
Addon Addon:
=>
:Island Addon:

Updated by kju about 6 years ago

  • Status changed from Resolved to Feedback
  • Target version changed from Completed to Work in progress

Updated by SnakeMan about 6 years ago

Please call them now "Terrains" instead of islands, its so out dated OFP thinking.

Updated by mikero about 6 years ago

SnakeMan wrote:

Please call them now "Terrains" instead of islands, its so out dated OFP thinking.

so too are the ridiculous sizes of the 'islands', and so too is the commercial decision to have only one 'texture' instead of several. no-one, so far, has even bothered exploring sara to it's fullest

Updated by mikero about 6 years ago

anyway, how embarrasing

1.57 uploaded

Updated by mikero about 6 years ago

  • Status changed from Feedback to Resolved
  • Target version changed from Work in progress to Completed

1.58 uploaded

Updated by kju about 6 years ago

  • Status changed from Resolved to Closed

works. tx

Also available in: Atom PDF