Post subject: Re: BAM Commands Comment and Discussion
Posted: Wed Feb 28, 2018 11:47 am
Joined: Sat Jan 29, 2011 4:54 pm Posts: 1231
ok,thanks to bob,and after 2 hours of attempts, I managed to make and understand, how to disable the gameroom of Bam, the gameroom of FP, and deactivate both...obviously these are the values of mine gameroom with bam, each of you has its own, right, but here is an example.......the secret of deactivating the gamerom of bam, and putting the value of the scale to O....to reactivate the gameroom, in my case, is to put the scales at 25,000
[/color]
Code:
'------------------------------------------------------------------ 'Game room with bam '------------------------------------------------------------------
Dim MiniPlayField_1 ' Xmin Xmax Ymin Ymax Zmin Zmax CenX CenY CenZ Set MiniPlayField_1 = xBAM.CreateMiniPlayfield( -400, -80, 300, 700, 50, 300, -300, 405, 0)
Sub GameRoomBamOn() xBAM.GameRoom = false ' DstX DstY DstZ RotX RotY RotZ Scale Time Call MiniPlayField_1.MoveTo( -1500, -2000, -3000, 0, 0, 0, 25.000, 0) End Sub
Sub GameRoomBamOff() xBAM.GameRoom = true ' DstX DstY DstZ RotX RotY RotZ Scale Time Call MiniPlayField_1.MoveTo( -1500, -2000, -3000, 0, 0, 0, 0, 0) End Sub
Sub GameRoomBamAndFpOff() xBAM.GameRoom = false ' DstX DstY DstZ RotX RotY RotZ Scale Time Call MiniPlayField_1.MoveTo( -1500, -2000, -3000, 0, 0, 0, 0, 0) End Sub
the Dim MiniPlayField_1 and Set MiniPlayField_1..... they must remain outside the subroutine,only the moveto, must remain inside the sub
here the code,thar serve to change on-off...under sub FuturePinball_KeyPressed(ByVal KeyCode)
Code:
If KeyCode = 34 Then 'key G GameRoomOnOff = GameRoomOnOff + 1 If GameRoomOnOff > 3 then GameRoomOnOff = 1 If GameRoomOnOff = 1 Then GameRoomBamOn() If GameRoomOnOff = 2 Then GameRoomBamOff() If GameRoomOnOff = 3 Then GameRoomBamAndFpOff() End if
remember that you need to create a DimGameRoomOnOff
under Option Explicit xBAM.GameRoom= false....this is for FP
under FuturePinball_BeginPlay() GameRoomOnOff =1,you can change the value, = 1, depending on what you want to see...2or 3.
that's all
Gimli
Post subject: Re: BAM Commands Comment and Discussion
For those following this thread using miniplayfield code can be a bit confusing at first. But after using it a few times, it starts to make sense. Here is my attempt at a tutorial : viewtopic.php?nomobile=1&f=55&t=6587&p=85768#p85768 Check out the video tutorial...
The only code I have used, is the one that is generated for me automatically from the BAM Miniplayfield menu.
When you first capture your target in the "Yellow box' and press Control+C then the Dim and Set lines are copied to your clipboard. I just paste these at the top of the script with other "Dims"
Code:
Dim MiniPlayField_1 ' Xmin Xmax Ymin Ymax Zmin Zmax CenX CenY CenZ Set MiniPlayField_1 = xBAM.CreateMiniPlayfield( -400, -80, 300, 700, 50, 300, -300, 405, 0)
After moving the "Green Target Box" to desired size and location and again pressing Control+C then the Moveto line is copied to clipboard. I then paste this where ever I want that code to be used in the script.
If I then want to move the miniplayfield to a new location, I just move the "Green Box" again, generate the new code and paste that to the script.
The codes above are the only miniplayfield codes I use. Pretty simple.You don't even need to understand them. Just suspend your disbelief, use them and watch the magic happen ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
However for those that want to be fancy, there are many miniplayfield codes you may choose to use as "shortcuts"
Instead of having "Call Miniplayfield_1.Moveto(DstX, DstY, DstZ , RotX , RotY , RotZ, Scale, Time)
If you are only altering one parameter and keeping the rest the same, then you can use a more specific code The following examples, plus many more can be found here: viewtopic.php?nomobile=0f=86&t=6214
- MiniPlayField_0.Position.X (or .Y, or .Z) - set it to move playfield to any position. - MiniPlayField_0.Rotation.X (or .Y, or .Z) - set rotation of mini-playfield. - MiniPlayField_0.Scale - set scale of mini-playfield. - MiniPlayField_0.Time - same as last param in "MoveTo" coomand. When this param is set to value greater than 0, mini-playfield will be animated from current position to target position.
Examples:
1. Only thing you want to change is the scale on miniplayfield_2 to 1x Magnification, which is the original size.
Code:
Miniplayfield_2.Scale = 1
2.You want to move the miniplayfield_5 to the x coordinate = -200(from Table editor)
Code:
Miniplayfield_5.PositionX = -200
3.You want to rotate the miniplafield_12 in Z axis by 90 degress
Code:
Miniplayfield_12.Rotation.Z = 90
Again, I have never used these shortcuts, because they are script based only and I personally can't visualize what it means.
Instead, I load the table and then from the BAM menu, where I see exactly what is going on, I simply have BAM give me the code and I copy it to the script.....
Last edited by Gimli on Wed Feb 28, 2018 10:26 pm, edited 13 times in total.
wild
Post subject: Re: BAM Commands Comment and Discussion
Posted: Wed Feb 28, 2018 7:42 pm
Joined: Sat Jan 29, 2011 4:54 pm Posts: 1231
Gimli wrote:
Yes! If you check your code you will see you have the Scale at 25.000 ( which is the same as 25.00 or 25) not 25,000.
And that makes sense because you have magnified your room model 25x
Otherwise you have perfect understanding. Well Done !
Cheers
Ahhh...ok,I was wrong to write 25,000?
anyway thanks to you.....
still two things I have to learn about bam, which for now I would like.....
the light...and rubber
Gimli
Post subject: Re: BAM Commands Comment and Discussion
still two things I have to learn about bam, which for now I would like.....
the light...and rubber
1. The lighting I have never learned. However, Monnezzas seemed to have a knack for it. So what you can try is taking his table.cfg file from one of his tables and renaming with your tablename.
For instance Buccaneer.cfg or Abracadabra.cfg and naming NES.cfg or whatever. And then copy to your BAM/cfg directory.
2. What do you mean Rubber? Do you mean how we got the balls bouncing in Vertical MP using BAM physics tweaks?
I can create a demo video using my old version of the NES table with your permission, Paolo ?
3. Paolo, did you see this video? https://youtu.be/5DFQY8ZgEiM I took your Flame Hologram from Dragon's Keep and attached it to a pinball
wild
Post subject: Re: BAM Commands Comment and Discussion
Posted: Thu Mar 01, 2018 11:32 am
Joined: Sat Jan 29, 2011 4:54 pm Posts: 1231
Gimli wrote:
wild wrote:
Gimli wrote:
still two things I have to learn about bam, which for now I would like.....
the light...and rubber
1. The lighting I have never learned. However, Monnezzas seemed to have a knack for it. So what you can try is taking his table.cfg file from one of his tables and renaming with your tablename.
For instance Buccaneer.cfg or Abracadabra.cfg and naming NES.cfg or whatever. And then copy to your BAM/cfg directory.
2. What do you mean Rubber? Do you mean how we got the balls bouncing in Vertical MP using BAM physics tweaks?
I can create a demo video using my old version of the NES table with your permission, Paolo ?
3. Paolo, did you see this video? https://youtu.be/5DFQY8ZgEiM I took your Flame Hologram from Dragon's Keep and attached it to a pinball
yah, Monnezzas , was good at this, I have watched Buccaneer many times, but I would like to understand the system....what is changed, with what criterion, how to modify the flashes....in short, understand how it is done
yes using the BAM physics tweaks, give a the walls, putting them in rubber, a little more strength.....how you do it?
sure, go ahead... great demo, send it to me too, so I learn also I,but you what put , ? model or textures, on the ball? I like the fireball, send me this too, if I send you an object, what do you want a model or a texture? Would you make me a ball like that?
Gimli
Post subject: Re: BAM Commands Comment and Discussion
sure, go ahead... great demo, send it to me too, so I learn also I,but you what put , ? model or textures, on the ball? I like the fireball, send me this too, if I send you an object, what do you want a model or a texture? Would you make me a ball like that?
you can attach almost anything to the ball. It is really easy, I can show you how, now that you are learning how to use miniplayfield
It is currently Thu Dec 12, 2019 10:38 am All times are UTC - 5 hours [ DST ]
Who is online
Users browsing this forum: No registered users and 4 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum