openmoh / openmohaa

Open re-implementation of Medal of Honor: Allied Assault including Spearhead and Breakthrough expansions with modern features and bugfixes from ioquake3 with cross-platform support
https://www.openmohaa.org
GNU General Public License v2.0
378 stars 25 forks source link

(AA - Vietnam Total Conversion) CTF script errors #504

Closed bulldozerecske closed 3 weeks ago

bulldozerecske commented 3 weeks ago

The console shows a lot of script errors and the HUD doesn't show the actual number of captured flags.

Ӿѳm^~^~^ Script Error : Cannot cast 'none' to listener

(global/ctf.scr, 399):
// NO ONE EXCEPT THE CREATOR HAS PERMISSION TO MODIFY THIS FILE!

// CAPTURE THE FLAG FOR VIETNAM

// CREATED BY PHIL{SFX}

// WWW.MODS-R-US.NET

main:

       println "Running nam_ctf"

       thread zero

end

zero:

local.bsp = getcvar "mapname"

        switch ( local.bsp ) 

                             {

                               case "obj/mv_ctf_beachplace":

                               thread one

                                      thread two

                                             thread three

                                                    thread four

                                                           thread five

                                                                  thread six

                                                                         thread seven

                                                                                 thread eight 

                                                                    level.allied = 2

                                                              level.axis = 2

                                                       level.alliedpoints = 0

                                               level.axispoints = 0

                                                                        break

                          default:       

                          println "Map for CTF found"

                                                                         break

                                                                       }  

                                                                end

one: 

$flag1a_spawn1 disablespawn

        $flag1a_spawn2 disablespawn

               $flag1a_spawn3 disablespawn

                       $flag1a_spawn4 disablespawn

                               $flag1a_spawn5 disablespawn

                                      $flag1a_spawn6 disablespawn

                              $flag1a hide

                       $flag1g show

               $flag1g light 1 0 0 100

        $flag1g lighton

                level.doneb = 1

        local.flag1_trigger = spawn trigger_use "targetname" "flag1_trigger"

                $flag1_trigger.origin = ( -5133 1433 312 ) 

                       $flag1_trigger.angles = ( 0 0 0 )

                               $flag1_trigger setsize ( -40 -40 -40 ) ( 40 40 92 )

                                     $flag1_trigger setthread n1  

                                                                                  end

n1:

