The following warnings occurred:
Warning [2] Undefined array key "style" - Line: 201 - File: inc/plugins/gomobile.php PHP 8.1.34 (Linux)
File Line Function
/inc/plugins/gomobile.php 201 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcetheme
/global.php 94 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key "gomobile" - Line: 214 - File: inc/plugins/gomobile.php PHP 8.1.34 (Linux)
File Line Function
/inc/plugins/gomobile.php 214 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcetheme
/global.php 94 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key "gomobile" - Line: 275 - File: inc/plugins/gomobile.php PHP 8.1.34 (Linux)
File Line Function
/inc/plugins/gomobile.php 275 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcetheme
/global.php 94 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 280 - File: inc/plugins/gomobile.php PHP 8.1.34 (Linux)
File Line Function
/inc/plugins/gomobile.php 280 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcetheme
/global.php 94 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 544 - File: global.php PHP 8.1.34 (Linux)
File Line Function
/global.php 544 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 805 - File: global.php PHP 8.1.34 (Linux)
File Line Function
/global.php 805 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 805 - File: global.php PHP 8.1.34 (Linux)
File Line Function
/global.php 805 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 33 - File: global.php(866) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/global.php(866) : eval()'d code 33 errorHandler->error
/global.php 866 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 931 - File: global.php PHP 8.1.34 (Linux)
File Line Function
/global.php 931 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5151 - File: inc/functions.php PHP 8.1.34 (Linux)
File Line Function
/inc/functions.php 5151 errorHandler->error
/global.php 931 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7315 - File: inc/functions.php PHP 8.1.34 (Linux)
File Line Function
/inc/functions.php 7315 errorHandler->error
/inc/functions.php 5171 is_member
/global.php 931 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7315 - File: inc/functions.php PHP 8.1.34 (Linux)
File Line Function
/inc/functions.php 7315 errorHandler->error
/inc/functions.php 5171 is_member
/global.php 931 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 298 - File: inc/plugins/gomobile.php PHP 8.1.34 (Linux)
File Line Function
/inc/plugins/gomobile.php 298 errorHandler->error
/inc/class_plugins.php 142 gomobile_forcefooter
/global.php 1154 pluginSystem->run_hooks
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(257) : eval()'d code PHP 8.1.34 (Linux)
File Line Function
/printthread.php(257) : eval()'d code 2 errorHandler->error
/printthread.php 257 eval
/printthread.php 117 printthread_multipage
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.34 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



SDK question(s) - Printable Version

+- (https://forums.vzfit.com)
+-- Forum: VZfit Forum (https://forums.vzfit.com/forumdisplay.php?fid=5)
+--- Forum: General Discussion (https://forums.vzfit.com/forumdisplay.php?fid=6)
+--- Thread: SDK question(s) (/showthread.php?tid=184)

Pages: 1 2 3 4 5 6


RE: SDK question(s) - Stain2319 - 03-18-2020

So if you get a chance - I would be interested in seeing the code you're using for the Heli to move up/down with leaning. I have kludged something together but I would like to compare notes if you don't mind Smile


RE: SDK question(s) - emalafeew - 03-19-2020

I can't make a simple compilable example right now, but we essentially have

Code:
override void Update()
   {
      ...
      // Adjust forward speed
      float bend = Mathf.Clamp01(Controller.HeadBend / 0.2f);
      SpeedFudge = mOriginalSpeedFudge * Mathf.Lerp(0.66f, 1, bend);
   }

   override void FixedUpdate()
   {
      ...
      // Lean forward to bleed lift and increase falling speed limit
      force.y *= 1 - bend;
      MaxVertSpeed = Mathf.Lerp(4.5f, 9, bend);
   }

Hope that helps! We do other things in real code like smooth the bend value (see Mathf.SmoothDamp), use B button when tilt steering, and tilt the heli model down more when bending, but those are secondary.


RE: SDK question(s) - Stain2319 - 03-19-2020

That'll work. Thanks!


RE: SDK question(s) - Stain2319 - 03-22-2020

OK - I have one more avatar question. I am curious how you handle the Cowboy avatar going sideways without going off the edges. I assume you are using colliders of some sort on the sides, but wondering how you handle the motion (I assume you are not just letting the physics engine handle it because it's more of a "smooth" bump than it seem like you get with standard box colliders... Are you using a trigger and simply limiting the horizontal position? Guess I'll try that... Smile


RE: SDK question(s) - Stain2319 - 03-22-2020

Ohhhhh, I bet you're clamping it aren't you Smile


RE: SDK question(s) - emalafeew - 03-22-2020

Hi Stain I don't have time to look into this in detail now, but believe since Jailbreak goes in a straight line we just clamp its position rather than rely on colliders like you said. Note it's the only game where we set VZPlayer.AllowRotate to false, so your steering just affects the horse's velocity and your forward-facing direction always remains the same.


RE: SDK question(s) - Stain2319 - 03-22-2020

Thanks! that's pretty much what I figured.


RE: SDK question(s) - Stain2319 - 03-26-2020

I'm not sure if you can answer this since it goes more to level design but I'd appreciate any pointers. I'm curious about how you spawn the bandit enemies in the cowboy game.... I'm not looking for code, but more of a general idea of how it is handled, just trying to get some insight into game design tricks as all my programming experience is more business-oriented Smile

For example, I'm wondering if the round length is time-based, or is it a certain distance travelled, etc?

Do you spawn the bandits into existence behind/relative to the player position, or does the player cross a trigger which spawns them from a fixed point? And am I correct that the bandits get slightly faster each round?


RE: SDK question(s) - emalafeew - 03-26-2020

The Jailbreak round levels are time-based. Since you are meant to lasso the bandits and not race them, they always run faster to keep a minimum distance ahead of you, so rounds can't be distance based. Each wave of bandits spawn behind the player and run ahead. The speed and behavior of each bandit is based on its horse color. Whites are the fastest, black ones move side-to-side, tan ones leave droppings, etc. We generally put more and harder bandits into new levels, but occasionally drop back for relief. We also drop back if you can't progress from current wave after 3 tries, to calibrate to your workout ability.

Glad you're finding game programming fun, it touches on a lot of disciplines. Designing games that make you perform interval pedaling while distracting your mind from pedaling is our unique challenge!


RE: SDK question(s) - emalafeew - 03-26-2020

Here are some other resources for you

Jesse Schell's The Art of Game Design is a good read about how to approach making games. It doesn't contain a lot of technique though.

Game Programming Gems 1 & 2 go into very detailed technique, but is mostly engine level stuff that Unity and plugins can take care of now.

Gamasutra.com is read and contributed to by a lot of game devs.

Gdcvault.com is a repository of GDC conference decks, though most of them are behind subscription wall.