Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Error "No matching signatures"
Kanthos Offline
Junior Member

Posts: 48
Threads: 7
Joined: Oct 2015
Reputation: 1
#1
Script Error "No matching signatures"

Hey guys,

the following thing is so basic, yet i can´t solve it: When i want to set variables it won´t work. I get the error message "no matching signatures", so i thought i´m missing an include-file, but couldn´t spot my mistake.

Example code:

_______________________________________________________________________

#include "interfaces/Map_Interface.hps"
#include "base/Inputhandler_Types.hps"


#include "helpers/helper_map.hps"
#include "helpers/helper_props.hps"
#include "helpers/helper_effects.hps"
#include "helpers/helper_audio.hps"
#include "helpers/helper_imgui.hps"
#include "helpers/helper_sequences.hps"
#include "helpers/helper_game.hps"
#include "helpers/helper_modules.hps"
#include "helpers/helper_ai.hps"


...
//nothing special
...

void OnStart()
{
SetLocalVarInt("Var1", 0);


}

...
//nothing special
...

_________________________________________________________________________

Thanks, guys Sad
10-08-2015, 12:22 PM
Find
TiManGames Offline
Senior Member

Posts: 517
Threads: 25
Joined: May 2015
Reputation: 11
#2
RE: Script Error "No matching signatures"

You need to include a missing .hps file.
Maybe it's player.hps, better to look in fg's levels, search the function there and find out what hps file is needed for that function to work.

This forum is dead
(This post was last modified: 10-08-2015, 01:03 PM by TiManGames.)
10-08-2015, 01:03 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: Script Error "No matching signatures"

SetLocalVarInt(); is HPL2 code, thus it will not work.

I believe the substitute in HPL3 is this:
PHP Code: (Select All)
Entity_SetVarInt(const tString&in asEntityName, const tString&in asVarNameint alX);
Entity_GetVarInt(const tString&in asEntityName, const tString&in asVarName); 

I'm not entirely sure, however, if you need to specify an entity to attach the var to. Maybe you can attach it to the Player?

Thanks for this post though, I'll add it to the list of things on the wiki for me and/or others to look in to.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
10-08-2015, 01:16 PM
Find
Kanthos Offline
Junior Member

Posts: 48
Threads: 7
Joined: Oct 2015
Reputation: 1
#4
RE: Script Error "No matching signatures"

Ok, thanks guys.
Knowing it´s the old engines code i can dig into hps files from soma.

Greets!

So. To this specific problem:

The devs initiate/declare variables just like in c++:

int Var1;
string word1 = "spoon";

Hope it helps and greets!
(This post was last modified: 10-08-2015, 03:29 PM by Kanthos.)
10-08-2015, 03:16 PM
Find




Users browsing this thread: 1 Guest(s)