local.soldier = parm.other

        if ((local.soldier.dmteam=="allies") && (level.donea!=1))  

                                            {

                                              $flag1g lightoff

                                                      $flag1g hide

                                                              $flag1a show

                                                                      $flag1a light 0 0 1 100

                                                                              $flag1a lighton

                                                                      level.allied++

                                                                              level.axis--

                                                                           level.donea = 1

                                                                           level.doneb = 0       

                                                               $flag1a_spawn1 enablespawn

                                                       $flag1a_spawn2 enablespawn

                                     $flag1a_spawn3 enablespawn

                   $flag1a_spawn4 enablespawn

                           $flag1a_spawn5 enablespawn

                                   $flag1a_spawn6 enablespawn

                                           $flag1g_spawn1 disablespawn

                                                  $flag1g_spawn2 disablespawn

Ӿѳm^~^~^ Script Error : Cannot cast 'none' to listener

(global/ctf.scr, 416):
               huddraw_color 187 local.r local.g local.b 
               ^
^~^~^ Script Error : Cannot cast 'none' to float

Couldn't find image for shader none
(global/ctf.scr, 395):
  thread hudprint1 ("Allied-flags: " + (level.allied) + " --- Axis-flags: " + (level.axis)) .75 .65 .1
  thread hudprint1 ("Allied-flags: " + (level.allied) + " --- Axis-flags: " + (level.axis)) .^
^~^~^ Script Error : Field '75' applied to NULL listener

(global/ctf.scr, 395):
// NO ONE EXCEPT THE CREATOR HAS PERMISSION TO MODIFY THIS FILE!

// CAPTURE THE FLAG FOR VIETNAM

// CREATED BY PHIL{SFX}

// WWW.MODS-R-US.NET

main:

       println "Running nam_ctf"

       thread zero

end

zero:

local.bsp = getcvar "mapname"

        switch ( local.bsp ) 

                             {

                               case "obj/mv_ctf_beachplace":

                               thread one

                                      thread two

                                             thread three

                                                    thread four

                                                           thread five

                                                                  thread six

                                                                         thread seven

                                                                                 thread eight 

                                                                    level.allied = 2

                                                              level.axis = 2

                                                       level.alliedpoints = 0

                                               level.axispoints = 0

                                                                        break

                          default:       

                          println "Map for CTF found"

                                                                         break

                                                                       }  

                                                                end

one: 

$flag1a_spawn1 disablespawn

        $flag1a_spawn2 disablespawn

               $flag1a_spawn3 disablespawn

                       $flag1a_spawn4 disablespawn

                               $flag1a_spawn5 disablespawn

                                      $flag1a_spawn6 disablespawn

                              $flag1a hide

                       $flag1g show

               $flag1g light 1 0 0 100

        $flag1g lighton

                level.doneb = 1

        local.flag1_trigger = spawn trigger_use "targetname" "flag1_trigger"

                $flag1_trigger.origin = ( -5133 1433 312 ) 

                       $flag1_trigger.angles = ( 0 0 0 )

                               $flag1_trigger setsize ( -40 -40 -40 ) ( 40 40 92 )

                                     $flag1_trigger setthread n1  

                                                                                  end

n1:

local.soldier = parm.other

        if ((local.soldier.dmteam=="allies") && (level.donea!=1))  

                                            {

                                              $flag1g lightoff

                                                      $flag1g hide

                                                              $flag1a show

                                                                      $flag1a light 0 0 1 100

                                                                              $flag1a lighton

                                                                      level.allied++

                                                                              level.axis--

                                                                           level.donea = 1

                                                                           level.doneb = 0       

                                                               $flag1a_spawn1 enablespawn

                                                       $flag1a_spawn2 enablespawn

                                     $flag1a_spawn3 enablespawn

                   $flag1a_spawn4 enablespawn

                           $flag1a_spawn5 enablespawn

                                   $flag1a_spawn6 enablespawn

                                           $flag1g_spawn1 disablespawn

                                                  $flag1g_spawn2 disablespawn

Ӿѳm^~^~^ Script Error : Cannot cast 'none' to listener

(global/ctf.scr, 395):
// NO ONE EXCEPT THE CREATOR HAS PERMISSION TO MODIFY THIS FILE!

// CAPTURE THE FLAG FOR VIETNAM

// CREATED BY PHIL{SFX}

// WWW.MODS-R-US.NET

main:

       println "Running nam_ctf"

       thread zero

end

zero:

local.bsp = getcvar "mapname"

        switch ( local.bsp ) 

                             {

                               case "obj/mv_ctf_beachplace":

                               thread one

                                      thread two

                                             thread three

                                                    thread four

                                                           thread five

                                                                  thread six

                                                                         thread seven

                                                                                 thread eight 

                                                                    level.allied = 2

                                                              level.axis = 2

                                                       level.alliedpoints = 0

                                               level.axispoints = 0

                                                                        break

                          default:       

                          println "Map for CTF found"

                                                                         break

                                                                       }  

                                                                end

one: 

$flag1a_spawn1 disablespawn

        $flag1a_spawn2 disablespawn

               $flag1a_spawn3 disablespawn

                       $flag1a_spawn4 disablespawn

                               $flag1a_spawn5 disablespawn

                                      $flag1a_spawn6 disablespawn

                              $flag1a hide

                       $flag1g show

               $flag1g light 1 0 0 100

        $flag1g lighton

                level.doneb = 1

        local.flag1_trigger = spawn trigger_use "targetname" "flag1_trigger"

                $flag1_trigger.origin = ( -5133 1433 312 ) 

                       $flag1_trigger.angles = ( 0 0 0 )

                               $flag1_trigger setsize ( -40 -40 -40 ) ( 40 40 92 )

                                     $flag1_trigger setthread n1  

                                                                                  end

n1:

local.soldier = parm.other

        if ((local.soldier.dmteam=="allies") && (level.donea!=1))  

                                            {

                                              $flag1g lightoff

                                                      $flag1g hide

                                                              $flag1a show

                                                                      $flag1a light 0 0 1 100

                                                                              $flag1a lighton

                                                                      level.allied++

                                                                              level.axis--

                                                                           level.donea = 1

                                                                           level.doneb = 0       

                                                               $flag1a_spawn1 enablespawn

                                                       $flag1a_spawn2 enablespawn

                                     $flag1a_spawn3 enablespawn

                   $flag1a_spawn4 enablespawn

                           $flag1a_spawn5 enablespawn

                                   $flag1a_spawn6 enablespawn

                                           $flag1g_spawn1 disablespawn

                                                  $flag1g_spawn2 disablespawn

Ӿѳm^~^~^ Script Error : Cannot cast 'none' to listener

(global/ctf.scr, 407):
                huddraw_color 187 local.r local.g local.b 
                ^
^~^~^ Script Error : Cannot cast 'none' to float

WeaponClassNameToNum: Unknown Weapon class Hi-standard silenced
Warning: Couldn't find view model animation colt45_charge
(global/ctf.scr, 399):
  thread hudprint2 ("Allied-points: " + (level.alliedpoints) + " --- Axis-points: " + (level.axispoints)) .75 .65 .1
  thread hudprint2 ("Allied-points: " + (level.alliedpoints) + " --- Axis-points: " + (level.axispoints)) .^
^~^~^ Script Error : Field '75' applied to NULL listener

(global/ctf.scr, 399):
// NO ONE EXCEPT THE CREATOR HAS PERMISSION TO MODIFY THIS FILE!

// CAPTURE THE FLAG FOR VIETNAM

// CREATED BY PHIL{SFX}

// WWW.MODS-R-US.NET

main:

       println "Running nam_ctf"

       thread zero

end

zero:

local.bsp = getcvar "mapname"

        switch ( local.bsp ) 

                             {

                               case "obj/mv_ctf_beachplace":

                               thread one

                                      thread two

                                             thread three

                                                    thread four

                                                           thread five

                                                                  thread six

                                                                         thread seven

                                                                                 thread eight 

                                                                    level.allied = 2

                                                              level.axis = 2

                                                       level.alliedpoints = 0

                                               level.axispoints = 0

                                                                        break

                          default:       

                          println "Map for CTF found"

                                                                         break

                                                                       }  

                                                                end

one: 

$flag1a_spawn1 disablespawn

        $flag1a_spawn2 disablespawn

               $flag1a_spawn3 disablespawn

                       $flag1a_spawn4 disablespawn

                               $flag1a_spawn5 disablespawn

                                      $flag1a_spawn6 disablespawn

                              $flag1a hide

                       $flag1g show

               $flag1g light 1 0 0 100

        $flag1g lighton

                level.doneb = 1

        local.flag1_trigger = spawn trigger_use "targetname" "flag1_trigger"

                $flag1_trigger.origin = ( -5133 1433 312 ) 

                       $flag1_trigger.angles = ( 0 0 0 )

                               $flag1_trigger setsize ( -40 -40 -40 ) ( 40 40 92 )

                                     $flag1_trigger setthread n1  

                                                                                  end

n1:

local.soldier = parm.other

        if ((local.soldier.dmteam=="allies") && (level.donea!=1))  

                                            {

                                              $flag1g lightoff

                                                      $flag1g hide

                                                              $flag1a show

                                                                      $flag1a light 0 0 1 100

                                                                              $flag1a lighton

                                                                      level.allied++

                                                                              level.axis--

                                                                           level.donea = 1

                                                                           level.doneb = 0       

                                                               $flag1a_spawn1 enablespawn

                                                       $flag1a_spawn2 enablespawn

                                     $flag1a_spawn3 enablespawn

                   $flag1a_spawn4 enablespawn

                           $flag1a_spawn5 enablespawn

                                   $flag1a_spawn6 enablespawn

                                           $flag1g_spawn1 disablespawn

                                                  $flag1g_spawn2 disablespawn

Ӿѳm^~^~^ Script Error : Cannot cast 'none' to listener

(global/ctf.scr, 399):
// NO ONE EXCEPT THE CREATOR HAS PERMISSION TO MODIFY THIS FILE!

// CAPTURE THE FLAG FOR VIETNAM

// CREATED BY PHIL{SFX}

// WWW.MODS-R-US.NET

main:

       println "Running nam_ctf"

       thread zero

end

zero:

local.bsp = getcvar "mapname"

        switch ( local.bsp ) 

                             {

                               case "obj/mv_ctf_beachplace":

                               thread one

                                      thread two

                                             thread three

                                                    thread four

                                                           thread five

                                                                  thread six

                                                                         thread seven

                                                                                 thread eight 

                                                                    level.allied = 2

                                                              level.axis = 2

                                                       level.alliedpoints = 0

                                               level.axispoints = 0

                                                                        break

                          default:       

                          println "Map for CTF found"

                                                                         break

                                                                       }  

                                                                end

one: 

$flag1a_spawn1 disablespawn

        $flag1a_spawn2 disablespawn

               $flag1a_spawn3 disablespawn

                       $flag1a_spawn4 disablespawn

                               $flag1a_spawn5 disablespawn

                                      $flag1a_spawn6 disablespawn

                              $flag1a hide

                       $flag1g show

               $flag1g light 1 0 0 100

        $flag1g lighton

                level.doneb = 1

        local.flag1_trigger = spawn trigger_use "targetname" "flag1_trigger"

                $flag1_trigger.origin = ( -5133 1433 312 ) 

                       $flag1_trigger.angles = ( 0 0 0 )

                               $flag1_trigger setsize ( -40 -40 -40 ) ( 40 40 92 )

                                     $flag1_trigger setthread n1  

                                                                                  end

n1:

local.soldier = parm.other

        if ((local.soldier.dmteam=="allies") && (level.donea!=1))  

                                            {

                                              $flag1g lightoff

                                                      $flag1g hide

                                                              $flag1a show

                                                                      $flag1a light 0 0 1 100

                                                                              $flag1a lighton

                                                                      level.allied++

                                                                              level.axis--

                                                                           level.donea = 1

                                                                           level.doneb = 0       

                                                               $flag1a_spawn1 enablespawn

                                                       $flag1a_spawn2 enablespawn

                                     $flag1a_spawn3 enablespawn

                   $flag1a_spawn4 enablespawn

                           $flag1a_spawn5 enablespawn

                                   $flag1a_spawn6 enablespawn

                                           $flag1g_spawn1 disablespawn

                                                  $flag1g_spawn2 disablespawn

Ӿѳm^~^~^ Script Error : Cannot cast 'none' to listener

(global/ctf.scr, 416):
               huddraw_color 187 local.r local.g local.b 
               ^
^~^~^ Script Error : Cannot cast 'none' to float

Version: OpenMoHAA 0.80.0-unstable+239.5ba6c00 win_msvc64-x86_64 Oct 29 2024 UTC

smallmodel commented 3 weeks ago

Should be fixed by commit 4853235d86d71dd7679ce5723ef3673535676a8c, the issue doesn't seem to occur anymore