Jump to content



Photo
* * * * * 4 votes

JP's Star Trek LE (Stern 2013) [Visual Pinball X]

Star Trek

  • Please log in to reply
130 replies to this topic

#61 djinfinity907

djinfinity907

    Hobbyist

  • Members
  • PipPip
  • 23 posts
  • Location:Indianapolis, Indiana

  • Flag: United States of America

  • Favorite Pinball: Monster Bash

Posted 04 November 2020 - 07:42 PM

 

JP,

How do you change the script to allow the launch button to act as a punch it? or what key is punch it? I have to wait for the mission timer to run out before the next mission.

 

Just press any of the magnasave buttons (usually the left and right CTRL keys)

 

Can it be remapped? magnasave buttons are the left and right nudge on my cabinet.



#62 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 05 November 2020 - 12:44 AM

You could edit it in the table script to be something else
P and J key etc, what ever suits you


If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#63 djinfinity907

djinfinity907

    Hobbyist

  • Members
  • PipPip
  • 23 posts
  • Location:Indianapolis, Indiana

  • Flag: United States of America

  • Favorite Pinball: Monster Bash

Posted 05 November 2020 - 01:05 AM

Umm where in the script? I couldnt seem to find where it was, thats why I posted on here a lil nudge in the right direction plz plz plz :)

#64 luvthatapex

luvthatapex

    Pinball Fan

  • VIP
  • 1,435 posts

  • Flag: United States of America

  • Favorite Pinball: Tron



Posted 05 November 2020 - 01:25 AM

Run vpinballx.exe

File, Load, pick a table

Click the SCRIPT in the upper left and it opens the table script.

Make your changes in the table script, hit File, Save

Next time you run your table it will run with your changes

 

Umm where in the script? I couldnt seem to find where it was, thats why I posted on here a lil nudge in the right direction plz plz plz :)


Edited by luvthatapex, 05 November 2020 - 01:26 AM.


#65 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 05 November 2020 - 01:41 AM

Umm where in the script? I couldnt seem to find where it was, thats why I posted on here a lil nudge in the right direction plz plz plz :)

 

I dont have one of JPs tables handy now with that feature

but in the script do a search CTRL + F for magnasave

 

OK i lied, i do have one here.

 

 

Ok run table, pick the LUT you like the looks of, hit Q and quit to editor
Then click script editor

Sub table1_KeyDown(ByVal Keycode)
    If keycode = LeftTiltKey Then Nudge 90, 5:PlaySound SoundFX("fx_nudge", 0), 0, 1, -0.1, 0.25
    If keycode = RightTiltKey Then Nudge 270, 5:PlaySound SoundFX("fx_nudge", 0), 0, 1, 0.1, 0.25
    If keycode = CenterTiltKey Then Nudge 0, 6:PlaySound SoundFX("fx_nudge", 0), 0, 1, 0, 0.25
    If Keycode = StartGameKey Then Controller.Switch(16) = 1
	If keycode = LeftMagnaSave Then bLutActive = True
	If keycode = RightMagnaSave Then 
		If bLutActive Then NextLUT: End If
	End If

Now comment out these 4 lines and save the table of course

	' If keycode = LeftMagnaSave Then bLutActive = True
	' If keycode = RightMagnaSave Then 
	' 	If bLutActive Then NextLUT: End If
	' End If

Edited by wiesshund, 05 November 2020 - 01:46 AM.

If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#66 djinfinity907

djinfinity907

    Hobbyist

  • Members
  • PipPip
  • 23 posts
  • Location:Indianapolis, Indiana

  • Flag: United States of America

  • Favorite Pinball: Monster Bash

Posted 05 November 2020 - 06:16 AM

Thank you wiesshund. I'll test this out tomorrow. At least this gives me a place to look in the script. Luvthatapex must think I'm dumb and not know how to access the script to begin with. Judging from the sacrcastic reply. I clearly stated "Where In The Script" SMDH.

#67 luvthatapex

luvthatapex

    Pinball Fan

  • VIP
  • 1,435 posts

  • Flag: United States of America

  • Favorite Pinball: Tron



Posted 05 November 2020 - 01:18 PM

Not at all, I mistook your reply as where is the script, not where IN the script. Just trying to be helpful!

 

Thank you wiesshund. I'll test this out tomorrow. At least this gives me a place to look in the script. Luvthatapex must think I'm dumb and not know how to access the script to begin with. Judging from the sacrcastic reply. I clearly stated "Where In The Script" SMDH.



