Problems begining tutorial for stand-alone-demo


#1

Hello I am reading the tutorial working with the unreal engine with the demo provided. The first thing it tells you in the tutorial is to put player_pawn.location as a test.
However I get an error:

"ERROR: The coroutine '_location()' does not exist for an instance of the class 'Pawn'.
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
player_pawn._location 
>>>>>>>>>>> --------^ <<<< Line: 1, columns: 13-22
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Script code index: [12-21]"

The confusing part is that if I put the next commands in that tutorial it works, which is this code:

// Make the player go boom
player_pawn._boom

This creates an explosion by the player, so I know there is some communication between the program and the programming area. I searched the error here and could not find it, so I was wondering can someone please help me?


#2

Hey, thanks for trying out SkookumScript!

You made a typo by starting the call with an underscore _location.

However, it turns out that location is also still an error. It should now actually be actor_location.

Quite a lot of the method calls are generated by crawling through the Unreal Engine 4 C++ source code. Occasionally the names of commands change. I think that is what happened here. That tutorial page obviously needs to be updated.

player_pawn returns a Pawn object if you look at the Pawn class in the class browser (Alt+C to search for a class or just Alt+G when the editor insertion point caret is on Pawn) you can see all the many methods that you can call on it. There are tons of other actor_ methods such as actor_rotation.


#3

I am sorry, I still cannot get it to work. I’ve tried all these variants, including the one you said was wrong.
player_pawn._location //does not work, as clarified in this thread
player_pawn.location //also does not work as mentioned
player_pawn.actor_location //this does not work
player_pawn._actor_location //does not work

Am I missing something?


#4

Please don’t be sorry. This stuff can sometimes be tricky to initially get up and running.

Are you running these tests in the SkookumDemo or another project? It sounds like you are or the player_pawn._boom wouldn’t work. You get the sound for this and the explosion fades away?

Which version of UE4 are you running?

The command to get the player position is:

player_pawn.actor_location

When I place the editor caret on that line and press F4 it prints out:

(770, -345, 322.25)

If you press Alt + G on “actor_location” does it pop to where that method is defined in the SkookumIDE browser?


#5

In the status at the bottom of your SkookumIDE how many classes, methods, etc are defined? (You can select it and copy it to the clipboard.)

For me it is:

Classes: 1851 Methods: 4762 Coroutines: 33 Data Members: 7153

(This is the latest bleeding edge stuff so your numbers may be a little different.)


#6

I am using the Skookum demo and following this tutorial: http://skookumscript.com/docs/v3.0/ide/console/workspace/

So I wanted to practice here before attempting to do anything inside
UE4. If you could shed any more light on the situation I would be grateful.


#7

I’m sorry I forgot to mention that I do get an explosion for that command, but no sound.


#8

Make sure the following UE4 editor settings are set and you should hear the sound and things should seem more responsive.

http://skookumscript.com/docs/integrations/ue4plugin/#unreal-editor-settings


#9

When you do the above does it go to that actor_location method or does it bring up a dialog that says “0 Matches”?

Note that instead of typing in the examples on the Workspace (REPL) page, most of the same commands should be present in the workspace pane at the bottom of the SkookumIDE console.


#10

I haven’t really attempted doing this through unreal engine itself, I am using the standalone demo SkookumDemo.exe . Is there no other way to get the sound than opening unreal engine itself? Yes alt-G seems to to work to bring up the IDE window that has names, class/scope/routines/data. On the bottom of my window I have “Classes: 1818 Methods: 4765 Coroutines: 33 Data Members: 7150 Errors: 2” That’s with just one command "player_pawn.actor_location

"


#11

Ah, I see!

I didn’t realize you were using the stand-alone version of the demo - I thought you were running it through the UE4 editor.

Which version of the stand-alone-demo are you running? I will run the same version to see if I get the same issue.

By default the sound is muted when an application is not in focus. We will modify the stand-alone version so that it always plays the sound no matter what in a future update.

What are those 2 errors that you get when you start up? There should be 0 errors. :madsci:


