Skip to content

decompiler presents the error "location 'loc_HEX' not found at filename" in certain cases when decompiling t7 scripts #259

@Hadi77KSA

Description

@Hadi77KSA

Hello! I've come across the error stated in the title while trying to decompile the following scripts:

  • core_patch.ff/scripts/shared/challenges_shared.gscc
  • mp_patch.ff/scripts/mp/killstreaks/_helicopter.gscc
  • zm_genesis_patch.ff/scripts/zm/_zm_weap_ball.gscc
  • zm_patch.ff/scripts/zm/_zm_traps.gscc
  • zm_stalingrad_patch.ff/scripts/zm/zm_stalingrad_dragon.gscc

I only tested with the Windows x64 binary.

Here are small snippets of code I believe resemble the cases from those scripts, which I've attempted to decompile with gsc-tool but also faced the same error:

core_patch.ff/scripts/shared/challenges_shared.gscc and zm_genesis_patch.ff/scripts/zm/_zm_weap_ball.gscc

function func1( bool1, bool2 )
{
	if ( bool1 )
	{
		if ( bool2 )
		{
			break;
		}
	}

	var1 = undefined;
}

mp_patch.ff/scripts/mp/killstreaks/_helicopter.gscc and zm_stalingrad_patch.ff/scripts/zm/zm_stalingrad_dragon.gscc

function func2( var1, var2 )
{
	switch ( var1 )
	{
		case 1:
			break;
		case 2:
			if ( isdefined( var2 ) )
			{
				switch ( var2 )
				{}
			}
			else
			{}

			break;
	}
}

zm_patch.ff/scripts/zm/_zm_traps.gscc

function func3( bool1, bool2, var1 )
{
	while ( true )
	{
		if ( bool1 )
		{
			if ( bool2 )
			{
				break;
			}
			else
			{
				switch ( var1 )
				{}
			}
		}
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions