0 Favourites

Multiplayer Function

  • Problem Description

    It seems that using Multiplayer peer states for number comparisons seems to cause an error.

    I also tried turning them into local variables first, which resulted in the same problem.

    This happened to me in preview mode. (Using LAN preview)

    Description of Capx

    It's an altered version of the Multiplayer game example.

    I only changed the game name global variable and added groups of events under "Host" and "Peer", which are called "Bug Testing Host" and "Bug Testing Peer"

    Capx Link

    Steps to Reproduce Bug

    • Have a peer send an input state
    • Use the input state in a comparison (such as "Compare two values")

    Observed Result

    After the error appears the event that seemingly caused it couldn't fire, causing the the player not to move to the X100 coordinate.

    Expected Result

    The peer should move to the X coordinate it sends while holding RMB, which is 100.

    Affected Browsers

    • FireFox: (YES) (V. 60.0 64Bit)
    • Others not tested

    Operating System and Service Pack

    Windows 7 Enterprise 64bit Service Pack 1

    Construct 2 Version ID

    Beta r258 64bit on Windows

  • After the error appears

    What error is that? What exactly are you seeing? Please be as specific as possible, otherwise it's difficult to investigate reports.

  • Oh yes, I forgot to copy the error message in here. Sorry about that, I wrote that post right before going to bed after trying to find what causes it.

    Here it is:

    Assertion failure: Calling expvalue.set_float without number type

    Stack trace:

    assert2http://192.168.178.49:50000/preview_prelude.js:16:10

    ExpValue.prototype.set_floathttp://192.168.178.49:50000/expressions.js:898:3

    Exps.prototype.PeerStatehttp://192.168.178.49:50000/Multiplayer_plugin.js:1678:3

    ExpNode.prototype.eval_object_exphttp://192.168.178.49:50000/expressions.js:347:22

    Parameter.prototype.get_exphttp://192.168.178.49:50000/eveng.js:2059:3

    Condition.prototype.run_systemhttp://192.168.178.49:50000/eveng.js:1262:22

    EventBlock.prototype.runhttp://192.168.178.49:50000/eveng.js:868:18

    EventBlock.prototype.run_subeventshttp://192.168.178.49:50000/eveng.js:996:5

    EventBlock.prototype.run_actions_and_subeventshttp://192.168.178.49:50000/eveng.js:935:3

    EventBlock.prototype.runhttp://192.168.178.49:50000/eveng.js:888:4

    EventBlock.prototype.run_subeventshttp://192.168.178.49:50000/eveng.js:996:5

    EventBlock.prototype.run_actions_and_subeventshttp://192.168.178.49:50000/eveng.js:935:3

    EventBlock.prototype.runhttp://192.168.178.49:50000/eveng.js:888:4

    EventBlock.prototype.run_subeventshttp://192.168.178.49:50000/eveng.js:996:5

    EventBlock.prototype.run_actions_and_subeventshttp://192.168.178.49:50000/eveng.js:935:3

    EventBlock.prototype.runhttp://192.168.178.49:50000/eveng.js:888:4

    EventSheet.prototype.runhttp://192.168.178.49:50000/eveng.js:224:4

    Runtime.prototype.logichttp://192.168.178.49:50000/preview.js:2663:4

    Runtime.prototype.tickhttp://192.168.178.49:50000/preview.js:2350:3

    Runtime.prototype.initRendererAndLoader/this.tickFunchttp://192.168.178.49:50000/preview.js:658:42

    Subsequent failures will now be logged to the console.

  • The issue has been solved.

    I forgot to add the corresponding client input value tags. My bad.

    Sorry for the false report.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • It's still a bug. It should at least return an empty value rather than show that error.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)