#12

I am using the latest version I beleive since I downloaded it very recently. Its version Standalone Demo Build 239146 . I honestly do not know why I am getting those errors!


#13

I will run it myself to see if I get them too, though can you please paste them here for reference?

Put them between triple back ticks (the tilde key ~ without shift) and it will display it in the forum as code.

This

```
some errors in the log on startup
```

will look like this

some errors in the log on startup

#14

Sorry Noolarch , what did you want me to put or paste? I only have one line of code which is, as of now

player_pawn.actor_location 

Sorry for this hassle!


#15

When you start the stand-alone SkookumDemo, if there are any errors when the SkookumIDE starts up it will display them in read in the log pane (top window) of the SkookumIDE Console. Could you please copy those errors in red and paste them as a new forum message.

Don’t worry about wrapping them with three backticks, I can edit for you after the fact if you like.


#16

I tried running the latest stand-alone SkookumDemo and player_pawn.actor_location seems to work fine. So I am interested in the errors that you are getting when you first run the SkookumIDE.

Maybe erase the SkookumDemo files and re-extract from the .zip that you downloaded?


#17

This is what I get when I restarted the program:

"SkookumScript IDE
Version: 3.0.2391 Beta
Windows PC 64-bit
Copyright (c) 2001-2016 Agog Labs Inc.



SkookumIDE: Prints in italics.
SkookumIDE: Listening for runtime connection on max-alien[192.168.1.15]:12357...

Checking SkookumScript 64-bit code dependencies for compiled binary...
  Compiled binary is stale - script code is newer.
  Switching to source file parsing...

