Jump to content

[FIXED] ERROR: JavaScript error: simulation/components/Player.js line 108


lulo
 Share

Recommended Posts


slawek@slawek-ubuntu:~/Games/0AD/0ad$ ./rebuild.sh
Updating '.':
U binaries/data/mods/public/gui/session/menu.js
U binaries/data/mods/public/gui/session/session.xml
A binaries/data/mods/public/simulation/helpers/Technology.js
U binaries/data/mods/public/simulation/components/Health.js
U binaries/data/mods/public/simulation/components/BuildingAI.js
U binaries/data/mods/public/simulation/components/Cost.js
U binaries/data/mods/public/simulation/components/ResourceGatherer.js
U binaries/data/mods/public/simulation/components/Pack.js
U binaries/data/mods/public/simulation/components/GarrisonHolder.js
U binaries/data/mods/public/simulation/components/Player.js
U binaries/data/mods/public/simulation/components/Armour.js
U binaries/data/mods/public/simulation/components/Attack.js
U binaries/data/mods/public/simulation/components/Heal.js
U binaries/data/mods/public/simulation/components/TerritoryDecay.js
U binaries/data/mods/public/simulation/components/Promotion.js
U binaries/data/mods/public/simulation/components/Builder.js
U binaries/data/mods/public/simulation/components/ProductionQueue.js
U source/soundmanager/items/ISoundItem.h
U source/soundmanager/items/CSoundBase.cpp
U source/soundmanager/items/CSoundBase.h
U source/soundmanager/SoundManager.cpp
U source/simulation2/components/CCmpVisualActor.cpp
Uaktualniono do wersji 13056.
Cleaning bundled third-party dependencies...
Cleaning Premake4
Cleaning Premake4
Cleaning Premake4
Cleaning build output...

Done. Try running update-workspaces.sh again now.
Updating bundled third-party dependencies...
...
...
...
Linking simulation2
ActorViewerTool.cpp
==== Building pyrogenesis (release) ====
Creating obj/pyrogenesis_Release
main.cpp
==== Building test (release) ====
Creating obj/test_Release
precompiled.h
ReplaceTerrain.cpp
TransformObject.cpp
AlterElevation.cpp
FillTerrain.cpp
PaintTerrain.cpp
MiscState.cpp
Brushes.cpp
Linking pyrogenesis
Tools.cpp
ObjectSettings.cpp
test_root.cpp
test_ScriptInterface.cpp
test_ScriptVal.cpp
test_ScriptConversions.cpp
test_Xeromyces.cpp
test_XMLWriter.cpp
test_RelaxNG.cpp
test_XeroXMB.cpp
test_CmdLineArgs.cpp
test_CStr.cpp
test_test.cpp
test_CLogger.cpp
stub_impl_hack.cpp
test_Parser.cpp
Linking AtlasUI
test_FixedVector3D.cpp
test_Random.cpp
test_Sqrt.cpp
test_Matrix3d.cpp
test_Brush.cpp
test_Bound.cpp
test_Fixed.cpp
test_FixedVector2D.cpp
test_MD5.cpp
test_LOSTexture.cpp
test_Color.cpp
==== Building ActorEditor (release) ====
Creating obj/ActorEditor_Release
ActorEditor.cpp
Linking ActorEditor
test_TextureConverter.cpp
test_Terrain.cpp
test_TextureManager.cpp
test_ShaderManager.cpp
test_MeshManager.cpp
test_Net.cpp
test_NetMessage.cpp
test_allocators.cpp
test_headerless.cpp
test_tex.cpp
test_topology.cpp
test_sysdep.cpp
test_printf.cpp
test_rtl.cpp
test_posix.cpp
test_regex.cpp
test_fnv_hash.cpp
test_base32.cpp
test_wchar.cpp
test_adts.cpp
test_rand.cpp
test_path_util.cpp
test_byte_order.cpp
test_secure_crt.cpp
test_path.cpp
test_bits.cpp
test_cache_adt.cpp
test_lib.cpp
test_trace.cpp
test_CommandQueue.cpp
test_RangeManager.cpp
test_ObstructionManager.cpp
test_Position.cpp
test_Pathfinder.cpp
test_scripts.cpp
test_TerritoryManager.cpp
test_ComponentManager.cpp
test_Simulation2.cpp
test_ParamNode.cpp
test_CmpTemplateManager.cpp
test_Serializer.cpp
test_AtlasObjectXML.cpp
precompiled.cpp
test_setup.cpp
In file included from ../../../source/simulation2/tests/test_Serializer.cpp:15:0:
../../../source/simulation2/tests/../../../source/simulation2/tests/test_Serializer.h: In member function 'void TestSerializerPerf::test_hash_DISABLED()':
../../../source/simulation2/tests/../../../source/simulation2/tests/test_Serializer.h:530:3: warning: variable '_qzz_res' set but not used [-Wunused-but-set-variable]
../../../source/simulation2/tests/../../../source/simulation2/tests/test_Serializer.h:537:3: warning: variable '_qzz_res' set but not used [-Wunused-but-set-variable]
Linking test
slawek@slawek-ubuntu:~/Games/0AD/0ad$ binaries/system/test
Running 283 tests................................................................................................................................................................................................................ERROR: JavaScript error: simulation/components/Player.js line 108
ReferenceError: ApplyTechModificationsToPlayer is not defined
()@simulation/components/Player.js:108
()@simulation/components/Player.js:98
()@simulation/components/tests/test_Player.js:6

In TestComponentScripts::test_scripts:
../../../source/pch/test/../../../source/simulation2/components/tests/test_scripts.h:43: Error: Test failed: L"Running script simulation/components/tests/test_Player.js"
../../../source/pch/test/../../../source/simulation2/components/tests/test_scripts.h:43: Error: Assertion failed: scriptInterface.LoadScript(pathname, content)
..........................................................................
Failed 1 of 283 tests
Success rate: 99%
slawek@slawek-ubuntu:~/Games/0AD/0ad$

Edited by lulo
Link to comment
Share on other sites


slawek@slawek-ubuntu:~/Games/0AD/0ad$ ./rebuild.sh
Updating '.':
U binaries/data/mods/public/simulation/components/tests/test_Player.js
Uaktualniono do wersji 13057.
Cleaning bundled third-party dependencies...
Cleaning Premake4
Cleaning Premake4
Cleaning Premake4
Cleaning build output...

Done. Try running update-workspaces.sh again now.
...
...
...
test_AtlasObjectXML.cpp
precompiled.cpp
In file included from ../../../source/simulation2/tests/test_Serializer.cpp:15:0:
../../../source/simulation2/tests/../../../source/simulation2/tests/test_Serializer.h: In member function ‘void TestSerializerPerf::test_hash_DISABLED()’:
../../../source/simulation2/tests/../../../source/simulation2/tests/test_Serializer.h:530:3: warning: variable ‘_qzz_res’ set but not used [-Wunused-but-set-variable]
../../../source/simulation2/tests/../../../source/simulation2/tests/test_Serializer.h:537:3: warning: variable ‘_qzz_res’ set but not used [-Wunused-but-set-variable]
test_setup.cpp
Linking test
slawek@slawek-ubuntu:~/Games/0AD/0ad$ binaries/system/test
Running 283 tests...........................................................................................................................................................................................................................................................................................OK!
slawek@slawek-ubuntu:~/Games/0AD/0ad$

thx...build ok :thank_you2::thumbsup::victory::thumbup::D:blum:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...