Godotsteam: Getting Scons error, TypeError: can_build() takes exactly 2 arguments..

Created on 30 Nov 2018  路  10Comments  路  Source: Gramps/GodotSteam

error1

This is on windows and compiled with the VS2017 command prompt. Followed the instructions for Godot 2.1. I've played around with the function on line 372 to no avail.

compiling windows

All 10 comments

Hey there! Won't be able to test this until later today but wanted to touch base.

What version of Godot are you using? The command line as you have it should work. The config.py file looks normal too.

Did you try it with bits=64? Shouldn't be necessary with the VS command prompt though.

Are you putting seamworks api in the folder?

yay guys I got it to compile after deleting the godotsteam module folder, clearing files in the bin folder and redoing the steps.

I've also moved the steam_api dll into the bin folder after compiling. Now the problem is I'm not sure I'm seeing the Steam functions in gdscript, any tips?

Nice. Glad its working!

You should be able to call Steam in script and it should autocomplete functions.

I believe Steam functionality is in the engine documents if you search for it.

Ok I'm seeing my custom C++ class in gdscript, so steam must be somewhere in there as well. Thanks guys.

No problem! Holler if you get stuck somewhere or find a bug!

Silly me, turns out I didn't fix the problem when I closed the issue, I just accidentally copied over the whole Godotsteam-master folder, instead of the godotsteam sub folder that contains the SCsub file etc for Scons.

Good news is I really got it to compile this time by changing the first line of config.py
def can_build(env, platform): to
def can_build(platform):
removing the "env" argument.

Not sure if this hack breaks anything, but now I can see the Steam functions in script and even got the Steam notification/popup thingy to appear, nice. Feel free to close this issue, here to say thanks again.

Haha, glad it is actually working this time!

Yeah, I'm not sure the env variable in that function does anything. It is clearly not used within the function but I've also never seen the error you had. It should be fine... and perhaps I should change that function.

And welcome!

This error is also affecting the Godot 3.0 version, where it hasn't been fixed yet.

What are you compiling with? Just curious as I never see that error.

Also, it is now fixed with this push just now!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

LikeLakers2 picture LikeLakers2  路  3Comments

yeonghoey picture yeonghoey  路  4Comments

avencherus picture avencherus  路  9Comments

johnnyvf24 picture johnnyvf24  路  12Comments

mthnzbk picture mthnzbk  路  7Comments