Pre-parsing classes from overlays (highest to lowest #):
  'SkookumDemo': Project\ ...
  'Project-Generated': Project-Generated\ ...
  'Engine': Engine\ ...
  'Engine-Generated': Engine-Generated\ ...
  ...........................................................................
  ...........................................................................
  ...........................................................................

ERROR: A binding must begin with a colon ':'.
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
// Player
//
// UE4 name of this class: Player
player_pawn.location
----------^ <<<< Line: 4, columns: 1-12


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File: E:\downloads\SkookumDemo\Engine\Plugins\SkookumScript\Scripts\Engine-Generated\Object\Entity.Player\!Class.sk-meta[50-61]

  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  'VectorMath': VectorMath\ ...
  'Core': Core\ ...
  ...........................................................................
  ...done!

Pre-parsing code & data members from overlays:
  'SkookumDemo': Project\
  ....................
  'Project-Generated': Project-Generated\
  ................
  'Engine': Engine\
  ...
  'Engine-Generated': Engine-Generated\
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ......................................
  'VectorMath': VectorMath\
  ........
  'Core': Core\
  ...
  ...done!

Parsing code from overlays:
  'SkookumDemo': Project\
  .......
  'Project-Generated': Project-Generated\
  .
  'Engine': Engine\
  .......
  'Engine-Generated': Engine-Generated\
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ..............................................
  'VectorMath': VectorMath\
  ........
  'Core': Core\
  ..................done!



  ######## 1 error ########
Binding with C++ routines...
  ...done!

Script Evaluation enabled.

SkookumScript initializing session...


Creating startup master mind object using class 'SkookumDemo'

Member: SkookumDemo.!() - Startup mind instance constructor called.
Member: Master.!() - Mind instance constructor called.
SkookumIDE: Connected to runtime.
SkookumIDE: Connected max-alien[192.168.1.15]:12357 <- 192.168.1.15:54539
SkookumIDE: Authenticating version...
SkookumIDE: Runtime "SkookumDemo" authenticated!
SkookumScript cleaning up previous project 'E:\downloads\SkookumDemo\SkookumDemo\Scripts\Skookum-project.ini'...
No breakpoints to disable.
SkookumScript loading new project 'E:/downloads/SkookumDemo/SkookumDemo/Scripts/Skookum-project.ini'...
SkookumScript Runtime Info:
  Project name: SkookumDemo
  Project path: E:\downloads\SkookumDemo\SkookumDemo\Scripts\Skookum-project.ini
  Default project path: E:/downloads/SkookumDemo/Engine/Plugins/SkookumScript/Scripts/Skookum-project-default.ini
  Engine: UE4.11.2-Installed
  Platform: Windows


Checking SkookumScript 64-bit code dependencies for compiled binary...
  Compiled binary is stale - script code is newer.
  Switching to source file parsing...

Pre-parsing classes from overlays (highest to lowest #):
  'SkookumDemo': Project\ ...
  'Project-Generated': Project-Generated\ ...
  'Engine': Engine\ ...
  'Engine-Generated': Engine-Generated\ ...
  ...........................................................................
  ...........................................................................
  ...........................................................................

ERROR: A binding must begin with a colon ':'.
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
// Player
//
// UE4 name of this class: Player
player_pawn.location
----------^ <<<< Line: 4, columns: 1-12


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File: E:\downloads\SkookumDemo\Engine\Plugins\SkookumScript\Scripts\Engine-Generated\Object\Entity.Player\!Class.sk-meta[50-61]

  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  'VectorMath': VectorMath\ ...
  'Core': Core\ ...
  ...........................................................................
  ...done!

Pre-parsing code & data members from overlays:
  'SkookumDemo': Project\
  ....................
  'Project-Generated': Project-Generated\
  ................
  'Engine': Engine\
  ...
  'Engine-Generated': Engine-Generated\
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ......................................
  'VectorMath': VectorMath\
  ........
  'Core': Core\
  ...
  ...done!

Parsing code from overlays:
  'SkookumDemo': Project\
  .......
  'Project-Generated': Project-Generated\
  .
  'Engine': Engine\
  .......
  'Engine-Generated': Engine-Generated\
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ...........................................................................
  ..............................................
  'VectorMath': VectorMath\
  ........
  'Core': Core\
  ..................done!



  ######## 2 errors ########
Binding with C++ routines...
  ...done!


SkookumScript initializing session...


Creating startup master mind object using class 'SkookumDemo'

Member: SkookumDemo.!() - Startup mind instance constructor called.
Member: Master.!() - Mind instance constructor called.
SkookumScript resetting session...
  cleaning up...

SkookumScript initializing session...
  ...done!



Creating startup master mind object using class 'SkookumDemo'

Member: SkookumDemo.!() - Startup mind instance constructor called.
Member: Master.!() - Mind instance constructor called.
Member: SkookumDemo._startup() - Default starting point for behaviour that takes time to complete.

I hope this helps!?


#18

with alt-g I get this in the skookumide: browser
// Returns the location of the RootComponent of this Actor
//
// UE4 name of this method: K2_GetActorLocation
// Blueprint category: Utilities|Transformation

() Vector3


#19

Okay. I think I see what is going on.

You were typing commands in a class file rather than the workspace window.

The easiest thing to do is to erase the SkookumDemo files that you extracted and start fresh.

Once erased, re-extract the files and start again. It should have 0 errors.

This is the SkookumIDE Console and you type in commands in the Workspace which is the bottom pane.

Make sure you type your commands and run them in the Workspace and you should have no problems. :madsci:


#20

Ok I will reunzip the files.

fyi this is what i found in red:

ERROR: A binding must begin with a colon ‘:’.
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
// Player
//
// UE4 name of this class: Player
player_pawn.location
----------^ <<<< Line: 4, columns: 1-12

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File: E:\downloads\SkookumDemo\Engine\Plugins\SkookumScript\Scripts\Engine-Generated\Object\Entity.Player!Class.sk-meta[50-61]

######## 1 error ########

ERROR: A binding must begin with a colon ‘:’.
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
// Player
//
// UE4 name of this class: Player
player_pawn.location
----------^ <<<< Line: 4, columns: 1-12

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File: E:\downloads\SkookumDemo\Engine\Plugins\SkookumScript\Scripts\Engine-Generated\Object\Entity.Player!Class.sk-meta[50-61]

######## 2 errors ########