Page 2 of 2

Re: Deck Scale mod

Posted: Thu Jan 19, 2017 2:34 pm
by WhoElseButMe
in create_cas_modifier_menu

Code: Select all

:i function $create_cas_modifier_menu$
   :i $kill_cas_pull_back_camera$ #/ this should already be there
   #/ add this
   :i if $GotParam$ $board$
      :i $MakeSkaterGoto$$CasAI$$params$ = :s{$no_init$$deck_bottom$:s}
      :i $skater$.$SwitchOnBoard$
   :i endif

in edit_skater_exit_sub_menu

Code: Select all

:i function $edit_skater_exit_sub_menu$
   #/ add this
   $skater$.$SwitchOffBoard$
   $MakeSkaterGoto$$CasAI$$params$ = :s{$no_init$:s}


Also, try removing either affectXY or affectXYZ
So you'd be left with

Code: Select all

$scaling_params$ = :s{
   $affectX$
   $affectY$
   $affectZ$
   $affectXY$
:s}

or

Code: Select all

$scaling_params$ = :s{
   $affectX$
   $affectY$
   $affectZ$
   $affectXYZ$
:s}

Re: Deck Scale mod

Posted: Fri Jan 20, 2017 2:56 am
by shaun
I cannot find the function $create_cas_modifier_menu$. I can only find a function call, ":i function call $create_cas_modifier_menu$ arguments ", in mainmenu_cas.qb. I've looked in cas_skater_sharded, casmenu, mainmenu, mainmenu_cas, mainmenu_net, mainmenu_options, mainmenu_scripts and scalingmenu. Where is it?

Re: Deck Scale mod

Posted: Fri Jan 20, 2017 6:32 am
by WhoElseButMe
shaun wrote:I cannot find the function $create_cas_modifier_menu$. I can only find a function call, ":i function call $create_cas_modifier_menu$ arguments ", in mainmenu_cas.qb. I've looked in cas_skater_sharded, casmenu, mainmenu, mainmenu_cas, mainmenu_net, mainmenu_options, mainmenu_scripts and scalingmenu. Where is it?


What, :i function call $create_cas_modifier_menu$ arguments ? call arguments has nothing to do with the script and is a blub syntax thing only.
It means that whatever is on the next line is actually all on one line in byte code.
The function name is what? create_cas_modifier_menu does that not match create_cas_modifier_menu?

call and arguments can literally be removed and nothing will happen.

Re: Deck Scale mod

Posted: Fri Jan 20, 2017 4:49 pm
by shaun
Oh, that's good to know. I thought they were two totally different things.

Anyway, I got the board to show up when entering the deck scale menu, but right now the game crashes whenever I exit any of the CaS submenus. If I remove $skater$.$SwitchOffBoard$ from :i function $edit_skater_exit_sub_menu$, it won't crash, but the deck won't be put away.

Edit: Nevermind, I fixed it. Thanks again for your help. Sorry I was so difficult. I'm terribly new to this scripting stuff.

Re: Deck Scale mod

Posted: Sat Jan 21, 2017 4:48 am
by WhoElseButMe
shaun wrote:Thanks again for your help. Sorry I was so difficult. I'm terribly new to this scripting stuff.

You're welcome. Showing initiative and putting forth effort trying will gain hands on experience and more people are willing to help under those circumstances. No need to apologize for anything.

Re: Deck Scale mod

Posted: Sun Jan 22, 2017 3:15 am
by shaun
Thanks. :)

I guess I'll put the mod and source code up here for anyone who comes looking for it (like me): https://www.mediafire.com/?av7jvh62ct9llaz

Re: Deck Scale mod

Posted: Thu Feb 16, 2017 10:52 pm
by WhoElseButMe
The reason affectXY and affectXYZ would crash when added to the same menu is because the code gives both of those items the same id
id = scalingmenu_xyz_slider
change affectXY's id and it'll work.