#68 djinfinity907

djinfinity907

    Hobbyist

  • Members
  • PipPip
  • 23 posts
  • Location:Indianapolis, Indiana

  • Flag: United States of America

  • Favorite Pinball: Monster Bash

Posted 05 November 2020 - 07:43 PM

Ok,

I commented out those lines and still enter is not punch it now. I wish I had more than basic knowledge this is a great table I wish I could get it functional without tilting.



#69 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 05 November 2020 - 08:52 PM

Ok,

I commented out those lines and still enter is not punch it now. I wish I had more than basic knowledge this is a great table I wish I could get it functional without tilting.

 

You did not ask about punch it, you asked about not having to color LUT change when you used the flippers

 

PUNCH IT i believe would be
 

In table1_keydowns

 

If keycode = keyFire2 Then Controller.Switch(71) = 1
 
and in table1_keyups
 
If keycode = keyFire2 Then Controller.Switch(71) = 0
 
assuming you have Enter bound to lockbar Fire?

Edited by wiesshund, 05 November 2020 - 08:53 PM.

If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#70 djinfinity907

djinfinity907

    Hobbyist

  • Members
  • PipPip
  • 23 posts
  • Location:Indianapolis, Indiana

  • Flag: United States of America

  • Favorite Pinball: Monster Bash

Posted 05 November 2020 - 09:05 PM

original post. Nothing about any LUT(s). wrong guy

 

JP,

How do you change the script to allow the launch button to act as a punch it? or what key is punch it? I have to wait for the mission timer to run out before the next mission.


Edited by djinfinity907, 05 November 2020 - 09:07 PM.


#71 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 05 November 2020 - 09:08 PM

PS
Tilting should have nothing to do with any of the above unless you bound your nudge keys to the flippers or something


If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#72 djinfinity907

djinfinity907

    Hobbyist

  • Members
  • PipPip
  • 23 posts
  • Location:Indianapolis, Indiana

  • Flag: United States of America

  • Favorite Pinball: Monster Bash

Posted 05 November 2020 - 09:11 PM

 

Ok,

I commented out those lines and still enter is not punch it now. I wish I had more than basic knowledge this is a great table I wish I could get it functional without tilting.

 

You did not ask about punch it, you asked about not having to color LUT change when you used the flippers

 

PUNCH IT i believe would be
 

In table1_keydowns

 

If keycode = keyFire2 Then Controller.Switch(71) = 1
 
and in table1_keyups
 
If keycode = keyFire2 Then Controller.Switch(71) = 0
 
assuming you have Enter bound to lockbar Fire?

 

Yes enter is launch on my cab. so do I find that and change it to what you have above?


PS
Tilting should have nothing to do with any of the above unless you bound your nudge keys to the flippers or something

on the pinball cab you have flippers and a second set of buttons for nudge/magnasave. on this table hit too many punch its and you tilt. thats why I would like to move punch it to enter/launch



#73 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 05 November 2020 - 09:16 PM

 

original post. Nothing about any LUT(s). wrong guy

 

JP,

How do you change the script to allow the launch button to act as a punch it? or what key is punch it? I have to wait for the mission timer to run out before the next mission.

 

 

ok, well answer is in the above for that still
bind enter to lockbar/fire in VPX prefs and then edit table script as noted in post above

 

Enter or what ever key/button your cab is set up to use for that


Edited by wiesshund, 05 November 2020 - 09:17 PM.

If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#74 djinfinity907

djinfinity907

    Hobbyist

  • Members
  • PipPip
  • 23 posts
  • Location:Indianapolis, Indiana

  • Flag: United States of America

  • Favorite Pinball: Monster Bash

Posted 05 November 2020 - 09:35 PM

I don't see what you said. Script looks like this

 

Sub table1_KeyDown(ByVal Keycode)
    If keycode = LeftTiltKey Then Nudge 90, 6:PlaySound SoundFX("fx_nudge", 0), 0, 1, -0.1, 0.25
    If keycode = RightTiltKey Then Nudge 270, 6:PlaySound SoundFX("fx_nudge", 0), 0, 1, 0.1, 0.25
    If keycode = CenterTiltKey Then Nudge 0, 8:PlaySound SoundFX("fx_nudge", 0), 0, 1, 0, 0.25
    If keycode = LeftMagnaSave Then Controller.Switch(71) = 1:  bLutActive = True
    If keycode = RightMagnaSave Then 
Controller.Switch(71) = 1
If bLutActive Then NextLUT: End If
End If
    If Keycode = LeftFlipperKey then Controller.Switch(84) = 1
    If Keycode = RightFlipperKey then Controller.Switch(86) = 1:Controller.Switch(82) = 1
    If vpmKeyDown(keycode)Then Exit Sub
    If keycode = PlungerKey Then PlaySoundat "fx_PlungerPull", Plunger:Plunger.Pullback
End Sub
 
Sub table1_KeyUp(ByVal Keycode)
    If keycode = LeftMagnaSave Then Controller.Switch(71) = 0: bLutActive = False
    If keycode = RightMagnaSave Then Controller.Switch(71) = 0
    If Keycode = LeftFlipperKey then Controller.Switch(84) = 0
    If Keycode = RightFlipperKey then Controller.Switch(86) = 0:Controller.Switch(82) = 0
    If vpmKeyUp(keycode)Then Exit Sub
    If keycode = PlungerKey Then PlaySoundAt "fx_plunger", Plunger:Plunger.Fire
End Sub


#75 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 05 November 2020 - 09:45 PM

 

I don't see what you said. Script looks like this

 

Sub table1_KeyDown(ByVal Keycode)
    If keycode = LeftTiltKey Then Nudge 90, 6:PlaySound SoundFX("fx_nudge", 0), 0, 1, -0.1, 0.25
    If keycode = RightTiltKey Then Nudge 270, 6:PlaySound SoundFX("fx_nudge", 0), 0, 1, 0.1, 0.25
    If keycode = CenterTiltKey Then Nudge 0, 8:PlaySound SoundFX("fx_nudge", 0), 0, 1, 0, 0.25
    If keycode = LeftMagnaSave Then Controller.Switch(71) = 1:  bLutActive = True
    If keycode = RightMagnaSave Then 
Controller.Switch(71) = 1
If bLutActive Then NextLUT: End If
End If
    If Keycode = LeftFlipperKey then Controller.Switch(84) = 1
    If Keycode = RightFlipperKey then Controller.Switch(86) = 1:Controller.Switch(82) = 1
    If vpmKeyDown(keycode)Then Exit Sub
    If keycode = PlungerKey Then PlaySoundat "fx_PlungerPull", Plunger:Plunger.Pullback
End Sub
 
Sub table1_KeyUp(ByVal Keycode)
    If keycode = LeftMagnaSave Then Controller.Switch(71) = 0: bLutActive = False
    If keycode = RightMagnaSave Then Controller.Switch(71) = 0
    If Keycode = LeftFlipperKey then Controller.Switch(84) = 0
    If Keycode = RightFlipperKey then Controller.Switch(86) = 0:Controller.Switch(82) = 0
    If vpmKeyUp(keycode)Then Exit Sub
    If keycode = PlungerKey Then PlaySoundAt "fx_plunger", Plunger:Plunger.Fire
End Sub

 

 

Well, you have me at a loss, because you just posted what i said, that you are saying that you do not see, except you just posted it
so i am not sure how to help
 


Edited by wiesshund, 05 November 2020 - 09:47 PM.

If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#76 djinfinity907

djinfinity907

    Hobbyist

  • Members
  • PipPip
  • 23 posts
  • Location:Indianapolis, Indiana

  • Flag: United States of America

  • Favorite Pinball: Monster Bash

Posted 05 November 2020 - 10:06 PM

I do not understand what to change to ,move punch it to enter instead of what is mapped to nudge



#77 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 05 November 2020 - 10:28 PM

I do not understand what to change to ,move punch it to enter instead of what is mapped to nudge

Sub table1_KeyDown(ByVal Keycode)
    If keycode = LeftTiltKey Then Nudge 90, 6:PlaySound SoundFX("fx_nudge", 0), 0, 1, -0.1, 0.25
    If keycode = RightTiltKey Then Nudge 270, 6:PlaySound SoundFX("fx_nudge", 0), 0, 1, 0.1, 0.25
    If keycode = CenterTiltKey Then Nudge 0, 8:PlaySound SoundFX("fx_nudge", 0), 0, 1, 0, 0.25
    If keycode = Fire1 Then Controller.Switch(71) = 1:  bLutActive = True
    If keycode = Fire2 Then 
Controller.Switch(71) = 1
If bLutActive Then NextLUT: End If
End If
    If Keycode = LeftFlipperKey then Controller.Switch(84) = 1
    If Keycode = RightFlipperKey then Controller.Switch(86) = 1:Controller.Switch(82) = 1
    If vpmKeyDown(keycode)Then Exit Sub
    If keycode = PlungerKey Then PlaySoundat "fx_PlungerPull", Plunger:Plunger.Pullback
End Sub
 
Sub table1_KeyUp(ByVal Keycode)
    If keycode = Fire1 Then Controller.Switch(71) = 0: bLutActive = False
    If keycode = Fire2 Then Controller.Switch(71) = 0
    If Keycode = LeftFlipperKey then Controller.Switch(84) = 0
    If Keycode = RightFlipperKey then Controller.Switch(86) = 0:Controller.Switch(82) = 0
    If vpmKeyUp(keycode)Then Exit Sub
    If keycode = PlungerKey Then PlaySoundAt "fx_plunger", Plunger:Plunger.Fire
End Sub
 
 
And unless you want to actually swap the LUT levels, you do not need to worry about having keys for both FIRE buttons
 
by default, fire 2 is R ALT and fire 1 is L CTRL, they are defined in VPMkeys vbs
You have to set up your cab to have those keys of course or edit VPMkeys.vbs to suit

Then you can do both fire and rotate LUT's, cause you wont be holding down both fire buttons by mistake

OR  I will give you this 2nd option
 
 
Sub table1_KeyDown(ByVal Keycode)
    If keycode = LeftTiltKey Then Nudge 90, 6:PlaySound SoundFX("fx_nudge", 0), 0, 1, -0.1, 0.25
    If keycode = RightTiltKey Then Nudge 270, 6:PlaySound SoundFX("fx_nudge", 0), 0, 1, 0.1, 0.25
    If keycode = CenterTiltKey Then Nudge 0, 8:PlaySound SoundFX("fx_nudge", 0), 0, 1, 0, 0.25
    If keycode = LeftMagnaSave Then bLutActive = True
    If keycode = LockBarKey Then
Controller.Switch(71) = 1
If bLutActive Then NextLUT: End If
End If
    If Keycode = LeftFlipperKey then Controller.Switch(84) = 1
    If Keycode = RightFlipperKey then Controller.Switch(86) = 1:Controller.Switch(82) = 1
    If vpmKeyDown(keycode)Then Exit Sub
    If keycode = PlungerKey Then PlaySoundat "fx_PlungerPull", Plunger:Plunger.Pullback
End Sub
 
Sub table1_KeyUp(ByVal Keycode)
    If keycode = LeftMagnaSave Then bLutActive = False
    If keycode = LockBarKey Then Controller.Switch(71) = 0
    If Keycode = LeftFlipperKey then Controller.Switch(84) = 0
    If Keycode = RightFlipperKey then Controller.Switch(86) = 0:Controller.Switch(82) = 0
    If vpmKeyUp(keycode)Then Exit Sub
    If keycode = PlungerKey Then PlaySoundAt "fx_plunger", Plunger:Plunger.Fire
End Sub
 
 

Now map the lockbar key in VPX key/nudge prefs to some button on your cab

Hit it and PUNCH IT happens

Hold it and then flip the left magnasave and you can rotate through the LUT color/brightness settings
and MagnaSave will not PUNCH IT

If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow


#78 djinfinity907

djinfinity907

    Hobbyist

  • Members
  • PipPip
  • 23 posts
  • Location:Indianapolis, Indiana

  • Flag: United States of America

  • Favorite Pinball: Monster Bash

Posted 05 November 2020 - 11:27 PM

went with 2nd option. THANK YOU SO MUCH!!!!!!!!!!!!!!! :db:  :otvclap:  :love39:



#79 degagne

degagne

    Neophyte

  • Members
  • Pip
  • 7 posts

  • Flag: United States of America

  • Favorite Pinball: Monsters of Rock

Posted 25 December 2020 - 11:14 PM

I've replaced the rom and I'm using 10.7 VPX but the table is still crashing whenever I get to a replay award.
Anyone have a solution? I love play this game but it always crashes

 

thx



#80 wiesshund

wiesshund

    VPF Legend

  • Members
  • PipPipPipPipPipPipPip
  • 11,871 posts

  • Flag: United States of America

  • Favorite Pinball: How many can i have?

Posted 25 December 2020 - 11:46 PM

what error is it crashing with?


If you feel the need to empty your wallet in my direction, i don't have any way to receive it anyways

Spend it on Hookers and Blow






Also tagged with one or more of these keywords: Star, Trek