Simple Flipper Game

#1
Hello,
i'm actually learning CryEngine and Flowgraph, making a simple Flipper to see how it works.
i did some cool models usign designer tools, and now i would like to to take control of the flippers, so i did this little FG, wich works but not perfectly, because sometimes, it happens that they are not responding to pressed, and go to unpressed directly wich cause the flipper to turn by 90° in the wrong direction.

Screenshot at 2017-04-29 11 09 08.png
Screenshot at 2017-04-29 11 09 08.png (177.95 KiB) Viewed 606 times


So i assume the mothod is not good and i want to improve it normaly to get something more logic, by comparing the value of the flipper and lock it between 45° to 135°.
i tryed using token but... i'm lost because there is not enough subject covered in tutorials sections, espécially about flow Graph Programming.
majority of tutorials we can fund on the net is building a terrain, wich doesn't make any game without programming.

Re: Simple Flipper Game

#7
Hello,

i fund another project with a LIbs/Config/DefaultProfile.xml file
so i copied it and pasted it into my project.

but now i feel stupid because it doesn't change anything....

Screenshot at 2017-05-29 10 46 18.png
flowgraff
Screenshot at 2017-05-29 10 46 18.png (30.85 KiB) Viewed 308 times


here is the problem:
using Debug:InputKey:
i can command my flipper to rotate using "q"
i cannot command my flipper to rotate using "lshift"

using input:ActionMaps:ActionListener
doesn't work using q
neither using lshift

Here is my DefaultProfile.xml:
Screenshot at 2017-05-29 10 46 18.png
flowgraff
Screenshot at 2017-05-29 10 46 18.png (30.85 KiB) Viewed 308 times
Attachments
Screenshot at 2017-05-29 10 49 21.png
xml
Screenshot at 2017-05-29 10 49 21.png (28.88 KiB) Viewed 308 times

Re: Simple Flipper Game

#8
i fund something with the console,
when i try to reload action map, it fails:

Code: Select all

'i_reloadActionMaps'
[Warning] XML reader: Can't open file ()
[Warning] CActionMapManager::InitActionMaps: Failed to open , action mappings loading will fail


i cleaneda bit my xml to keep only used parts,

Code: Select all

<profile version="0">
   <platforms>
      <PC keyboard="1" xboxpad="1" ps4pad="1"/>
      <XboxOne keyboard="1" xboxpad="1" ps4pad="0"/>
      <PS4 keyboard="1" xboxpad="0" ps4pad="1"/>
   </platforms>
   
   <!--DO NOT REMOVE DEFAULT ACTIONMAP! NEEDED BY CRYACTION.-->
   <actionmap name="default" version="1"/>
      <action name="flipperG" onPress="1" onRelease="1" retriggerable="1" keyboard="lshift"/>
      <action name="flipperD" onPress="1" onRelease="1" retriggerable="1" keyboard="rshift"/>
   <!---->
   
   </actionmap> 
</profile>


so it can't be fund in my project, i checked the files directories, names,
it's under Flipper > Assets> Libs>config>default.xml

what did i make wrong ?

Re: Simple Flipper Game

#9
Hey,
try to have exactly this path in your project : Assets\Libs\config\defaultprofile.xml
So probably you have to rename the file to defaultprofile.xml

Also this is how one of the files in the templates look like.

Code: Select all

<profile version="0">
   <platforms>
      <PC keyboard="1" xboxpad="1" ps4pad="1"/>
      <XboxOne keyboard="1" xboxpad="1" ps4pad="0"/>
      <PS4 keyboard="1" xboxpad="0" ps4pad="1"/>
   </platforms>
   
   <!--DO NOT REMOVE DEFAULT ACTIONMAP! NEEDED BY CRYACTION.-->
   <actionmap name="default" version="1"/>
   <!---->
   
   <actionmap name="player" version="1">
      <action name="moveleft" onPress="1" onRelease="1" retriggerable="1" keyboard="a"/>
      <action name="moveright" onPress="1" onRelease="1" retriggerable="1" keyboard="d"/>
      <action name="moveforward" onPress="1" onRelease="1" retriggerable="1" keyboard="w"/>
      <action name="moveback" onPress="1" onRelease="1" retriggerable="1" keyboard="s"/>
      
      <action name="mouse_rotateyaw" keyboard="maxis_x" />
      <action name="mouse_rotatepitch" keyboard="maxis_y" />
      
      <action name="shoot" onPress="1" onRelease="1" retriggerable="1" keyboard="mouse1"/>
   </actionmap> 
</profile>


Cheers

Who is online

Users browsing this forum: No registered users and 1 guest