MelonGuns's Forum Posts

  • Ashley

    Ok, the exception is as follows:

    ----------------------------------------------------------------------------------

    Assertion failure: Calling expvalue.set_string without string type

    Stack trace:

    assert2@http://localhost:50000/preview_prelude.js:12

    ExpValue.prototype.set_string@http://localhost:50000/expressions.js:778

    Exps.prototype.ErrorMsg@http://localhost:50000/C2WebSocket_plugin.js:172

    ExpNode.prototype.eval_object_behavior_exp@http://localhost:50000/expressions.js:319

    ExpNode.prototype.eval_and@http://localhost:50000/expressions.js:550

    Parameter.prototype.get_exp@http://localhost:50000/eveng.js:1464

    Action.prototype.run_object@http://localhost:50000/eveng.js:1277

    EventBlock.prototype.run_actions_and_subevents@http://localhost:50000/eveng.js:694

    EventBlock.prototype.run@http://localhost:50000/eveng.js:662

    Runtime.prototype.executeSingleTrigger@http://localhost:50000/preview.js:3186

    Runtime.prototype.triggerOnSheetForTypeName@http://localhost:50000/preview.js:3105

    Runtime.prototype.triggerOnSheet@http://localhost:50000/preview.js:3038

    Runtime.prototype.trigger@http://localhost:50000/preview.js:3002

    ://localhost:50000/C2WebSocket_plugin.js:134

    ----------------------------------------------------------------------------------

    Do you have any idea?

    My ws server is 127.0.0.1:8080

    So My ws connect to phrase is :

    URL :"ws://127.0.0.1"

    protocol: "8080"

  • rexrainbow

    I am faced with a websocket problem, too;

    When I try to connect the websocket-server, an error comes up:

    "Assertion failure: Calling expvalue.set_string without string type"

    and connection failed.

    But the websocket-server have no problems, since I can connect to it with a HTML page.

    My websocket connection action is as follows:

    URL: "ws//:xxxx.xxxx.xxxx.xxxx"(my ip address)

    Protocol(optional):"10000"

    Can you help me with it? My C2 version is r125

    Thank you in advance!

  • Ashley

    I am faced with a websocket problem, too;

    When I try to connect the websocket-server, an error comes up:

    "Assertion failure: Calling expvalue.set_string without string type"

    and connection failed.

    But the websocket-server have no problems, since I can connect to it with a HTML page.

    My websocket connection action is as follows:

    URL: "ws//:xxxx.xxxx.xxxx.xxxx"(my ip address)

    Protocol(optional):"10000"

    Can you help me with it? My C2 version is r125

    Thank you in advance!

  • rexrainbow

    I use this "int(RandomGen.random)%3+1" value to set a variable, but why I always get 1?

    And I also set seed with "wallclocktime"

  • rexrainbow

    Thank you! It really works!

    I just wrongly mistook used this method before...I was thinking it would choose the topest instance on the layout!

    Thank you again!

  • Hello! I have met a problem of overlapping, too.

    Here is my problem ...

    I have a sprite--Poker , there are five instances of Poker and they stand by a line , some part of one instance is overlapping to another . There is an event: if I touch one instance, it should move to another place. But when I touch the area which is just the area where the two Pokers overlap, the two cards both move. I just want the Poker on the top move.

  • I'm very confused . I've put the .json file into the folder of Index.html on the server, and invoked the method LoadJSON.GetData("first",0) and set this value to a text. But the text is NOT FOUNDING ...

    Here is my JSON file's content

    {

         "first":["3"],

         "second":["1"],

         "third":["2"]

    }

    Please tell me where is wrong ...

    THx!

  • rexrainbow

    Can the Sprite's frame be changed in the injected JS function?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • rexrainbow

    I got it, thank you!

  • rexrainbow

    How can I get the definite object instance by UID ?

    e.g. There are three Card object instances whose UID are 7,8,9 ,and I want to get the instance whose UID is 9 , and change its location . How can I get the instance?

  • rexrainbow

    <img src="smileys/smiley11.gif" border="0" align="middle" /> I don't not understand ... Can you give me a screen shortcut?

    And I don't know the condition "pick by UID" ,either . Can I give a instance of some Object type a specific UID when I create it?

    And I even don't know the difference between action and condition.Can you tell me ?

    This is the first time for me to write a project without codes... And I'm just begin to use this game engine, so I've no idea about a lot of things...

  • rexrainbow

    But how can I get the instance poped from the instGroup?

  • rexrainbow

    I'm so sorry to bother you again and again...

    If I want to add some Object's instances ,how to do it? And how to give them UID?

    And if I pop an item from a instGroup ,how can I get this Instance? Does it exits a method of the property to get Instance's text or something else so that I can print them out ?

  • rexrainbow

    oh!~I see..."eat" is both a rule name and a output value !!! THX!!! <img src="smileys/smiley12.gif" border="0" align="middle" />

  • rexrainbow

    hello, I'm back again...

    I don't understand what the method "add rule" means... I know it's a logic, but I don't know the two parameters of it( Rule, Expression).

    Such as this rule: Add rule "eat" <- Fuzzy.AND("stomach",Fuzzy.OR("hp","-hp"))

    "eat" is a rule and "<- Fuzzy.AND("stomach",Fuzzy.OR("hp","-hp"))" is a expression.

    Both Fuzzy.AND(...) and Fuzzy.OR(...) return a value, right? But who receives this value? Is it "eat"? Is "eat" a variable, too? ...

    I'm completely confused...