************* FizX v110 - NEW Template Example Tables! ****************
OK... so here is the updated FizX Template table examples with the latest v110 code.
This includes:
- example table with FizX v110 and all code in the table script (no vbs or library used)
- example table with FizX v110 using external vbs file for the Main FizX code
- vbs file with the FizX v110 Main code
Each example includes:
- FizX Profiles
- FizX Profile Changer
- FizX Tweaker Tool (same version I used with Jaws BBE)
This is updated with the latest v110 features, and the older features removed that are no longer used with v110. A Timer is no longer used. The code is more refined and has new options to allow for more natural shots that can be adjusted for wider shots coming off the flipper tip if needed (RollingEffect)
Everything is in one section to make it easier to copy and paste from, but it also has smaller modular sections to make it easier to understand or update.
=============================================
****** FizX code Sections ******
"TABLE SETTINGS and CODE"
- includes xml settings, FizX Profiles / settings, Tweaker Tool, Profile changer
"MAIN CODE"
- the core code which can be used in the table script or vbs
"DrawFrameTick - Internal Timer"
- used to AdjustBallVelocity
"FizX Settings Applied at StartUP"
- FizX Profile Settings are applied at the END of "all" FizX code
=============================================
To copy FizX code from this table to another table, you should only need to do the following:
- add a "HUD DMD" (128x32) named FizXDMD (required or you get an error)
- add DMD Font "dmd05x05p" if the table doesn't already have it (FP New Table has this)
- copy and paste the entire FizX code beginning from "FizX PHYSICS SYSTEM - START" to "FizX PHYSICS SYSTEM - END"
- add any models for rubbers, sling diverters, bumper model, bumper skirt, surface, etc that you need
- read more below at "Adding FizX to a table (the basics)"
I have both the Tweaker Tool (F key) and Profile Changer (G key) enabled for testing. Normally you would have these disabled for a finished table.
The code sections for both the Tweaker Tool and the Profile Changer can be completely replaced or removed if desired.
=============================================
IMPORTANT!
This example table is only for reference to copy and paste from! It is
NOT a good example of FizX gameplay! You may need to adjust settings as you need on your table!
Try Jaws Bigger Boat Edition for an example of a table playing with the latest FizX v110 code.
Remember... you can still adjust everything in the FizX Profiles for whatever you want. Use the Tweaker Tool to play around! Press F while playing to toggle it on and off, and make your adjustments while playing!
Don't go changing the xml settings! Start with them as they are and only adjust things such as the kickers, vuk, spinner, etc as need for the "table objects". Leave the other xml physics settings alone or you WILL mess up things up and FizX won't work correctly or as intended.
=============================================
I also included the following in the Main FizX code. This is by no means a complete guide... but it will give you the basics of adding FizX to a table.
'
********** Adding FizX to a table (the basics) **********
' - add "HUD DMD" (128x32) to Translite Editor named "FizXDMD". This is for FizX Tweaker Tool
' - add DMD Font "dmd05x05p" if the table doesn't already have it (FP New Table has this)
' - add a surface named DRubberOffset using height of 14/12 (used for the some rubber model heights)
' - add new FizX code (remove any older custom physics code)
' - check the main table code to ensure there is no duplicate Dim, Functions, Subs, etc used in the FizX code
' - in the editor, adjust table slope (usually between 5 to 6)
' - name flippers as "LeftFlipper, RightFlipper, LeftFlipper1, RightFlipper1, etc" in the editor and in the table script to match FizX code
' - adjust flipper start angle / swing angle / strength / elasticity as needed (typically strength is centered, and elasticity is hard)
' - change settings in "Flipper Physics Setup" to match flipper swing angle, and other flipper settings as needed
' - replace bumpers with new bumper model and skirt "peg" model (remove any em kickers in the editor and table code - if they were used for the bumpers)
' - update slings with new FizX diverters, add new FizX commands to activate diverters (in the slingshot Subs)
' - add new FizX diverter "rubber" models for posts and add new FizX wall guides (set as rubber) in place of rubber bands (named Drubber1, Drubber2, Drubber3, etc)
' - use invisible textures for FizX rubber posts, and FizX rubber wall guides (or set to "not rendered" - we don't want to see them)
' - add new settings for each FizX rubber post and rubber wall item in "Rubber settings for items on this table"
' - add new walls (set to plastic) to each drop target (named DT1, DT2, DT3, etc) and use invisible textures with them (we don't want to see them)
' - add or change table code for drop targets so that FizX drop target walls are what gets "hit", and then control drop target items based on that
' - in the editor, make sure all items are named correctly to work with FizX code (flippers, sling diverters, drop target walls, rubber posts and walls, etc)
' - in the editor, ensure settings for all items are correct for FizX (flippers, sling diverters, drop target walls, rubber posts and walls, etc)
' - in the editor, adjust kickers, bumpers, autoplunger as needed for strength, etc
' - adjust "Physics xml" only as needed (most settings are pre-set for FizX)
' - adjust any BAM magnets as needed. Example before adding FizX: Upper_Magnet.Strength = 300. After adding FizX: Upper_Magnet.Strength = 25000
' - if you get Overflow Errors while playing, try adding PFTrajectoryCorrection = 0 right before a ball is created and right before its kicked out
' - test / adjust / test / adjust.... until you get it working the way you want it to play!
=============================================
Oh, and the Jaws BBE 1.1 update had some typos in the FizX code (my fault) regarding the extra flippers. This had no effect on Jaws since it only has the main 2 flippers, but I already fixed the typo and re-uploaded it tonight. It's still the same 1.1 table otherwise. That typo has been fixed for these Template examples as well.
Enjoy! the new FizX v110 update!
Thanks to @JLou5641 for all the great updates to v110!