JourneyMaterialsDebug: Difference between revisions
From Dune Awakening DB
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- Find actual column names --> | ||
<div style="background: #333; border: 2px solid yellow; padding: 15px; color: white;"> | <div style="background: #333; border: 2px solid yellow; padding: 15px; color: white;"> | ||
<h3>Finding | <h3>Finding Actual Column Names</h3> | ||
<h4>1. Journey | <h4>1. All Journey Task Components:</h4> | ||
{{#get_external_data:source=externaldb | {{#get_external_data:source=externaldb | ||
|from=data_journey_task_components | |from=data_journey_task_components | ||
|data=task_id=task_id, | |data=task_id=task_id,component_name=component_name | ||
|limit=5 | |limit=5 | ||
}} | }} | ||
{{#for_external_table:| | {{#for_external_table:| | ||
Task: {{{task_id}}}, | Task ID: {{{task_id}}}, Component: {{{component_name}}}<br/> | ||
}} | }} | ||
<h4> | <h4>2. Components for Tasks in Journey {{{id|{{{1|}}}}}}:</h4> | ||
{{#get_external_data:source=externaldb | {{#get_external_data:source=externaldb | ||
|from=data_journey_task_components | |from=data_journey_task_components | ||
|join on=data_journey_tasks.id=data_journey_task_components.task_id,data_journey_objectives.id=data_journey_tasks.objective_id | |join on=data_journey_tasks.id=data_journey_task_components.task_id,data_journey_objectives.id=data_journey_tasks.objective_id | ||
|data= | |data=component=data_journey_task_components.component_name | ||
|where=data_journey_objectives.journey_id={{{id|{{{1|}}}}}} | |where=data_journey_objectives.journey_id={{{id|{{{1|}}}}}} | ||
}} | }} | ||
Components needed for this journey: {{#for_external_table:|{{{component}}} | }} | |||
<h4> | <h4>3. Check if any components match recipe view items:</h4> | ||
{{#get_external_data:source=externaldb | {{#get_external_data:source=externaldb | ||
|from=vw_recipe_inputs_by_level | |from=vw_recipe_inputs_by_level | ||
|data=root_item=root_item, | |data=root_item=root_item,internal_name=internal_name | ||
|limit= | |where=root_item IN ('Advanced_SurvivalFabricator_Placeable','T5DeepDesertShieldWallComponent','T2MachineComponent') | ||
|limit=10 | |||
}} | }} | ||
{{#for_external_table:| | {{#for_external_table:| | ||
{{{root_item}}} | Root: {{{root_item}}}, Internal: {{{internal_name}}}<br/> | ||
}} | }} | ||
</div> | </div> | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
This finds the | This finds the actual column names in the tables. | ||
Usage: <nowiki>{{ | Usage: <nowiki>{{JourneyMaterialsDebug3|id=4}}</nowiki> | ||
</noinclude> | </noinclude> | ||
Revision as of 14:00, 31 May 2025
This finds the actual column names in the tables.
Usage: {{JourneyMaterialsDebug3|id=4}}
